Get Promotion Code Exported File
GEThttps://useast.api.elasticpath.com/v2/promotions/:promotionID/jobs/:jobID/file
Retrieves exported codes in a CSV format.
Request
Path Parameters
promotionID stringrequired
The unique identifier of a promotion.
jobID stringrequired
The unique identifier of a job associated with the file.
Header Parameters
Authorization Bearerrequired
The Bearer token required to get access to the API.
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
href string
URL to download the CSV file.
{
"href": "string"
}
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/jobs/:jobID/file' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear