GET /api/shopify/inventory_batch_order_items
List of inventory batch order items based on Shopify order ID and Shopify line item ID

Errors

Code Description
401 The provided token is invalid
422 Could not process parameters

Examples

// invalid params
GET /api/shopify/inventory_batch_order_items?line_item_id=37651
422
param is missing or the value is empty: order_id
// invalid token
GET /api/shopify/inventory_batch_order_items?order_id=17841&line_item_id=97368
401
HTTP Token: Access denied.
// valid token and params
GET /api/shopify/inventory_batch_order_items?order_id=64371&line_item_id=27144
200
[
  {
    "id": 1597,
    "inventory_batch_id": 4047,
    "quantity": 2,
    "created_at": "2023-07-03 05:48:06 UTC",
    "updated_at": "2023-07-03 05:48:06 UTC",
    "order_id": 64371,
    "line_item_id": 27144
  }
]

Params

Param name Description
line_item_id
required

Shopify line item ID

Validations:

  • Must be a Integer

order_id
required

Shopify order ID

Validations:

  • Must be a Integer

Headers

Header name Description
Authorization
required
Bearer token

POST /api/shopify/inventory_batch_order_items
Create inventory batch order item

Errors

Code Description
401 The provided token is invalid
422 Could not process parameters

Examples

// invalid token
POST /api/shopify/inventory_batch_order_items
inventory_batch_order_item[order_id]=70424&inventory_batch_order_item[line_item_id]=23779&inventory_batch_order_item[inventory_batch_id]=4048&inventory_batch_order_item[quantity]=2
401
HTTP Token: Access denied.
// invalid params
POST /api/shopify/inventory_batch_order_items
inventory_batch_order_item[quantity]=2
422
Server error
// valid token and params
POST /api/shopify/inventory_batch_order_items
inventory_batch_order_item[order_id]=50743&inventory_batch_order_item[line_item_id]=63389&inventory_batch_order_item[inventory_batch_id]=4050&inventory_batch_order_item[quantity]=2
201
{
  "id": 1598,
  "inventory_batch_id": 4050,
  "quantity": 2,
  "created_at": "2023-07-03 05:48:06 UTC",
  "updated_at": "2023-07-03 05:48:06 UTC",
  "order_id": 50743,
  "line_item_id": 63389
}

Params

Param name Description
inventory_batch_order_item
optional

Validations:

  • Must be a Hash

inventory_batch_order_item[line_item_id]
required

Shopify line item ID

Validations:

  • Must be a Integer

inventory_batch_order_item[order_id]
required

Shopify order ID

Validations:

  • Must be a Integer

inventory_batch_order_item[inventory_batch_id]
required

Inventory batch ID

Validations:

  • Must be a Integer

inventory_batch_order_item[quanitity]
required

Quantity

Validations:

  • Must be a Integer

Headers

Header name Description
Authorization
required
Bearer token

DELETE /api/shopify/inventory_batch_order_items/:id
Delete inventory batch order item

Errors

Code Description
401 The provided token is invalid
404 Record not found

Examples

// invalid id
DELETE /api/shopify/inventory_batch_order_items/100
404
Record not found
// invalid token
DELETE /api/shopify/inventory_batch_order_items/1593
401
HTTP Token: Access denied.
// valid token and id
DELETE /api/shopify/inventory_batch_order_items/1594
200
Batch removed

Params

Param name Description
id
required

Inventory batch order item ID

Validations:

  • Must be a Integer

Headers

Header name Description
Authorization
required
Bearer token