Square: Transfer order schemas
25 Square schemas with complete fields and constraints.
← Transfer order operations · All schemas
Cancel Transfer Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request to cancel a transfer order, marking any unreceived quantities as canceled |
idempotency_key | string | Required within parent | A unique string that identifies this UpdateTransferOrder request. Keys can be any valid string but must be unique for every UpdateTransferOrder request. Minimum length: 1 |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Version for optimistic concurrency Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
version (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
Cancel Transfer Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response for canceling a transfer order |
errors | array | Optional | Any errors that occurred during the request |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
transfer_order | Model | Optional | Expand Start Transfer Order — response body — transfer order The updated transfer order with status changed to CANCELED |
Referenced models: Get Shift — response body — errors item, Start Transfer Order — response body — transfer order
Create Transfer Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request to create a new transfer order. |
idempotency_key | string | Required within parent | A unique string that identifies this CreateTransferOrder request. Keys can be any valid string but must be unique for every CreateTransferOrder request. Minimum length: 1 |
transfer_order | Model | Required within parent | Expand Create Transfer Order — request body — body transfer order The transfer order to create |
Referenced models: Create Transfer Order — request body — body transfer order
Create Transfer Order — request body — body transfer order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Data for creating a new transfer order to move [CatalogItemVariation](entity:CatalogItemVariation)s between [Location](entity:Location)s. Used with the [CreateTransferOrder](api-endpoint:TransferOrders-CreateTransferOrder) endpoint. |
created_by_team_member_id | JSON | Optional | |
created_by_team_member_id (anyOf 1) | string | Alternative | ID of the [TeamMember](entity:TeamMember) creating this transfer order. Used for tracking and auditing purposes. Maximum length: 64 |
created_by_team_member_id (anyOf 2) | null | Alternative | |
destination_location_id | string | Required within parent | The destination [Location](entity:Location) that will receive the items. Must be an active location in your Square account Maximum length: 64 Minimum length: 1 |
expected_at | JSON | Optional | |
expected_at (anyOf 1) | string | Alternative | Expected transfer date in RFC 3339 format (e.g. "2023-10-01T12:00:00Z"). |
expected_at (anyOf 2) | null | Alternative | |
line_items | JSON | Optional | |
line_items (anyOf 1) | array | Alternative | List of [CatalogItemVariation](entity:CatalogItemVariation)s to transfer, including quantities |
line_items (anyOf 1)[] | Model | Each item | Expand Create Transfer Order — request body — body transfer order line items array item |
line_items (anyOf 2) | null | Alternative | |
notes | JSON | Optional | |
notes (anyOf 1) | string | Alternative | Optional notes about the transfer Maximum length: 4096 |
notes (anyOf 2) | null | Alternative | |
source_location_id | string | Required within parent | The source [Location](entity:Location) that will send the items. Must be an active location in your Square account with sufficient inventory of the requested items. Maximum length: 64 Minimum length: 1 |
tracking_number | JSON | Optional | |
tracking_number (anyOf 1) | string | Alternative | Optional shipment tracking number Maximum length: 64 |
tracking_number (anyOf 2) | null | Alternative |
Referenced models: Create Transfer Order — request body — body transfer order line items array item
Create Transfer Order — request body — body transfer order line items array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Data for creating a new transfer order line item. Each line item specifies a [CatalogItemVariation](entity:CatalogItemVariation) and quantity to transfer. |
item_variation_id | string | Required within parent | ID of the [CatalogItemVariation](entity:CatalogItemVariation) to transfer. Must reference a valid item variation in the [Catalog](api:Catalog). The item variation must be: - Active and available for sale - Enabled for inventory tracking - Available at the source location Maximum length: 64 Minimum length: 1 |
quantity_ordered | string | Required within parent | Total quantity ordered Maximum length: 16 Minimum length: 1 Pattern: ^(0|[1-9]\d*)(\.\d{1,4})?$ |
Create Transfer Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response for creating a transfer order. |
errors | array | Optional | Any errors that occurred during the request |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
transfer_order | Model | Optional | Expand Start Transfer Order — response body — transfer order The created transfer order |
Referenced models: Get Shift — response body — errors item, Start Transfer Order — response body — transfer order
Delete Transfer Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response for deleting a transfer order |
errors | array | Optional | Any errors that occurred during the request |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item
Receive Transfer Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request to record receipt of items for a transfer order |
idempotency_key | string | Required within parent | A unique key to make this request idempotent Minimum length: 1 |
receipt | Model | Required within parent | Expand Receive Transfer Order — request body — body receipt The receipt details |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Version for optimistic concurrency Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
version (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
Referenced models: Receive Transfer Order — request body — body receipt
Receive Transfer Order — request body — body receipt
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The goods receipt details for a transfer order. This object represents a single receipt of goods against a transfer order, tracking: - Which [CatalogItemVariation](entity:CatalogItemVariation)s were received - Quantities received in good condition - Quantities damaged during transit/handling - Quantities canceled during receipt Multiple goods receipts can be created for a single transfer order to handle: - Partial deliveries - Multiple shipments - Split receipts across different dates - Cancellations of specific quantities Each receipt automatically: - Updates the transfer order status - Adjusts received quantities - Updates inventory levels at both source and destination [Location](entity:Location)s |
line_items | JSON | Optional | |
line_items (anyOf 1) | array | Alternative | Line items being received. Each line item specifies: - The item being received - Quantity received in good condition - Quantity received damaged - Quantity canceled Constraints: - Must include at least one line item - Maximum of 1000 line items per receipt - Each line item must reference a valid item from the transfer order - Total of received, damaged, and canceled quantities cannot exceed ordered quantity |
line_items (anyOf 1)[] | Model | Each item | Expand Receive Transfer Order — request body — body receipt line items array item |
line_items (anyOf 2) | null | Alternative |
Referenced models: Receive Transfer Order — request body — body receipt line items array item
Receive Transfer Order — request body — body receipt line items array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A simplified line item for goods receipts in transfer orders |
quantity_canceled | JSON | Optional | |
quantity_canceled (anyOf 1) | string | Alternative | The quantity that was canceled during shipping/handling as a decimal string (e.g. "1.5"). These will be immediately added to inventory in the source location. Maximum length: 16 Minimum length: 1 Pattern: ^(0|[1-9]\d*)(\.\d{1,4})?$ |
quantity_canceled (anyOf 2) | null | Alternative | |
quantity_damaged | JSON | Optional | |
quantity_damaged (anyOf 1) | string | Alternative | The quantity that was damaged during shipping/handling as a decimal string (e.g. "1.5"). These items will be added to the destination [Location](entity:Location)'s inventory with [InventoryState](entity:InventoryState) of WASTE. Maximum length: 16 Minimum length: 1 Pattern: ^(0|[1-9]\d*)(\.\d{1,4})?$ |
quantity_damaged (anyOf 2) | null | Alternative | |
quantity_received | JSON | Optional | |
quantity_received (anyOf 1) | string | Alternative | The quantity received for this line item as a decimal string (e.g. "10.5"). These items will be added to the destination [Location](entity:Location)'s inventory with [InventoryState](entity:InventoryState) of IN_STOCK. Maximum length: 16 Minimum length: 1 Pattern: ^(0|[1-9]\d*)(\.\d{1,4})?$ |
quantity_received (anyOf 2) | null | Alternative | |
transfer_order_line_uid | string | Required within parent | The unique identifier of the Transfer Order line being received Maximum length: 64 |
Receive Transfer Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response for receiving items for a transfer order |
errors | array | Optional | Any errors that occurred during the request |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
transfer_order | Model | Optional | Expand Start Transfer Order — response body — transfer order The updated transfer order |
Referenced models: Get Shift — response body — errors item, Start Transfer Order — response body — transfer order
Retrieve Transfer Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response containing the requested transfer order |
errors | array | Optional | Any errors that occurred during the request |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
transfer_order | Model | Optional | Expand Start Transfer Order — response body — transfer order The requested transfer order |
Referenced models: Get Shift — response body — errors item, Start Transfer Order — response body — transfer order
Search Transfer Orders — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request to search transfer orders |
cursor | string | Optional | Pagination cursor from a previous search response |
limit | integer | Optional | Maximum number of results to return (1-100) Maximum: 100 Minimum: 1 |
query | Model | Optional | Expand Search Transfer Orders — request body — body query The search query |
Referenced models: Search Transfer Orders — request body — body query
Search Transfer Orders — request body — body query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Query parameters for searching transfer orders |
filter | JSON | Optional | |
filter (anyOf 1) | Model | Alternative | Expand Search Transfer Orders — request body — body query filter Filter criteria for searching transfer orders Filter criteria |
filter (anyOf 2) | null | Alternative | |
sort | JSON | Optional | |
sort (anyOf 1) | Model | Alternative | Expand Search Transfer Orders — request body — body query sort Sort configuration for search results Sort configuration |
sort (anyOf 2) | null | Alternative |
Referenced models: Search Transfer Orders — request body — body query filter Filter criteria for searching transfer orders, Search Transfer Orders — request body — body query sort Sort configuration for search results
Search Transfer Orders — request body — body query filter Filter criteria for searching transfer orders
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Filter criteria for searching transfer orders |
destination_location_ids | JSON | Optional | |
destination_location_ids (anyOf 1) | array | Alternative | Filter by destination location IDs |
destination_location_ids (anyOf 1)[] | string | Each item | |
destination_location_ids (anyOf 2) | null | Alternative | |
source_location_ids | JSON | Optional | |
source_location_ids (anyOf 1) | array | Alternative | Filter by source location IDs |
source_location_ids (anyOf 1)[] | string | Each item | |
source_location_ids (anyOf 2) | null | Alternative | |
statuses | JSON | Optional | |
statuses (anyOf 1) | array | Alternative | Filter by order statuses See [TransferOrderStatus](#type-transferorderstatus) for possible values |
statuses (anyOf 1)[] | string | Each item | Status values for transfer orders. Represents the current state of a [TransferOrder](entity:TransferOrder) in its lifecycle from creation to completion. Each status determines what actions are available and how inventory is affected. One of: DRAFT, STARTED, PARTIALLY_RECEIVED, COMPLETED, CANCELED |
statuses (anyOf 2) | null | Alternative |
Search Transfer Orders — request body — body query sort Sort configuration for search results
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Sort configuration for search results |
field | JSON | Optional | |
field (anyOf 1) | string | Alternative | Fields that can be used for sorting [TransferOrder](entity:TransferOrder)s in search results. Used with [SearchTransferOrders](api-endpoint:TransferOrders-SearchTransferOrders) to control the order of returned results. Field to sort by See [TransferOrderSortField](#type-transferordersortfield) for possible values One of: CREATED_AT, UPDATED_AT |
field (anyOf 2) | null | Alternative | |
order | JSON | Optional | |
order (anyOf 1) | string | Alternative | The order (e.g., chronological or alphabetical) in which results from a request are returned. Sort order direction See [SortOrder](#type-sortorder) for possible values One of: DESC, ASC |
order (anyOf 2) | null | Alternative |
Search Transfer Orders — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response for searching transfer orders |
cursor | string | Optional | Pagination cursor for fetching the next page of results |
errors | array | Optional | Any errors that occurred during the request |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
transfer_orders | array | Optional | List of transfer orders matching the search criteria |
transfer_orders[] | Model | Each item | Expand Start Transfer Order — response body — transfer order |
Referenced models: Get Shift — response body — errors item, Start Transfer Order — response body — transfer order
Start Transfer Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request to start a transfer order, changing its status from DRAFT to STARTED. |
idempotency_key | string | Required within parent | A unique string that identifies this UpdateTransferOrder request. Keys can be any valid string but must be unique for every UpdateTransferOrder request. Minimum length: 1 |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Version for optimistic concurrency Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
version (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
Start Transfer Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response for starting a transfer order. |
errors | array | Optional | Any errors that occurred during the request |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
transfer_order | Model | Optional | Expand Start Transfer Order — response body — transfer order The updated transfer order with status changed to STARTED |
Referenced models: Get Shift — response body — errors item, Start Transfer Order — response body — transfer order
Start Transfer Order — response body — transfer order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a transfer order for moving [CatalogItemVariation](entity:CatalogItemVariation)s between [Location](entity:Location)s. Transfer orders track the entire lifecycle of an inventory transfer, including: - What items and quantities are being moved - Source and destination locations - Current [TransferOrderStatus](entity:TransferOrderStatus) - Shipping information and tracking - Which [TeamMember](entity:TeamMember) initiated the transfer This object is commonly used to: - Track [CatalogItemVariation](entity:CatalogItemVariation) movements between [Location](entity:Location)s - Reconcile expected vs received quantities - Monitor transfer progress and shipping status - Audit inventory movement history |
completed_at | string | Optional | Timestamp when the transfer order was completed or canceled, in RFC 3339 format (e.g. "2023-10-01T12:00:00Z"). Read only: true |
created_at | string | Optional | Timestamp when the transfer order was created, in RFC 3339 format. Used for: - Auditing transfer history - Tracking order age - Reporting and analytics Read only: true |
created_by_team_member_id | string | Optional | ID of the [TeamMember](entity:TeamMember) who created this transfer order. This field is not writeable by the Connect V2 API. Read only: true |
destination_location_id | JSON | Optional | |
destination_location_id (anyOf 1) | string | Alternative | The destination [Location](entity:Location) receiving the [CatalogItemVariation](entity:CatalogItemVariation)s. This location must: - Be active in your Square organization - Not be the same as the source location This field is not updatable. |
destination_location_id (anyOf 2) | null | Alternative | |
expected_at | JSON | Optional | |
expected_at (anyOf 1) | string | Alternative | Expected transfer completion date, in RFC 3339 format. Used for: - Planning inventory availability - Scheduling receiving staff - Monitoring transfer timeliness |
expected_at (anyOf 2) | null | Alternative | |
id | string | Optional | Unique system-generated identifier for this transfer order. Use this ID for: - Retrieving transfer order details - Tracking status changes via webhooks - Linking transfers in external systems Read only: true |
line_items | JSON | Optional | |
line_items (anyOf 1) | array | Alternative | List of [CatalogItemVariation](entity:CatalogItemVariation)s being transferred. |
line_items (anyOf 1)[] | Model | Each item | Expand Start Transfer Order — response body — transfer order line items array item |
line_items (anyOf 2) | null | Alternative | |
notes | JSON | Optional | |
notes (anyOf 1) | string | Alternative | Optional notes about the transfer. |
notes (anyOf 2) | null | Alternative | |
source_location_id | JSON | Optional | |
source_location_id (anyOf 1) | string | Alternative | The source [Location](entity:Location) sending the [CatalogItemVariation](entity:CatalogItemVariation)s. This location must: - Be active in your Square organization - Have sufficient inventory for the items being transferred - Not be the same as the destination location This field is not updatable. |
source_location_id (anyOf 2) | null | Alternative | |
status | string | Optional | Status values for transfer orders. Represents the current state of a [TransferOrder](entity:TransferOrder) in its lifecycle from creation to completion. Each status determines what actions are available and how inventory is affected. Current [TransferOrderStatus](entity:TransferOrderStatus) indicating where the order is in its lifecycle. Status transitions follow this progression: 1. [DRAFT](entity:TransferOrderStatus) -> [STARTED](entity:TransferOrderStatus) via [StartTransferOrder](api-endpoint:TransferOrders-StartTransferOrder) 2. [STARTED](entity:TransferOrderStatus) -> [PARTIALLY_RECEIVED](entity:TransferOrderStatus) via [ReceiveTransferOrder](api-endpoint:TransferOrders-ReceiveTransferOrder) 3. [PARTIALLY_RECEIVED](entity:TransferOrderStatus) -> [COMPLETED](entity:TransferOrderStatus) after all items received Orders can be [CANCELED](entity:TransferOrderStatus) from [STARTED](entity:TransferOrderStatus) or [PARTIALLY_RECEIVED](entity:TransferOrderStatus) status. This field is read-only and reflects the current state of the transfer order, and cannot be updated directly. Use the appropriate endpoints (e.g. [StartPurchaseOrder](api-endpoint:TransferOrders-StartTransferOrder), to change the status. See [TransferOrderStatus](#type-transferorderstatus) for possible values Known values: DRAFT, STARTED, PARTIALLY_RECEIVED, COMPLETED, CANCELED Read only: true |
tracking_number | JSON | Optional | |
tracking_number (anyOf 1) | string | Alternative | Shipment tracking number for monitoring transfer progress. |
tracking_number (anyOf 2) | null | Alternative | |
updated_at | string | Optional | Timestamp when the transfer order was last updated, in RFC 3339 format. Updated when: - Order status changes - Items are received - Notes or metadata are modified Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Version for optimistic concurrency control. This is a monotonically increasing integer that changes whenever the transfer order is modified. Use this when calling [UpdateTransferOrder](api-endpoint:TransferOrders-UpdateTransferOrder) and other endpoints to ensure you're not overwriting concurrent changes. Format: int64 |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Start Transfer Order — response body — transfer order line items array item
Start Transfer Order — response body — transfer order line items array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a line item in a transfer order. Each line item tracks a specific [CatalogItemVariation](entity:CatalogItemVariation) being transferred, including ordered quantities and receipt status. |
item_variation_id | string | Required within parent | The required identifier of the [CatalogItemVariation](entity:CatalogItemVariation) being transferred. Must reference a valid catalog item variation that exists in the [Catalog](api:Catalog). Maximum length: 64 Minimum length: 1 Pattern: ^[a-zA-Z0-9_:\-]+$ |
quantity_canceled | string | Optional | Quantity that was canceled. These items will be immediately added to inventory in the source location. This field cannot be updated directly in Create/Update operations, instead use [ReceiveTransferOrder](api-endpoint:TransferOrders-ReceiveTransferOrder) or [CancelTransferOrder](api-endpoint:TransferOrders-CancelTransferOrder). Read only: true |
quantity_damaged | string | Optional | Quantity received in damaged condition. These items are added to the destination [Location](entity:Location)'s inventory with [InventoryState](entity:InventoryState) of WASTE. This field cannot be updated directly in Create/Update operations, instead use [ReceiveTransferOrder](api-endpoint:TransferOrders-ReceiveTransferOrder). Read only: true |
quantity_ordered | string | Required within parent | Total quantity ordered, formatted as a decimal string (e.g. "10 or 10.0000"). Required to be a positive number. To remove a line item, set `remove` to `true` in [UpdateTransferOrder](api-endpoint:TransferOrders-UpdateTransferOrder). Minimum length: 1 Pattern: ^\d*\.?\d*$ |
quantity_pending | string | Optional | Calculated quantity of this line item's yet to be received stock. This is the difference between the total quantity ordered and the sum of quantities received, canceled, and damaged. Read only: true |
quantity_received | string | Optional | Quantity received at destination. These items are added to the destination [Location](entity:Location)'s inventory with [InventoryState](entity:InventoryState) of IN_STOCK. This field cannot be updated directly in Create/Update operations, instead use [ReceiveTransferOrder](api-endpoint:TransferOrders-ReceiveTransferOrder). Read only: true |
uid | string | Optional | Unique system-generated identifier for the line item. Provide when updating/removing a line via [UpdateTransferOrder](api-endpoint:TransferOrders-UpdateTransferOrder). Read only: true |
Update Transfer Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request to update a transfer order |
idempotency_key | string | Required within parent | A unique string that identifies this UpdateTransferOrder request. Keys must contain only alphanumeric characters, dashes and underscores Minimum length: 1 |
transfer_order | Model | Required within parent | Expand Update Transfer Order — request body — body transfer order The transfer order updates to apply |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Version for optimistic concurrency Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
version (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
Referenced models: Update Transfer Order — request body — body transfer order
Update Transfer Order — request body — body transfer order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Data model for updating a transfer order. All fields are optional. |
destination_location_id | JSON | Optional | |
destination_location_id (anyOf 1) | string | Alternative | The destination [Location](entity:Location) that will receive the items. Must be an active location in your Square account. Maximum length: 64 Minimum length: 1 |
destination_location_id (anyOf 2) | null | Alternative | |
expected_at | JSON | Optional | |
expected_at (anyOf 1) | string | Alternative | Expected transfer date in RFC 3339 format (e.g. "2023-10-01T12:00:00Z"). |
expected_at (anyOf 2) | null | Alternative | |
line_items | JSON | Optional | |
line_items (anyOf 1) | array | Alternative | List of items being transferred |
line_items (anyOf 1)[] | Model | Each item | Expand Update Transfer Order — request body — body transfer order line items List of items being transferred item |
line_items (anyOf 2) | null | Alternative | |
notes | JSON | Optional | |
notes (anyOf 1) | string | Alternative | Optional notes about the transfer Maximum length: 4096 |
notes (anyOf 2) | null | Alternative | |
source_location_id | JSON | Optional | |
source_location_id (anyOf 1) | string | Alternative | The source [Location](entity:Location) that will send the items. Must be an active location in your Square account with sufficient inventory of the requested items. Maximum length: 64 Minimum length: 1 |
source_location_id (anyOf 2) | null | Alternative | |
tracking_number | JSON | Optional | |
tracking_number (anyOf 1) | string | Alternative | Shipment tracking number Maximum length: 64 |
tracking_number (anyOf 2) | null | Alternative |
Referenced models: Update Transfer Order — request body — body transfer order line items List of items being transferred item
Update Transfer Order — request body — body transfer order line items List of items being transferred item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a line item update in a transfer order |
item_variation_id | JSON | Optional | |
item_variation_id (anyOf 1) | string | Alternative | Catalog item variation being transferred Required for new line items, but otherwise is not updatable. Maximum length: 64 Minimum length: 1 |
item_variation_id (anyOf 2) | null | Alternative | |
quantity_ordered | JSON | Optional | |
quantity_ordered (anyOf 1) | string | Alternative | Total quantity ordered Maximum length: 16 Minimum length: 1 Pattern: ^(0|[1-9]\d*)(\.\d{1,4})?$ |
quantity_ordered (anyOf 2) | null | Alternative | |
remove | JSON | Optional | |
remove (anyOf 1) | boolean | Alternative | Flag to remove the line item during update. Must include `uid` in removal request |
remove (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | Line item id being updated. Required for updating/removing existing line items, but should not be set for new line items. Maximum length: 64 Minimum length: 1 |
uid (anyOf 2) | null | Alternative |
Update Transfer Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response for updating a transfer order |
errors | array | Optional | Any errors that occurred during the request |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
transfer_order | Model | Optional | Expand Start Transfer Order — response body — transfer order The updated transfer order |
Referenced models: Get Shift — response body — errors item, Start Transfer Order — response body — transfer order