Get Rule Promotion Code Exported File
GEThttps://useast.api.elasticpath.com/v2/rule-promotions/:uuid/jobs/:job-uuid/file
Retrieves the exported promotion codes for a rule promotion job in a CSV format.
- The file contains the generated codes along with relevant metadata.
- This endpoint is applicable only for jobs of type
code_export
. - The job must be in a
completed
state before the file can be retrieved.
Request
Path Parameters
uuid stringrequired
The unique identifier of the rule promotion.
job-uuid stringrequired
The unique identifier of the job associated with the file.
Responses
- 200
Successful response
- application/json
- Schema
- Example (auto)
Schema
hrefstring
URL to download the CSV file.
{
"href": "string"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://useast.api.elasticpath.com/v2/rule-promotions/:uuid/jobs/:job-uuid/file");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear