Update a volume discount
Update a volume discount.
Authorizations:Token, JWT
Query Parameters
id required | stringResource identifier |
Request Body Schema:
The updated Volume Discount resource value | number |
type | stringDefault: "%" Example: "%" |
subtotal_range_begin | number or null |
membership | integer or null |
zones | Array of integers |
date_range_begin | string or null |
date_range_end | string or null |
Responses
200Volume Discount resource updated
Response schema:
Volume Discount resource updated id | integer>= 0 |
value | number |
type | stringDefault: "%" Example: "%" |
subtotal_range_begin | number or null |
membership | integer or null |
zones | Array of integers |
date_range_begin | string or null |
date_range_end | string or null |
400Invalid input
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 |
422Unprocessable entity
500Internal error
Response schema:
Internal error type | string |
title | string |
detail | string or null |
instance | string or null |