Skip to content
BolderBolder Developers
Esc
↑↓navigate↵open⌘Jpreview

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.

PUT/orders/{order_id}/fulfillments/{id}
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
order_idstringrequired
idintegerrequired

Fulfillment id, from fulfillments[].id of the order.

Request body
requiredapplication/json
statusstring
Allowed:queuedpreparingreadyshippeddeliveredreturned
courier_namestring
tracking_codestring
commentstring
Responses
200

The updated order

_linksHalLinks
idinteger
shop_idinteger
codestring

Order 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 | null

Optional 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_tokenstring

Signed 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 | null

The 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.

max length 64
statusstring
Allowed:draftcheckoutin_reviewpendingcancelledclosedcompleted
fulfillment_statusstring
Allowed:nonequeuedpreparingreadyshippeddeliveredreturned
fulfillmentsOrderFulfillment[]

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 properties
Array of OrderFulfillment
idinteger | null
kindstring
Allowed:shippinglocal_pickupmailbox_pickupnon_deliverable
primaryboolean
statusstring
Allowed:queuedpreparingreadyshippeddeliveredreturned
item_idsinteger[] | null

Order items in this fulfillment; null means all of them.

branch_idinteger | null
branch_namestring | null
shipping_option_idinteger | null
shipping_option_namestring | null
delivery_window_idinteger | null
courier_namestring | null
courier_branch_namestring | null

Courier branch of a mailbox pickup.

tracking_codestring | null
charged_on_deliveryboolean

Shipping is paid on delivery ("por pagar").

charged_on_delivery_notestring | null
recipient_namestring | null

Pickup person of a local pickup.

recipient_id_numberstring | null
is_a_giftboolean
gift_messagestring | null
commentstring | null
addressobject | null

Delivery address of this fulfillment (shipping and mailbox pickup).

checkout_urlstring

Present only when the order is in checkout or pending status

archivedboolean
currency_codestring
prices_include_taxboolean
items_net_totalinteger

Line items subtotal in cents, before discounts

items_discount_totalinteger
items_totalinteger

Line items subtotal in cents, after discounts

net_totalinteger

Order total in cents before tax

discount_totalinteger
cart_totalinteger
surcharge_totalinteger
shipping_totalinteger
shipping_discountinteger
shipping_minus_discountinteger
tax_ratenumber

Present only when prices_include_tax is false

tax_totalinteger

Present only when prices_include_tax is false

totalinteger

Grand total in cents, including shipping, discounts and tax

total_paidinteger
total_refundedinteger
max_refundable_amountinteger
partial_payment_offeredboolean

Whether 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_partiallyboolean

Whether the buyer opted into a partial payment for this order.

partial_payment_percentageinteger

Percentage of the total charged upfront. Only present when paying_partially is true.

partial_payment_amountnumber

Amount 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_descriptionstring
tracking_codestring
courier_namestring
payment_infoobject

Present only when the order has an associated payment method.

Show properties
idinteger
namestring
typestring

Payment method type/gateway identifier (e.g. webpay_rest, mercado_pago).

dataobject

Gateway-specific transaction data, shape varies by type.

requested_document_typestring

Tax 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> | null
pending_onstring<date-time> | null
closed_onstring<date-time> | null
shipped_onstring<date-time> | null
_embeddedobject

contact 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 properties
creditobject

The customer's credit line (first credit wallet).

Show properties
limit_amountinteger
balanceinteger

Credit still available (limit plus signed transfers).

loan_termstring | null

e.g. "30.days"

overdue_limit_amountinteger | null

Percentage of limit_amount allowed as overdue.

statestring
contact_groupobject
Show properties
idinteger
namestring
price_listobject
Show properties
idinteger
namestring
tax_namestring | null
tax_ratenumber
prices_include_taxboolean
cart_requirementsobject

The 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 properties
idinteger
namestring
entriesobject[]
Show properties
Array of object
keystring
valueinteger
optional_idinteger
applies_toobject

Names of what the list's active policies are linked to.

Show properties
shipping_optionsstring[]
branchesstring[]
payment_methodsstring[]
contactobject
Show properties
idinteger
namestring
emailstring
phone_numberstring
tax_idstring

Normalized tax id of the customer. In list results once the order is reindexed.

tax_id_countrystring
companyobject
Show properties
idinteger
namestring
id_numberstring

Formatted tax/ID number (RUT, DNI, etc.)

activity_codestring
addressAddress
Show properties
streetstring
street_2string
locality_namestring
region_namestring

Required when an order is created with an address (422 on address.region_name if blank).

country_namestring
postal_codestring
addressAddress
Show properties
streetstring
street_2string
locality_namestring
region_namestring

Required when an order is created with an address (422 on address.region_name if blank).

country_namestring
postal_codestring
billing_addressAddress
Show properties
streetstring
street_2string
locality_namestring
region_namestring

Required when an order is created with an address (422 on address.region_name if blank).

country_namestring
postal_codestring
line_itemsobject[]
Show properties
Array of object
idinteger
product_idinteger
product_namestring
variant_idinteger
variant_namestring
variant_skustring
unitsinteger
unit_priceinteger

Unit price in cents

net_totalinteger

Line total in cents before discounts

totalinteger

Line total in cents after discounts/surcharges

paymentsOrderTransaction[]
Show properties
Array of OrderTransaction
idinteger
order_idinteger
amountinteger

Amount in cents (negative for refunds)

absolute_amountinteger

Absolute value of amount in cents

successfulboolean
card_token_idinteger
payment_method_typestring
transaction_idstring

Gateway transaction ID

authorization_codestring
descriptionstring
created_atstring<date-time>
refundsOrderTransaction[]
Show properties
Array of OrderTransaction
idinteger
order_idinteger
amountinteger

Amount in cents (negative for refunds)

absolute_amountinteger

Absolute value of amount in cents

successfulboolean
card_token_idinteger
payment_method_typestring
transaction_idstring

Gateway transaction ID

authorization_codestring
descriptionstring
created_atstring<date-time>
documentsOrderDocument[]
Show properties
Array of OrderDocument
idinteger | null

null 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_typestring
Allowed:receiptinvoicepurchase_ordercredit_noteother
document_numberstring

Required. Unique per order and document_type.

file_urlstring

Only 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).

_linksobject

self, orders:remove_document and, when a file was uploaded, orders:download_document.

404

Order or fulfillment not found.

422

Unknown field or invalid status (error at $.status).

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'https://api.onbolder.com/v2/orders/string/fulfillments/0' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "status": "queued",
  "courier_name": "string",
  "tracking_code": "string",
  "comment": "string"
}'
Response
{
  "_links": {
    "property1": {
      "href": "string",
      "templated": true,
      "method": "get",
      "title": "string",
      "type": "string"
    },
    "property2": {
      "href": "string",
      "templated": true,
      "method": "get",
      "title": "string",
      "type": "string"
    }
  },
  "id": 0,
  "shop_id": 0,
  "code": "string",
  "external_id": "string",
  "tracking_token": "string",
  "purchase_order_number": "string",
  "status": "draft",
  "fulfillment_status": "none",
  "fulfillments": [
    {
      "id": 0,
      "kind": "shipping",
      "primary": true,
      "status": "queued",
      "item_ids": [
        0
      ],
      "branch_id": 0,
      "branch_name": "string",
      "shipping_option_id": 0,
      "shipping_option_name": "string",
      "delivery_window_id": 0,
      "courier_name": "string",
      "courier_branch_name": "string",
      "tracking_code": "string",
      "charged_on_delivery": true,
      "charged_on_delivery_note": "string",
      "recipient_name": "string",
      "recipient_id_number": "string",
      "is_a_gift": true,
      "gift_message": "string",
      "comment": "string",
      "address": {}
    }
  ],
  "checkout_url": "string",
  "archived": true,
  "currency_code": "string",
  "prices_include_tax": true,
  "items_net_total": 0,
  "items_discount_total": 0,
  "items_total": 0,
  "net_total": 0,
  "discount_total": 0,
  "cart_total": 0,
  "surcharge_total": 0,
  "shipping_total": 0,
  "shipping_discount": 0,
  "shipping_minus_discount": 0,
  "tax_rate": 0,
  "tax_total": 0,
  "total": 0,
  "total_paid": 0,
  "total_refunded": 0,
  "max_refundable_amount": 0,
  "partial_payment_offered": true,
  "paying_partially": true,
  "partial_payment_percentage": 0,
  "partial_payment_amount": 0,
  "partial_payment_due_on": "2019-08-24",
  "shipping_description": "string",
  "tracking_code": "string",
  "courier_name": "string",
  "payment_info": {
    "id": 0,
    "name": "string",
    "type": "string",
    "data": {}
  },
  "requested_document_type": "string",
  "tags": [
    "string"
  ],
  "tag_ids": [
    0
  ],
  "allowed_statuses": [
    "string"
  ],
  "allowed_fulfillment_statuses": [
    "string"
  ],
  "created_on": "2019-08-24T14:15:22Z",
  "updated_on": "2019-08-24T14:15:22Z",
  "checkout_on": "2019-08-24T14:15:22Z",
  "pending_on": "2019-08-24T14:15:22Z",
  "closed_on": "2019-08-24T14:15:22Z",
  "shipped_on": "2019-08-24T14:15:22Z",
  "_embedded": {
    "credit": {
      "limit_amount": 0,
      "balance": 0,
      "loan_term": "string",
      "overdue_limit_amount": 0,
      "state": "string"
    },
    "contact_group": {
      "id": 0,
      "name": "string"
    },
    "price_list": {
      "id": 0,
      "name": "string",
      "tax_name": "string",
      "tax_rate": 0,
      "prices_include_tax": true
    },
    "cart_requirements": {
      "id": 0,
      "name": "string",
      "entries": [
        {
          "key": "string",
          "value": 0,
          "optional_id": 0
        }
      ],
      "applies_to": {
        "shipping_options": [
          "string"
        ],
        "branches": [
          "string"
        ],
        "payment_methods": [
          "string"
        ]
      }
    },
    "contact": {
      "id": 0,
      "name": "string",
      "email": "string",
      "phone_number": "string",
      "tax_id": "string",
      "tax_id_country": "string"
    },
    "company": {
      "id": 0,
      "name": "string",
      "id_number": "string",
      "activity_code": "string",
      "address": {
        "street": "string",
        "street_2": "string",
        "locality_name": "string",
        "region_name": "string",
        "country_name": "string",
        "postal_code": "string"
      }
    },
    "address": {
      "street": "string",
      "street_2": "string",
      "locality_name": "string",
      "region_name": "string",
      "country_name": "string",
      "postal_code": "string"
    },
    "billing_address": {
      "street": "string",
      "street_2": "string",
      "locality_name": "string",
      "region_name": "string",
      "country_name": "string",
      "postal_code": "string"
    },
    "line_items": [
      {
        "id": 0,
        "product_id": 0,
        "product_name": "string",
        "variant_id": 0,
        "variant_name": "string",
        "variant_sku": "string",
        "units": 0,
        "unit_price": 0,
        "net_total": 0,
        "total": 0
      }
    ],
    "payments": [
      {
        "id": 0,
        "order_id": 0,
        "amount": 0,
        "absolute_amount": 0,
        "successful": true,
        "card_token_id": 0,
        "payment_method_type": "string",
        "transaction_id": "string",
        "authorization_code": "string",
        "description": "string",
        "created_at": "2019-08-24T14:15:22Z"
      }
    ],
    "refunds": [
      {
        "id": 0,
        "order_id": 0,
        "amount": 0,
        "absolute_amount": 0,
        "successful": true,
        "card_token_id": 0,
        "payment_method_type": "string",
        "transaction_id": "string",
        "authorization_code": "string",
        "description": "string",
        "created_at": "2019-08-24T14:15:22Z"
      }
    ],
    "documents": [
      {
        "id": 0,
        "document_type": "receipt",
        "document_number": "string",
        "file_url": "string",
        "_links": {}
      }
    ]
  }
}

Was this page helpful?