List all custom promotion rules
How to fetch a collection of custom promotion rules via API
To fetch a collection of custom promotion rules, send a GET
request to the /api/custom_promotion_rules
endpoint.
Request
GET https://yourdomain.commercelayer.io/api/custom_promotion_rules
Example
The following request fetches a collection of custom promotion rules:
Remember that when you fetch a list of resources you get paginated result.
Sortable fields
The list of custom promotion rules can be sorted by the following fields:
Attributes
type
id
created_at
updated_at
reference
reference_origin
Filterable fields
The list of custom promotion rules can be filtered by the following fields:
Attributes
type
id
created_at
updated_at
reference
reference_origin
metadata
Relationships
promotion
Last updated