Fields
Needs Pricing rules: Read and write.
| Field | Type | Rule |
|---|---|---|
| ordered_idsrequired | list of integers | The id of every rule your store has, each once, first checked first: the ids GET /pricing-rules lists. 1 to 1,000 of them. |
- The whole list, every time. A list that leaves a rule out, names one twice or names one your store does not have is
422 validation_failedonordered_ids, and nothing moves. - Every price is worked out again, since any rule may now be the first to match a product, and the change is announced as
pricing_rule.reordered. - To move one rule, read the list, move its id, and send the list back.
Returns
- 200Every rule, in
data, in the new order. - 422validation_failed: the list is not every rule, each once.
This endpoint can also answer 401 invalid_api_key, 403 license_not_active, 403 product_not_included, 403 insufficient_scope and 429 rate_limited.