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
chevron-right
200

OK

application/json

Represents a detailed view of a Sale, including configuration and audit information.

idstring · flake-idRequiredExample: 411486491630370816
store_idstring · flake-idRequiredExample: 411486491630370816
enabledbooleanRequired

Indicates whether the sale is enabled.

namestringRequired

The name of the sale.

discount_typestring · enumRequiredPossible values:
discount_amountinteger · int32Required

The discount value. For percent discounts, this represents the percentage multiplied by 10 (e.g., 250 = 25%). For amount discounts, this represents the value in the smallest currency unit (e.g., cents).

apply_to_product_idsstring · flake-id[]Required

A list of product IDs the sale applies to.

Example: 411486491630370816
apply_to_tag_idsstring · flake-id[]Required

A list of tag IDs the sale applies to.

Example: 411486491630370816
minimum_order_valueinteger · int32Required

The minimum order value required to apply the sale, in the smallest currency unit (e.g., cents).

begins_atstring · date-timeRequired

The date and time when the sale begins.

ends_atstring · nullableOptional

The date and time when the sale ends.

created_atstring · date-timeRequired

The date and time when the sale was created.

updated_atstring · nullableOptional

The date and time when the sale was last updated.

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_atstring · nullableOptional
Responses
chevron-right
200

OK

application/json

Represents a detailed view of a Sale, including configuration and audit information.

idstring · flake-idRequiredExample: 411486491630370816
store_idstring · flake-idRequiredExample: 411486491630370816
enabledbooleanRequired

Indicates whether the sale is enabled.

namestringRequired

The name of the sale.

discount_typestring · enumRequiredPossible values:
discount_amountinteger · int32Required

The discount value. For percent discounts, this represents the percentage multiplied by 10 (e.g., 250 = 25%). For amount discounts, this represents the value in the smallest currency unit (e.g., cents).

apply_to_product_idsstring · flake-id[]Required

A list of product IDs the sale applies to.

Example: 411486491630370816
apply_to_tag_idsstring · flake-id[]Required

A list of tag IDs the sale applies to.

Example: 411486491630370816
minimum_order_valueinteger · int32Required

The minimum order value required to apply the sale, in the smallest currency unit (e.g., cents).

begins_atstring · date-timeRequired

The date and time when the sale begins.

ends_atstring · nullableOptional

The date and time when the sale ends.

created_atstring · date-timeRequired

The date and time when the sale was created.

updated_atstring · nullableOptional

The date and time when the sale was last updated.

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
chevron-right
200

OK

application/json

Represents a detailed view of a Sale, including configuration and audit information.

idstring · flake-idRequiredExample: 411486491630370816
store_idstring · flake-idRequiredExample: 411486491630370816
enabledbooleanRequired

Indicates whether the sale is enabled.

namestringRequired

The name of the sale.

discount_typestring · enumRequiredPossible values:
discount_amountinteger · int32Required

The discount value. For percent discounts, this represents the percentage multiplied by 10 (e.g., 250 = 25%). For amount discounts, this represents the value in the smallest currency unit (e.g., cents).

apply_to_product_idsstring · flake-id[]Required

A list of product IDs the sale applies to.

Example: 411486491630370816
apply_to_tag_idsstring · flake-id[]Required

A list of tag IDs the sale applies to.

Example: 411486491630370816
minimum_order_valueinteger · int32Required

The minimum order value required to apply the sale, in the smallest currency unit (e.g., cents).

begins_atstring · date-timeRequired

The date and time when the sale begins.

ends_atstring · nullableOptional

The date and time when the sale ends.

created_atstring · date-timeRequired

The date and time when the sale was created.

updated_atstring · nullableOptional

The date and time when the sale was last updated.

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_atstring · nullableOptional
Responses
chevron-right
200

OK

application/json

Represents a detailed view of a Sale, including configuration and audit information.

idstring · flake-idRequiredExample: 411486491630370816
store_idstring · flake-idRequiredExample: 411486491630370816
enabledbooleanRequired

Indicates whether the sale is enabled.

namestringRequired

The name of the sale.

discount_typestring · enumRequiredPossible values:
discount_amountinteger · int32Required

The discount value. For percent discounts, this represents the percentage multiplied by 10 (e.g., 250 = 25%). For amount discounts, this represents the value in the smallest currency unit (e.g., cents).

apply_to_product_idsstring · flake-id[]Required

A list of product IDs the sale applies to.

Example: 411486491630370816
apply_to_tag_idsstring · flake-id[]Required

A list of tag IDs the sale applies to.

Example: 411486491630370816
minimum_order_valueinteger · int32Required

The minimum order value required to apply the sale, in the smallest currency unit (e.g., cents).

begins_atstring · date-timeRequired

The date and time when the sale begins.

ends_atstring · nullableOptional

The date and time when the sale ends.

created_atstring · date-timeRequired

The date and time when the sale was created.

updated_atstring · nullableOptional

The date and time when the sale was last updated.

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

Last updated

Was this helpful?