Retrieving line items from an order

Learn how to retrieve line items from an order.

You can retrieve all line items or specific line items from an order using the Orders resource.

Retrieving all line items from an order

To retrieve all line items, use the GET /shoppers/me/orders/{orderId}/line-items resource.

curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/orders/9999999999/line-items' \
--header 'authorization: Basic ***\
...

Retrieving a line item from an order

To retrieve a specific line item, use the GET /shoppers/me/orders/{orderId}/line-items/{lineItemId} resource. The second URI path parameter (lineItemId) specifies the line-item ID.

curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/orders/9999999999/line-items/1111111111?expand=all' \
--header 'authorization: Basic ***\
...

Last updated