Overview
Campaign Targeting lets you deliver personalized promotional pricing to specific customer segments — such as loyalty-tier members or seasonal travelers — with minimal code. You send a campaign code in the order schema, and every <up-from-pricing> component on the page updates with the campaign-specific offer automatically.
How It Works
- Create the campaign in your CRM or campaign system (e.g., "August Special - Gold Membership").
- Contact your Account Manager to configure the campaign on the Flex Pay side.
- Send the campaign code in the
campaignsarray of yourorderInfowhen callingwindow.Uplift.Payments.load(orderInfo). - When a match is found, all
<up-from-pricing>components on the page render with campaign-specific pricing and promotional messaging.
Example Scenario
Partner ABC wants to offer a special promotion to Gold Membership users for flights departing between August 1st and August 15th:
- They create the campaign "August Special - Gold Membership" in their CRM.
- Their Account Manager configures this campaign in Flex Pay.
- When a Gold member browses the site, the partner sends the campaign code in the order schema.
- The customer sees personalized promotional pricing on all
<up-from-pricing>components.
Schema
Include the campaigns array in your orderInfo object. Campaigns are matched in priority order — the highest priority campaign takes precedence.
"campaigns": [
{
"code": "ABC",
"order": 1
},
{
"code": "BCD",
"order": null
},
{
"code": "CCC",
"order": 2
},
{
"code": "DDD",
"order": null
}
]
Priority Rules
order value |
Behavior |
|---|---|
Integer (e.g., 1, 2) |
Explicit priority — lower number = higher priority |
null |
Evaluated after all explicitly ordered campaigns, in array order |
In the example above, the evaluation order is: ABC (1st) → CCC (2nd) → BCD (3rd) → DDD (4th).
A customer can belong to multiple campaigns simultaneously. Flex Pay evaluates them in priority order and applies the first matching campaign — no additional logic required on your side.
Combining with Promotional Financing
Campaign Targeting works directly with <up-from-pricing>. When a campaign match is found and the campaign includes promotional terms (e.g., 0% APR), the component displays the corresponding badge automatically.
<up-from-pricing
price-value="120000"
price-type="departure_option"
></up-from-pricing>
If you need to suppress promo badges for a specific component, set hide-promos="true".
See Promotional Financing for details on promo codes and badge configuration.
Reference
For the full campaigns schema definition and additional examples, see the Campaign Object documentation.