Getting Order Lines
Getting all Order Lines
This endpoint allows you to get all Order Lines for a specific Order Item in an order:
GET merchants/{merchant_ID}/orders/{order_ID}/items/{item_ID}/lines
Example
This httpie call gets all Order Lines for a specified order:
http \
https://api-sandbox.merchants.zalando.com\
merchants/{merchant_ID}/orders/{order_ID}\
/items/{item_ID}/lines \
Accept:application/vnd.api+json \
"Authorization:Bearer $YOUR_ACCESS_TOKEN"
Query parameters
All the query parameters are optional.
include
Description | This parameter gets additional order data beyond the default Order tier data, such as Order Item and Order Line data. Multiple values must be comma separated. |
---|---|
Type | String |
Possible values | order_lines order_lines.order_line_transitions order_items.order_lines order_items.order_lines.order_line_transitions |
Example | http https://api-sandbox.merchants.zalando.com/merchants/e18e458a-de38-40ee-8119-4130eed7486a/orders/37a585db-2c66-4f3a-b7b2-3429b84c5822/items/182c954e-14e4-4489-9c46-b7417f844da2/lines include=order_lines,order_line_transitions Accept:application/vnd.api+json "Authorization:Bearer $YOUR_ACCESS_TOKEN" |
Getting a Specific Order Line
This endpoint enables you to obtain a specific Order Line from a specific Order Item in an order:
GET merchants/{merchant_ID}/orders/{order_ID}/items/{item_ID}/lines/{line_ID}
Example
An example of getting a specific Order Line:
http \
https://api-sandbox.merchants.zalando.com\
merchants/{merchant_ID}/orders/{order_ID}\
/items/{item_ID}/lines/{line_ID}
Accept:application/vnd.api+json \
"Authorization:Bearer $YOUR_ACCESS_TOKEN"
Query parameters
All the query parameters are optional.
include
Description | This parameter gets additional order data beyond the default Order tier data, such as Order Item and Order Line data. Multiple values must be comma separated. |
---|---|
Type | String |
Possible values | order_lines order_lines.order_line_transitions order_items.order_lines order_items.order_lines.order_line_transitions |
Example | http https://api-sandbox.merchants.zalando.com/merchants/{merchant_ID}/orders/{order_ID}/items/{item_ID}/lines/{line_ID} include=order_lines,order_line_transitions Accept:application/vnd.api+json "Authorization:Bearer $YOUR_ACCESS_TOKEN" |
Additional Resources
- Getting Orders in our Developer Guide.