For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Fulfil an order

post

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_idstringRequired

The ID of the store that owns the order.

Example: store_01J8Z5F8W9K8M4A7B3C2D1E0FG
order_idstringRequired

The ID of the order to fulfil.

Example: order_01J8Z5F8W9K8M4A7B3C2D1E0FG
Body
tracking_numberstring · max: 255Optional

Carrier tracking number for the shipment.

Example: 1Z999AA10123456784
tracking_urlstring · max: 2048Optional

Public tracking URL for the shipment. Requires tracking_number.

Example: https://track.example.com/1Z999AA10123456784
notify_customerbooleanOptional

Whether to email the customer about the fulfilment. Defaults to true.

Example: true
Responses
200

Success 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?