v1
latestOpenAPI 3.1.02026-07-2422707.0 MBApply a media campaign offer code on an invoice
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.
post/v1/invoices/{invoice_id}/campaign_discount/apply
Path parameters
invoice_idstring required
Mandatory Unique 32-character identifier of the guest's invoice.
Request body
Response
200
Example response
{
"discount_applied": "true",
"campaign_id": "518D91A3-676C-4E3B-9537-036BA071F023"
}