Discussions

Ask a Question
Back to All

area1 and region not working

Hi,

I am using CURL on Opencart to communicate with the API and have an issue with the Suburb (area1) and State (region) not going through to the sandbox account for customer billing/shipment.

The data is being supplied as I have been able to verify that and I have also hard coded the API example below and it still emits that data. All other data is present and the transaction completes successfully.

https://developers.afterpay.com/afterpay-online/reference#order-details-object

"billing": {
"name": "Joe Consumer",
"line1": "Level 5",
"line2": "406 Collins Street",
"area1": "Melbourne",
"region": "VIC",
"postcode": "3000",
"countryCode": "AU",
"phoneNumber": "0400 000 000"
},
"shipping": {
"name": "Joe Consumer",
"line1": "Level 5",
"line2": "406 Collins Street",
"area1": "Melbourne",
"region": "VIC",
"postcode": "3000",
"countryCode": "AU",
"phoneNumber": "0400 000 000"
},

Just wondering if the sandbox ignores the area1 and region data or if I have another issue going on?