Update one fulfillment of an order
Changes the status, courier, tracking code or comment of one fulfillment. The order’s
fulfillment_status is recomputed from all its fulfillments and customer status emails follow that
roll-up (one per order status change). Updating the primary fulfillment’s courier or tracking also
updates the order’s courier_name / tracking_code. Needs the full orders.write scope.
PATCH behaves the same. Answers the whole order.
/orders/{order_id}/fulfillments/{id}AuthorizationBearer token (JWT) · headerrequiredorder_idstringrequiredidintegerrequiredFulfillment id, from fulfillments[].id of the order.
application/jsonstatusstringqueuedpreparingreadyshippeddeliveredreturnedcourier_namestringtracking_codestringcommentstringThe updated order
_linksHalLinksidintegershop_idintegercodestringOrder code, used as the path identifier (e.g. /v2/orders/{code}). Generated as the first letter of the shop's subdomain plus 6 hex characters, uppercased (A3F09B1), unless a custom id was sent on create.
external_idstring | nullOptional client-supplied reference, unique per seller. Set it at
create time (or via update) to look the order back up later with
GET /v2/orders?external_id={value} — unlike id/code, a
colliding external_id is rejected with a 422 instead of being
silently reassigned, so it's safe to use for dedup checks before
retrying a create.
tracking_tokenstringSigned token of the order (<code>.<signature>) to build an unguessable customer tracking link (GET /track/status.json?ref=<tracking_token> on the shop). Present on a single order (not in lists).
purchase_order_numberstring | nullThe buyer's purchase order (PO) number. Writable on any order, including pending ones; searchable with q and filterable with GET /v2/orders?purchase_order_number=. Existing orders must be reindexed to appear in list filters.
statusstringdraftcheckoutin_reviewpendingcancelledclosedcompletedfulfillment_statusstringnonequeuedpreparingreadyshippeddeliveredreturnedfulfillmentsOrderFulfillment[]Single order only (not in lists). One entry per delivery of the order, primary first; fulfillment, courier_name, tracking_code and the flat address fields are the primary's view. fulfillment_status is the least advanced fulfillment that has items (returned ignored unless all are). Orders without stored fulfillments return one entry with id and item_ids null.
Show propertiesHide properties
OrderFulfillmentidinteger | nullkindstringshippinglocal_pickupmailbox_pickupnon_deliverableprimarybooleanstatusstringqueuedpreparingreadyshippeddeliveredreturneditem_idsinteger[] | nullOrder items in this fulfillment; null means all of them.
branch_idinteger | nullbranch_namestring | nullshipping_option_idinteger | nullshipping_option_namestring | nulldelivery_window_idinteger | nullcourier_namestring | nullcourier_branch_namestring | nullCourier branch of a mailbox pickup.
tracking_codestring | nullcharged_on_deliverybooleanShipping is paid on delivery ("por pagar").
charged_on_delivery_notestring | nullrecipient_namestring | nullPickup person of a local pickup.
recipient_id_numberstring | nullis_a_giftbooleangift_messagestring | nullcommentstring | nulladdressobject | nullDelivery address of this fulfillment (shipping and mailbox pickup).
checkout_urlstringPresent only when the order is in checkout or pending status
archivedbooleancurrency_codestringprices_include_taxbooleanitems_net_totalintegerLine items subtotal in cents, before discounts
items_discount_totalintegeritems_totalintegerLine items subtotal in cents, after discounts
net_totalintegerOrder total in cents before tax
discount_totalintegercart_totalintegersurcharge_totalintegershipping_totalintegershipping_discountintegershipping_minus_discountintegertax_ratenumberPresent only when prices_include_tax is false
tax_totalintegerPresent only when prices_include_tax is false
totalintegerGrand total in cents, including shipping, discounts and tax
total_paidintegertotal_refundedintegermax_refundable_amountintegerpartial_payment_offeredbooleanWhether this order is eligible for buyer-chosen partial payment: either the shop has it enabled for everyone, or this specific order was offered it via the API (partial_payment_offered: true on create/update). Either way, the order must not require review and any configured cart requirements must be met. Normally also requires a token-based payment method to exist, so the balance can be auto-charged later - unless the shop allows manual (non-token) payment methods for this, in which case the balance is instead collected via a reminder email. Only present when fetching a single order, not in list results.
paying_partiallybooleanWhether the buyer opted into a partial payment for this order.
partial_payment_percentageintegerPercentage of the total charged upfront. Only present when paying_partially is true.
partial_payment_amountnumberAmount charged upfront, in cents. Only present when fetching a single order, and only when partial payment is offered or active.
partial_payment_due_onstring<date>Date the remaining balance is due. Only present when paying_partially is true.
shipping_descriptionstringtracking_codestringcourier_namestringpayment_infoobjectPresent only when the order has an associated payment method.
Show propertiesHide properties
idintegernamestringtypestringPayment method type/gateway identifier (e.g. webpay_rest, mercado_pago).
dataobjectGateway-specific transaction data, shape varies by type.
requested_document_typestringTax document type requested by the buyer at checkout (e.g. invoice, receipt), if any. Derived from custom order data, not a plain column.
tagsstring[]tag_idsinteger[]allowed_statusesstring[]allowed_fulfillment_statusesstring[]created_onstring<date-time>updated_onstring<date-time>checkout_onstring<date-time> | nullpending_onstring<date-time> | nullclosed_onstring<date-time> | nullshipped_onstring<date-time> | null_embeddedobjectcontact is present when the order has a customer attached. company is present when a company/tax entity is attached (e.g. via company_name on create/update). address/billing_address are present when set. line_items is always present. payments/refunds/documents are present only when non-empty. On GET /v2/orders/{id} only (never in lists), the account terms of the customer are embedded when they exist: credit, contact_group, price_list and cart_requirements.
Show propertiesHide properties
creditobjectThe customer's credit line (first credit wallet).
Show propertiesHide properties
limit_amountintegerbalanceintegerCredit still available (limit plus signed transfers).
loan_termstring | nulle.g. "30.days"
overdue_limit_amountinteger | nullPercentage of limit_amount allowed as overdue.
statestringcontact_groupobjectShow propertiesHide properties
idintegernamestringprice_listobjectShow propertiesHide properties
idintegernamestringtax_namestring | nulltax_ratenumberprices_include_taxbooleancart_requirementsobjectThe cart requirements list that applies to the order's contact group (the shop default when the group has none; absent when the group opted out).
Show propertiesHide properties
idintegernamestringentriesobject[]Show propertiesHide properties
objectkeystringvalueintegeroptional_idintegerapplies_toobjectNames of what the list's active policies are linked to.
Show propertiesHide properties
shipping_optionsstring[]branchesstring[]payment_methodsstring[]contactobjectShow propertiesHide properties
idintegernamestringemailstringphone_numberstringtax_idstringNormalized tax id of the customer. In list results once the order is reindexed.
tax_id_countrystringcompanyobjectShow propertiesHide properties
idintegernamestringid_numberstringFormatted tax/ID number (RUT, DNI, etc.)
activity_codestringaddressAddressShow propertiesHide properties
streetstringstreet_2stringlocality_namestringregion_namestringRequired when an order is created with an address (422 on address.region_name if blank).
country_namestringpostal_codestringaddressAddressShow propertiesHide properties
streetstringstreet_2stringlocality_namestringregion_namestringRequired when an order is created with an address (422 on address.region_name if blank).
country_namestringpostal_codestringbilling_addressAddressShow propertiesHide properties
streetstringstreet_2stringlocality_namestringregion_namestringRequired when an order is created with an address (422 on address.region_name if blank).
country_namestringpostal_codestringline_itemsobject[]Show propertiesHide properties
objectidintegerproduct_idintegerproduct_namestringvariant_idintegervariant_namestringvariant_skustringunitsintegerunit_priceintegerUnit price in cents
net_totalintegerLine total in cents before discounts
totalintegerLine total in cents after discounts/surcharges
paymentsOrderTransaction[]Show propertiesHide properties
OrderTransactionidintegerorder_idintegeramountintegerAmount in cents (negative for refunds)
absolute_amountintegerAbsolute value of amount in cents
successfulbooleancard_token_idintegerpayment_method_typestringtransaction_idstringGateway transaction ID
authorization_codestringdescriptionstringcreated_atstring<date-time>refundsOrderTransaction[]Show propertiesHide properties
OrderTransactionidintegerorder_idintegeramountintegerAmount in cents (negative for refunds)
absolute_amountintegerAbsolute value of amount in cents
successfulbooleancard_token_idintegerpayment_method_typestringtransaction_idstringGateway transaction ID
authorization_codestringdescriptionstringcreated_atstring<date-time>documentsOrderDocument[]Show propertiesHide properties
OrderDocumentidinteger | nullnull for legacy documents stored in the order's contact_data (_document_pdf_url/_document_type/_document_number) instead of as a real document record. These have no self/delete links and can't be fetched or deleted via /orders/{order_id}/documents/{id}.
document_typestringreceiptinvoicepurchase_ordercredit_noteotherdocument_numberstringRequired. Unique per order and document_type.
file_urlstringOnly on legacy documents (see id), which carry their stored URL. Documents with an uploaded file expose the orders:download_document link instead (GET /orders/{order_id}/documents/{id}/file).
_linksobjectself, orders:remove_document and, when a file was uploaded, orders:download_document.
Order or fulfillment not found.
Unknown field or invalid status (error at $.status).