List all prices
How to fetch a collection of prices via API
To fetch a collection of prices, send a GET
request to the /api/prices
endpoint.
Request
GET https://yourdomain.commercelayer.io/api/prices
Example
The following request fetches a collection of prices:
curl -g -X GET \
'https://yourdomain.commercelayer.io/api/prices/' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token'
Remember that when you fetch a list of resources you get paginated result.
Sortable fields
The list of prices can be sorted by the following fields:
Attributes
currency_code
amount_cents
compare_at_amount_cents
id
created_at
updated_at
reference
reference_origin
Relationships
price_list
sku
Filterable fields
The list of prices can be filtered by the following fields:
Attributes
currency_code
amount_cents
compare_at_amount_cents
id
created_at
updated_at
reference
reference_origin
rules
metadata
Relationships
price_list
sku
price_tiers
attachments
Last updated