What are subscriptions?
Subscriptions are webhook configurations that notify your server when specific events happen in the Quivo system. When you create a subscription, you specify:- Entity type: The type of resource you want to monitor (for example, orders or shipments)
- Endpoint URL: The HTTPS endpoint on your server that receives the notification data
200 OK response to confirm receipt of the notification.
Prerequisites
Before you start, make sure you have:- Session token: A valid session token. See the Authentication guide to learn how to obtain one.
- API key: Your static API key provided by Quivo.
- Seller ID: Use the
GET /sellers endpointto find it. - Public URL: A secure HTTPS endpoint on your server capable of receiving JSON POST requests.
All API examples in this guide use
${BASE_URL} as a placeholder. Replace it with the correct base URL configured for the correct environment. For more information see Environments page.Supported Entity Types
The following table lists the supported entity types and the events that trigger notifications:| Entity | Triggers On |
|---|---|
ORDERS | Order creation, status changes (for example, to PROCESSING). |
SHIPMENTS | Shipment creation, tracking updates (for example, IN_TRANSIT, DELIVERED). |
INBOUNDS | Inbound shipment status changes. |
RETURNS | When a return is created or received at the warehouse. |
INVOICES | Invoice creation and updates. |
Create a subscription
Create a subscription when you want to start receiving real-time notifications about specific events. Use thePOST /subscriptions endpoint to create a new subscription.
You need to construct a JSON payload containing your sellerId, the entity type, and the endpoint configuration.
The following example shows how to subscribe to SHIPMENTS updates:
- Request
- Response
Use this request to create a webhook subscription for a specific entity.
Request body fields
The request body must include the following fields:sellerId(required): The unique integer ID for your merchant account.entity(required): The entity type you want to subscribe to. Must be one of:ORDERS,SHIPMENTS,INBOUNDS,RETURNS, orINVOICES.endpoint(required): An object containing:type: Must be"WEBHOOK".url: The HTTPS URL of your webhook endpoint that receives notifications.
Where to go next
Now that you can create subscriptions, continue with these guides:Manage Subscriptions
Learn how to list and delete your existing subscriptions.
Webhook Responses
Configure and manage event subscriptions via the API.