I am having trouble passing an Array to the Duedil API. Think its probably just a format issue - the error is invalid object for Values (under regions).
Any ideas? Thanks
Here is what the swagger API docs say for the Duedil API
regions
RegionsMultiValueFilter
List of regions
values
object Required
An array of objects detailing the desired regionId and the types of addresses to include
regionId
string Required
Region ID (Can be obtained using the ‘regions search’ endpoint)
addressTypes
string
“registered” “trading” “branch”
Company address usage types
mode
string
“any” “all”
Boolean logic mode. Defaults to any. NOTE: We plan on adding more modes soon. Some of the existing modes might not be implemented for all filters
{
- “criteria”:{
-
“name”: “string”,
-
“countryCodes”:{},
-
“simplifiedStatuses”:{},
-
“regions”:{
-
“values”:[
- null],
-
“mode”: “any”,
-
“except”:{
-
“values”:[],
-
“mode”: “any”}},
-
-
-
Here is what I have in Bubble
{
“criteria”: {
“name”: “< name >”,
“regions”: {
“values”: ["< regionId >", “< addressTypes >”],
“mode”: “any”
}
}
}
Just noticed this editors removes anything in <>. so i added spaces