{
  "opencollection": "1.0.0",
  "info": {
    "name": "Attentive Access Token eCommerce API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "eCommerce",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Product view",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.attentivemobile.com/v1/events/ecommerce/product-view",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}",
              "accessTokenUrl": "https://api.attentivemobile.com/v1/authorization-codes/tokens",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Make a call to this endpoint when a user views a product."
        },
        {
          "info": {
            "name": "Add to cart",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.attentivemobile.com/v1/events/ecommerce/add-to-cart",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}",
              "accessTokenUrl": "https://api.attentivemobile.com/v1/authorization-codes/tokens",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Make a call to this endpoint when a user adds a product to their shopping cart."
        },
        {
          "info": {
            "name": "Purchase",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.attentivemobile.com/v1/events/ecommerce/purchase",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}",
              "accessTokenUrl": "https://api.attentivemobile.com/v1/authorization-codes/tokens",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Make a call to this endpoint when a user generates an order or purchase."
        }
      ]
    }
  ],
  "bundled": true
}