Retrieve a coupon
Retrieve a coupon.
Authorizations:Token, JWT
Query Parameters
id required | stringResource identifier |
Responses
200Coupon resource
Response schema:
Coupon resource abandoned_cart | integer or null>= 0 |
abandoned_cart_coupon | boolean |
id | integer>= 0 |
code | string<= 16 characters |
enabled | boolean |
value | number |
type | string |
comment | string |
date_range_begin | string or null |
date_range_end | string or null |
total_range_begin | number or null |
total_range_end | number or null |
uses_limit | integer or null |
uses_limit_per_user | integer or null |
single_use | boolean |
specific_products | boolean |
product_classes | Array of integers |
memberships | Array of integers |
zones | Array of integers |
products | Array of integers |
categories | Array of integers |
401Unauthorized
Response schema:
Unauthorized type | string |
title | string |
detail | string or null |
instance | string or null |
404Resource not found
Response schema:
Resource not found type | string |
title | string |
detail | string or null |
instance | string or null |
500Internal error
Response schema:
Internal error type | string |
title | string |
detail | string or null |
instance | string or null |