Skip to content

Create transfer

POST/admin/v1/stores/{store_id}/inventory/transfers
  • inventory:write
  • Idempotency-Key supported

Draft a transfer: what moves from one location to another. Nothing moves until it ships.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • origin_idstringrequired

    Where the stock leaves from.

  • destination_idstringrequired

    Where it goes; another active location.

  • linesarray of objectsrequired

    What moves, in order (1–250 different items).

  • referencestring · or null

    A waybill number or the store's own reference (up to 100 characters).

  • notestring · or null

    Up to 500 characters.

  • expected_ondate · or null

    When it should arrive (YYYY-MM-DD).

Returns

201 The draft.

Errors

  • 403forbiddenMissing permission.
  • 422validation_failedThe same place twice, an inactive location, an unknown or uncounted item, or a bad quantity.