Get a Promotion History
GEThttps://useast.api.elasticpath.com/v2/promotions/:promotionID/history
Use this endpoint to retrieve a promotion history.
Request
Path Parameters
promotionID stringrequired
The ID of the promotion.
Header Parameters
Authorization Bearerrequired
The Bearer token required to get access to the API.
Responses
- 200
- 401
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
data undefined[]
links object
meta object
{
"data": [
null
],
"links": {
"current": "string",
"first": "string",
"last": "string",
"next": "string",
"prev": "string"
},
"meta": {
"page": {
"current": 0,
"limit": 0,
"offset": 0,
"total": 0
},
"results": {
"total": 0
}
}
}
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/promotions/:promotionID/history' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear