Fetches offers without an existing order context. Used for offer discovery before order creation. Requires Air India travel context in offerParams.
Environment Base URL UAT / Test https://sandbox.payu.in/offers/transactionsProduction https://api.payu.in/offers/transactions
Bash
curl -X POST 'https://sandbox.payu.in/offers/transactions' \
-H 'Date: <rfc_1123_gmt_date>' \
-H 'Digest: <base64_sha256_digest>' \
-H 'Authorization: hmac username="<merchant_key>", algorithm="hmac-sha256", headers="date digest", signature="<base64_hmac_sha256_signature>"' \
-H 'platformId: 1' \
-H 'Content-Type: application/json' \
-d '{
"orderId": "PREVIEW_ORDER_001",
"amount": 10000,
"baseAmount": 9000,
"userDetails": {
"phoneNo": "8310300493",
"email": "[email protected] "
},
"offerParams": {
"passengers": [
{
"passengerTypeCode": "ADT",
"gender": "MALE",
"dateOfBirth": "1996-01-01"
}
],
"itineraries": [
{
"departureAirportCode": "DEL",
"arrivalAirportCode": "BLR",
"departureDate": "2025-12-18",
"segments": [
{
"flightNumber": "AI2849",
"cabin": "Economy",
"fareClass": "YTRQOU"
}
]
}
],
"paxCount": 1,
"journeyType": "AI",
"itineraryType": "oneway",
"flowId": "WBPB001",
"userId": "AIR_INDIA_USER_ID",
"bookingDateTime": "2025-12-18 11:15:18",
"officeDetails": {
"id": "DELAI08AA"
},
"customerType": "REGISTERED",
"loyaltyDetails": {
"loyaltyId": "LOYALCUST123",
"membershipTier": "RED"
}
}
}'
JSON
{
"code": "200",
"message": "Offer Retrieved Successfully",
"status": 1,
"result": {
"offers": [
{
"offerKey": "OFFER_KEY_123",
"title": "10% Cashback",
"description": "Get 10% cashback on Air India bookings",
"discountDetail": {
"discountType": "PERCENTAGE",
"discountPercentage": 10.00
}
}
]
},
"traceId": "uuid-trace-id"
}
Parameter Description Example Datemandatory string Request date and time in RFC 1123 GMT format.Thu, 17 Feb 2022 08:17:59 GMTDigestmandatory string Base64-encoded SHA-256 digest of the serialized JSON request body.vpGay5D/dmfoDupALPplYGucJAln9gS29g5Orn+8TC0=Authorizationmandatory string HMAC authorization value using the merchant key, the hmac-sha256 algorithm, and the signed headers date digest.hmac username="<merchant_key>", algorithm="hmac-sha256", headers="date digest", signature="<base64_signature>"platformIdmandatory string Platform identifier. Set this value to 1.1Content-Typemandatory string Media type of the JSON request body.application/json
This API does not use HeaderAuthentication. Compute Digest as Base64(SHA-256(serialized JSON request body)). Then compute signature as Base64(HMAC-SHA256(date: {Date}\ndigest: {Digest}, merchant salt)) and send Authorization with algorithm="hmac-sha256" and headers="date digest".
Parameter Description Example orderIdmandatory string Temporary/preview order ID.PREVIEW_ORDER_001amountmandatory number Total transaction amount.10000baseAmountmandatory number Base transaction amount.9000paymentIdoptional number Payment identifier.123offerKeysoptional array Specific offer keys to evaluate (null for all).nulluserDetailsoptional object User information. See userDetails object parameters for details.- offerParamsmandatory object Air India specific travel context. See offerParams object parameters for details.-
Parameter Description Example userTokenoptional string User token.abcdphoneNooptional string User phone number.8310300493emailoptional string User email.[email protected] loggedInPhoneNumberoptional string Logged-in user's phone number.8310300493
Air India specific travel context:
Parameter Description Example passengersmandatory array List of passengers. Each passenger object contains passengerTypeCode (ADT/CHD/INF), gender, dateOfBirth.- itinerariesmandatory array Flight itineraries. Each itinerary contains departureAirportCode, arrivalAirportCode, departureDate, segments array.- paxCountmandatory number Total passenger count.1journeyTypemandatory string Journey type. For Air India, use AI.AIitineraryTypemandatory string Type of itinerary: oneway, roundtrip, multicity.onewayflowIdmandatory string Flow identifier.WBPB001userIdoptional string Air India user ID.AIR_INDIA_USER_IDbookingDateTimemandatory string Booking timestamp.2025-12-18 11:15:18officeDetailsmandatory object Office/agent details with field: id.{"id": "DELAI08AA"}customerTypeoptional string Customer type: REGISTERED or GUEST.REGISTEREDcustomerDetailsoptional object Customer contact details with fields: customerEmail, customerPhone.- loyaltyDetailsoptional object Loyalty program information with fields: loyaltyId, membershipTier, emailId, phoneNumber.-
The response structure is the same as Fetch Offer (with Order ID) API . Refer to that documentation for detailed response parameters.
Parameter Description Example code string Response code.200message string Response message.Offer Retrieved Successfullystatus number Status indicator. 1 = success, 0 = failure.1result object Contains offer details including offers array.- traceId string Unique trace ID for debugging.uuid-trace-id