API reference · Price Rule

List Price Rules

GEThttps://api.sandbox.cws.digital/v1/priceRule

Description

Lists the active price rules of your store. A deactivated rule does not appear here.

Parameters

Query parameters

FieldTypeRequiredDescriptionValue
namestringNo

Filters by the rule name. See The name filter is exact.

limitintegerNo

Rules per page. Default 5, maximum 25 — a value above that is reduced to 25, without error.

offsetintegerNo

First record of the page. Default 0.

Business rules

The name filter is exact

name compares the whole name, not a part of it: ?name=Desconto does not find the rule Desconto Atacado.

Send the full name, with the same spaces and accents as registered.

Responses

  • 401

    Missing, malformed or expired token.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request GET \
  --url 'https://api.sandbox.cws.digital/v1/priceRule?limit=5&offset=0' \
  --header 'Authorization: Bearer <access_token>'

Response

Click Try it to see the real response here, or pick a documented example: