Docs

Docs / Data Feed / Pricing rules

For Data Feed stores
Endpoint · Reorder pricing rules

POST/pricing-rules/reorder

Put every rule in a new order, first checked first. Send the whole list.

Needs Pricing rules: Read and writeBase URL https://backend.fflmonkey.com/api/v1Counts 1 toward 120 a minute

Fields

Needs Pricing rules: Read and write.

FieldTypeRule
ordered_idsrequiredlist of integersThe 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_failed on ordered_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.

Example

FFL Monkey Data Feed API, version 1. Questions: Support in your FFL Monkey account, or [email protected].