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 arrow-up-rightresource.

Retrieving all line items from an order

To retrieve all line items, use the GET /shoppers/me/orders/{orderId}/line-itemsarrow-up-right 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}arrow-up-right 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