Overview
When you subscribe to entity events using the Create Subscriptions guide, Quivo sends webhook notifications to your endpoint when specific events occur. Your endpoint receives these notifications as HTTP POST requests with JSON payloads containing event data.Supported Entity Types
You can subscribe to webhook notifications for the following entity types:| Entity Type | Description | Events Triggered |
|---|---|---|
ORDERS | Order events | Order creation, status changes (for example, to PROCESSING) |
SHIPMENTS | Shipment events | Shipment creation, tracking updates (for example, IN_TRANSIT, DELIVERED) |
INBOUNDS | Inbound shipment events | Inbound shipment status changes |
RETURNS | Return events | When a return is created or received at the warehouse |
INVOICES | Invoice events | Invoice creation and updates |
Webhook Request Format
When an event occurs for a subscribed entity type, Quivo sends an HTTP POST request to your configured endpoint:- Method:
POST - Content-Type:
application/json - Body: JSON payload containing event data
200 OK HTTP status code to confirm receipt of the notification.
Webhook Payload Structure
Webhook payloads follow a consistent structure across all entity types. The payload contains anevents array with a single event object. Each event includes metadata about the entity that changed, but does not include the complete entity object.
Payload Format
id(integer): The ID of the entity that changedentity(string): The entity type (for example,ORDERS,SHIPMENTS,INBOUNDS,RETURNS,INVOICES)lastModified(string): ISO 8601 timestamp of when the entity was last modifiedversion(integer): The version number of the entity
The webhook payload contains only the entity ID and metadata, not the complete entity object. To retrieve the full entity data, make a GET request to the appropriate endpoint using the
id from the webhook payload.Payload Examples by Entity Type
SHIPMENTS
ORDERS
INBOUNDS
RETURNS
INVOICES
The payload structure forINVOICES follows the same format as other entity types.
Webhook Headers
ForEndpointWebhook type subscriptions:
- Content-Type:
application/json - No signature or signing: EndpointWebhook requests are unauthorized API POST requests (no authentication headers or signatures are included)
The Quivo API also supports AWS SNS/SQS events. For SNS events, the payload includes a
subject field (for example, “UPDATE - ORDERS #9461772”). SQS events do not include a subject field.Retrieving Full Entity Data
Since webhook payloads contain only the entity ID and metadata, you will need to retrieve the full entity data using the API:- Extract the
idandentityfrom the webhook payload - Make a GET request to the appropriate endpoint:
- For
ORDERS:GET /orders/{id} - For
SHIPMENTS:GET /shipments/{id} - For
INBOUNDS:GET /inbounds/{id} - For
RETURNS:GET /returns/{id} - For
INVOICES:GET /invoices/{id}
- For
Where to go next
Now that you understand webhook notifications, continue with these guides:Create Subscriptions
Learn how to create webhook subscriptions to receive event notifications.
Manage Subscriptions
Learn how to list and delete your webhook subscriptions.