Skip to content

Instantly share code, notes, and snippets.

@sugimomoto
Created April 3, 2020 13:34
Show Gist options
  • Save sugimomoto/06e1a35c40b4f7da791b5e8d6b11003b to your computer and use it in GitHub Desktop.
Save sugimomoto/06e1a35c40b4f7da791b5e8d6b11003b to your computer and use it in GitHub Desktop.
ZAICO API Postman Collection
{
"info": {
"_postman_id": "a49944d1-5a6c-4017-9e8b-0f8b09d48eb0",
"name": "ZAICO",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "在庫データ一覧取得",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://web.zaico.co.jp/api/v1/inventories?page=1",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"inventories"
],
"query": [
{
"key": "page",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "在庫データ作成",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"title\": \"CData Facebook\",\r\n \"quantity\": 10,\r\n \"unit\": \"個\",\r\n \"category\": \"ODBC\",\r\n \"state\": \"新品\",\r\n \"place\": \"仙台倉庫\",\r\n \"etc\": \"備考\",\r\n \"code\": \"\",\r\n \"item_image\": \"\",\r\n \"stocktake_attributes\": {\r\n \"checked_at\": \"2018-03-27T09:38:19+09:00\"\r\n },\r\n \"inventory_history\": {\r\n \"memo\": \"変更履歴メモ\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://web.zaico.co.jp/api/v1/inventories",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"inventories"
]
}
},
"response": []
},
{
"name": "在庫データ個別取得",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://web.zaico.co.jp/api/v1/inventories/25868773",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"inventories",
"25868773"
]
}
},
"response": []
},
{
"name": "在庫データ更新",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"title\": \"Update\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://web.zaico.co.jp/api/v1/inventories/25868781",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"inventories",
"25868781"
]
}
},
"response": []
},
{
"name": "在庫データ削除",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "https://web.zaico.co.jp/api/v1/inventories/25868781",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"inventories",
"25868781"
]
}
},
"response": []
},
{
"name": "納品データ一覧取得",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://web.zaico.co.jp/api/v1/packing_slips?page=1",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"packing_slips"
],
"query": [
{
"key": "page",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "納品データ作成",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"num\": \"100\",\r\n \"customer_name\": \"株式会社ZAICO\",\r\n \"status\": \"completed_delivery\",\r\n \"delivery_date\": \"2019-09-01\",\r\n \"deliveries\": [\r\n {\r\n \"inventory_id\": 25868773,\r\n \"quantity\": 1,\r\n \"unit_price\": 100,\r\n \"estimated_delivery_date\": \"2019-09-01\"\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://web.zaico.co.jp/api/v1/packing_slips",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"packing_slips"
]
}
},
"response": []
},
{
"name": "納品データ個別取得",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://web.zaico.co.jp/api/v1/packing_slips/1165370",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"packing_slips",
"1165370"
]
}
},
"response": []
},
{
"name": "納品データ更新",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"customer_name\": \"株式会社ZAICO Update\",\r\n \"status\": \"completed_delivery\",\r\n \"delivery_date\": \"2019-09-01\",\r\n \"deliveries\": [\r\n {\r\n \"inventory_id\": 25868773,\r\n \"quantity\": 1,\r\n \"unit_price\": 110,\r\n \"estimated_delivery_date\": \"2019-09-01\"\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://web.zaico.co.jp/api/v1/packing_slips/1165386",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"packing_slips",
"1165386"
]
}
},
"response": []
},
{
"name": "納品データ削除",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "https://web.zaico.co.jp/api/v1/packing_slips/1165386",
"protocol": "https",
"host": [
"web",
"zaico",
"co",
"jp"
],
"path": [
"api",
"v1",
"packing_slips",
"1165386"
]
}
},
"response": []
}
],
"auth": {
"type": "apikey",
"apikey": [
{
"key": "value",
"value": "Bearer XXXXXXXX",
"type": "string"
},
{
"key": "key",
"value": "Authorization",
"type": "string"
}
]
},
"protocolProfileBehavior": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment