Admin api stores
Upsert tags
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.
Header Parameters
x-batch-strategy*string
all-or-nothing
The endpoint rejects the whole batch when a batch contains invalid epc(s):
- Invalid epc format
- The corresponding product doesn't exist
ignore-errors
The endpoint ignores invalid epc(s) and persist all valid epc(s) to the system.Value in
"all-or-nothing" | "ignore-errors"Request Body
application/json
tags*array<>
Multi RFID epc tags
Response Body
application/json
application/json
curl -X PUT "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/stores/0/tags" \ -H "x-batch-strategy: all-or-nothing" \ -H "Content-Type: application/json" \ -d '{ "tags": [ { "epc": { "id": "30340bf8dc40882d3e83b804" } } ] }'{
"success": [
{
"epc": {
"id": "30340bf8dc40882d3e83b804"
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"errors": {
"invalidTags": [
"string"
],
"tagsMissingProduct": [
"string"
]
}
}Empty
{
"message": "Invalid request body",
"type": "E_INVALID_BODY",
"errors": [
{
"error": "\"email\" is required",
"rule": "any.required",
"field": "\"email\""
}
]
}How is this guide?