Promotion Codes

You can enable a mini cart view in the following requests to show changes to the cart immediately. Find out more in the Views for Cart modifying operations

Prerequisites

Add Promotion Codes

Request

curl -D- -X POST <base_url>/api/v1/carts/<cartId>/promotion-codes/<code> \
    -H 'Authorization: Bearer <ACCESS_TOKEN>'
    -H 'Content-Type: application/json' \
    -d '{
            "priceGroupId": "<priceGroupId>",
            "cultureCode": "<CultureCode>"
        }'

Response

Get Promotion Codes

Request

Response

Remove Promotion Codes

Request

Response

Error Handling

Error
Description

BadRequest (400)

PriceGroup does not exist.

NotFound (404)

Cart not found; Promotion Code not found.

Error Response Example

Error Handling

Last updated

Was this helpful?