eCommerce
Add to cart
Make a call to this endpoint when a user adds a product to their shopping cart.
post/events/ecommerce/add-to-cart
Request
- Base URLhttps://api.attentivemobile.com/v1
- AuthOAuth 2Authorization code: https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}Token URL: https://api.attentivemobile.com/v1/authorization-codes/tokens scopes: ecommerce:write
Request body
Example request
{
"items": [
{
"productId": "AB12345",
"productVariantId": "CD12345",
"productImage": "http://my.cdn.com/products/new-product.png",
"productUrl": "http://my-store.com/products/shirts/my-shirt",
"name": "T-Shirt",
"price": [
{
"value": 19.99,
"currency": "USD"
}
],
"quantity": 1
}
],
"occurredAt": "2021-03-30T14:38:29+0000",
"user": {
"phone": "+13115552368",
"email": "test@gmail.com"
}
}Response
Ok
Changes
No recorded changes to this operation across all 9 revisions of this API.