> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Receive Transfer Order

> Records receipt of [CatalogItemVariation](entity:CatalogItemVariation)s for a transfer order.

`square.receiveTransferOrder` records receipt of [CatalogItemVariation](entity:CatalogItemVariation)s for a transfer order.

## Example

```ts automations/square-receive-transfer-order.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Receive Square Transfer Order", () => {
  onDashboardRun({ title: "Receive Square Transfer Order" })

  square.receiveTransferOrder({
    transferOrderId: "transfer_order_id",
    idempotencyKey: "EXAMPLE_IDEMPOTENCY_KEY_101",
    receipt: {
      lineItems: [
        {
          transferOrderLineUid: "1",
          quantityReceived: "3",
          quantityDamaged: "1",
          quantityCanceled: "1",
        },
        {
          transferOrderLineUid: "2",
          quantityReceived: "2",
          quantityCanceled: "1",
        },
      ],
    },
    version: BigInt("1753118664873"),
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `INVENTORY_READ` and `INVENTORY_WRITE`.

| Field             | Type                               | Required | Default | Description                                       |
| ----------------- | ---------------------------------- | -------- | ------- | ------------------------------------------------- |
| `transferOrderId` | `string`                           | Yes      | —       | The ID of the transfer order to receive items for |
| `idempotencyKey`  | `string`                           | Yes      | —       | A unique key to make this request idempotent      |
| `receipt`         | `Square.TransferOrderGoodsReceipt` | Yes      | —       | The receipt details                               |
| `version`         | `bigint`                           | No       | —       | Version for optimistic concurrency                |

Use the official [ReceiveTransferOrder reference](https://developer.squareup.com/reference/square/transfer-order-api/receive-transfer-order) for provider field semantics and limits.

## Output

Returns the official `Square.ReceiveTransferOrderResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
