---
search:
  tags:
    - 在庫
    - POST
seo:
  description: 指定した行はsaleAmountMinor、その他は円評価額で売上を記録します。価格がない行はsale_amount_required。JPY以外では全行の金額が必要です。saleCurrencyにはitemsが必…
sidebar:
  label: 配送申請の個体を出荷する
  badge: POST
title: 配送申請の個体を出荷する
type: openapi-operation
---
指定した行はsaleAmountMinor、その他は円評価額で売上を記録します。価格がない行はsale_amount_required。JPY以外では全行の金額が必要です。saleCurrencyにはitemsが必要で、commitmentIdはこの配送内で重複不可です。 inventory:readに加え、この操作のスコープと許可したメンバーのinventory.write権限が必要です。

`POST /inventory/shipments/{id}/ship`

**Request body** (`application/json`, required)

- `trackingNumber` (string)
- `saleCurrency` (string)
- `items` (object[])

Request body example:

```json
{
  "trackingNumber": "string",
  "saleCurrency": "string",
  "items": [
    {
      "commitmentId": "4e1ecf7c-8127-4207-92b0-010ff43ff54d",
      "saleAmountMinor": 0
    }
  ]
}
```

**Responses**

- `200` — 成功
- `400` — \`invalid\_request\`。パラメーターが正しくありません。
- `401` — \`invalid\_token\`。トークンがない、期限切れ、または別のリソース向けです。
- `403` — \`insufficient\_scope\`、\`connection\_revoked\`、\`client\_disabled\`、\`forbidden\` のいずれかです。
- `404` — \`not\_found\`
- `409` — 競合・requestIdの流用・受取未確認
- `422` — 現在の状態・対象・値では実行できません。errorと対象IDを確認します。

Response example, 200:

```json
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "orderNumber": "string",
  "status": "reserved",
  "version": 0,
  "destinationLabel": "string",
  "externalRef": "string",
  "trackingNumber": "string",
  "shippedAt": "2019-08-24T14:15:22Z",
  "items": [
    {
      "commitmentId": "4e1ecf7c-8127-4207-92b0-010ff43ff54d",
      "inventoryItemId": "ef1bc09e-447a-46aa-a9d9-d86e3d490831",
      "assetNumber": "string",
      "status": "string",
      "sale": {
        "amountMinor": 0,
        "currency": "string",
        "source": "string"
      }
    }
  ]
}
```
