Sales
Authorizations
AuthorizationstringRequired
An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816Responses
200
OK
application/json
default
Error response
application/json
get
/v1/stores/{storeId}/salesAuthorizations
AuthorizationstringRequired
An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816Body
enabledbooleanRequired
namestringRequired
discount_typestring · enumRequiredPossible values:
discount_amountinteger · int32Required
apply_to_product_idsstring · flake-id[]RequiredExample:
411486491630370816apply_to_tag_idsstring · flake-id[]RequiredExample:
411486491630370816minimum_order_valueinteger · int32Required
begins_atstring · date-timeRequired
ends_atnull | stringOptional
Responses
200
OK
application/json
default
Error response
application/json
post
/v1/stores/{storeId}/salesAuthorizations
AuthorizationstringRequired
An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816saleIdstring · flake-idRequiredExample:
411486491630370816Responses
200
OK
application/json
default
Error response
application/json
get
/v1/stores/{storeId}/sales/{saleId}Authorizations
AuthorizationstringRequired
An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816saleIdstring · flake-idRequiredExample:
411486491630370816Responses
204
No Content
default
Error response
application/json
delete
/v1/stores/{storeId}/sales/{saleId}No content
Authorizations
AuthorizationstringRequired
An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816saleIdstring · flake-idRequiredExample:
411486491630370816Body
enabledbooleanOptional
namestringOptional
discount_typestring · enumOptionalPossible values:
discount_amountinteger · int32Optional
apply_to_product_idsstring · flake-id[]OptionalExample:
411486491630370816apply_to_tag_idsstring · flake-id[]OptionalExample:
411486491630370816minimum_order_valueinteger · int32Optional
begins_atstring · date-timeOptional
ends_atnull | stringOptional
Responses
200
OK
application/json
default
Error response
application/json
patch
/v1/stores/{storeId}/sales/{saleId}Last updated
Was this helpful?
