Hi, I need to retrieve a list of locations from one API call.
The problem is that Adalo’s custom action only seems to get 1 of the location…has anyone found a workaround this?
I attach below the response I get from the API
thank you
{
"locations": [
{
1️⃣ "id": "SOME_ID_HERE",
"name": "Location NAME",
"address": {
"address_line_1": "789 Street Name",
"address_line_2": "Unit A",
"locality": "Goleta",
"administrative_district_level_1": "CA",
"postal_code": "99110",
"country": "US"
},
"timezone": "America/Los_Angeles",
"capabilities": [
"CREDIT_CARD_PROCESSING",
"AUTOMATIC_TRANSFERS"
],
"status": "ACTIVE",
"created_at": "2022-08-01T16:49:17.556Z",
"merchant_id": "ML",
"country": "US",
"language_code": "en-US",
"currency": "USD",
"phone_number": "+1 90",
"business_name": "BIZ NAME",
"type": "PHYSICAL",
"business_email": "MAIL@GMAIL.COM",
"coordinates": {
"latitude": 84.451376,
"longitude": -129.719842
},
"mcc": "7122"
},
{
"id": "LV_SOME_IDB",
2️⃣ "name": "SECOND LOCATION",
"address": {
"address_line_1": "STREET TWO",
"locality": "Santa Barbara",
"administrative_district_level_1": "CA",
"postal_code": "93110",
"country": "US"
},
"timezone": "America/Los_Angeles",
"capabilities": [
"CREDIT_CARD_PROCESSING",
"AUTOMATIC_TRANSFERS"
],
"status": "INACTIVE",
"created_at": "2022-08-01T16:47:37.578Z",
"merchant_id": "M",
"country": "US",
"language_code": "en-US",
"currency": "USD",
"business_name": "Biz Inc",
"type": "MOBILE",
},
{
"id": "L",
3️⃣ "name": "BIZ NAME",
"address": {
"address_line_1": "1234 e Street",
"locality": "",
"administrative_district_level_1": "CA",
"postal_code": "90010",
"country": "US"
},
"timezone": "America/Los_Angeles",
"capabilities": [
"CREDIT_CARD_PROCESSING",
"AUTOMATIC_TRANSFERS"
],
"status": "ACTIVE",
"created_at": "2022-07-29T19:16:45.263Z",
"merchant_id": "ML7D",
"country": "US",
"language_code": "en-US",
"currency": "USD",
"phone_number": "+1 0",
"business_name": "BIZ NAME",
"type": "PHYSICAL",
}