Fulfillment updated
| Event Group | Event Identification |
|---|---|
| fulfillments | fulfillments/update |
Occurs whenever a fulfillment is updated.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - X-Shopline-Topic string requiredThe unique identifier for the event.Example:
orders/edited - X-Shopline-Hmac-Sha256 string requiredThe signature of the request. Upon receiving the request, you must verify the signature to confirm the authenticity and integrity of the data.Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string requiredThe store domain.Example:
example.myshopline.com - X-Shopline-Shop-Id string requiredThe store ID.Example:
1610418123456 - X-Shopline-Merchant-Id string requiredThe merchant ID.Example:
2000001234 - X-Shopline-API-Version string requiredThe API version.Example:
v20250601 - X-Shopline-Webhook-Id string requiredThe ID of this Webhook event.Example:
b54557e48a5fbf7d70bcd043
Request Body
- created_at stringThe date and time when the fulfillment was created. Format: ISO 8601.Example:
2024-08-31T02:20:26+08:00 - id stringFulfillment ID.
line_itemsobject[]
A list of line items for the fulfillment.fulfillable_quantity integerThe remaining quantity of the product that can be shipped.fulfillment_service stringLogistics company name.fulfillment_status stringThe fulfillment status. Valid values are:unshipped: not shippedpartial: partially shippedshipped: shipped
gift_card booleanWhether the product is a gift card.true: Gift card item.false: Not a gift card item.
grams doubleThe total weight of the product in grams (g).id stringThe ID of the product snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a product.name stringProduct title, same astitle.price stringProduct price.price_setobject
The product price, displayed in both the store currency and the buyer currency.presentment_moneyobject
The product price information presented to the buyer.amount stringThe product price. The value is rounded to two decimal places.shop_moneyobject
The product price information recorded by the merchant.amount stringThe product price. The value is rounded to two decimal places.product_id stringThe unique identifier for the product.quantity integerThe number of product variants.requires_shipping booleanIndicates whether this product needs to be physically shipped to the customer.true: The product requires shipping.false: The product does not require shipping.
sku stringThe product SKU.tax_linesobject[]
A list of tax information.price stringThe tax amount. The actual tax collected on the product is based on this field value.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax amount information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.Example:88.98rate doubleThe tax rate, for display only.title stringThe title for the tax description, for display only.taxable booleanIndicates whether the product is subject to tax.true:Tax is required.false:No tax is required.
title stringThe product title, used for display to the buyer.variant_id stringUnique variant identifier.variant_title stringProduct variant value. Multiple values are separated by/.vendor stringSupplier.- name stringFulfillment code.
- order_id stringOrder ID.
- shipment_status stringFulfillment shipping status. Valid values are:
label_printed: Shipping labels have been printed.label_purchased: Shipping labels have been purchased.attempted_delivery: Indicates that the courier attempted to deliver the package but was unsuccessful.ready_for_pickup: Waiting for the logistics company to pick up the package.picked_up: Logistics company has picked up the package.confirmed: The order has been confirmed by the logistics company.in_transit: Package is in transit.out_for_delivery: Package has arrived at the destination area and is being delivered.delivered: Package has been delivered.failure: For some reason, package delivery failed.
- status stringFulfillment status. Valid values are:
success: shipment successfulcancelled: shipment has been canceled
- tracking_company stringLogistics service provider.DEPRECATED: This parameter is deprecated from API version v20250601. Refer to
tracking_info_listfor related information. tracking_info_listobject[]
A list of fulfillment information.tracking_company stringLogistics service provider.tracking_number stringThe delivery tracking number provided by the logistics service provider.tracking_url stringThe domain name of the logistics company.- tracking_number stringThe delivery tracking number provided by the logistics service provider.DEPRECATED: This parameter is deprecated from API version v20250601. Refer to
tracking_info_listfor related information. - tracking_url stringThe domain name of the logistics company.DEPRECATED: This parameter is deprecated from API version v20250601. Refer to
tracking_info_listfor related information. - updated_at stringThe date and time when the fulfillment was updated. Format: ISO 8601.Example:
2024-08-31T02:20:26+08:00
Status Codes
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OKFor more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?