Retrieves a list of order consumers for an order.
In the response, items.ref contains the order consumer reference. Use the order consumer reference to interact with a specific order consumer, for example, to retrieve or update it.
Security
BasicAuth
You can expand items in a collection by setting expand=true. This eliminates the need to send multiple follow-up requests (one for the collection and another for each of its items). This also helps you check if the data you intend to create already exists.
Example:expand=true
- Production server APhttps://api-engage-ap.sitecorecloud.io/v2.1/orders/{orderRef}/consumers
- Production server EUhttps://api-engage-eu.sitecorecloud.io/v2.1/orders/{orderRef}/consumers
- Production server JPhttps://api-engage-jpe.sitecorecloud.io/v2.1/orders/{orderRef}/consumers
- Production server UShttps://api-engage-us.sitecorecloud.io/v2.1/orders/{orderRef}/consumers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X GET \
-u '<username>:<password>' \
'https://api-engage-ap.sitecorecloud.io/v2.1/orders/2d7de9df-45a2-45ea-872c-30e45139007d/consumers?expand=true&offset=0&limit=40'Successful operation
The request's URL.
Example:"https://api-engage-eu.sitecorecloud.io/v2.1/orders/cadd106a-feff-42b2-90fb-a6ed136ece51/consumers?offset=0&limit=10"
Response
{ "offset": 0, "limit": 10, "first": { "href": "https://api-engage-eu.sitecorecloud.io/v2.1/orders/111d106a-feff-42b2-90fb-a6ed136ec333/consumers?offset=1&limit=10" }, "last": { "href": "https://api-engage-eu.sitecorecloud.io/v2.1/orders/111d106a-feff-42b2-90fb-a6ed136ec333/consumers?offset=1&limit=10" }, "next": { "href": "https://api-engage-eu.sitecorecloud.io/v2.1/orders/111d106a-feff-42b2-90fb-a6ed136ec333/consumers?offset=1&limit=10" }, "href": "https://api-engage-eu.sitecorecloud.io/v2.1/orders/cadd106a-feff-42b2-90fb-a6ed136ece51/consumers?offset=0&limit=10", "items": [ { … } ] }