Partially change a sale discount by id
Partially change a sale discount by id
Authorizations:Token, JWT
Query Parameters
| id required | integer>= 1 |
Request Body Schema:
The updated Sale Discount resource | apply_to_wholesale | boolean |
| enabled | booleanDefault: trueExample: true |
| value | number |
| date_range_begin | string or null |
| date_range_end | string or null |
| show_in_separate_section | boolean |
| meta_description_type | stringDefault: "A"Enum: "A""C"Example: "A" |
| specific_products | boolean |
| name | string |
| meta_tags | string |
| meta_description | string |
| meta_title | string |
| clean_url | string |
| product_classes | Array of integers |
| memberships | Array of integers |
| products | Array of integers |
| categories | Array of integers |
| og_meta | string or null |
| use_custom_og | boolean |
Responses
200Sale Discount resource updated
Response schema:
Sale Discount resource updated | apply_to_wholesale | boolean |
| enabled | booleanDefault: trueExample: true |
| value | number |
| date_range_begin | string or null |
| date_range_end | string or null |
| show_in_separate_section | boolean |
| meta_description_type | stringDefault: "A"Enum: "A""C"Example: "A" |
| specific_products | boolean |
| name | string |
| meta_tags | string |
| meta_description | string |
| meta_title | string |
| clean_url | string |
| product_classes | Array of integers |
| memberships | Array of integers |
| products | Array of integers |
| categories | Array of integers |
| og_meta | string or null |
| use_custom_og | 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 |