POST
/
2022-05
/
abandoned-checkouts
curl --request POST \
  --url https://api.reportana.com/2022-05/abandoned-checkouts \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "reference_id": "<string>",
  "reason_type": "<string>",
  "number": "<string>",
  "admin_url": "<string>",
  "customer_name": "<string>",
  "customer_email": "<string>",
  "customer_phone": "<string>",
  "billing_address": {
    "name": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "company": "<string>",
    "phone": "<string>",
    "address1": "<string>",
    "address2": "<string>",
    "city": "<string>",
    "province": "<string>",
    "province_code": "<string>",
    "country": "<string>",
    "country_code": "<string>",
    "zip": "<string>",
    "latitude": "<string>",
    "longitude": "<string>"
  },
  "shipping_address": {
    "name": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "company": "<string>",
    "phone": "<string>",
    "address1": "<string>",
    "address2": "<string>",
    "city": "<string>",
    "province": "<string>",
    "province_code": "<string>",
    "country": "<string>",
    "country_code": "<string>",
    "zip": "<string>",
    "latitude": "<string>",
    "longitude": "<string>"
  },
  "line_items": [
    {
      "title": "<string>",
      "variant_title": "<string>",
      "quantity": 123,
      "price": 123,
      "path": "<string>",
      "image_url": "<string>"
    }
  ],
  "currency": "<string>",
  "total_price": 123,
  "subtotal_price": 123,
  "referring_site": "<string>",
  "checkout_url": "<string>",
  "completed_at": "<string>",
  "original_created_at": "<string>"
}'
{
  "success": true,
  "data": null
}

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

Authorization
string
required

Basic base64(client_id + ’:’ + client_secret)

Content-Type
string
required

Content-Type:application/json

Body

reference_id
string
required

Enter the reference ID.

Example: “123456789”.

reason_type
string
required

Enter the reason for the abandoned cart.

Example: null

Available options: DECLINED_CREDIT_CARD, null.

number
string
required

Enter the abandoned cart number.

Example: “1234”.

admin_url
string

Enter the admin panel URL for accessing the abandoned cart.

Example: “https://example.com/admin/carts/123456789”.

customer_name
string
required

Enter the customer’s name.

Example: “John Doe”.

customer_email
string
required

Enter the customer’s email.

Example: “johndoe@gmail.com”.

customer_phone
string
required

Enter the customer’s phone number.

Example: “+5511911111111”.

Billing Adress

billing_address
object

Enter the billing address information.

name
string

Enter the customer’s name.

Example: “John Doe”.

first_name
string

Enter the customer’s first name.

Example: “John”.

last_name
string

Enter the customer’s last name.

Example: “Doe”.

company
string

Enter the company name.

Example: “John Doe Ltda”.

phone
string

Enter the customer’s phone number.

Example: “+5511911111111”.

address1
string

Enter the customer’s address.

Example: “6925 Hollywood Blvd”.

address2
string

Enter the customer’s neighborhood.

Example: “Times Square”.

city
string

Enter the customer’s city.

Example: “New York”.

province
string

Enter the customer’s state.

Example: “North Carolina”.

province_code
string

Enter the customer’s state code.

Example: “NC”.

country
string

Enter the customer’s country.

Example: “United States of America”.

country_code
string

Enter the customer’s country code.

Example: “USA”.

zip
string

Enter the customer’s ZIP code.

Example: “88508100”.

latitude
string

Enter the customer’s latitude.

Example: -50.3183162423294

longitude
string

Enter the customer’s longitude.

Example: -27.807915923881836

Shipping Adress

shipping_address
object

Enter the shipping address information.

name
string

Enter the customer’s name.

Example: “John Doe”.

first_name
string

Enter the customer’s first name.

Example: “John”.

last_name
string

Enter the customer’s last name.

Example: “Doe”.

company
string

Enter the company name.

Example: “John Doe Ltda”.

phone
string

Enter the customer’s phone number.

Example: “+5511911111111”.

address1
string

Enter the customer’s address.

Example: “6925 Hollywood Blvd”.

address2
string

Enter the customer’s neighborhood.

Example: “Times Square”.

city
string

Enter the customer’s city.

Example: “New York”.

province
string

Enter the customer’s state.

Example: “North Carolina”.

province_code
string

Enter the customer’s state code.

Example: “NC”.

country
string

Enter the customer’s country.

Example: “United States of America”.

country_code
string

Enter the customer’s country code.

Example: “USA”.

zip
string

Enter the customer’s ZIP code.

Example: “88508100”.

latitude
string

Enter the customer’s latitude.

Example: -27.807915923881836

longitude
string

Enter the customer’s longitude.

Example: -50.3183162423294

Line Items

line_items
object[]

Click “Add an item” to add a product.

title
string

Enter the product title.

Example: “Sunglasses”.

variant_title
string

Enter the product variant title.

Example: “Black”.

quantity
number

Enter the quantity of products in the abandoned cart.

Example: 1

price
number

Enter the product price.

Example: 49.9

path
string

Enter the public URL of the product.

Example: “https://example.com/products/1234”.

image_url
string

Enter the image URL of the product.

Example: “https://example.com/products/1234/image.jpg”.

Checkout & More Info

currency
string
required

Enter the currency of the abandoned cart.

Example: “USD”.

total_price
number
required

Enter the total value of the abandoned cart.

Example: 124.8

subtotal_price
number
required

Enter the subtotal value of the abandoned cart.

Example: 109.8

referring_site
string

Enter the URL of your website.

Example: “https://www.facebook.com/”.

checkout_url
string

Enter the URL for the checkout link.

Example: “https://example.com/carts/123456789”.

completed_at
string

Enter the date when the cart was completed.

Example: “2022-05-31 23:59”.

original_created_at
string
required

Enter the creation date of the abandoned cart.

Exemplo: “2022-05-27 12:00”.

{
  "success": true,
  "data": null
}