SPI RFID
Create Sell Transaction
post /transactions/sellUpdate state to sold for items specified by the provided identifiers.
REQUEST BODY
object
posthttps://rfid.example.com/transactions/sell
{ "store_id": "STR-001", "identifiers": [ "011234567890123421123", "011234567890123421124" ], "timestamp": "2025-03-14T16:54:46.000Z"}
HTTP Status Code Summary | |
---|---|
204 | Transactions has been added |
400 | Bad request |
404 | Not found |
429 | Too many requests |
500 | Internal server error |
Create Return Transaction
post /transactions/returnUpdate state to returned for items specified by the provided identifiers.
REQUEST BODY
object
posthttps://rfid.example.com/transactions/return
{ "store_id": "STR-001", "identifiers": [ "011234567890123421123", "011234567890123421124" ], "timestamp": "2025-03-14T16:54:46.000Z"}
HTTP Status Code Summary | |
---|---|
204 | Transactions has been added |
400 | Bad request |
404 | Not found |
429 | Too many requests |
500 | Internal server error |
Objects
Errorobject
PROPERTIES
error_code
string
REQUIRED
error_data
REQUIRED
message
string
REQUIRED
request_id
string
REQUIRED
Example: {
"error_code": "field-missing",
"error_data": {
"message": "Field missing"
},
"request_id": "123e4567-e89b-12d3-a456-426614174123"
}
Identifierstring
An electronic product code (EPC) formatted as GS1 element string.
Example: "011234567890123421123"
TransactionSellobject
PROPERTIES
store_id
string
REQUIRED
The external ID of the store that the transaction is made for.
Example: ""STR-001""
Min Length: 1
List of identifiers formatted as GS1 element strings.
Example: "[
"011234567890123421123",
"011234567890123421124"
]"
timestamp
string
REQUIRED
ISO8601 representation of the date/time for the transaction.
Example: ""2025-03-14T16:54:46.000Z""
TransactionReturnobject
PROPERTIES
store_id
string
REQUIRED
The external ID of the store that the transaction is made for.
Example: ""STR-001""
Min Length: 1
List of identifiers formatted as GS1 element strings.
Example: "[
"011234567890123421123",
"011234567890123421124"
]"
timestamp
string
REQUIRED
ISO8601 representation of the date/time for the transaction.
Example: ""2025-03-14T16:54:46.000Z""