Skip to main content
Server path: /commercetools-discounts | Type: Application | PCID required: Yes

Tools


commercetools_discounts_create_cart_discounts

Creating a Cart Discount produces the CartDiscountCreated Message. Parameters:

commercetools_discounts_create_discount_codes

Creating a Discount Code produces the DiscountCodeCreated Message. Deprecated OAuth 2.0 Scope: manage_orders:{projectKey} Parameters:

commercetools_discounts_create_discount_groups

Creates a DiscountGroup in the Project. This request generates the DiscountGroupCreated Message. If the limit for active Discount Groups has been reached, a MaxDiscountGroupsReached error is returned. Parameters:

commercetools_discounts_create_product_discounts

POST /product-discounts Parameters:

commercetools_discounts_create_product_discounts_matching

This endpoint can be used to simulate which Product Discounts would be applied if a specified Product Variant had a specified Price. Given Product and Product Variant IDs and a Price, this endpoint will return the ProductDiscount that would have been applied to that Price. If a Product Discount could not be found that could be applied to the Price of a Product Variant, a NoMatchingProductDiscountFound error is returned. Parameters:

commercetools_discounts_create_standalone_prices

Creating a Standalone Price produces the StandalonePriceCreated Message. - If the Standalone Price has the same price scope as an existing Standalone Price, a DuplicateStandalonePriceScope error is returned. - If the Standalone Price has overlapping validity periods within the same price scope, a OverlappingStandalonePriceValidity error is returned. A Price without validity period does not conflict with a Price defined for a time period. - If a modification is already in progress for the exact combination of SKU and price scope fields, an ExactLockConflict or ValidityLockConflict error is returned. Parameters:

commercetools_discounts_delete_cart_discounts_by_id

Deleting a Cart Discount produces the CartDiscountDeleted Message. Parameters:

commercetools_discounts_delete_cart_discounts_by_key

Deleting a Cart Discount produces the CartDiscountDeleted Message. Parameters:

commercetools_discounts_delete_discount_codes_by_id

Deleting a Discount Code produces the DiscountCodeDeleted Message. Deprecated OAuth 2.0 Scope: manage_orders:{projectKey} Parameters:

commercetools_discounts_delete_discount_codes_by_key

Deleting a Discount Code produces the DiscountCodeDeleted Message. Deprecated OAuth 2.0 Scope: manage_orders:{projectKey} Parameters:

commercetools_discounts_delete_discount_groups_by_id

Deletes a DiscountGroup in the Project. This request generates the DiscountGroupDeleted Message. If the DiscountGroup is referenced by a CartDiscount, a ReferenceExists error is returned. Parameters:

commercetools_discounts_delete_discount_groups_by_key

Deletes a DiscountGroup in the Project. This request generates the DiscountGroupDeleted Message. If the DiscountGroup is referenced by a CartDiscount, a ReferenceExists error is returned. Parameters:

commercetools_discounts_delete_product_discounts_by_id

DELETE /product-discounts/{ID} Parameters:

commercetools_discounts_delete_product_discounts_by_key

DELETE /product-discounts/key={key} Parameters:

commercetools_discounts_delete_standalone_prices_by_id

Produces the StandalonePriceDeleted Message. Parameters:

commercetools_discounts_delete_standalone_prices_by_key

Produces the StandalonePriceDeleted Message. Parameters:

commercetools_discounts_get_cart_discounts_by_id

GET /cart-discounts/{ID} Parameters:

commercetools_discounts_get_cart_discounts_by_key

GET /cart-discounts/key={key} Parameters:

commercetools_discounts_get_discount_codes_by_id

Deprecated OAuth 2.0 Scope: view_orders:{projectKey} Parameters:

commercetools_discounts_get_discount_codes_by_key

Deprecated OAuth 2.0 Scope: view_orders:{projectKey} Parameters:

commercetools_discounts_get_discount_groups_by_id

Retrieves a DiscountGroup with the provided id. Parameters:

commercetools_discounts_get_discount_groups_by_key

Retrieves a DiscountGroup with the provided key. Parameters:

commercetools_discounts_get_product_discounts_by_id

GET /product-discounts/{ID} Parameters:

commercetools_discounts_get_product_discounts_by_key

GET /product-discounts/key={key} Parameters:

commercetools_discounts_get_standalone_prices_by_id

GET /standalone-prices/{ID} Parameters:

commercetools_discounts_get_standalone_prices_by_key

GET /standalone-prices/key={key} Parameters:

commercetools_discounts_list_cart_discounts

GET /cart-discounts Parameters:

commercetools_discounts_list_discount_codes

Deprecated OAuth 2.0 Scope: view_orders:{projectKey} Parameters:

commercetools_discounts_list_discount_groups

Retrieves all DiscountGroups in the Project. Parameters:

commercetools_discounts_list_product_discounts

GET /product-discounts Parameters:

commercetools_discounts_list_standalone_prices

GET /standalone-prices Parameters:

commercetools_discounts_update_cart_discounts_by_id

POST /cart-discounts/{ID} Parameters:

commercetools_discounts_update_cart_discounts_by_key

POST /cart-discounts/key={key} Parameters:

commercetools_discounts_update_discount_codes_by_id

Deprecated OAuth 2.0 Scope: manage_orders:{projectKey} Parameters:

commercetools_discounts_update_discount_codes_by_key

Deprecated OAuth 2.0 Scope: manage_orders:{projectKey} Parameters:

commercetools_discounts_update_discount_groups_by_id

Updates a DiscountGroup in the Project using one or more update actions. Parameters:

commercetools_discounts_update_discount_groups_by_key

Updates a DiscountGroup in the Project using one or more update actions. Parameters:

commercetools_discounts_update_product_discounts_by_id

POST /product-discounts/{ID} Parameters:

commercetools_discounts_update_product_discounts_by_key

POST /product-discounts/key={key} Parameters:

commercetools_discounts_update_standalone_prices_by_id

If a modification is already in progress for the exact combination of SKU and price scope fields, an ExactLockConflict or ValidityLockConflict error is returned. Parameters:

commercetools_discounts_update_standalone_prices_by_key

If a modification is already in progress for the exact combination of SKU and price scope fields, an ExactLockConflict or ValidityLockConflict error is returned. Parameters: