Products > Pricing Rules > pricingRules
Commerce APIProductsPricing RulespricingRules
pricingRules
GET:pricing_rules.json

Description

Get all or specific pricing rules for a given shop.

This is a typical bulk get endpoint.

Permission bit: "pricing_rules.read"

Topic: Pricing Rules

Arguments

ids: [String!]

List of pricing rule ids. See also: Unique Identifiers

Example: ["pu_EQzGqWoY"]


loose: Boolean

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


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Result

[PricingRule!]

Preview (typescript)

Loading module