Get a promotion code

Requires the PROMOTION_CODE.VIEW permission.

Authentication

X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

versionstringRequiredDefaults to 1
version
resourceIdOrReferencestringRequiredDefaults to
The ID or reference of the resource.

Headers

x-platform-idstringOptional
Platform ID.

Query parameters

expand[]list of stringsOptional
The id fields of the resources that are going to be expanded.

Response

OK
object_typestring or nullOptionalRead-only
idstring or nullOptionalRead-only
codestringOptional
coupon_idstringOptional
statusenum or nullOptional
limited_toobjectOptional
start_atstring or nullOptional
end_atstring or nullOptional
maximum_redemptionsinteger or nullOptional
number_of_redemptionsinteger or nullOptionalRead-only
created_atstring or nullOptionalRead-only
updated_atstring or nullOptionalRead-only

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error