Sitoo Events SPI
Add Events
post /eventsEndpoint for receiving events from Sitoo Platform
Array of Event objects
[ { "event_id": "5e9fd002119a4c5fb4de5ccb9d0b90ea", "event_type": "order", "event_date": 1611138542, "account_id": 1500, "data": { "eshop_id": 1, "order_id": 12345, "order_event_type": "update", "order_state_changed": "closed" } }]
HTTP Status Code Summary | |
---|---|
200 | Successful. Returns empty body |
400 | Invalid request. Data sent from client is invalid. This response code will discard the events and they will not be sent again |
401 | Missing or bad authentication. This response code will discard the events and they will not be sent again |
500 | Internal Server Error |
Objects
Eventobject
UUID for the event
Type of event, the data
attribute will hold a corresponding object. Note that the booking
type is using the OrderData
object and shipment-v3
is using the ShipmentV3Data
object
VALUES |
---|
order |
order-delivery |
booking |
shipment |
shipment-v3 |
warehouse-transaction |
z-report |
store-z-report |
Unix timestamp for when the event was created
ID for the Sitoo account
The instance data for the event, corresponding to the event_type
OrderDataobject
The Sitoo ID of the eshop (site)
The Sitoo ID of the order
The Sitoo ID of the warehouse
The type of order event
VALUES |
---|
add |
update |
ready-for-pickup |
pickup-rejected |
email-receipt |
If the event caused the order state to change, this property will hold the new value
VALUES |
---|
open |
closed |
cancelled |
OrderDeliveryDataobject
The Sitoo ID of the eshop (site)
The Sitoo ID of the order
The Sitoo ID of the order delivery
The Sitoo ID of the warehouse for the order delivery. Note that this can differ from the warehouse_id
of the order
If the event caused the order delivery state to change, this property will hold the new value
VALUES |
---|
new |
ready-to-ship |
in-transit |
arrived |
ready-for-pickup |
delivered |
cancelled |
The type of order delivery event
VALUES |
---|
add |
update |
cancel |
ShipmentDataobject
The Sitoo ID of the shipment
The type of shipment event
VALUES |
---|
add |
update |
If the event caused the shipment state to change, this property will hold the new value
VALUES |
---|
new |
in-transit |
received |
cancelled |
ShipmentV3Dataobject
Object sent for events from Shipments v3, all properties will hold the values after the event has occurred.
Unique ID of the shipment in Sitoo
Version of the shipment
The type of shipment event
VALUES |
---|
create |
set-state |
set-info |
add-package |
update-package |
delete-package |
add-arrived-packages |
add-received-items |
add-received-items-undeclared |
remove-stock |
The state of the shipment
VALUES |
---|
new |
packed |
transport-ordered |
ready-for-pickup |
in-transit |
arrived |
received |
closed |
closed-incomplete |
cancelled |
All packages have arrived
All items have been received
The total number of received items not declared for the shipment
StoreZReportDataobject
UUID for the Store Z-report
Store ID (external ID of the Store in Sitoo)
WarehouseTransactionDataobject
The ID of the warehouse transaction in Sitoo
The ID of the warehouse for the transaction in Sitoo
The External ID of the warehouse for the transaction
The type of warehouse transaction
VALUES |
---|
manual-in |
manual-out |
sales |
refund |
stock-taking |
ZReportDataobject
The Sitoo ID of the eshop (site)
Store ID (external ID of the Store in Sitoo)
The Sitoo ID of the register that created the Z-report
The Sitoo ID of the Z-report