Skip to main content

Get a discount code

GEThttps://api.radom.com/discount_code/{id}

Authorization

Send your API key in the Authorization header. Scheme: radomToken.

Parameters

idstring<uuid>pathrequired

Unique identifier for the discount code.

Responses

200Discount code retrieved successfully
idstring<uuid>required

Unique identifier for the discount code.

codestringrequired

Code used for customer to get a discount.

productsstring[]required

Product identifiers that the discount code applies to.

modelDiscountCodeModelrequired
modelTypeDiscountCodeModelTyperequired
Allowedfixedpercentage
amountOffnumber<float>required

Discount amount applied to the price.

startsAtstring<date-time>nullable

Optional discount code start date

expiresAtstring<date-time>nullable

Optional discount code end date

createdAtstring<date-time>required

Time at which discount code was created.

updatedAtstring<date-time>required

Time at which discount code was last updated.

isArchivedbooleanrequired

If the discount code is archived

401Unauthorized
errorstringrequired
404Not found
errorstringrequired
500Internal server error
errorstringrequired