GET:inventory_rules.json
Commerce APIGET:inventory_rules.json

GET:inventory_rules.json

Description

Get all or specific inventory rules for a given shop.

This is a typical bulk get endpoint.

Permission bit: "inventory_rules.read"

Topic: Inventory Rules

Query Parameters

ids: Comma-separated array of String, required

List of inventory rule ids. See also: Unique Identifiers

Example: ?ids=ir_EQzGqWoY,ir_EQzGqWoY


loose: Boolean

When asking for multiple items, allow returning less than was asked (in case some are missing)

Example: ?loose=true


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Response Body

Array of InventoryRule

Response Body Type

Loading module