For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HomeGuidesAPI ReferenceChangelog
HomeGuidesAPI ReferenceChangelog
  • Getting Started
    • Introduction
    • Authorization
  • Quote and Booking flows
    • Quote Purchase Flows
    • Country list
    • Displaying Prices
    • Options
    • Discounts
    • Taking payments
    • E-mail a quote
    • Medical screening
    • External membership numbers
  • Mid-office travel agent integration
    • Mid-office travel agent integration
  • Travel alerts
    • Travel alerts
LogoLogo
On this page
  • Campaign codes
  • API format specification
  • Partner Discounts
  • API format specification
Quote and Booking flows

Discounts

Was this page helpful?
Previous

Taking Payments

Next
Built with

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:

1input : {
2"campaignCode" : PROMOCODETEST
3}

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:

1"partnerDiscount":
2{
3 "discountPercentage":10,
4 "newTotalAmount":15,
5 "discountAmount":89.00
6}