Download OpenAPI specification:
ロジクラで管理しているデータを外部から利用するためのAPIです。
ロジクラ API は OAuth 2.0 の認可コードフローを使用します。
API を利用するには、https://logikura.com/oauth/applications にアクセスしてアプリケーションを登録し、クライアント ID とクライアントシークレットを取得してください。
登録時に、アプリケーションが必要とするスコープを選択してください。
| スコープ | 説明 |
|---|---|
read |
データの読み取り |
write |
データの作成・更新 |
以下の URL にリダイレクトすると、ロジクラのアクセス許可画面が表示されます。ユーザーが承認すると、認可コードが発行されます。
https://logikura.com/oauth/authorize?response_type=code&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&scope={SCOPE}
| パラメーター | 説明 |
|---|---|
response_type |
code を指定 |
client_id |
アプリケーション登録時に取得したクライアント ID |
redirect_uri |
アプリケーション登録時に設定したリダイレクト URI |
scope |
アプリケーション登録時に指定したスコープを + 区切りで指定(例: read+write) |
ユーザーが承認すると、指定したリダイレクト URI に認可コードが付与されてリダイレクトされます。認可コードの有効期限は 10 分 です。
{REDIRECT_URI}?code={AUTHORIZATION_CODE}
取得した認可コードを使ってアクセストークンとリフレッシュトークンを発行します。
curl --request POST 'https://logikura.com/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=authorization_code&code={AUTHORIZATION_CODE}&client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}&redirect_uri={REDIRECT_URI}'
レスポンス例:
{
"access_token": "...",
"token_type": "Bearer",
"expires_in": 86400,
"refresh_token": "...",
"scope": "read write",
"created_at": 1234567890
}
取得したアクセストークンを Authorization ヘッダーに指定してリクエストを送信します。
Authorization: Bearer {ACCESS_TOKEN}
例:
curl --request GET 'https://api.logikura.com/api/v1/warehouses' \
--header 'Authorization: Bearer {ACCESS_TOKEN}'
アクセストークンの有効期限が切れた場合、リフレッシュトークンを使って新しいアクセストークンを取得できます。
curl --request POST 'https://logikura.com/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=refresh_token&refresh_token={REFRESH_TOKEN}&client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}'
リフレッシュトークンには 90 日間の有効期限 があります。有効期限が切れた場合は、1. 認可コードの取得 から再度実行してアクセストークンを再発行してください。
ロジクラAPIでは1分あたり100回のリクエスト制限を設けています。 リクエスト制限に関する情報はヘッダに含まれています。
| ヘッダ名 | 説明 |
|---|---|
| X-RateLimit-Limit | 1分あたりのリクエスト数 |
| X-RateLimit-Remaining | リクエスト可能数 |
| X-Rate-Limit-Reset | リクエスト数がリセットされるまでの秒数 |
| HTTPステータスコード | 種類 | 原因 |
|---|---|---|
| 401 | Unauthorized | アクセストークンが不正 |
| 404 | Not Found | リソースが存在しません |
| 422 | Unprocessable Entity | 不正なパラメーター |
| 499 | Too Many Requests | リクエスト制限の上限を超えました |
リストを返すAPIに関しては応答にLinkヘッダーを追加します。
<https://api.logikura.com/api/v1/path/to?page=1>; rel="prev",
<https://api.logikura.com/api/v1/path/to?page=3>; rel="next"
{- "products": [
- {
- "id": 1,
- "name": "Tシャツ",
- "master_code": "LOGIKURA",
- "description": "青色",
- "tax_type_id": 1,
- "countryCode": "JP",
- "suppliers": [
- {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
], - "variants": [
- {
- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}
]
}
]
}required | object (商品) |
{- "product": {
- "name": "Tシャツ",
- "master_code": "LOGIKURA",
- "description": "シンプルな無地Tシャツです",
- "tax_type_id": 1,
- "countryCode": "JP",
- "suppliers": [
- {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
]
}
}{- "product": {
- "id": 1,
- "name": "Tシャツ",
- "master_code": "LOGIKURA",
- "description": "青色",
- "tax_type_id": 1,
- "countryCode": "JP",
- "suppliers": [
- {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
], - "variants": [
- {
- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}
]
}
}| id required | integer <integer> (Id) >= 1 Example: 1 商品マスターID |
{- "id": 1,
- "name": "Tシャツ",
- "master_code": "LOGIKURA",
- "description": "青色",
- "tax_type_id": 1,
- "countryCode": "JP",
- "suppliers": [
- {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
], - "variants": [
- {
- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}
]
}| id required | integer <integer> (Id) >= 1 Example: 1 商品マスターID |
required | object (商品) |
{- "product": {
- "name": "Tシャツ",
- "master_code": "LOGIKURA",
- "description": "シンプルな無地Tシャツです",
- "tax_type_id": 1,
- "countryCode": "JP",
- "suppliers": [
- {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
]
}
}{- "product": {
- "id": 1,
- "name": "Tシャツ",
- "master_code": "LOGIKURA",
- "description": "青色",
- "tax_type_id": 1,
- "countryCode": "JP",
- "suppliers": [
- {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
], - "variants": [
- {
- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}
]
}
}{- "product_variants": [
- {
- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}
]
}required | object (種類) |
{- "product_variant": {
- "product_id": 1,
- "name": "tシャツ ロング",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit_id": 1,
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}
}{- "product_varian": {
- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}
}| id required | integer <integer> (Id) >= 1 Example: 1 種類ID |
{- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}required | object (種類) |
{- "product_variant": {
- "id": 1,
- "name": "tシャツ ロング",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit_id": 1,
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}
}{- "product_variant": {
- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}
}{- "receiving_schedules": [
- {
- "receiving_items": [
- {
- "id": 1,
- "receiving_schedule_id": 1,
- "product_variant_id": 1,
- "inventory_id": 1,
- "price": 10,
- "purchase_order_quantity": 1,
- "stocked_quantity": 1,
- "received_date": "2019-01-01",
- "progress_state": "inspecting",
- "lot_code": "string",
- "expiration_date": "2019-08-24"
}
], - "id": 1,
- "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "received_date": "2019-01-03",
- "description": "メモです",
- "updated_at": "2020-12-04T10:09:53.175+09:00",
- "progress_state": "inspecting"
}
]
}{- "receiving_schedule": {
- "receiving_items": [
- {
- "product_variant_id": 1,
- "purchase_order_quantity": 1,
- "price": 10,
- "lot_code": "LOT001",
- "expiration_date": "2025-12-31"
}
], - "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "description": "メモです"
}
}{- "receiving_schedule": {
- "receiving_items": [
- {
- "id": 1,
- "receiving_schedule_id": 1,
- "product_variant_id": 1,
- "inventory_id": 1,
- "price": 10,
- "purchase_order_quantity": 1,
- "stocked_quantity": 1,
- "received_date": "2019-01-01",
- "progress_state": "inspecting",
- "lot_code": "string",
- "expiration_date": "2019-08-24"
}
], - "id": 1,
- "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "received_date": "2019-01-03",
- "description": "メモです",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
}| id required | integer <integer> (Id) >= 1 Example: 1 入荷予定ID |
{- "receiving_schedule": {
- "receiving_items": [
- {
- "id": 1,
- "receiving_schedule_id": 1,
- "product_variant_id": 1,
- "inventory_id": 1,
- "price": 10,
- "purchase_order_quantity": 1,
- "stocked_quantity": 1,
- "received_date": "2019-01-01",
- "progress_state": "inspecting",
- "lot_code": "string",
- "expiration_date": "2019-08-24"
}
], - "id": 1,
- "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "received_date": "2019-01-03",
- "description": "メモです",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
}| id required | integer <integer> (Id) >= 1 Example: 1 入荷予定ID |
required | object |
{- "receiving_schedule": {
- "receiving_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "purchase_order_quantity": 1,
- "price": 10,
- "lot_code": "LOT001",
- "expiration_date": "2025-12-31"
}
], - "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "description": "メモです"
}
}{- "receiving_schedule": {
- "receiving_items": [
- {
- "id": 1,
- "receiving_schedule_id": 1,
- "product_variant_id": 1,
- "inventory_id": 1,
- "price": 10,
- "purchase_order_quantity": 1,
- "stocked_quantity": 1,
- "received_date": "2019-01-01",
- "progress_state": "inspecting",
- "lot_code": "string",
- "expiration_date": "2019-08-24"
}
], - "id": 1,
- "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "received_date": "2019-01-03",
- "description": "メモです",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
}| id required | integer <integer> (Id) >= 1 Example: 1 入荷予定ID |
{- "receiving_schedule": {
- "receiving_items": [
- {
- "id": 1,
- "receiving_schedule_id": 1,
- "product_variant_id": 1,
- "inventory_id": 1,
- "price": 10,
- "purchase_order_quantity": 1,
- "stocked_quantity": 1,
- "received_date": "2019-01-01",
- "progress_state": "inspecting",
- "lot_code": "string",
- "expiration_date": "2019-08-24"
}
], - "id": 1,
- "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "received_date": "2019-01-03",
- "description": "メモです",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
}| id required | integer <integer> (Id) >= 1 Example: 1 入荷履歴ID |
{- "receiving_history": {
- "receiving_items": [
- {
- "id": 1,
- "receiving_schedule_id": 1,
- "product_variant_id": 1,
- "inventory_id": 1,
- "price": 10,
- "purchase_order_quantity": 1,
- "stocked_quantity": 1,
- "received_date": "2019-01-01",
- "progress_state": "inspecting",
- "lot_code": "string",
- "expiration_date": "2019-08-24"
}
], - "id": 1,
- "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "received_date": "2019-01-03",
- "description": "メモです",
- "updated_at": "2020-12-04T10:09:53.175+09:00",
- "progress_state": "completed"
}
}入荷履歴一覧
| received_date_from | string <date> Example: received_date_from=2020-01-01 指定した入荷日以降の履歴が返されます |
| received_date_to | string <date> Example: received_date_to=2020-01-31 指定した入荷日以前の履歴が返されます |
{- "receiving_histories": [
- {
- "receiving_items": [
- {
- "id": 1,
- "receiving_schedule_id": 1,
- "product_variant_id": 1,
- "inventory_id": 1,
- "price": 10,
- "purchase_order_quantity": 1,
- "stocked_quantity": 1,
- "received_date": "2019-01-01",
- "progress_state": "inspecting",
- "lot_code": "string",
- "expiration_date": "2019-08-24"
}
], - "id": 1,
- "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "received_date": "2019-01-03",
- "description": "メモです",
- "updated_at": "2020-12-04T10:09:53.175+09:00",
- "progress_state": "completed"
}
]
}{- "receiving_history": {
- "receiving_items": [
- {
- "product_variant_id": 1,
- "stocked_quantity": 10,
- "price": 10,
- "lot_code": "LOT001",
- "expiration_date": "2025-12-31"
}
], - "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "received_date": "2019-01-01",
- "description": "メモです"
}
}{- "receiving_history": {
- "receiving_items": [
- {
- "id": 1,
- "receiving_schedule_id": 1,
- "product_variant_id": 1,
- "inventory_id": 1,
- "price": 10,
- "purchase_order_quantity": 1,
- "stocked_quantity": 1,
- "received_date": "2019-01-01",
- "progress_state": "inspecting",
- "lot_code": "string",
- "expiration_date": "2019-08-24"
}
], - "id": 1,
- "warehouse_id": 1,
- "supplier_id": 1,
- "shipping_slip_number": "ABCDEFG012345",
- "tracking_number": "1234-5678-9012",
- "box_quantity": 2,
- "due_date": "2019-01-01",
- "received_date": "2019-01-03",
- "description": "メモです",
- "updated_at": "2020-12-04T10:09:53.175+09:00",
- "progress_state": "completed"
}
}{- "shipping_schedules": [
- {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "shipping_quantity": 1,
- "price": 10,
- "note": "メモです",
- "progress_state": "idle",
- "lot_code": "string",
- "expiration_date": "2019-08-24",
- "packing_items": [
- {
- "id": 1,
- "packed_quantity": 1,
- "stock_id": 1
}
]
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 10,
- "note": "メモです"
}
], - "id": "1",
- "code": "qpV0201911071602",
- "due_date": "2019-01-01",
- "tracking_number": "1234-5678-9012",
- "description": "自社ECからの受注",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "consignee_id": "1",
- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "delivery_method": {
- "code": "sagawa_e_hiden_2",
- "name": "佐川e飛伝II"
}, - "progress_state": "idle"
}
]
}required | object or null (受注) |
required | object (出荷予定) |
{- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "shipping_schedule": {
- "shipping_items": [
- {
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "price": 1,
- "note": "メモです",
- "lot_code": "LOT001",
- "expiration_date": "2025-12-31"
}
], - "shipping_composite_items": [
- {
- "composite_item_id": 1,
- "quantity": 1,
- "price": 1,
- "note": "メモです"
}
], - "consignee_id": 1,
- "tracking_number": "1234-5678-9012",
- "due_date": "2019-01-01",
- "description": "メモです",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "delivery_method_code": "sagawa_e_hiden_2",
- "delivery_specification_time": "01"
}
}{- "shipping_schedule": {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "shipping_quantity": 1,
- "price": 10,
- "note": "メモです",
- "progress_state": "idle",
- "lot_code": "string",
- "expiration_date": "2019-08-24",
- "packing_items": [
- {
- "id": 1,
- "packed_quantity": 1,
- "stock_id": 1
}
]
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 10,
- "note": "メモです"
}
], - "id": "1",
- "code": "qpV0201911071602",
- "due_date": "2019-01-01",
- "tracking_number": "1234-5678-9012",
- "description": "自社ECからの受注",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "consignee_id": "1",
- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "delivery_method": {
- "code": "sagawa_e_hiden_2",
- "name": "佐川e飛伝II"
}
}
}| warehouse_id required | integer >= 1 拠点ID |
{- "warehouse_id": 1
}{- "shipping_schedule": {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "shipping_quantity": 1,
- "price": 10,
- "note": "メモです",
- "progress_state": "idle",
- "lot_code": "string",
- "expiration_date": "2019-08-24",
- "packing_items": [
- {
- "id": 1,
- "packed_quantity": 1,
- "stock_id": 1
}
]
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 10,
- "note": "メモです"
}
], - "id": "1",
- "code": "qpV0201911071602",
- "due_date": "2019-01-01",
- "tracking_number": "1234-5678-9012",
- "description": "自社ECからの受注",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "consignee_id": "1",
- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "delivery_method": {
- "code": "sagawa_e_hiden_2",
- "name": "佐川e飛伝II"
}
}
}| id required | integer <integer> (Id) >= 1 Example: 1 出荷予定ID |
{- "shipping_schedule": {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "shipping_quantity": 1,
- "price": 10,
- "note": "メモです",
- "progress_state": "idle",
- "lot_code": "string",
- "expiration_date": "2019-08-24",
- "packing_items": [
- {
- "id": 1,
- "packed_quantity": 1,
- "stock_id": 1
}
]
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 10,
- "note": "メモです"
}
], - "id": "1",
- "code": "qpV0201911071602",
- "due_date": "2019-01-01",
- "tracking_number": "1234-5678-9012",
- "description": "自社ECからの受注",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "consignee_id": "1",
- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "delivery_method": {
- "code": "sagawa_e_hiden_2",
- "name": "佐川e飛伝II"
}
}
}| id required | integer <integer> (Id) >= 1 Example: 1 出荷予定ID |
{- "shipping_schedule": {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "shipping_quantity": 1,
- "price": 10,
- "note": "メモです",
- "progress_state": "idle",
- "lot_code": "string",
- "expiration_date": "2019-08-24",
- "packing_items": [
- {
- "id": 1,
- "packed_quantity": 1,
- "stock_id": 1
}
]
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 10,
- "note": "メモです"
}
], - "id": "1",
- "code": "qpV0201911071602",
- "due_date": "2019-01-01",
- "tracking_number": "1234-5678-9012",
- "description": "自社ECからの受注",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "consignee_id": "1",
- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "delivery_method": {
- "code": "sagawa_e_hiden_2",
- "name": "佐川e飛伝II"
}
}
}| id required | integer <integer> (Id) >= 1 Example: 1 出荷予定ID |
required | object or null (受注) |
required | object (出荷予定) |
{- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "shipping_schedule": {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "price": 1,
- "note": "メモです",
- "lot_code": "LOT001",
- "expiration_date": "2025-12-31"
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 1,
- "note": "メモです"
}
], - "consignee_id": 1,
- "tracking_number": "1234-5678-9012",
- "due_date": "2019-01-01",
- "description": "メモです",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "delivery_method_code": "sagawa_e_hiden_2",
- "delivery_specification_time": "01"
}
}{- "shipping_schedule": {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "shipping_quantity": 1,
- "price": 10,
- "note": "メモです",
- "progress_state": "idle",
- "lot_code": "string",
- "expiration_date": "2019-08-24",
- "packing_items": [
- {
- "id": 1,
- "packed_quantity": 1,
- "stock_id": 1
}
]
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 10,
- "note": "メモです"
}
], - "id": "1",
- "code": "qpV0201911071602",
- "due_date": "2019-01-01",
- "tracking_number": "1234-5678-9012",
- "description": "自社ECからの受注",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "consignee_id": "1",
- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "delivery_method": {
- "code": "sagawa_e_hiden_2",
- "name": "佐川e飛伝II"
}
}
}| id required | integer <integer> (Id) >= 1 Example: 1 出荷履歴ID |
{- "shipping_history": {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "shipping_quantity": 1,
- "price": 10,
- "note": "メモです",
- "progress_state": "idle",
- "lot_code": "string",
- "expiration_date": "2019-08-24",
- "packing_items": [
- {
- "id": 1,
- "packed_quantity": 1,
- "stock_id": 1
}
]
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 10,
- "note": "メモです"
}
], - "id": "1",
- "code": "qpV0201911071602",
- "due_date": "2019-01-01",
- "tracking_number": "1234-5678-9012",
- "description": "自社ECからの受注",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "consignee_id": "1",
- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "delivery_method": {
- "code": "sagawa_e_hiden_2",
- "name": "佐川e飛伝II"
}, - "progress_state": "completed",
- "shipped_date": "2019-01-01"
}
}出荷履歴一覧
| shipped_date_from | string <date> Example: shipped_date_from=2020-01-01 指定した出荷実績日以降の履歴が返されます |
| shipped_date_to | string <date> Example: shipped_date_to=2020-01-31 指定した出荷実績以前の履歴が返されます |
{- "shipping_histories": [
- {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "shipping_quantity": 1,
- "price": 10,
- "note": "メモです",
- "progress_state": "idle",
- "lot_code": "string",
- "expiration_date": "2019-08-24",
- "packing_items": [
- {
- "id": 1,
- "packed_quantity": 1,
- "stock_id": 1
}
]
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 10,
- "note": "メモです"
}
], - "id": "1",
- "code": "qpV0201911071602",
- "due_date": "2019-01-01",
- "tracking_number": "1234-5678-9012",
- "description": "自社ECからの受注",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "consignee_id": "1",
- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "delivery_method": {
- "code": "sagawa_e_hiden_2",
- "name": "佐川e飛伝II"
}, - "progress_state": "completed",
- "shipped_date": "2019-01-01"
}
]
}required | object or null (受注) |
required | object (出荷履歴) |
{- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "shipping_history": {
- "shipping_items": [
- {
- "inventory_id": 1,
- "shipping_quantity": 1,
- "price": 1,
- "note": "メモです",
- "lot_code": "LOT001",
- "expiration_date": "2025-12-31"
}
], - "warehouse_id": 1,
- "consignee_id": 1,
- "tracking_number": "1234-5678-9012",
- "shipped_date": "2019-01-01",
- "description": "メモです"
}
}{- "shipping_history": {
- "shipping_items": [
- {
- "id": 1,
- "product_variant_id": 1,
- "sales_order_quantity": 1,
- "shipping_quantity": 1,
- "price": 10,
- "note": "メモです",
- "progress_state": "idle",
- "lot_code": "string",
- "expiration_date": "2019-08-24",
- "packing_items": [
- {
- "id": 1,
- "packed_quantity": 1,
- "stock_id": 1
}
]
}
], - "shipping_composite_items": [
- {
- "id": 1,
- "composite_item_id": 1,
- "quantity": 1,
- "price": 10,
- "note": "メモです"
}
], - "id": "1",
- "code": "qpV0201911071602",
- "due_date": "2019-01-01",
- "tracking_number": "1234-5678-9012",
- "description": "自社ECからの受注",
- "delivery_slip_note": "割れ物注意",
- "delivery_date": "2019-01-01",
- "picking_note": "同梱物あり",
- "consignee_id": "1",
- "sales_order": {
- "billing_address_id": 1,
- "shop_id": 1,
- "order_number": "A-123456",
- "order_date": "2019-01-01",
- "shipping_cost": 100,
- "sales_commission": 100,
- "other_cost": 100,
- "point": 100,
- "total_price": 100,
- "gift_message": "おめでとうございます",
- "gift_enabled": true,
- "external_service_code": "A-12345",
- "external_service_account": {
- "id": 1,
- "name": "株式会社ロジクラ",
- "uid": "external-uid",
- "shop_id": 1,
- "external_service_name": "スマレジ"
}
}, - "delivery_method": {
- "code": "sagawa_e_hiden_2",
- "name": "佐川e飛伝II"
}, - "progress_state": "completed",
- "shipped_date": "2019-01-01"
}
}在庫一覧
| warehouse_id | integer Example: warehouse_id=1 指定した倉庫の在庫のみが返されます |
{- "inventories": [
- {
- "id": 1,
- "warehouse_id": 1,
- "product_variant": {
- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}, - "quantity": 1000,
- "updated_at": "2020-12-04T10:09:53.175+09:00",
- "will_pick_quantity": 2,
- "not_assigned_quantity": 998
}
]
}required | object (在庫) |
{- "inventory": {
- "warehouse_id": 1,
- "location_id": 1,
- "product_variant_id": 1,
- "quantity": 100
}
}{- "inventory": {
- "id": 1,
- "warehouse_id": 1,
- "product_variant": {
- "id": 1,
- "product_id": 1,
- "name": "Tシャツ",
- "product_code": "LOGIKURA-123",
- "barcode": 2200020050008,
- "sales_price": 200,
- "purchase_price": 100,
- "weight": 100,
- "weight_unit": "g",
- "option1": "赤",
- "option2": "Sサイズ",
- "option3": "綿",
- "order_point": 100,
- "sales_start_date": "2019-01-01"
}, - "quantity": 1000,
- "updated_at": "2020-12-04T10:09:53.175+09:00",
- "will_pick_quantity": 2,
- "not_assigned_quantity": 998
}
}{- "consignees": [
- {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
]
}required | object (出荷先) |
{- "consignee": {
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "consignee_type": "wholesaler"
}
}{- "consignee": {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
}| id required | integer <integer> (Id) >= 1 Example: 1 出荷先ID |
required | object (出荷先) |
{- "consignee": {
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細"
}
}{- "consignee": {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
}{- "suppliers": [
- {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
]
}required | object (出荷先) |
{- "supplier": {
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細"
}
}{- "consignee": {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
}| id required | integer <integer> (Id) >= 1 Example: 1 仕入先ID |
required | object (仕入先) |
{- "supplier": {
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細"
}
}{- "consignee": {
- "id": 1,
- "code": "code",
- "name": "name",
- "email": "text@example.com",
- "phone_number": "0300000000",
- "postal_code": "0000000",
- "address1": "東京都ロジクラ区",
- "address2": "ロジクラ1-1-1",
- "description": "詳細",
- "updated_at": "2020-12-04T10:09:53.175+09:00"
}
}{- "shops": [
- {
- "id": 1,
- "name": "ロジクラショップ",
- "code": "LOGIKURA-SHOP",
- "sales_channel_id": 1,
- "delivery_method_id": 1,
- "email": "test@example.com",
- "phone_number": "03-6362-4084",
- "address1": "東京都港区",
- "address2": "1-1-1 ロジクラビル2F",
- "note": "メモです",
- "tax_included": true,
}
]
}required | object (ショップ) |
{- "shop": {
- "name": "ロジクラショップ",
- "code": "LOGIKURA-SHOP",
- "sales_channel_id": 1,
- "delivery_method_id": 1,
- "email": "test@example.com",
- "phone_number": "03-6362-4084",
- "address1": "東京都港区",
- "address2": "1-1-1 ロジクラビル2F",
- "note": "メモです",
- "tax_included": true
}
}{- "shop": {
- "id": 1,
- "name": "ロジクラショップ",
- "code": "LOGIKURA-SHOP",
- "sales_channel_id": 1,
- "delivery_method_id": 1,
- "email": "test@example.com",
- "phone_number": "03-6362-4084",
- "address1": "東京都港区",
- "address2": "1-1-1 ロジクラビル2F",
- "note": "メモです",
- "tax_included": true,
}
}| external_service_account_id required | integer <integer> >= 1 外部連携アカウントID |
| product_variant_id required | integer <integer> >= 1 種類ID |
| external_service_product_code required | string 連携先コード |
{- "external_service_account_id": 1,
- "product_variant_id": 1,
- "external_service_product_code": "SHOPIFY-PRODUCT-CODE"
}{- "external_service_product_variant": {
- "id": 1,
- "external_service_account_id": 1,
- "product_variant_id": 1,
- "external_service_product_code": "SHOPIFY-PRODUCT-CODE"
}
}| id required | integer <integer> (Id) >= 1 Example: 1 外部連携紐付けID |
| external_service_product_code required | string 連携先コード |
{- "external_service_product_code": "SHOPIFY-PRODUCT-CODE"
}{- "external_service_product_variant": {
- "id": 1,
- "external_service_account_id": 1,
- "product_variant_id": 1,
- "external_service_product_code": "SHOPIFY-PRODUCT-CODE"
}
}| id required | integer <integer> (Id) >= 1 Example: 1 外部連携紐付けID |
{- "external_service_product_variant": {
- "id": 1,
- "external_service_account_id": 1,
- "product_variant_id": 1,
- "external_service_product_code": "SHOPIFY-PRODUCT-CODE"
}
}