Fulfillment Manager API · shipping

Its app lets a carrier account go

POST /carrier-accounts/{carrierAccountId}/disconnect

Its app lets a carrier account go: nothing more is booked with it, and its consignments keep their record.

Appends fulfillment.carrier-account-disconnected. Idempotent by state: an account is let go once, so a retry on one already let go appends nothing.

Access

Requires shipping:write.

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

Retries

Idempotent by state: an account is let go once, so a retry on one already let go appends nothing.

Why every write carries a key: Idempotency and retries.

Facts appended

  • fulfillment.carrier-account-disconnected

What a fact is: Facts and the journal.

AI agent tool

No agent tool. only a shipping app lets its carrier account go, under its own token — a person uninstalls the app instead

Connecting an agent: AI agents.

Example

curl
curl -X POST 'https://fulfillment.getmanifold.io/carrier-accounts/car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d/disconnect' \
  -H "Authorization: Bearer $MANIFOLD_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": "Starshipit uninstalled"
}'
JavaScript (fetch)
const response = await fetch("https://fulfillment.getmanifold.io/carrier-accounts/car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d/disconnect", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.MANIFOLD_TOKEN}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "reason": "Starshipit uninstalled"
  }),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const answer = await response.json();
Request body · application/json
{
  "reason": "Starshipit uninstalled"
}
Response · 200 · application/json
{
  "id": "car_01a0f6b3-2d00-7a91-9b13-e8f90a1b2c3d",
  "appId": "app_cc0cd668-9d5b-45cc-ac5a-b96892231a0e",
  "externalId": "ssi-48213",
  "name": "Starshipit · Saltbush Homewares",
  "settingsPath": "/settings/shipping/starshipit",
  "quoteUrl": "https://starshipit.getmanifold.io/quotes",
  "status": "disconnected",
  "connectedAt": "2026-10-14T22:51:30.118Z",
  "updatedAt": "2026-10-22T06:40:00.512Z",
  "disconnectedAt": "2026-10-22T06:40:00.512Z"
}

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.

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.

409

RefusalWhat it meansWhat to do
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.

503

RefusalWhat it meansWhat to do
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.