---
search:
  tags:
    - Orders
    - PUT
seo:
  description: >-
    Changes the status, courier, tracking code or comment of one… Reference for
    the PUT /orders/{order_id}/fulfillments/{id} endpoint in the Bolder API v2.
sidebar:
  label: Update one fulfillment of an order
  badge: PUT
title: Update one fulfillment of an order
type: openapi-operation
---
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}`

**Request body** (`application/json`, required)

- `status` (string)
- `courier_name` (string)
- `tracking_code` (string)
- `comment` (string)

Request body example:

```json
{
  "status": "queued",
  "courier_name": "string",
  "tracking_code": "string",
  "comment": "string"
}
```

**Responses**

- `200` — The updated order
- `404` — Order or fulfillment not found.
- `422` — Unknown field or invalid \`status\` (error at \`$.status\`).

Response example, 200:

```json
{
  "_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": {}
      }
    ]
  }
}
```
