---
title: "Apply a media campaign offer code on an invoice"
method: POST
path: "/v1/invoices/{invoice_id}/campaign_discount/apply"
---

# Apply a media campaign offer code on an invoice

`POST /v1/invoices/{invoice_id}/campaign_discount/apply`

This API helps you to apply a media campaign offer code on an invoice. By doing so, you can provide your guests the option to avail promotional discounts on their invoice when they purchase any services or products from your Customer Mobile Application (CMA) or custom Webstore. For more information on how to configure a media campaign, refer to this Help article.

You must specify appropriate data for the `invoice_id` parameter.

## Path parameters

- `invoice_id` string, required

## Request body

- object
  - `offer_code` string, required — media campaign offer code to be redeemed
  - `center_id` string, required — Center where the redemptions has to happen.
  - `voucher_code` string — Voucher code associated with the campaign. Used when the campaign requires voucher validation.

## Response `200`

200

- object
  - `discount_applied` string
  - `campaign_id` string
  - `error` unknown

## Other responses

- `400` — 400

---

[API](https://skmtc.net/zenoti/apis/zenoti-authentication.md) · [All operations](https://skmtc.net/zenoti/apis/zenoti-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenoti/zenoti-authentication/revisions/e628f892391a/schema)
