v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Inventory Transfers

Get inventory transfers

Get inventory transfers<br>取得調撥單

get/pos/inventory_transfers

Query parameters

pageinteger

Page number<br>頁碼

per_pageinteger

Number of results per page<br>每頁顯示數量

sort_by'asc' | 'desc'

Sorting direction<br>排序方式

statuses[]string[]

Inventory transfer statuses<br>調撥單狀態

arrival_statuses[]string[]

Inventory transfer arrival statuses<br>調撥單到貨狀態

origin_idstring

Origin channel ID<br>調出門市 ID

destination_idstring

Destination channel ID<br>調入門市 ID

origin_warehouse_idstring

Origin warehouse ID<br>調出倉庫 ID

destination_warehouse_idstring

Destination warehouse ID<br>調入倉庫 ID

start_datestring

Created after date<br>建立時間起始日

end_datestring

Created before date<br>建立時間終止日

updated_afterstring

Updated at or after date<br>更新時間晚於

numberstring

Inventory transfer number<br>調撥單單號

type'normal' | 'request'

Inventory transfer type<br>調撥單類型

previous_idstring

The last ID from previous request<br>上一筆的調撥單 ID

Response

OK

removed_item_idsstring[]

Removed inventory transfer IDs<br>被移除的調撥單 ID

Example response

{
  "pagination": {
    "current_page": 1,
    "per_page": 24,
    "total_count": 1,
    "total_pages": 1
  },
  "items": [
    {
      "id": "63bbf0c378084c00394f952b",
      "number": "20230109104731510",
      "status": "pending",
      "merchant_id": "63bbf0c378084c00394f952b",
      "type": "normal",
      "items": [
        {
          "id": "63bbf0c378084c00394f952b",
          "quantity": 5,
          "quantity_received": 3
        }
      ],
      "origin_warehouse": {
        "id": "5ee819deab591e00169a4618",
        "name": "預設倉庫"
      },
      "destination_warehouse": {
        "id": "5ee819deab591e00169a4618",
        "name": "預設倉庫"
      },
      "issuer": {
        "id": "61ee85739fdc3f16a1b9aa07",
        "email": "cindy@shopline.com",
        "name": "Cindy",
        "phone": "0987654321",
        "merchant_id": "61ee85739fdc3f16a1b9aa09",
        "status": "active",
        "alias_name": "Cindy_Alias",
        "channel_ids": [
          "61ee85739fdc3f16a1b9aa07",
          "61ee85739fdc3f16a1b9aa08"
        ],
        "type": "Agent",
        "pin_code": "1234"
      },
      "receiver": {
        "id": "61ee85739fdc3f16a1b9aa07",
        "email": "cindy@shopline.com",
        "name": "Cindy",
        "phone": "0987654321",
        "merchant_id": "61ee85739fdc3f16a1b9aa09",
        "status": "active",
        "alias_name": "Cindy_Alias",
        "channel_ids": [
          "61ee85739fdc3f16a1b9aa07",
          "61ee85739fdc3f16a1b9aa08"
        ],
        "type": "Agent",
        "pin_code": "1234"
      },
      "created_at": "2022-01-17T09:04:36.877Z",
      "updated_at": "2022-01-17T09:04:36.877Z"
    }
  ]
}