List Coupons
post
/2.0/product/list_coupons
List all coupons valid for a specified one-time product or subscription plan
Example Request
preparing...
Usage Notes
- This endpoint is paginated, with a max 500 results per page. Use the
limit
andoffset
parameters to work with pagination
vendor_id
integerThe vendor ID identifies your seller account. This can be found in Developer Tools > Authentication.
>= 1
vendor_auth_code
stringThe vendor auth code is a private API key for authenticating API requests. This key should never be used in client side code or shared publicly. This can be found in Developer Tools > Authentication.
Match pattern:
[0-9a-f]+
product_id
integerThe specific product/plan ID.
>= 1
limit
integerNumber of records to return per page.
>= 1
offset
integerRecord to return results from.
>= 1
is_valid
booleanWhether this coupon is valid (true
) or invalid (false
).
coupon
stringFilter: A specific code.
:::::::