---
title: "Apply Voucher Code"
method: POST
path: "/api/v1/cart/voucher"
tags: ["Cart"]
---

# Apply Voucher Code

`POST /api/v1/cart/voucher`

## Request

- The document declares no server URL.
- Auth: none declared

## Query parameters

- `couponCode` string, required

## Response `200`

OK

- ControllerCartAPIResult
  - `CartTeaser` CartTeaser
    - `DeliveryCodes` string[]
    - `ItemCount` integer
    - `ProductCount` integer
  - `CartValidationResult` ValidationResult
    - `CommonErrorMessageKey` string
    - `HasCommonError` boolean
    - `ItemResults` ValidationItemValidationError[]
      - `ErrorMessageKey` string
      - `ItemID` string
  - `Data` unknown
  - `DataValidationInfo` object
  - `Error` CartResultError
    - `Code` string
    - `Message` string
  - `Success` boolean

## Other responses

- `500`: Internal Server Error

## Changes

> 47 revisions in range; 1 not diffed.

- **2021-02-09** `0417488c9ffd`: 1 info
  - endpoint added
- **2020-06-02** `c9a35308c137`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/i-love-flamingo/apis/flamingo-commerce-api-spec/changes/api/v1/cart/voucher/post.md)

---

[API](https://skmtc.dev/i-love-flamingo/apis/flamingo-commerce-api-spec.md) - [All operations](https://skmtc.dev/i-love-flamingo/apis/flamingo-commerce-api-spec/llms.txt) - [OpenAPI document](https://skmtc.dev/i-love-flamingo/apis/flamingo-commerce-api-spec/revisions/c19ef86b2a0c?raw)
