Skip to main content

Create a Promotion Job

POST 

https://useast.api.elasticpath.com/v2/promotions/:promotionID/jobs

Use this endpoint to create an asynchronous job to generate codes and export promotion codes.

Request

Responses

Promotion job created

Authorization: http

name: bearerAuthtype: httpscheme: bearer

Request Collapse all
Base URL
https://useast.api.elasticpath.com
Auth
Parameters
— pathrequired
— headerrequired
Body required
{
  "type": "promotion_job",
  "job_type": "code_generate",
  "name": "string",
  "parameters": {
    "number_of_codes": 0,
    "max_uses_per_code": 0,
    "consume_unit": "per_item",
    "code_prefix": "string",
    "code_length": 0
  }
}
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.