Skip to main content
GET
Get Discount

Get Discount

Returns a single discount code by its ID.

Request

Path Parameters

id
string
required
The unique discount ID

Response

Returns the standard response envelope with the discount under data.discount.
status
integer
HTTP status code
state
string
Result state, e.g. success
message
string
Human-readable message (may be null)
data
object
Wrapper containing the discount

Example Response

Errors

On failure the same envelope is returned with state: "error" and a message:
StatusCondition
401Invalid or missing access token
403App doesn’t have read_discounts scope
404Discount with the specified ID does not exist