Skip to main content
POST
Create/Update Abandoned Cart
Use this endpoint to create or update an abandoned cart in your Reportana store. The reference_id attribute is required and must correspond to the id or the unique identifier of the abandoned cart in your system, ensuring proper synchronization between your system’s data and our platform.

Headers

string
required
Basic base64(client_id + ’:’ + client_secret)
string
required
Content-Type:application/json

Body

string
required
Enter the reference ID.Example: “123456789”.
string
required
Enter the reason for the abandoned cart.Example: nullAvailable options: DECLINED_CREDIT_CARD, null.
string
required
Enter the abandoned cart number.Example: “1234”.
string
Enter the admin panel URL for accessing the abandoned cart.Example: “https://example.com/admin/carts/123456789”.
string
required
Enter the customer’s name.Example: “John Doe”.
string
required
Enter the customer’s email.Example: “johndoe@gmail.com”.
string
required
Enter the customer’s phone number.Example: “+5511911111111”.

Billing Adress

object
Enter the billing address information.
string
Enter the customer’s name.Example: “John Doe”.
string
Enter the customer’s first name.Example: “John”.
string
Enter the customer’s last name.Example: “Doe”.
string
Enter the company name.Example: “John Doe Ltda”.
string
Enter the customer’s phone number.Example: “+5511911111111”.
string
Enter the customer’s address.Example: “6925 Hollywood Blvd”.
string
Enter the customer’s neighborhood.Example: “Times Square”.
string
Enter the customer’s city.Example: “New York”.
string
Enter the customer’s state.Example: “North Carolina”.
string
Enter the customer’s state code.Example: “NC”.
string
Enter the customer’s country.Example: “United States of America”.
string
Enter the customer’s country code.Example: “USA”.
string
Enter the customer’s ZIP code.Example: “88508100”.
string
Enter the customer’s latitude.Example: -50.3183162423294
string
Enter the customer’s longitude.Example: -27.807915923881836

Shipping Adress

object
Enter the shipping address information.
string
Enter the customer’s name.Example: “John Doe”.
string
Enter the customer’s first name.Example: “John”.
string
Enter the customer’s last name.Example: “Doe”.
string
Enter the company name.Example: “John Doe Ltda”.
string
Enter the customer’s phone number.Example: “+5511911111111”.
string
Enter the customer’s address.Example: “6925 Hollywood Blvd”.
string
Enter the customer’s neighborhood.Example: “Times Square”.
string
Enter the customer’s city.Example: “New York”.
string
Enter the customer’s state.Example: “North Carolina”.
string
Enter the customer’s state code.Example: “NC”.
string
Enter the customer’s country.Example: “United States of America”.
string
Enter the customer’s country code.Example: “USA”.
string
Enter the customer’s ZIP code.Example: “88508100”.
string
Enter the customer’s latitude.Example: -27.807915923881836
string
Enter the customer’s longitude.Example: -50.3183162423294

Line Items

object[]
Click “Add an item” to add a product.
string
Enter the product title.Example: “Sunglasses”.
string
Enter the product variant title.Example: “Black”.
number
Enter the quantity of products in the abandoned cart.Example: 1
number
Enter the product price.Example: 49.9
string
Enter the public URL of the product.Example: “https://example.com/products/1234”.
string
Enter the image URL of the product.Example: “https://example.com/products/1234/image.jpg”.

Checkout & More Info

string
required
Enter the currency of the abandoned cart.Example: “USD”.
number
required
Enter the total value of the abandoned cart.Example: 124.8
number
required
Enter the subtotal value of the abandoned cart.Example: 109.8
string
Enter the URL of your website.Example: “https://www.facebook.com/”.
string
Enter the URL for the checkout link.Example: “https://example.com/carts/123456789”.
string
Enter the date when the cart was completed.Example: “2022-05-31 23:59”.
string
required
Enter the creation date of the abandoned cart.Example: “2022-05-27 12:00”.