Discounts

Campaign codes

nib travel supports configurable campaign codes. (Or promo codes) These need to be configured ahead of time as part of the campaign setup by the nib partnership team for the brand and products in question.

API format specification

The following segment shows how to enable a campaign code to be configured in the system and can be passed via the API:

Copy
Copied
input : {
"campaignCode" : PROMOCODETEST
}

Partner Discounts

nib travel supports partner discounts overrides. These need to be set to override the default configured ones, and apply in addition to the campaign code discounts.

For example, a 5% campaign code with a 5% partner discount override will result in a total 10% partner discount.

The following overrides are supported so long as only 1 option is passed through as part of the API request:

  • discountPercentage - Overrides the percentage amount.
  • newTotalAmount - Overrides the total amount in dollars.
  • discountAmount - Overrides the discount amount in dollars.

API format specification

The following segment shows how to set a partner discount via the Quotes API:

Copy
Copied
"partnerDiscount":
{
    "discountPercentage":10,
    "newTotalAmount":15,
    "discountAmount":89.00
}
Copyright © nib Travel 2022. All right reserved.