Admin api stores

Create an event for a third party device

POST
/api/admin/v2/stores/{storeId}/thirdPartyDevices/{thirdPartyDeviceId}/events

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

storeId*integer

Id of a physical store. The id is required when retailer want to make a call to specified store.

thirdPartyDeviceId*string

Id of the third party device

Request Body

application/json

uuid*string
Formatuuid
timestamp*integer

unix timestamp (in seconds) when this event occured

products*array<>
metadata?

Response Body

application/json

application/json

curl -X POST "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/stores/0/thirdPartyDevices/string/events" \  -H "Content-Type: application/json" \  -d '{    "uuid": "04178fa1-0b07-4e3f-b3ca-6c60d528cf82",    "timestamp": 1611928852,    "products": [      {        "productReference": "1234567890128",        "quantity": 1      }    ]  }'
{
  "uuid": "04178fa1-0b07-4e3f-b3ca-6c60d528cf82",
  "sourceId": "string"
}
Empty
Empty
{
  "message": "Invalid request body",
  "type": "E_INVALID_BODY",
  "errors": [
    {
      "error": "\"email\" is required",
      "rule": "any.required",
      "field": "\"email\""
    }
  ]
}

How is this guide?

AiFI AI Chat

Beta

Powered by AiFi

Ask docs or API questions to get grounded answers.