Partially change a coupon by id
Partially change a coupon by id
Authorizations:Token, JWT
Query Parameters
id required | integer>= 1 |
Request Body Schema:
The updated Coupon resource code | string[4 .. 16] characters |
enabled | booleanDefault: true Example: true |
value | number |
type | stringDefault: "%" Example: "%" |
comment | string |
date_range_begin | string or null |
date_range_end | string or null |
total_range_begin | number |
total_range_end | number |
uses_limit | integer>= 0 |
uses_limit_per_user | integer>= 0 |
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 |
abandoned_cart | integer or null>= 0 |
abandoned_cart_coupon | boolean |
Responses
200Coupon resource updated
Response schema:
Coupon resource updated code | string[4 .. 16] characters |
enabled | booleanDefault: true Example: true |
value | number |
type | stringDefault: "%" Example: "%" |
comment | string |
date_range_begin | string or null |
date_range_end | string or null |
total_range_begin | number |
total_range_end | number |
uses_limit | integer>= 0 |
uses_limit_per_user | integer>= 0 |
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 |
abandoned_cart | integer or null>= 0 |
abandoned_cart_coupon | boolean |
id | integer or null>= 1 |
400Invalid input
401Unauthorized
Response schema:
Unauthorized type | stringExample: "https://tools.ietf.org/html/rfc2616#section-10" |
title | stringExample: "An error occurred" |
detail | string or nullExample: "Cannot find entity" |
instance | string or null |
404Resource not found
Response schema:
Resource not found type | stringExample: "https://tools.ietf.org/html/rfc2616#section-10" |
title | stringExample: "An error occurred" |
detail | string or nullExample: "Cannot find entity" |
instance | string or null |
422Unprocessable entity
500Internal error
Response schema:
Internal error type | stringExample: "https://tools.ietf.org/html/rfc2616#section-10" |
title | stringExample: "An error occurred" |
detail | string or nullExample: "Cannot find entity" |
instance | string or null |