Fulfil an order
Create a fulfilment for the order and attach tracking in one call. Omit items to fulfil every remaining unfulfilled item. Returns the updated order summary.
Create a fulfilment for the order and attach tracking in one call. Omit items to fulfil every remaining unfulfilled item. Returns the updated order summary.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
store_idstringRequiredExample:
The ID of the store that owns the order.
store_01J8Z5F8W9K8M4A7B3C2D1E0FGorder_idstringRequiredExample:
The ID of the order to fulfil.
order_01J8Z5F8W9K8M4A7B3C2D1E0FGBody
tracking_numberstring · max: 255OptionalExample:
Carrier tracking number for the shipment.
1Z999AA10123456784tracking_urlstring · max: 2048OptionalExample:
Public tracking URL for the shipment. Requires tracking_number.
https://track.example.com/1Z999AA10123456784notify_customerbooleanOptionalExample:
Whether to email the customer about the fulfilment. Defaults to true.
trueResponses
200
Success response
application/json
401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error response
application/json
post/api/ecommerce/v1/stores/{store_id}/orders/{order_id}/fulfill
POST /api/ecommerce/v1/stores/{store_id}/orders/{order_id}/fulfill HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 199
{
"items": [
{
"line_item_id": "item_01J8Z5F8W9K8M4A7B3C2D1E0FG",
"quantity": 2
}
],
"tracking_number": "1Z999AA10123456784",
"tracking_url": "https://track.example.com/1Z999AA10123456784",
"notify_customer": true
}{
"data": {
"id": "order_01J8Z5F8W9K8M4A7B3C2D1E0FG",
"display_id": 1042,
"status": "pending",
"payment_status": "captured",
"fulfillment_status": "not_fulfilled",
"total": 4999,
"currency_code": "usd",
"customer_email": "buyer@example.com",
"item_count": 3,
"created_at": "2026-01-21T07:35:04.000000Z"
}
}Last updated
Was this helpful?