eCommerce

Product view

Make a call to this endpoint when a user views a product.

post/events/ecommerce/product-view

Request

  • Base URL
    https://api.attentivemobile.com/v1
  • Auth
    OAuth 2
    Authorization 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

occurredAtstring date-time

Timestamp of when the action occurred in ISO 8601 format. If the timestamp is older than 12 hours, it will not trigger any relevant journeys. If no timestamp is provided, it is assumed the event occurred when the endpoint is called.

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.