ActiveCampaign Forum

Abandoned cart not creating via api (version 3)


#1

I creating an abandoned cart by using api call.
My api request and response are as follows:

api url:
https://xlp.api-us1.com/api/3/ecomOrders

json data:
{“ecomOrder”:{“externalcheckoutid”:“2”,“source”:“1”,“email”:“xxxxx@gmail.com”,“orderUrl”:“http://localhost/default_wp/?page_id=511&wfab-restore-cart=yes&token=xxxxxxxxxx",“externalCreatedDate”:"2019-03-26 11:33:04”,“abandonedDate”:“2019-03-26 11:33:04”,“totalPrice”:“8700”,“currency”:“GBP”,“orderProducts”:[{“externalid”:120,“name”:“Beanie”,“price”:“20”,“quantity”:1},{“externalid”:121,“name”:“Belt”,“price”:“55”,“quantity”:1},{“externalid”:70,“name”:“Flying Ninja”,“price”:“12”,“quantity”:1}],“connectionid”:“2”,“customerid”:“23”}}

api response:
Array
(
[response] => 500
[body] =>
)

I am not able to see any abandoned cart activity in the contact screen (http://bakingcode.org/jaspinder/2019-13-52-34.png)

Please guide me and tell me if I am doing something wrong in api call.