Skip to main content

Get Rule Promotion Code Exported File

GET 

https://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

Successful response

Schema
    hrefstring

    URL to download the CSV file.

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());
Request Collapse all
Base URL
https://useast.api.elasticpath.com
Parameters
— pathrequired
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.