API reference

Fulfillment API

The Carriyo Fulfillment API covers the work between order allocation and carrier handoff: picking items off shelves, packing them into parcels, and managing customer-collection handovers. Bin-location mappings for the Fulfillment App are also managed here.

Access

Every request needs the matching scope on the API client. Picks, packs and collections sit under /orders and are covered by the orders scope; bin locations need the bin-locations scope. A 403 on a documented endpoint means the client lacks the scope, not that the endpoint is unavailable.

Idempotency

Write endpoints accept an optional Idempotency-Key request header for safe request replay when your integration retries after uncertain network outcomes, except Remove a package and Send pickup OTP to customer. Replayed responses include Idempotent-Replayed: true. See https://carriyo.com/docs/api/idempotency/ for the full contract.

Serverhttps://api.carriyo.comAuthOAuth 2.0 + API KeySpecfulfillment.yaml

Picks

A pick is a picker's work order: the line items to pull from the shelves at one fulfillment location, for one or more fulfillment orders. It is created open, starts into processing, and ends completed or cancelled, pausing in stopped when cancelled with items already picked. Picks are reached only through the lookup reads by order or fulfillment order, which return summaries.

Picks emit no webhook, and no pick operation fires the order webhook, automatic creation included. Poll the order or the pick for changes.

Related: How picks move line items through the pick lifecycle

11 operations · 0 objects

post/orders/picks

Create a pick

Creates a pick for line items of one or more fulfillment orders at a single location, and moves those line items into picking.

What to send. partner_location_id, the Carriyo location id, and at least one item, each naming its order_id, fulfillment_order_id, line_item_id and quantity. Every item must belong to a fulfillment order at that location.

  • Only an allocated line item can be picked, and quantity may not exceed its quantity.
  • A line item already in a non-terminal pick is refused.
  • A pick is refused while the order or the fulfillment order is on hold.
  • With split picking disabled in the location's Fulfillment App settings, every non-terminal line item of each fulfillment order must be included.

With auto_create_picks on in the location's Fulfillment App settings, Carriyo creates one pick per fulfillment order itself, skipping held orders. It does so on order creation, on allocation, and on a location update that gives the fulfillment order its first location. A manual create is then only for line items not already in a pick.

Pick type.

  • One fulfillment order gives an ORDER_PICK, even when only some of its items are included.
  • Several fulfillment orders give a CLUSTER_PICK when every included fulfillment order is fully covered, otherwise a ZONE_PICK.
  • Several fulfillment orders need cluster picking enabled in the location's Fulfillment App settings. Any fulfillment order not fully included needs split picking enabled, an ORDER_PICK of some items too; so a ZONE_PICK needs both.

Picker. picker must hold the Fulfillment App's pick permission at that location. A picker without it is rejected, both here and on Reassign a pick.

Without a picker, assignment follows the location's picker assignment strategy: manual and round_robin leave the pick unassigned, work_load assigns the least-loaded eligible picker.

What happens.

  1. Each line item moves from allocated to pick_in_progress. A quantity below the line item's splits it: the requested quantity moves into picking as a new line item and the remainder stays allocated.
  2. The pick is created in open with its pick_type and a pick list document.
  3. The order status is recalculated. No webhook fires.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: pick-requestrequired
  • partner_location_idstringrequired
    The Carriyo location id where the pick takes place (location_id in the Locations API), not your partner_location_code. Every item must belong to a fulfillment order allocated to this location.
  • pickerstring
    The picker's scoped user key as it appears in Fulfillment App access: global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users; a bare email is not a valid key. The user must hold pick permission at partner_location_id; their on_duty flag is not checked, since only work_load assignment uses it. When omitted, the location's picker assignment strategy applies.
  • itemspick-item-request[]required
    The fulfillment-order line items to pick. At least one item is required.

Responses

200Pick created. Returns the full pick.Schema: pick-response
  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.
400

The request was rejected. One of:

  • partner_location_id is blank.
  • items is empty.
  • an item is missing order_id, fulfillment_order_id, line_item_id or quantity; the message names it, for example items[0].quantity is required.
  • a quantity is below 1.
  • picker is sent empty, or lacks pick permission at the location.
  • an item belongs to a fulfillment order at another location.
  • a line item is not allocated.
  • a line item is already in a non-terminal pick.
  • a quantity exceeds the line item's quantity.
  • the order or the fulfillment order is on hold.
  • the items span more than one fulfillment order with cluster picking disabled.
  • the items leave out line items of a fulfillment order with split picking disabled.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/picks/{pickId}

Get a pick

Returns the full pick, including its items, documents and timestamps.

Path parameters

NameTypeRequiredDescription
pickIdstringYesThe pick identifier (e.g. `PIK_123`).

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200The full pick record.Schema: pick-response
  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.
404No pick exists for pickId.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/picks/order/{orderId}

List picks for an order

Returns lookup summaries of the picks associated with an order.

Behavior. Each entry carries pick_id, tenant, partner_location_id, status and creation_date, never the items or documents; read the full pick by pick_id. An unknown orderId returns an empty array, not an error.

Path parameters

NameTypeRequiredDescription
orderIdstringYesThe order identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Array of pick lookup summaries.

An array of pick-response. Each item has the following fields:

  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/picks/fulfillment-order/{fulfillmentOrderId}

List picks for a fulfillment order

Returns lookup summaries of the picks associated with a fulfillment order.

Behavior. Each entry carries pick_id, tenant, partner_location_id, status and creation_date, never the items or documents; read the full pick by pick_id. An unknown fulfillmentOrderId returns an empty array, not an error.

Path parameters

NameTypeRequiredDescription
fulfillmentOrderIdstringYesThe fulfillment order identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Array of pick lookup summaries.

An array of pick-response. Each item has the following fields:

  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/picks/{pickId}/start

Start a pick

Moves an open pick to processing and sets start_date.

Behavior. The pick must be open and have a picker, set by Create a pick or Reassign a pick. No request body is needed.

Path parameters

NameTypeRequiredDescription
pickIdstringYesThe pick identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Responses

200Pick started. Status is now processing.Schema: pick-response
  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.
400

The request was rejected. One of:

  • the pick is not open.
  • the pick has no picker.
404No pick exists for pickId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/picks/{pickId}/cancel

Cancel a pick

Cancels a pick and returns its line items to allocated, or stops it when items have already been picked.

Outcome.

  • An open or stopped pick, or a processing pick with nothing picked, becomes cancelled with cancel_date; its line items return to allocated.
  • A processing pick with any picked quantity becomes stopped instead; its line items stay pick_in_progress and the order is not touched. Cancel a stopped pick again to cancel it fully; it still accepts Restock items back to shelf first, to record items returned to the shelf.

Reason. reason_code is optional and stored on the pick. The body may be omitted.

Path parameters

NameTypeRequiredDescription
pickIdstringYesThe pick identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: cancel-pick-request
  • reason_codestring
    Free-text reason stored on the pick as cancellation_reason_code.

Responses

200Pick cancelled (or stopped if items were partially picked).Schema: pick-response
  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.
400

The request was rejected. One of:

  • the pick is completed.
  • the pick is already cancelled.
404No pick exists for pickId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/picks/{pickId}/reassign

Reassign a pick

Assigns or replaces the picker on an open pick.

Behavior. picker is required, and the user must hold the Fulfillment App's pick permission at the pick's location.

Path parameters

NameTypeRequiredDescription
pickIdstringYesThe pick identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: reassign-pick-requestrequired
  • pickerstringrequired
    The new picker's scoped user key as it appears in Fulfillment App access (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users); a bare email is rejected. The user must have pick permission at the pick's location; their on_duty flag is not checked.

Responses

200Pick reassigned.Schema: pick-response
  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.
400

The request was rejected. One of:

  • the pick is not open.
  • picker is missing.
  • picker has no pick permission at the pick's location.
404No pick exists for pickId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/picks/{pickId}/complete

Complete a pick

Completes a processing pick, moving its line items to picked and handing them over for packing.

Preconditions. The pick must be processing and every item fully resolved: quantity_picked plus its mispicked quantities equals quantity. No request body is needed.

What happens. The pick becomes completed. Each line item's picked quantity moves from pick_in_progress to picked, and its mispicked quantity is split off and handled by the location's mispick_handling_strategy in the Fulfillment App settings:

  • cancel (the default): the mispicked quantity becomes a cancelled line item. Its cancellation_reason is inventory_out_of_stock for the mispick reasons OUT_OF_STOCK, UNAVAILABLE and DAMAGED, and other for any other reason; each reason keeps its own line item.
  • new_fulfillment_order: the mispicked quantity moves to a new fulfillment order with no location, as open line items, so it can be allocated again. A pick creates at most one new fulfillment order for each fulfillment order it covers. When every item of a fulfillment order is mispicked, no new one is created: the items go back to open on the same fulfillment order and its location is removed, with an allocation_history entry naming the previous location.

Inventory. With inventory management enabled, reserved at the pick's location is reduced by the mispicked quantity in both cases.

Shipments. A shipment that already exists for the picked items is cancelled when the mispick leaves it with no item to ship: every line item linked to it was cancelled or moved to another fulfillment order. A shipment that still has a picked item is not changed.

Nothing picked. When nothing at all was picked across the pick, the pick becomes cancelled instead of completed. Its line items are handled by the same strategy.

Path parameters

NameTypeRequiredDescription
pickIdstringYesThe pick identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Responses

200Pick completed (or cancelled if all items were mispicked).Schema: pick-response
  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.
400

The request was rejected. One of:

  • the pick is not processing.
  • an item is not fully picked or mispicked.
404No pick exists for pickId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/picks/{pickId}/items/pick

Record items picked off shelf

Records quantities the picker has taken from the shelf, adding to each item's quantity_picked.

What to send. A JSON array of {fulfillment_order_id, line_item_id, quantity}, each entry naming an item of the pick, with an optional selection_method. The pick must be processing.

What happens. Each quantity is added to the item's quantity_picked. It must not exceed what remains: quantity less quantity_picked less its mispicked quantities. Calls accumulate, and line items stay pick_in_progress until the pick completes.

Validation. One invalid entry rejects the whole call, and nothing is saved.

Path parameters

NameTypeRequiredDescription
pickIdstringYesThe pick identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonrequired

An array of pick-item-action-request. Each item has the following fields:

  • fulfillment_order_idstringrequired
    The fulfillment order of the line item. Together with line_item_id it must match an item in the pick.
  • line_item_idstringrequired
    The line item to pick or restock. Must be in the pick.
  • quantityintegerrequired
    Units to pick or restock. For pick, at most quantity - quantity_picked - mispicked units, and for restock, at most quantity_picked; more is rejected with 400.
  • selection_methodstring
    How the picker identified the item. Optional. Stored on the pick item by Record items picked off shelf; omitting it keeps the value recorded by an earlier call. Ignored by Restock items back to shelf.
    Values:SCANNERCAMERAMANUAL

Responses

200Updated pick with incremented quantity_picked values.Schema: pick-response
  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.
400

The request was rejected. One of:

  • the pick is not processing.
  • an entry is missing fulfillment_order_id, line_item_id or quantity; the message names it, for example [0].quantity is required.
  • a quantity is below 1.
  • an entry names a line item that is not in the pick.
  • a quantity exceeds what remains to pick; the message gives the available quantity.
404No pick exists for pickId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/picks/{pickId}/items/restock

Restock items back to shelf

Records quantities put back on the shelf, reducing each item's quantity_picked.

What to send. A JSON array of {fulfillment_order_id, line_item_id, quantity}, each entry naming an item of the pick. The pick must be processing or stopped.

What happens. Each quantity is taken off the item's quantity_picked and must not exceed it. Line item statuses do not change.

Validation. One invalid entry rejects the whole call, and nothing is saved.

Path parameters

NameTypeRequiredDescription
pickIdstringYesThe pick identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonrequired

An array of pick-item-action-request. Each item has the following fields:

  • fulfillment_order_idstringrequired
    The fulfillment order of the line item. Together with line_item_id it must match an item in the pick.
  • line_item_idstringrequired
    The line item to pick or restock. Must be in the pick.
  • quantityintegerrequired
    Units to pick or restock. For pick, at most quantity - quantity_picked - mispicked units, and for restock, at most quantity_picked; more is rejected with 400.
  • selection_methodstring
    How the picker identified the item. Optional. Stored on the pick item by Record items picked off shelf; omitting it keeps the value recorded by an earlier call. Ignored by Restock items back to shelf.
    Values:SCANNERCAMERAMANUAL

Responses

200Updated pick with decremented quantity_picked values.Schema: pick-response
  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.
400

The request was rejected. One of:

  • the pick is not processing or stopped.
  • an entry is missing fulfillment_order_id, line_item_id or quantity; the message names it, for example [0].quantity is required.
  • a quantity is below 1.
  • an entry names a line item that is not in the pick.
  • a quantity exceeds the item's quantity_picked; the message gives the picked quantity.
404No pick exists for pickId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/picks/{pickId}/items/mispick

Record mispicked items

Records quantities that could not be picked, with a reason, on each item's mispicks.

What to send. A JSON array of {fulfillment_order_id, line_item_id, quantity, reason}, each entry naming an item of the pick. The pick must be processing.

What happens. Each entry is appended to the item's mispicks as a record of quantity and reason. The quantity must not exceed what remains: quantity less quantity_picked less mispicks already recorded. Nothing is decremented, and line items keep their status until Complete a pick settles them.

Validation. One invalid entry rejects the whole call, and nothing is saved.

Path parameters

NameTypeRequiredDescription
pickIdstringYesThe pick identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonrequired

An array of mispick-item-request. Each item has the following fields:

  • fulfillment_order_idstringrequired
    The fulfillment order of the line item. Together with line_item_id it must match an item in the pick.
  • line_item_idstringrequired
    The line item that was mispicked. Must be in the pick.
  • quantityintegerrequired
    Units that could not be picked, at most quantity - quantity_picked - mispicked units; more is rejected with 400.
  • reasonstring
    Free-text reason, stored on the item's mispicks entry.

Responses

200Updated pick with mispick records appended.Schema: pick-response
  • tenantstring
    Tenant identifier.
  • pick_idstring
    Unique pick identifier, prefixed PIK_.
  • partner_location_idstring
    The Carriyo location id of the location the pick belongs to.
  • pickerstring
    The assigned picker's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until a picker is assigned.
  • pick_typestring
    Set from the items at creation: ORDER_PICK when all items belong to one fulfillment order, CLUSTER_PICK when several fulfillment orders are each fully included, ZONE_PICK when several are included and any only partly. Several fulfillment orders need cluster picking enabled at the location and any partly included fulfillment order needs split picking enabled, so ZONE_PICK needs both.
    Values:ORDER_PICKZONE_PICKCLUSTER_PICK
  • statusstring
    Lifecycle state: open (created, not started), processing (picker working), stopped (cancelled with items already picked; cancel again to void it). completed and cancelled are terminal.
    Values:openprocessingstoppedcompletedcancelled
  • creation_datestringformat: date-time
    When the pick was created.
  • update_datestringformat: date-time
    When the pick was last modified.
  • start_datestringformat: date-time
    When the pick moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pick was cancelled. Not set when the pick is stopped; omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pick. Omitted when none was given.
  • completed_datestringformat: date-time
    When the pick was completed. Omitted until then.
  • itemspick-item[]
    The line items in the pick with their picking progress. Omitted on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pick, typically the pick list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pick.
  • update_sourcerequest-source
    The system or actor that last modified the pick.
400

The request was rejected. One of:

  • the pick is not processing.
  • an entry is missing fulfillment_order_id, line_item_id or quantity; the message names it, for example [0].quantity is required.
  • a quantity is below 1.
  • an entry names a line item that is not in the pick.
  • a quantity exceeds what remains; the message gives the available quantity.
404No pick exists for pickId.

Need the full machine-readable spec? Download the OpenAPI document →

Packs

A pack is a packer's work order: the line items to consolidate into packages at a packing station at one fulfillment location, for one or more fulfillment orders. It is created open, starts into processing once a packer and packing station are set, and ends completed or cancelled; completing it is the handover to shipping, or to collection for click-and-collect fulfillment orders. A pack does not need a prior pick, and packs are reached only through the lookup reads by order, fulfillment order or pick.

Packs have no webhook of their own. Only Complete a pack and Create a shipment from the pack fire the order webhook; after any other pack operation, poll the order or the pack. Complete a pack and Cancel a pack also trigger shipment webhooks through the shipment changes they make.

A local collection is a fulfillment order with delivery_method COLLECTION whose customer_collection_address is absent, names no location, or names the fulfilling location; it needs no shipment. A remote collection is one whose customer_collection_address names another location, and it needs a shipment to get there.

A live shipment is a shipment on a package that is not cancelled. A package with a live shipment cannot be changed, packed, emptied or shipped again; a cancelled shipment does not block.

An active collection is a collection on a package that is open or ready_to_collect. It locks the package the same way, because its label shows the package as it was. Cancel the collection to unlock the package.

Related: How packs, packages and shipments fit together

17 operations · 0 objects

post/orders/packs

Create a pack

Creates a pack for line items of one or more fulfillment orders at a single location, and moves those line items into packing.

What to send. partner_location_id, the Carriyo location id, and at least one item, each naming its order_id, fulfillment_order_id, line_item_id and quantity, and optionally the pick_id it came from. Every item must belong to a fulfillment order at that location.

  • A line item is packable when it is allocated or picked; a prior pick is not required. quantity may not exceed the line item's quantity.
  • A line item already in a non-terminal pack is refused.
  • pick_id on an item is optional; when given, that pick must exist and be completed.
  • Unlike Create a pick, an order or fulfillment order on hold is not refused.

pick_id and cancel. Cancel a pack returns a line item to picked only when its pack item has a pick_id. Leave pick_id out on a picked line item and a cancel returns it to allocated.

Packer and packing station. packer and packing_station are optional, but each is checked when sent. packer needs the Fulfillment App's pack permission at the location, and packing_station must exist at that location. Both must be set before Start a pack.

What happens.

  1. Each line item moves from allocated or picked to pack_in_progress. A quantity below the line item's splits it, the remainder keeping its status.
  2. The pack is created in open with a packing list document and no packages. packages is absent until you call Add a package to the pack, or Reset packages on the pack, which creates one default package per fulfillment order.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: pack-requestrequired
  • partner_location_idstringrequired
    The Carriyo location id where packing takes place (location_id in the Locations API), not your partner_location_code. Every item must belong to a fulfillment order allocated to this location.
  • packing_stationstring
    The packing station at the location. Optional at creation but required before Start a pack. When sent, it must exist at partner_location_id.
  • packerstring
    The packer's scoped user key as it appears in Fulfillment App access: global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users; a bare email is not a valid key. Optional at creation but required before Start a pack. When sent, the user must hold pack permission at partner_location_id; their on_duty flag is not checked.
  • itemspack-item-request[]required
    The fulfillment-order line items to pack. At least one item is required.

Responses

200Pack created. Returns the full pack.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • partner_location_id is blank.
  • items is empty.
  • an item is missing order_id, fulfillment_order_id, line_item_id or quantity; the message names it, for example items[0].quantity is required.
  • a quantity is below 1.
  • packer is sent empty, or lacks pack permission at the location.
  • packing_station is sent empty, or does not exist at the location.
  • an item belongs to a fulfillment order at another location.
  • a line item is neither allocated nor picked.
  • a line item is already in a non-terminal pack.
  • a quantity exceeds the line item's quantity.
  • pick_id names a pick that does not exist.
  • pick_id names a pick that is not completed.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/packs/{packId}

Get a pack

Returns the full pack, including its items, packages, documents and timestamps.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier (e.g. `PAK_123`).

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200The full pack record.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/packs/order/{orderId}

List packs for an order

Returns lookup summaries of the packs associated with an order.

Behavior. Each entry carries pack_id, tenant, partner_location_id, status and creation_date, never the items or packages; read the full pack by pack_id. An unknown orderId returns an empty array, not an error.

Path parameters

NameTypeRequiredDescription
orderIdstringYesThe order identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Array of pack lookup summaries.

An array of pack-response. Each item has the following fields:

  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/packs/fulfillment-order/{fulfillmentOrderId}

List packs for a fulfillment order

Returns lookup summaries of the packs associated with a fulfillment order.

Behavior. Each entry carries pack_id, tenant, partner_location_id, status and creation_date, never the items or packages; read the full pack by pack_id. An unknown fulfillmentOrderId returns an empty array, not an error.

Path parameters

NameTypeRequiredDescription
fulfillmentOrderIdstringYesThe fulfillment order identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Array of pack lookup summaries.

An array of pack-response. Each item has the following fields:

  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/packs/pick/{pickId}

List packs for a pick

Returns lookup summaries of the packs whose items reference a pick.

Behavior. Each entry carries pack_id, tenant, partner_location_id, status and creation_date, never the items or packages; read the full pack by pack_id. An unknown pickId returns an empty array, not an error.

Path parameters

NameTypeRequiredDescription
pickIdstringYesThe pick identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Array of pack lookup summaries.

An array of pack-response. Each item has the following fields:

  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/start

Start a pack

Moves an open pack to processing and sets start_date.

Behavior. The pack must be open and have both a packer and a packing_station, set by Create a pack or Reassign a pack. Neither is validated here. No request body is needed.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Responses

200Pack started. Status is now processing.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not open.
  • the pack has no packer.
  • the pack has no packing_station.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/reassign

Reassign a pack

Assigns or replaces the packer, the packing station, or both on an open pack.

Behavior. Send packer, packing_station or both; whichever is sent is set and the other is left as it is. packer must hold the Fulfillment App's pack permission at the pack's location, and packing_station must exist at that location. Unlike Create a pack, which stores both as sent, an invalid value is rejected here.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: reassign-pack-requestrequired
  • packing_stationstring
    The new packing station. Must exist at the pack's location; must not be blank when sent.
  • packerstring
    The new packer's scoped user key as it appears in Fulfillment App access (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users); a bare email is rejected. The user must have pack permission at the pack's location; their on_duty flag is not checked.

Responses

200Pack reassigned.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not open.
  • neither packer nor packing_station is sent.
  • packer has no pack permission at the pack's location.
  • packing_station does not exist at the pack's location.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/packages

Add a package to the pack

Adds an empty package to a pack and returns its generated package_id.

Behavior. The pack must be open or processing. The package's order_id and fulfillment_order_id must be those of items in the pack; a package belongs to that one fulfillment order, and only its items can be packed into it. Put items into it with Place items into packages.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: add-package-requestrequired
  • order_idstringrequired
    The order the package belongs to. Must match an item in the pack.
  • fulfillment_order_idstringrequired
    The fulfillment order the package belongs to. Must match an item in the pack.
  • package_typestring
    Free-text package type, such as medium_box; there is no catalog of types.
  • dimensiondimension
    Outer dimensions of the package.
  • empty_weightweight
    Weight of the empty package.
  • max_weightweight
    Maximum weight the package type can hold.

Responses

200Package added. The full pack is returned with the new package in the packages array.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not open or processing.
  • order_id or fulfillment_order_id is missing.
  • order_id is not in the pack.
  • fulfillment_order_id is not in the pack.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

put/orders/packs/{packId}/packages/{packageId}

Update a package

Updates a package's physical properties; only the fields sent are changed.

Behavior. The pack must be open or processing, and the package must have no live shipment or active collection; once a shipment exists for the package, update the shipment itself. Only package_type, dimension, empty_weight and max_weight are changed, each when present.

weight cannot be set here or by any other pack operation, so Create a shipment from the pack uses empty_weight as the parcel weight.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.
packageIdstringYesThe package identifier (e.g. `PKG_456`).

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: update-package-requestrequired
  • package_typestring
    Free-text package type, such as medium_box; there is no catalog of types.
  • dimensiondimension
    Outer dimensions of the package.
  • empty_weightweight
    Weight of the empty package.
  • max_weightweight
    Maximum weight the package type can hold.

Responses

200Package updated.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not open or processing.
  • the package has a live shipment.
  • the package has an active collection.
404

One of:

  • no pack exists for packId.
  • the pack has no package packageId.

Need the full machine-readable spec? Download the OpenAPI document →

delete/orders/packs/{packId}/packages/{packageId}

Remove a package

Removes a package from a pack, unpacking its items first.

Behavior. The pack must be open or processing, and the package must have no live shipment or active collection. Its items are unpacked first, reducing quantity_packed on their pack items, then the package is removed. This is the one write on a pack that does not accept Idempotency-Key.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.
packageIdstringYesThe package identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Package removed. The full pack is returned without the deleted package.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not open or processing.
  • the package has a live shipment.
  • the package has an active collection.
404

One of:

  • no pack exists for packId.
  • the pack has no package packageId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/reset-packages

Reset packages on the pack

Discards all packing progress on a pack, leaving one empty default package per fulfillment order.

Behavior. The pack must be open or processing, and no package may have a live shipment or active collection. Every item's quantity_packed returns to 0 and the packages are replaced. No request body is needed.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Responses

200Pack reset with fresh default packages.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not open or processing.
  • a package has a live shipment.
  • a package has an active collection.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/items/pack

Place items into packages

Places quantities of line items into a package, adding to each item's quantity_packed.

What to send. A JSON array, each entry naming an item of the pack by fulfillment_order_id and line_item_id, the target package_id and a quantity. The pack must be processing. The package must exist in the pack, belong to the item's fulfillment order and have no live shipment or active collection.

Selection method. selection_method (SCANNER, CAMERA or MANUAL) is optional and records how the item was identified. It is stored on the pack item and holds the method of the latest call that sent one; omitting it keeps the stored value.

What happens. Each quantity is added to the item's quantity_packed and must not exceed what remains: quantity less quantity_packed. The package's items entry carries line_item_id and quantity. Calls accumulate, and one invalid entry rejects the whole call with nothing saved.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonrequired

An array of pack-item-action-request. Each item has the following fields:

  • line_item_idstringrequired
    The line item to pack. Must be in the pack.
  • fulfillment_order_idstringrequired
    The fulfillment order of the line item.
  • package_idstringrequired
    The package to place the item into. Must belong to the same fulfillment order and have no live shipment.
  • quantityintegerrequired
    Units to place, at most quantity - quantity_packed; more is rejected with 400.
  • selection_methodstring
    How the packer confirmed the item. Optional; omitting it keeps the value recorded by an earlier call.
    Values:SCANNERCAMERAMANUAL

Responses

200Updated pack with incremented quantity_packed values and items added to the package.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not processing.
  • an entry is missing fulfillment_order_id, line_item_id, package_id or quantity; the message names it, for example [0].package_id is required.
  • a quantity is below 1.
  • an entry names a line item that is not in the pack.
  • a quantity exceeds what remains to pack; the message gives the available quantity.
  • package_id is not in the pack.
  • package_id belongs to another fulfillment order.
  • package_id has a live shipment.
  • package_id has an active collection.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/items/unpack

Remove items from packages

Removes quantities of line items from a package, reducing each item's quantity_packed.

What to send. A JSON array, each entry naming the package_id, the line_item_id packed in it, and a quantity no greater than what is packed there. The fulfillment order is taken from the package. The pack must be processing, and the package must have no live shipment or active collection.

What happens. Each quantity is taken off the item's quantity_packed and off the package's entry for it, which is removed at zero. One invalid entry rejects the whole call, and nothing is saved.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonrequired

An array of unpack-item-action-request. Each item has the following fields:

  • line_item_idstringrequired
    The line item to unpack. Must be packed in package_id.
  • package_idstringrequired
    The package to remove the item from. Must be in the pack and have no live shipment.
  • quantityintegerrequired
    Units to remove, at most the item's quantity in this package.

Responses

200Updated pack with decremented quantity_packed values.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not processing.
  • an entry is missing line_item_id, package_id or quantity; the message names it, for example [0].quantity is required.
  • a quantity is below 1.
  • package_id is not in the pack.
  • the package has a live shipment.
  • the package has an active collection.
  • the line item is not packed in that package.
  • a quantity exceeds what is packed in that package; the message gives the packed quantity.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/complete

Complete a pack

Completes a processing pack: fulfills the packed items, asks their shipments to become ready to ship, and creates collections for collection fulfillment orders.

Preconditions.

  • The pack must be processing, have items, and every item must be fully packed.
  • Every package holding non-digital items must already have a shipment, created with Create a shipment from the pack, unless its fulfillment order is a local collection. An item is digital when its order line item has digital set.
  • ship_zone is required when any package has a shipment. It must be the id of a ship zone configured at the pack's location; an unknown id is rejected before anything is fulfilled.
  • Every shipment on the pack must already be booked with the carrier. One still awaiting booking, one whose booking failed or was cancelled, and one whose shipment record cannot be found all block completion.

Fulfillment. For each fulfillment order, the packed quantities are fulfilled under a new fulfillment_id, moving the line items to fulfilled. The pack becomes completed only after every fulfillment order succeeds. If one fails, the pack stays processing and you can call Complete a pack again; the retry fulfills only the items that are not yet fulfilled. Another pack still open on the same fulfillment order does not block completion. No partner_fulfillment_reference is set, because the body accepts only ship_zone, and no new shipment is created. A fully fulfilled line item keeps the shipment_ids that Create a shipment from the pack added.

Webhooks. One FULFILLMENT_ORDER_FULFILL order webhook fires per fulfillment order. Its payload does not carry the new collection_ids, which are saved afterwards without a webhook; read the order to get them.

Shipments. Asynchronously, ship_zone is applied to each shipment and each shipment is asked to become ready to ship; the outcomes arrive through the shipment webhooks. A shipment with no carrier cannot become ready to ship until one is assigned.

Collections. A collection is created for each fulfillment order with delivery_method COLLECTION that carries a customer_collection_address. It starts open with that fulfillment order's packages that hold items and the order's customer, and its id is added to the line items' collection_ids.

Packages that already have an active collection from Create a collection from the pack keep it and are left out. The new collection carries the PDF and ZPL collection labels, and its id is stamped on its packages as collection_id. Collections stay open; mark them ready with Mark collection ready for pickup.

  • A local collection with a customer_collection_address needs no shipment and gets a collection.
  • A remote collection needs a shipment and also gets a collection.
  • A local collection without a customer_collection_address needs no shipment and never gets a collection.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: complete-pack-request
  • ship_zonestring
    The id of a ship zone configured at the pack's location, applied to every shipment in the pack. Required when any package has a shipment_id; an unknown id is rejected with 400.

Responses

200Pack completed. Returns the full pack; its shipments are asked to become ready to ship asynchronously.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not processing.
  • the pack has no items.
  • an item is not fully packed.
  • a package requires shipping but has no shipment.
  • a shipment on the pack is missing or not booked.
  • ship_zone is missing while a package has a shipment.
  • ship_zone is not a ship zone at the pack's location.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/cancel

Cancel a pack

Cancels a pack, cancels the live shipments on its packages, and returns its line items to picked or allocated.

Outcome. The pack becomes cancelled whatever has been packed; unlike a pick, a pack has no stopped state.

  • Each line item returns to picked when its pack item has a pick_id, otherwise to allocated.
  • Every live shipment on the pack's packages is cancelled, and shipment webhooks fire for them.
  • Every active collection on the pack's packages is cancelled with cancellation_reason pack_cancelled.

Reason. reason_code is optional and stored on the pack. The body may be omitted.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: cancel-pack-request
  • reason_codestring
    Free-text reason stored on the pack as cancellation_reason_code.

Responses

200Pack cancelled. Line items reverted, shipments cancelled.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is completed.
  • the pack is already cancelled.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/create-shipment

Create a shipment from the pack

Creates a confirmed shipment for selected packages of a pack, one parcel per package.

What to send. package_ids, at least one. Every package must exist in the pack, hold packed items and have no live shipment; all of them must belong to one order and one fulfillment order.

The pack must be processing, and the fulfillment order must not be a local collection. Use Create a collection from the pack for a local collection.

Carrier. carrier_account.carrier_id, the carrier account id, is optional and must resolve to a carrier account when sent; carrier_account_name is ignored. Without it, the tenant's shipping rules choose the carrier when the shipment is booked.

What happens. The shipment is created confirmed, not as a draft, with one parcel per selected package, in order. The shipment assigns each parcel_id (for example <shipment_id>-1), the parcel description carries the package type, the dimension is copied, and parcel_items carries the SKUs and quantities.

The parcel weight is the package's empty_weight, because no pack operation sets the package weight.

shipment_id is stamped on each package, and an earlier id moves to previous_shipment_ids. The response is the full pack; the shipment id appears as packages[].shipment_id.

Webhook. The order webhook fires with FULFILLMENT_ORDER_SHIP_LINE_ITEMS.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: create-pack-shipment-requestrequired
  • package_idsstring[]required
    The packages to ship together. All must belong to the same order and fulfillment order, each must hold items, and none may have a live shipment.
  • carrier_accountcarrier-account-request
    Carrier account to book with. When omitted, the tenant's shipping rules choose the carrier when the shipment is booked.

Responses

200Shipment created. Returns the full pack; the shipment id appears as packages[].shipment_id.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not processing.
  • package_ids is empty.
  • a package is not in the pack.
  • a package has no packed items.
  • a package has a live shipment.
  • the packages span more than one order or fulfillment order.
  • the fulfillment order is a local collection.
  • carrier_account.carrier_id does not resolve to a carrier account.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/packs/{packId}/create-collection

Create a collection from the pack

Creates an open collection for selected packages of a local collection while packing, so the packer can print its label.

What to send. package_ids, at least one. Every package must exist in the pack and hold packed items. None may have a live shipment or an active collection. All of them must belong to one order and one fulfillment order.

The pack must be processing. The fulfillment order must be a local collection with a customer_collection_address, and must not be on hold. A remote collection needs a shipment instead; use Create a shipment from the pack.

What happens. The collection is created open with the selected packages and the order's customer. It carries two label documents, PDF and ZPL, each printing one page per package; the ZPL link ends in format=zpl. Its id is stamped on each package as collection_id and added to the line items' collection_ids.

The line items are not fulfilled yet. Complete a pack fulfills them and leaves this collection in place. The collection cannot be marked ready until the pack is completed.

Changing a package. The package is locked while the collection is active. Cancel the collection with Cancel a collection, change the package, then create a new collection; collection_id is replaced.

Webhook. None fires; read the collection with Get a collection for its label.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: create-pack-collection-requestrequired
  • package_idsstring[]required
    The packages to hand over together. All must belong to the same order and fulfillment order, each must hold items, and none may have a live shipment or an active collection.

Responses

200Collection created. Returns the full pack; the collection id appears as packages[].collection_id.Schema: pack-response
  • tenantstring
    Tenant identifier.
  • pack_idstring
    Unique pack identifier, prefixed PAK_.
  • partner_location_idstring
    The Carriyo location id of the location the pack belongs to.
  • packing_stationstring
    The packing station the pack is worked at. Omitted until assigned.
  • packerstring
    The assigned packer's scoped user key (global~<email>, or Carriyo-SSO::<provider>~<id> for SSO users). Omitted until assigned.
  • statusstring
    Lifecycle state: open (created, not started), processing (packer building packages). completed and cancelled are terminal.
    Values:openprocessingcompletedcancelled
  • creation_datestringformat: date-time
    When the pack was created.
  • update_datestringformat: date-time
    When the pack was last modified.
  • start_datestringformat: date-time
    When the pack moved to processing. Omitted until started.
  • cancel_datestringformat: date-time
    When the pack was cancelled. Omitted otherwise.
  • cancellation_reason_codestring
    The reason_code sent with Cancel a pack. Omitted when none was given.
  • cancelled_byrequest-source
    The system or actor that cancelled the pack. Omitted unless cancelled.
  • completed_datestringformat: date-time
    When the pack was completed. Omitted until then.
  • itemspack-item[]
    The line items in the pack with their packing progress. Omitted on lookup records.
  • packagespack-package[]
    The packages being built, each holding items from one fulfillment order. Omitted until a package is added, and on lookup records.
  • documentsfulfillment-document[]
    Documents generated for the pack, typically the packing list. Omitted on lookup records and when none were generated.
  • creation_sourcerequest-source
    The system or actor that created the pack.
  • update_sourcerequest-source
    The system or actor that last modified the pack.
400

The request was rejected. One of:

  • the pack is not processing.
  • package_ids is empty.
  • a package is not in the pack.
  • a package has no packed items.
  • a package has an active collection.
  • a package has a live shipment.
  • the packages span more than one order or fulfillment order.
  • the order is not found.
  • the fulfillment order is not a local collection.
  • the fulfillment order has no customer_collection_address.
  • the order or fulfillment order is on hold.
404No pack exists for packId.

Need the full machine-readable spec? Download the OpenAPI document →

Collections

A collection is the customer-pickup record for a click-and-collect fulfillment order: the packages waiting at the collection point and the customer who will collect them, verified by a one-time code at handover. It is created open, is marked ready_to_collect when the packages are at the collection point, and ends collected or cancelled, passing through expired when the customer does not come within the expiry window. Collections are created only through packs. Create a collection from the pack makes one while packing a local collection, and Complete a pack makes one for each collection fulfillment order still without one. A collection is reached through the lookup reads by order, fulfillment order or pack.

Collections emit no webhook, and no collection operation fires the order webhook, collect included; the only message sent is the one-time code email. Poll the collection or the order for changes.

Related: How customer collections are created, verified and expire

11 operations · 0 objects

get/orders/collections/{collectionId}

Get a collection

Returns the full collection, including its packages, customer, verification state and timestamps.

Path parameters

NameTypeRequiredDescription
collectionIdstringYesThe collection identifier (e.g. `COL_123`).

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200The full collection record.Schema: collection-response
  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.
404No collection exists for collectionId.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/collections/order/{orderId}

List collections for an order

Returns lookup summaries of the collections associated with an order.

Behavior. Each entry carries collection_id, tenant, partner_location_id, status and creation_date, never the packages or customer; read the full collection by collection_id. An unknown orderId returns an empty array, not an error.

Path parameters

NameTypeRequiredDescription
orderIdstringYesThe order identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Array of collection lookup summaries.

An array of collection-response. Each item has the following fields:

  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/collections/fulfillment-order/{fulfillmentOrderId}

List collections for a fulfillment order

Returns lookup summaries of the collections associated with a fulfillment order.

Behavior. Each entry carries collection_id, tenant, partner_location_id, status and creation_date, never the packages or customer; read the full collection by collection_id. An unknown fulfillmentOrderId returns an empty array, not an error.

Path parameters

NameTypeRequiredDescription
fulfillmentOrderIdstringYesThe fulfillment order identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Array of collection lookup summaries.

An array of collection-response. Each item has the following fields:

  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/collections/pack/{packId}

List collections for a pack

Returns lookup summaries of the collections created when a pack completed.

Behavior. Each entry carries collection_id, tenant, partner_location_id, status and creation_date, never the packages or customer; read the full collection by collection_id. An unknown packId returns an empty array, not an error.

Path parameters

NameTypeRequiredDescription
packIdstringYesThe pack identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Array of collection lookup summaries.

An array of collection-response. Each item has the following fields:

  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.

Need the full machine-readable spec? Download the OpenAPI document →

get/orders/collections/shipment/{shipmentId}

List collections for a shipment

Returns lookup summaries of the collections linked to a shipment.

Behavior. This read answers an empty array for every shipmentId: a collection is not linked to a shipment when it is created, so none is ever found here. Find a collection through its order, fulfillment order or pack instead.

Path parameters

NameTypeRequiredDescription
shipmentIdstringYesThe shipment identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Array of collection lookup summaries.

An array of collection-response. Each item has the following fields:

  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/collections/{collectionId}/ready

Mark collection ready for pickup

Moves an open collection to ready_to_collect and sets ready_date.

Behavior. The collection must be open, and the pack that created it must be completed, because its items are fulfilled only then. No request body is needed.

Expiry. With customer_collection_auto_expire_enabled on in the order management settings, the collection becomes expired on its own customer_collection_auto_expire_days after ready_date, 7 when unset. With customer_collection_auto_cancel_enabled also on and customer_collection_auto_cancel_days set above 0, an expired collection is then cancelled on its own after that many days, with reason auto_cancelled. Both settings are checked again at the moment of expiry or cancellation, so turning one off in the meantime stops it.

Path parameters

NameTypeRequiredDescription
collectionIdstringYesThe collection identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Responses

200Collection is now ready_to_collect.Schema: collection-response
  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.
400

The request was rejected. One of:

  • the collection is not open.
  • the pack that created the collection is not completed.
404No collection exists for collectionId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/collections/{collectionId}/reopen

Reopen a collection

Returns a ready_to_collect collection to open.

Behavior. The collection must be ready_to_collect. ready_date and the expiry date are cleared, and the verification is reset to pending, discarding any one-time code and its attempt count. No request body is needed.

Path parameters

NameTypeRequiredDescription
collectionIdstringYesThe collection identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Responses

200Collection reopened. Status is now open.Schema: collection-response
  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.
400The request was rejected: the collection is not ready_to_collect.
404No collection exists for collectionId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/collections/{collectionId}/cancel

Cancel a collection

Cancels a collection, clearing its verification state and any pending expiry or auto-cancel schedule.

Outcome. The collection becomes cancelled from open, ready_to_collect or expired. Only the collection changes: its packages and the fulfillment order's line items are untouched, so the line items stay fulfilled.

Replacement. While the pack is still processing, the packages are unlocked and Create a collection from the pack makes a new one. After the pack is completed, no other collection can be created for those line items. Line items close only through Verify OTP and complete handover, once every collection they belong to is collected or cancelled.

Reason. cancellation_reason is optional and stored on the collection. The body may be omitted.

Path parameters

NameTypeRequiredDescription
collectionIdstringYesThe collection identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: cancel-collection-request
  • cancellation_reasonstring
    Free-text reason stored on the collection as cancellation_reason.

Responses

200Collection cancelled.Schema: collection-response
  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.
400

The request was rejected. One of:

  • the collection is already collected.
  • the collection is already cancelled.
404No collection exists for collectionId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/collections/{collectionId}/unexpire

Reverse auto-expiry

Returns an expired collection to ready_to_collect and starts a fresh expiry window.

Behavior. The collection must be expired. Auto-expiry is scheduled again under the same settings as Mark collection ready for pickup. No request body is needed.

Path parameters

NameTypeRequiredDescription
collectionIdstringYesThe collection identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Responses

200Collection is back to ready_to_collect.Schema: collection-response
  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.
400The request was rejected: the collection is not expired.
404No collection exists for collectionId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/collections/{collectionId}/verification/send-otp

Send pickup OTP to customer

Generates a 6-digit one-time code and emails it to the customer.

Behavior. The collection must be ready_to_collect and have a customer.email. The code is valid for 5 minutes, and sending one resets the failed-attempt count to 0; a new code can be sent at most once every 60 seconds. No request body is needed.

Customer without an email. This call is refused. Hand over with Verify OTP and complete handover and override: true, which needs no code sent.

The response carries message, otp_sent_at, otp_expires_at and masked_email, the address with only the first and last characters of its local part shown, so staff can tell the customer where to look and how long they have. Each call sends a new email; Idempotency-Key is not supported here.

Path parameters

NameTypeRequiredDescription
collectionIdstringYesThe collection identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200OTP sent.Schema: send-otp-response
  • messagestring
    Confirmation message.
  • otp_sent_atstringformat: date-time
    When the OTP was sent.
  • otp_expires_atstringformat: date-time
    When the OTP expires, 5 minutes after sending.
  • masked_emailstring
    The customer's email with most characters masked, so staff can tell the customer where to look.
400

The request was rejected. One of:

  • the collection is not ready_to_collect.
  • the customer has no email address.
  • fewer than 60 seconds have passed since the last send; the message says how long to wait.
404No collection exists for collectionId.

Need the full machine-readable spec? Download the OpenAPI document →

post/orders/collections/{collectionId}/verification/verify-and-collect

Verify OTP and complete handover

Verifies the customer's one-time code, or overrides it, and marks the collection collected.

Preconditions. The collection must be ready_to_collect. Verifying a code needs a code sent by Send pickup OTP to customer first; an override does not.

Customer without an email. Send pickup OTP to customer is refused, so use an override to hand over.

Two modes.

  • Code. Send otp. It must match the code sent, within its 5 minutes, and before 5 failed attempts. A wrong code is refused with the remaining attempts, and failed attempts are persisted; after the fifth every verify is refused until a new code is sent, which resets the count. On success verification.status is verified.
  • Override. Send override: true; the code is not checked, even when otp is also sent, and verification.status is overridden. When no code was ever sent, verification.method is NONE. override defaults to false.

What happens. The collection becomes collected with collected_date. The fulfillment order's line items close once every collection they belong to is collected or cancelled; this is evaluated only here, never on cancel.

Path parameters

NameTypeRequiredDescription
collectionIdstringYesThe collection identifier.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Header parameters

NameTypeRequiredDescription
Idempotency-KeystringNoOptional client-generated key that identifies one logical operation. Reuse the same key when retrying with the same payload. Replays the stored response. See https://carriyo.com/docs/api/idempotency/.

Request body

Content type: application/jsonSchema: verify-and-collect-requestrequired
  • otpstring
    The 6-digit OTP the customer received. Required unless override is true, and not checked when it is; 5 wrong attempts invalidate the OTP.
  • overrideboolean
    When true, skips OTP verification, even if otp is also sent, and completes the handover with verification.status set to overridden. Defaults to false.

Responses

200Collection is now collected. Handover complete.Schema: collection-response
  • tenantstring
    Tenant identifier.
  • collection_idstring
    Unique collection identifier, prefixed COL_.
  • statusstring
    Lifecycle state: open (not yet at the collection point), ready_to_collect (customer can be notified and verified), expired (collection window passed; Reverse auto-expiry returns it to ready_to_collect). collected and cancelled are terminal.
    Values:openready_to_collectcollectedexpiredcancelled
  • partner_location_idstring
    The Carriyo location id of the collection point, taken from customer_collection_address.partner_location_id when set and otherwise the fulfilling location. That is the fulfilling location for a local collection and the destination location for a remote collection.
  • addressaddress
    The collection address, copied from the fulfillment order's customer_collection_address.
  • packagescollection-package[]
    The packages to hand over, copied from the pack that created the collection.
  • customercollection-customer
    The customer collecting the order.
  • documentsfulfillment-document[]
    Documents generated for the collection, typically the collection label as PDF and as ZPL, each with one page per package. Omitted on lookup records and on collections created before labels existed.
  • verificationcollection-verification
    Identity verification state. Created by Send pickup OTP to customer, or by an override when no code was sent, and omitted until then; Reopen a collection resets it to pending, Reverse auto-expiry leaves it unchanged.
  • customer_collection_schedulefo-schedule
    The customer's preferred collection window, copied from the fulfillment order.
  • creation_datestringformat: date-time
    When the collection was created.
  • update_datestringformat: date-time
    When the collection was last modified.
  • ready_datestringformat: date-time
    When the collection became ready_to_collect. Omitted until then.
  • collected_datestringformat: date-time
    When the order was handed over. Omitted until then.
  • expiry_datestringformat: date-time
    When the collection expired. Omitted otherwise.
  • cancel_datestringformat: date-time
    When the collection was cancelled. Omitted otherwise.
  • cancellation_reasonstring
    The cancellation_reason sent with Cancel a collection. Omitted when none was given.
  • partner_order_referencestring
    The merchant's own order reference.
  • partner_fulfillment_order_referencestring
    The merchant's own fulfillment order reference.
  • pack_idstring
    The pack that created the collection.
  • notesstring
    Free-text notes on the collection.
  • carriyo_metadatacarriyo-metadata[]
    Custom metadata entries on the collection.
400

The request was rejected. One of:

  • the collection is not ready_to_collect.
  • override is not true and no OTP verification is in progress.
  • otp is missing, expired or wrong, or the 5 attempts are used up.
404No collection exists for collectionId.

Need the full machine-readable spec? Download the OpenAPI document →

Bin Locations

A bin location is the list of bins that hold one SKU at one fulfillment location; there is one record per location and SKU, and picks read it to stamp bin_locations on their items. Records have no lifecycle: they are created, updated, renamed to a new SKU and deleted directly, or upserted in bulk. An unknown record answers 404.

Related: How picks use bin locations

6 operations · 0 objects

post/bin-locations/{partnerLocationId}

Create bin location

Creates the bin location for a SKU at a fulfillment location: the list of bins that hold it.

What to send. sku and bins, the list of bin identifiers that hold it; partner_location_id comes from the path.

Rules. There is one bin location per SKU and location, so a SKU that already has one is refused; call Update bin location or Rename the SKU on a bin-location mapping instead. The location must exist and not be deleted. Returns 201 with the record.

Path parameters

NameTypeRequiredDescription
partnerLocationIdstringYesThe Carriyo location id of the fulfillment location.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: bin-location-requestrequired
  • partner_location_idstring
    The location. Always set from the URL path; a value in the body is overwritten.
  • skustring
    Product SKU, the key of the mapping. Set from the URL path on update; taken from the body on create and bulk import, where a duplicate SKU in one bulk request is rejected.
  • binsstring[]
    Bin identifiers holding the SKU at the location. Replaces the stored list on update.

Responses

201Created.Schema: bin-location-response
  • tenant_idstring
    Tenant identifier.
  • partner_location_idstring
    The location the mapping belongs to.
  • skustring
    Product SKU.
  • binsstring[]
    Bin identifiers holding the SKU at the location.
  • creation_datestringformat: date-time
    When the mapping was created. Preserved by Rename the SKU on a bin-location mapping.
  • update_datestringformat: date-time
    When the mapping was last updated.
  • creation_sourcerequest-source
    The system or actor that created the mapping.
  • update_sourcerequest-source
    The system or actor that last updated the mapping.
400Schema: error-response

The request was rejected. One of:

  • a bin location for sku already exists at partnerLocationId.
  • partnerLocationId is unknown or deleted.
  • errorsstring[]
    Human-readable messages describing why the request failed.
  • statusstring
    The HTTP status code as a string, such as 400 or 404.
  • timestampstringformat: date-time
    When the error was produced, as yyyy-MM-dd'T'HH:mm:ss.SSSXXX.

Need the full machine-readable spec? Download the OpenAPI document →

get/bin-locations/{partnerLocationId}/{sku}

Get bin location by SKU

Returns the bin location for a SKU at a fulfillment location.

Path parameters

NameTypeRequiredDescription
partnerLocationIdstringYesThe Carriyo location id of the fulfillment location.
skustringYesSKU.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Success.Schema: bin-location-response
  • tenant_idstring
    Tenant identifier.
  • partner_location_idstring
    The location the mapping belongs to.
  • skustring
    Product SKU.
  • binsstring[]
    Bin identifiers holding the SKU at the location.
  • creation_datestringformat: date-time
    When the mapping was created. Preserved by Rename the SKU on a bin-location mapping.
  • update_datestringformat: date-time
    When the mapping was last updated.
  • creation_sourcerequest-source
    The system or actor that created the mapping.
  • update_sourcerequest-source
    The system or actor that last updated the mapping.
404No bin location exists for sku at partnerLocationId.Schema: error-response
  • errorsstring[]
    Human-readable messages describing why the request failed.
  • statusstring
    The HTTP status code as a string, such as 400 or 404.
  • timestampstringformat: date-time
    When the error was produced, as yyyy-MM-dd'T'HH:mm:ss.SSSXXX.

Need the full machine-readable spec? Download the OpenAPI document →

put/bin-locations/{partnerLocationId}/{sku}

Update bin location

Replaces the bins of a bin location; any other field sent is ignored.

Behavior. Send bins, the full list of bin identifiers. The SKU and the location come from the path.

Path parameters

NameTypeRequiredDescription
partnerLocationIdstringYesThe Carriyo location id of the fulfillment location.
skustringYesSKU.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: bin-location-requestrequired
  • partner_location_idstring
    The location. Always set from the URL path; a value in the body is overwritten.
  • skustring
    Product SKU, the key of the mapping. Set from the URL path on update; taken from the body on create and bulk import, where a duplicate SKU in one bulk request is rejected.
  • binsstring[]
    Bin identifiers holding the SKU at the location. Replaces the stored list on update.

Responses

200Success.Schema: bin-location-response
  • tenant_idstring
    Tenant identifier.
  • partner_location_idstring
    The location the mapping belongs to.
  • skustring
    Product SKU.
  • binsstring[]
    Bin identifiers holding the SKU at the location.
  • creation_datestringformat: date-time
    When the mapping was created. Preserved by Rename the SKU on a bin-location mapping.
  • update_datestringformat: date-time
    When the mapping was last updated.
  • creation_sourcerequest-source
    The system or actor that created the mapping.
  • update_sourcerequest-source
    The system or actor that last updated the mapping.
404No bin location exists for sku at partnerLocationId.Schema: error-response
  • errorsstring[]
    Human-readable messages describing why the request failed.
  • statusstring
    The HTTP status code as a string, such as 400 or 404.
  • timestampstringformat: date-time
    When the error was produced, as yyyy-MM-dd'T'HH:mm:ss.SSSXXX.

Need the full machine-readable spec? Download the OpenAPI document →

delete/bin-locations/{partnerLocationId}/{sku}

Delete bin location

Deletes the bin location for a SKU at a fulfillment location and returns the deleted record.

Path parameters

NameTypeRequiredDescription
partnerLocationIdstringYesThe Carriyo location id of the fulfillment location.
skustringYesSKU.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.

Responses

200Deleted. Returns the deleted record.Schema: bin-location-response
  • tenant_idstring
    Tenant identifier.
  • partner_location_idstring
    The location the mapping belongs to.
  • skustring
    Product SKU.
  • binsstring[]
    Bin identifiers holding the SKU at the location.
  • creation_datestringformat: date-time
    When the mapping was created. Preserved by Rename the SKU on a bin-location mapping.
  • update_datestringformat: date-time
    When the mapping was last updated.
  • creation_sourcerequest-source
    The system or actor that created the mapping.
  • update_sourcerequest-source
    The system or actor that last updated the mapping.
404No bin location exists for sku at partnerLocationId.Schema: error-response
  • errorsstring[]
    Human-readable messages describing why the request failed.
  • statusstring
    The HTTP status code as a string, such as 400 or 404.
  • timestampstringformat: date-time
    When the error was produced, as yyyy-MM-dd'T'HH:mm:ss.SSSXXX.

Need the full machine-readable spec? Download the OpenAPI document →

put/bin-locations/{partnerLocationId}/{sku}/update-sku

Rename the SKU on a bin-location mapping

Renames the SKU of a bin location to new_sku, keeping its bins.

Path parameters

NameTypeRequiredDescription
partnerLocationIdstringYesThe Carriyo location id of the fulfillment location.
skustringYesCurrent SKU on the mapping.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonSchema: update-sku-requestrequired
  • new_skustringrequired
    The SKU to move the mapping to. Must not already have a mapping at the location; the same SKU as the current one is a no-op.

Responses

200Success.Schema: bin-location-response
  • tenant_idstring
    Tenant identifier.
  • partner_location_idstring
    The location the mapping belongs to.
  • skustring
    Product SKU.
  • binsstring[]
    Bin identifiers holding the SKU at the location.
  • creation_datestringformat: date-time
    When the mapping was created. Preserved by Rename the SKU on a bin-location mapping.
  • update_datestringformat: date-time
    When the mapping was last updated.
  • creation_sourcerequest-source
    The system or actor that created the mapping.
  • update_sourcerequest-source
    The system or actor that last updated the mapping.
400A bin location for new_sku already exists at partnerLocationId.Schema: error-response
  • errorsstring[]
    Human-readable messages describing why the request failed.
  • statusstring
    The HTTP status code as a string, such as 400 or 404.
  • timestampstringformat: date-time
    When the error was produced, as yyyy-MM-dd'T'HH:mm:ss.SSSXXX.
404No bin location exists for sku at partnerLocationId.Schema: error-response
  • errorsstring[]
    Human-readable messages describing why the request failed.
  • statusstring
    The HTTP status code as a string, such as 400 or 404.
  • timestampstringformat: date-time
    When the error was produced, as yyyy-MM-dd'T'HH:mm:ss.SSSXXX.

Need the full machine-readable spec? Download the OpenAPI document →

post/bin-locations/{partnerLocationId}/bulk/import

Bulk import bin locations

Creates or updates up to 200 bin locations at a fulfillment location in one call, reporting the outcome of each row.

What happens. Each row is matched by sku: an existing bin location at the location is updated, otherwise one is created. Rows are processed independently, and a row's failure is reported in its result rather than failing the call, so the call succeeds even when every row is rejected. A sku repeated within the request is rejected per row.

Reading the response. One entry per row, with partner_location_id, sku, result (created, updated or rejected), message and, unless rejected, the saved bin_location.

Path parameters

NameTypeRequiredDescription
partnerLocationIdstringYesThe Carriyo location id of the fulfillment location.

Headers

NameValueRequiredDescription
AuthorizationBearer YOUR-ACCESS-TOKENYesOAuth 2.0 bearer token obtained from `POST /oauth/token`.
x-api-keyYOUR-API-KEYYesYour tenant's API key, issued in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
tenant-idYOUR-TENANT-IDYesYour Carriyo tenant ID, shown in the Carriyo Dashboard. Required on every request except `POST /oauth/token`.
Content-Typeapplication/jsonYesMedia type of the request body.

Request body

Content type: application/jsonrequired

An array of bin-location-request. Each item has the following fields:

  • partner_location_idstring
    The location. Always set from the URL path; a value in the body is overwritten.
  • skustring
    Product SKU, the key of the mapping. Set from the URL path on update; taken from the body on create and bulk import, where a duplicate SKU in one bulk request is rejected.
  • binsstring[]
    Bin identifiers holding the SKU at the location. Replaces the stored list on update.

Responses

200Per-item import outcomes.

An array of bin-location-bulk-response. Each item has the following fields:

  • partner_location_idstring
    The location from the URL path.
  • skustring
    Product SKU from the request item.
  • messagestring
    Detail on the outcome.
  • resultstring
    created for a new mapping, updated for an existing one, rejected on failure (including a duplicate SKU in the same request).
    Values:createdupdatedrejected
  • bin_locationbin-location-response
    The saved mapping. null when result is rejected.
400More than 200 items.Schema: error-response
  • errorsstring[]
    Human-readable messages describing why the request failed.
  • statusstring
    The HTTP status code as a string, such as 400 or 404.
  • timestampstringformat: date-time
    When the error was produced, as yyyy-MM-dd'T'HH:mm:ss.SSSXXX.

Need the full machine-readable spec? Download the OpenAPI document →