Sales

Get sales associated with a store.

get
Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequiredExample: 411486491630370816
Responses
200

OK

application/json
get
/v1/stores/{storeId}/sales

Create a sale by ID for a store

post
Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequiredExample: 411486491630370816
Body
enabledbooleanRequired
namestringRequired
discount_typestring · enumRequiredPossible values:
discount_amountinteger · int32Required
apply_to_product_idsstring · flake-id[]RequiredExample: 411486491630370816
apply_to_tag_idsstring · flake-id[]RequiredExample: 411486491630370816
minimum_order_valueinteger · int32Required
begins_atstring · date-timeRequired
ends_atnull | stringOptional
Responses
200

OK

application/json
post
/v1/stores/{storeId}/sales

Get a sale by ID for a store

get
Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequiredExample: 411486491630370816
saleIdstring · flake-idRequiredExample: 411486491630370816
Responses
200

OK

application/json
get
/v1/stores/{storeId}/sales/{saleId}

Delete a sale by ID for a store

delete
Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequiredExample: 411486491630370816
saleIdstring · flake-idRequiredExample: 411486491630370816
Responses
delete
/v1/stores/{storeId}/sales/{saleId}

No content

Update a sale by ID for a store

patch
Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequiredExample: 411486491630370816
saleIdstring · flake-idRequiredExample: 411486491630370816
Body
enabledbooleanOptional
namestringOptional
discount_typestring · enumOptionalPossible values:
discount_amountinteger · int32Optional
apply_to_product_idsstring · flake-id[]OptionalExample: 411486491630370816
apply_to_tag_idsstring · flake-id[]OptionalExample: 411486491630370816
minimum_order_valueinteger · int32Optional
begins_atstring · date-timeOptional
ends_atnull | stringOptional
Responses
200

OK

application/json
patch
/v1/stores/{storeId}/sales/{saleId}

Last updated

Was this helpful?