Coupons
List coupons
Changed onList the coupons of your account that are not deleted, newest first. Requires the coupons:read scope. Coupons belong to the environment of the key: a ypk_test_ key manages sandbox coupons and a ypk_live_ key production coupons, and a payment uses only coupons of its own environment.
get/v1/coupons
Request
- Base URLhttps://api.yuvexpay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
searchstring
Return the coupons whose code contains this text, case-insensitive.
active'true' | 'false'
Filter by active. Only true or false; any other value returns 400.
pageinteger
Page number for pagination.
limitinteger
Number of items per page (1-100).
Response
Coupons listed.
Example response
{
"coupons": [
{
"code": "BLACK10"
}
]
}Changes
- info
endpoint added
- info