| Code | Description |
|---|---|
| 401 | The provided token is invalid |
| 422 | Could not process parameters |
// invalid params POST /api/shopify/inventory_batches inventory_batch[quantity]=55 422 Location must exist and Variant must exist
// invalid token POST /api/shopify/inventory_batches enable_shopify_sync=true&inventory_batch[location_id]=1000&inventory_batch[variant_id]=2000&inventory_batch[quantity]=55&inventory_batch[batch_name]=batch_name&inventory_batch[batch_number]=batch_number&inventory_batch[barcode]=barcode&inventory_batch[invoice_number]=invoice_number&inventory_batch[description]=description&inventory_batch[received_date]=2023-07-03 401 HTTP Token: Access denied.
// valid token and params
POST /api/shopify/inventory_batches
enable_shopify_sync=true&inventory_batch[location_id]=1000&inventory_batch[variant_id]=2000&inventory_batch[quantity]=55&inventory_batch[batch_name]=batch_name&inventory_batch[batch_number]=batch_number&inventory_batch[barcode]=barcode&inventory_batch[invoice_number]=invoice_number&inventory_batch[description]=description&inventory_batch[received_date]=2023-07-03
201
{
"id": 4041,
"quantity": 55,
"expired_at": null,
"expiry_date": null,
"received_date": "2023-07-03 00:00:00 UTC",
"metadata": {
"batch_name": "batch_name",
"batch_number": "batch_number",
"barcode": "barcode",
"invoice_number": "invoice_number",
"description": "description"
},
"created_at": "2023-07-03 05:48:06 UTC",
"updated_at": "2023-07-03 05:48:06 UTC",
"notified_at": null,
"discounted": false,
"location_id": 1000,
"variant_id": 2000
}
| Param name | Description |
|---|---|
|
enable_shopify_sync
optional |
Should enable Shopify sync? Validations:
|
|
inventory_batch
optional |
Validations:
|
|
inventory_batch[location_id]
required |
Shopify location ID Validations:
|
|
inventory_batch[variant_id]
required |
Shopify variant ID Validations:
|
|
inventory_batch[quantity]
required |
Inventory batch quantity Validations:
|
|
inventory_batch[batch_name]
optional |
Inventory batch name Validations:
|
|
inventory_batch[batch_number]
optional |
Inventory batch number Validations:
|
|
inventory_batch[barcode]
optional |
Inventory batch barcode Validations:
|
|
inventory_batch[invoice_number]
optional |
Inventory batch invoice number Validations:
|
|
inventory_batch[description]
optional |
Inventory batch description Validations:
|
|
inventory_batch[received_date]
optional |
Inventory batch received date Validations:
|
| Header name | Description |
|---|---|
|
Authorization required |
Bearer token |