Get Order Items
GEThttps://useast.api.elasticpath.com/v2/orders/:orderID/items
Use this endpoint to retrieve order items.
Request
Path Parameters
orderID stringrequired
The ID of the order.
Responses
- 200
- 401
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
data object[]
{
"data": [
{
"type": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": 0,
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"subscription_offering_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"sku": "string",
"unit_price": {
"amount": 0,
"currency": "string",
"includes_tax": true
},
"value": {
"amount": 0,
"currency": "string",
"includes_tax": true
},
"discounts": [
{
"amount": {
"amount": 0,
"currency": "string",
"includes_tax": true
},
"code": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"links": {},
"meta": {
"display_price": {
"with_tax": {
"unit": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"value": {
"amount": 0,
"currency": "string",
"formatted": "string"
}
},
"without_tax": {
"unit": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"value": {
"amount": 0,
"currency": "string",
"formatted": "string"
}
},
"tax": {
"unit": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"value": {
"amount": 0,
"currency": "string",
"formatted": "string"
}
},
"discount": {
"unit": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"value": {
"amount": 0,
"currency": "string",
"formatted": "string"
}
},
"without_discount": {
"unit": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"value": {
"amount": 0,
"currency": "string",
"formatted": "string"
}
},
"discounts": {}
},
"timestamps": {
"created_at": "string"
}
},
"relationships": {
"cart_item": {
"data": {
"type": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
},
"catalog_id": "string",
"catalog_source": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
detail string
status string
title string
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://useast.api.elasticpath.com/v2/orders/:orderID/items' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear