Fulfillment Manager API · shipping

For a carrier that answers a booking with numbers rather than a document

POST /carrier-accounts/{carrierAccountId}/consignments/{consignmentId}/label/render

For a carrier that answers a booking with numbers rather than a document, the account's app hands over what each carton's label says — a barcode's text (drawn as Code 128), a heading, the lines beneath and a note — and Manifold draws the PDF, one page per carton at the page size asked (125 × 75 mm, 100 × 150 mm …), and keeps it as the consignment's label exactly as storeLabel does (kept 90 days, printed from labelLink).

Appends fulfillment.consignment-labelled. Idempotent by state: a consignment keeps one label, so a retry is answered with it and draws nothing.

Access

Requires shipping:write.

How scopes come from roles: Scopes and roles. Getting a token: Authentication and app tokens.

Retries

Idempotent by state: a consignment keeps one label, so a retry is answered with it and draws nothing.

Why every write carries a key: Idempotency and retries.

Facts appended

  • fulfillment.consignment-labelled

What a fact is: Facts and the journal.

AI agent tool

No agent tool. a shipping app's own call, for a consignment it booked with a carrier that returns no label document; a person prints the label with fulfillment_print_label

Connecting an agent: AI agents.

Example

curl
curl -X POST 'https://fulfillment.getmanifold.io/carrier-accounts/car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d/consignments/cns_01a159c0-d0e0-71f1-8c03-d7e8f90a1b2c/label/render' \
  -H "Authorization: Bearer $MANIFOLD_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": {
    "widthMm": 125,
    "heightMm": 75
  },
  "cartons": [
    {
      "barcode": "WILD-905512-1",
      "heading": "Ada Lovelace | 1/2 | #1042",
      "lines": [
        "12 Example Street",
        "Surry Hills NSW 2010",
        "Thu 22 Oct, 08:00-12:00"
      ],
      "note": "Leave in the esky by the door"
    },
    {
      "barcode": "WILD-905512-2",
      "heading": "Ada Lovelace | 2/2 | #1042",
      "lines": [
        "12 Example Street",
        "Surry Hills NSW 2010",
        "Thu 22 Oct, 08:00-12:00"
      ]
    }
  ]
}'
JavaScript (fetch)
const response = await fetch("https://fulfillment.getmanifold.io/carrier-accounts/car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d/consignments/cns_01a159c0-d0e0-71f1-8c03-d7e8f90a1b2c/label/render", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.MANIFOLD_TOKEN}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "page": {
      "widthMm": 125,
      "heightMm": 75
    },
    "cartons": [
      {
        "barcode": "WILD-905512-1",
        "heading": "Ada Lovelace | 1/2 | #1042",
        "lines": [
          "12 Example Street",
          "Surry Hills NSW 2010",
          "Thu 22 Oct, 08:00-12:00"
        ],
        "note": "Leave in the esky by the door"
      },
      {
        "barcode": "WILD-905512-2",
        "heading": "Ada Lovelace | 2/2 | #1042",
        "lines": [
          "12 Example Street",
          "Surry Hills NSW 2010",
          "Thu 22 Oct, 08:00-12:00"
        ]
      }
    ]
  }),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const answer = await response.json();
Request body · application/json
{
  "page": {
    "widthMm": 125,
    "heightMm": 75
  },
  "cartons": [
    {
      "barcode": "WILD-905512-1",
      "heading": "Ada Lovelace | 1/2 | #1042",
      "lines": [
        "12 Example Street",
        "Surry Hills NSW 2010",
        "Thu 22 Oct, 08:00-12:00"
      ],
      "note": "Leave in the esky by the door"
    },
    {
      "barcode": "WILD-905512-2",
      "heading": "Ada Lovelace | 2/2 | #1042",
      "lines": [
        "12 Example Street",
        "Surry Hills NSW 2010",
        "Thu 22 Oct, 08:00-12:00"
      ]
    }
  ]
}
Response · 200 · application/json
{
  "id": "ord_01a159a0-cfd0-70e1-9bf2-a4b5c6d7e8f9",
  "reference": "WEB-31002",
  "source": {
    "kind": "api"
  },
  "customer": {
    "personId": "psn_01a1588a-0c41-7d2e-9a10-3b5c6d7e8f90",
    "shippingAddressId": "adr_01a1588a-0c41-7d2e-9a10-4c6d7e8f9a01"
  },
  "party": {
    "personId": "psn_01a1588a-0c41-7d2e-9a10-3b5c6d7e8f90",
    "name": "Priya Raman",
    "shipTo": {
      "id": "adr_01a1588a-0c41-7d2e-9a10-4c6d7e8f9a01",
      "address": {
        "firstName": "Priya",
        "lastName": "Raman",
        "company": "Harbour Ceramics",
        "address1": "14 Kiln Street",
        "city": "Fremantle",
        "province": "Western Australia",
        "provinceCode": "WA",
        "country": "Australia",
        "countryCode": "AU",
        "zip": "6160"
      }
    }
  },
  "catalogIds": [
    "cat_01a15880-2a10-7b2c-8d3e-4f5a6b7c8d9e"
  ],
  "currency": "AUD",
  "fx": {
    "currency": "AUD",
    "home": "AUD",
    "rate": 1,
    "rateDate": "2026-10-20",
    "source": "same"
  },
  "convention": "exclusive",
  "shippingTaxBasis": {
    "_tag": "calculated",
    "treatment": "domestic",
    "country": "AU",
    "class": "follows-goods",
    "rateBps": 1000
  },
  "shippingMethod": {
    "title": "Standard",
    "code": "STD"
  },
  "number": "SO-01045",
  "serial": 1045,
  "status": "open",
  "lines": [
    {
      "id": "lin_01a159a0-cfd0-70e1-9bf2-b5c6d7e8f90a",
      "sku": "MUG-SPECKLE",
      "name": "Speckled stoneware mug",
      "ordered": 4,
      "removed": false,
      "catalogId": "cat_01a15880-2a10-7b2c-8d3e-4f5a6b7c8d9e",
      "discountCents": 0,
      "allocated": 4,
      "picked": 4,
      "packed": 4,
      "dispatched": 0,
      "invoiced": 0,
      "returned": 0,
      "unitPriceCents": 2400,
      "listPriceCents": 2400,
      "inclusive": false,
      "taxBasis": {
        "_tag": "calculated",
        "treatment": "domestic",
        "country": "AU",
        "parts": [
          {
            "class": "standard",
            "rateBps": 1000,
            "weight": 1
          }
        ]
      },
      "orderDiscountCents": 0,
      "tax": {
        "inclusive": false,
        "amountCents": 9600,
        "entries": [
          {
            "class": "standard",
            "treatment": "domestic",
            "country": "AU",
            "rateBps": 1000,
            "netCents": 9600,
            "taxCents": 960,
            "source": "manifold"
          }
        ],
        "netCents": 9600,
        "taxCents": 960,
        "grossCents": 10560
      }
    }
  ],
  "workflow": {
    "paymentTerms": "on-account",
    "pick": "manual",
    "pack": "manual",
    "ship": "manual",
    "invoice": "manual",
    "shortfall": "wait",
    "allocation": "single-site-preferred",
    "routing": {
      "order": "rank",
      "decider": "manifold",
      "priority": []
    },
    "routingByCatalog": {}
  },
  "paymentTermsBy": "tenant",
  "createdSequence": 4146,
  "shipments": [
    {
      "id": "shp_01a159a0-cfd0-70e1-9bf2-c6d7e8f90a1b",
      "number": "SH-01063",
      "reference": "auto:shp_01a159a0-cfd0-70e1-9bf2-c6d7e8f90a1b",
      "status": "packed",
      "locationId": "loc_01a0f6b0-1100-7e51-8f62-7a8b9cadbec4",
      "lines": [
        {
          "lineId": "lin_01a159a0-cfd0-70e1-9bf2-b5c6d7e8f90a",
          "sku": "MUG-SPECKLE",
          "quantity": 4
        }
      ],
      "cartons": [
        {
          "packaging": "carton",
          "boxId": "box_01a0f6b4-3e10-7aa1-8c24-2c3d4e5f6071",
          "weightGrams": 1700,
          "size": {
            "lengthMm": 260,
            "widthMm": 210,
            "heightMm": 120
          }
        }
      ],
      "createdAt": "2026-10-20T06:18:33.020Z",
      "updatedAt": "2026-10-20T06:52:10.774Z"
    }
  ],
  "invoices": [],
  "refunds": [],
  "payments": [],
  "notes": [],
  "edits": [],
  "consignments": [
    {
      "id": "cns_01a159c0-d0e0-71f1-8c03-d7e8f90a1b2c",
      "shipmentId": "shp_01a159a0-cfd0-70e1-9bf2-c6d7e8f90a1b",
      "carrierAccountId": "car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d",
      "attempt": 1,
      "status": "booked",
      "service": {
        "code": "7E55",
        "name": "Parcel Post",
        "carrier": "Australia Post"
      },
      "quoted": {
        "priceCents": 1395,
        "currency": "AUD"
      },
      "quote": {
        "quotedAt": "2026-10-20T06:53:02.415Z",
        "rates": [
          {
            "code": "car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d:7E55",
            "carrierAccountId": "car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d",
            "title": "Australia Post · Parcel Post",
            "service": {
              "code": "7E55",
              "name": "Parcel Post",
              "carrier": "Australia Post"
            },
            "priceCents": 1395,
            "currency": "AUD",
            "etaDays": {
              "min": 2,
              "max": 5
            }
          },
          {
            "code": "car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d:7J55",
            "carrierAccountId": "car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d",
            "title": "Australia Post · Express Post",
            "service": {
              "code": "7J55",
              "name": "Express Post",
              "carrier": "Australia Post"
            },
            "priceCents": 1980,
            "currency": "AUD",
            "etaDays": {
              "min": 1,
              "max": 2
            }
          }
        ],
        "unanswered": [],
        "estimated": false,
        "unweighed": []
      },
      "trackingHistory": [],
      "requestedAt": "2026-10-20T06:53:30.009Z",
      "updatedAt": "2026-10-20T06:53:44.105Z",
      "booking": {
        "carrier": "Australia Post",
        "service": {
          "code": "7E55",
          "name": "Parcel Post",
          "carrier": "Australia Post"
        },
        "trackingNumbers": [
          "33XYZ0098765"
        ],
        "trackingUrl": "https://auspost.com.au/mypost/track/details/33XYZ0098765",
        "externalId": "ssi-order-905512",
        "cost": {
          "priceCents": 1395,
          "currency": "AUD",
          "taxCents": 127
        }
      },
      "costFx": {
        "currency": "AUD",
        "home": "AUD",
        "rate": 1,
        "rateDate": "2026-10-20",
        "source": "same"
      },
      "label": {
        "contentType": "application/pdf",
        "size": 48213,
        "storedAt": "2026-10-20T06:53:44.105Z"
      }
    }
  ],
  "money": {
    "subtotalCents": 9600,
    "charges": {
      "shippingCents": 1500,
      "shippingDiscountCents": 0,
      "discountCents": 0
    },
    "discountCents": 0,
    "tax": {
      "netCents": 11100,
      "taxCents": 1110,
      "grossCents": 12210,
      "breakdown": [
        {
          "class": "standard",
          "treatment": "domestic",
          "country": "AU",
          "rateBps": 1000,
          "exempt": false,
          "taxableCents": 11100,
          "taxCents": 1110
        }
      ]
    },
    "shippingTax": {
      "inclusive": false,
      "amountCents": 1500,
      "entries": [
        {
          "class": "standard",
          "treatment": "domestic",
          "country": "AU",
          "rateBps": 1000,
          "netCents": 1500,
          "taxCents": 150,
          "source": "manifold"
        }
      ],
      "netCents": 1500,
      "taxCents": 150,
      "grossCents": 1650
    },
    "totalCents": 12210,
    "paidCents": 0,
    "refundedCents": 0,
    "balanceCents": 12210,
    "refundOwedCents": 0,
    "status": "unpaid"
  },
  "discounts": [],
  "shortfalls": [],
  "createdAt": "2026-10-20T06:18:33.020Z",
  "updatedAt": "2026-10-20T06:53:44.105Z"
}

The panel writes this call in other languages. It does not send it: Manifold's APIs do not take calls from a web page on another site, so run the call from your own code or terminal. The whole API as OpenAPI: fulfillment-manager.openapi.json. Base URL https://fulfillment.getmanifold.io.

Errors

Every refusal is a status and a JSON body whose _tag names it. A refused call changes nothing.

400

RefusalWhat it meansWhat to do
LabelUnreadable reason The file is not a PDF, PNG or ZPL document.Send the file with its own Content-Type.

401

RefusalWhat it meansWhat to do
Unauthorized reason The token is missing, expired or not one Manifold issued.Get a fresh token and send the call again.
TokenAlreadyUsed tokenId A single-use app token was already spent.Mint a new token for this call.

402

RefusalWhat it meansWhat to do
SubscriptionRequired status The organization's subscription has lapsed, so writes are refused.An owner settles billing. Reads still work meanwhile.

403

RefusalWhat it meansWhat to do
NotACarrierApp reason Only a carrier app may call this.Call it with the carrier app's token.
CarrierAccountNotYours carrierAccountId This carrier account belongs to another app.Call it with the app that keeps the account.
TenantRequired userId The token names no organization.Choose the organization, then get a new token.
ScopeRequired required The token's roles do not grant the scope this call needs.Ask an owner or admin for a role that grants it.

404

RefusalWhat it meansWhat to do
CarrierAccountNotFound carrierAccountId No such record in this organization.Check the id in the path or the body.
FulfillmentOrderNotFound orderId No such record in this organization.Check the id in the path or the body.
ConsignmentNotFound consignmentId No such record in this organization.Check the id in the path or the body.

409

RefusalWhat it meansWhat to do
ConsignmentNotInState consignmentId, status, expected The booking is not in a state this call accepts.Read the record: its status says where it stands, and expected the states this call accepts.
OrderDecisionBlocked orderId, decisionId, command, reason The request was refused. reason says why.Nothing changed. Read the record, then decide.
MirroredFromSource source This area is fed by your source system until the organization goes live.Make the change in the source system, or go live first.

413

RefusalWhat it meansWhat to do
LabelTooLarge limit, size The file is over the size limit. limit gives it in bytes.Send a smaller file.

503

RefusalWhat it meansWhat to do
LabelStoreUnavailable reason File storage did not answer, so nothing was stored.Send the same request again shortly.
RequestLogUnavailable tokenId, reason The service could not record the request, so it did nothing.Send the same request again shortly.

How refusals work everywhere: Errors.