이 콘텐츠는 아직 해당 언어로 이용하실 수 없습니다.

API delivery for Loyalty Earn

With Loyalty Earn, you can reconcile your customers’ loyalty rewards with your program. You can also use the data to provide an up-to-date view of pending and awarded points, analyze program trends, and create reports for your stakeholders.

Delivery options

Our Loyalty Earn offering allows you to retrieve data via a pull mechanism, which provides detailed itinerary data to support:

  • Data analysis
  • Award points to customers
  • Help desk investigations

This service consists of two HTTP GET endpoints that allow you to:

  • See when data was last updated. Loyalty points are updated on a daily basis.
  • Create a list of pending or rewarded loyalty currency in a specified time range using the transaction_date_start, transaction_date_end, and membership_id or itinerary_id variables

For details on the authentication process, see API setup.

Available fields

The tables below list the fields, including any nested objects, available through our push and pull delivery methods.

Field nameDefinitionExample
itinerary_idThe itinerary number or point of sale order reference number.72622069245694
transaction_typeThe type of transaction recorded.Possible values:
PURCHASE
AWARD
MODIFICATION
CANCEL
transaction_date*The date a booking was last modified. This is the same as the book date if the booking is never updated. Represented in ISO 8601 date format (YYYY-MM-DD).2023-02-05
transaction_datetime*The date and time a booking was last modified. If no updates have been made, this value is the same as the book_date.2023-10-21T00:00:00.000Z
booking_itemObject representing individual booking elements. See the booking_item table for nested items.
package_indicatorWhether the booking item is part of a package (such as flight + hotel).Possible values:
Part of package
Standalone
Unknown
currency_codeCurrency in which the booking was paid, represented in standard International Bank Account Number (IBAN) currency code format.USD
gross_booking_valueThe gross booking value (GBV), or total booking amount including taxes and fees, in the currency used to pay.694.89
base_priceThe amount charged to the customer before taxes, fees, and adjustments, forming the basis for awarded points. Shown in the currency used to pay.154.78
award_date*Date at which points will be awarded, represented in ISO 8601 date format (YYYY-MM-DD).2023-03-14
point_definitionIndicator of a campaign or promotion that changes your program’s base earning model.Partner_2X_promo
pending_pointsNumber of points earned but not yet awarded.Broken down as:
total: –100.11
base: –90.01
bonus: –10.1
awarded_pointsNumber of points awarded for the transaction.Broken down as:
total: 100.11
base: 90.01
bonus: 10.1
program_nameName of the loyalty program.Rewards
memberObject representing customer information. See the member table for nested items. 
|

booking_item

These fields define the details of each item in a booking.

Field nameDefinitionExample
idBooking item identifier.1329922272
booking_date*The date a booking was initially made, represented in ISO 8601 date format (YYYY-MM-DD).2023-02-05
product_lineThe type of business the booking item falls under.Possible values:
Air
Car
Cruise
Destination services
Insurance
Lodging
Package
unknown
begin_use_date*The date the travel begins: departure date, check-in date, pick-up date, etc. represented in ISO 8601 date format (YYYY-MM-DD).2023-02-13
end_use_date*The date the travel ends: arrival date, check-out date, drop-off date, etc., represented in ISO 8601 date format (YYYY-MM-DD).2023-02-20

member

These fields identify the loyalty program member.

Field nameDefinitionExample
idUnique identifier of the member record.456178230
last_name**Last name of the loyalty program member.Doe
loyalty_tierTier of the program the member is in. This can be used to help determine bonus points, for example.Standard

Notes for all fields

* Date fields are in Pacific Standard Time (PST), allowing for daylight savings.
** Personally Identifiable Information (PII) data. Be sure to handle this correctly per your company’s guidelines and include only when absolutely necessary.

API details

Explore the endpoint definitions on this page, then use an API testing software to get an understanding of how the examples and schema definitions compare to the actual output.




이 페이지가 도움이 되었나요?
이 콘텐츠를 어떻게 개선하면 좋을까요?
더 나은 Developer Hub를 만드는 데 도움을 주셔서 감사합니다!