Create a sale discount
Create a sale discount.
Authorizations:Token, JWT
Request Body Schema:
The new Sale Discount resource use_custom_open_graph | boolean |
og_meta | string or null |
apply_to_wholesale | boolean |
enabled | booleanDefault: true Example: 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 |
Responses
201Sale Discount resource created
Response schema:
Sale Discount resource created use_custom_open_graph | boolean |
og_meta | string or null |
apply_to_wholesale | boolean |
id | integer>= 0 |
enabled | booleanDefault: true Example: 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" 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 |
400Invalid input
401Unauthorized
Response schema:
Unauthorized 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 |