Skip to main content

Get a Specific Promo Code

This endpoint retrieves a specific promo code by id or code.

info

This operation does not require authentication

HTTP Request

GET /api/v2/promo_code/{id/code}/

Parameters

NameInTypeRequiredDescription
id/codepathstringtrueA unique integer value or the code identifying this promo code

Example Request

const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/promo_code/{id/code}/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codePromo Code

Example responses

{
"id": "integer",
"code": "string",
"name": "string",
"is_valid_now": "boolean",
"valid_from": "string",
"valid_to": "string"
}