Bus Ticket Booking Callback

Need to implement callback on every deduction and credit of any booking you made on paysprint.
Redirection to generate url api response url and encdata,
mention callback request from Paysprint to partner end.

Debit Request CALLBACK

Paysprint sends you the callback once we confirm any booking on behalf of our api partners

{
  "event": "BUS_TICKET_BOOKING_DEBIT_CONFIRMATION",
  "param": {
    "amount": "100.33",
    "base_fare": "100",
    "comm": "100.33",
    "tds": "23",
    "total_deduction": "200",
    "customer_mobile": "987654XXXX",
    "refid": "223453223XXX",
    "customer_email": "[email protected]",
    "block_id": "xrfhydb56"
  }
}
{"status":200,"message":"Transaction completed successfully"}
{"status":400,"message":"Transaction failed"}

Credit Request CALLBACK

Paysprint sends you the callback once we cancel any booking on behalf of our api partners

{
  "event": "BUS_TICKET_BOOKING_CREDIT_CONFIRMATION",
  "param": {
    "amount": "100.33",
    "base_fare": "100",
    "comm": "100.33",
    "tds": "23",
    "total_deduction": "200",
    "customer_mobile": "987654XXXX",
    "refid": "223453223XXX",
    "customer_email": "[email protected]",
    "block_id": "xrfhydb56"
  }
}
{"status":200,"message":"Transaction completed successfully"}
{"status":400,"message":"Transaction Failed"}

Ticket Confirmation Callback

Partner has to implement this callback while using the redirect model

{
  "event": "BUS_TICKET_BOOKING_CONFIRMATION",
  "param": {
    "amount": "100.33",
    "base_fare": "100",
    "comm": "100.33",
    "tds": "23",
    "total_deduction": "200",
    "customer_mobile": "987654XXXX",
    "refid": "223453223XXX",
    "customer_email": "[email protected]",
    "blockKey": "xrfhydb56",
    "pnr_no": "xrfhydb56",
    "seat_details":{
        "bookingFee": "0",
        "busType": "Volvo Multiaxle A/C Sleeper/Semi Sleeper (2+1)",
        "cancellationCalculationTimestamp": "2022-06-29 17:00:00",
        "cancellationMessage": "",
        "cancellationPolicy": "0:12:100:0;12:24:50:0;24:-1:10:0",
        "dateOfIssue": "2022-06-18T12:29:43+05:30",
        "destinationCity": "Hyderabad",
        "destinationCityId": "6",
        "doj": "2022-06-29T00:00:00+05:30",
        "dropLocation": "A.S Raonagar",
        "dropLocationAddress": "geeta nagar",
        "dropLocationId": "36730",
        "dropLocationLandmark": "matosh residency",
        "dropTime": "1920",
        "firstBoardingPointTime": "960",
        "hasRTCBreakup": "false",
        "hasSpecialTemplate": "false",
        "inventoryId": "2000000141970062115",
        "inventoryItems": [
            {
                "fare": "630.00",
                "ladiesSeat": "false",
                "malesSeat": "false",
                "operatorServiceCharge": "0.00",
                "passenger": {
                    "address": "test",
                    "age": "24",
                    "email": "[email protected]",
                    "gender": "MALE",
                    "idNumber": "CCVFG7854H",
                    "idType": "PAN_CARD",
                    "mobile": "8500592946",
                    "name": "Sai Tharun",
                    "primary": "true",
                    "singleLadies": "false",
                    "title": "Mr"
                },
                "seatName": "e",
                "serviceTax": "30.00"
            },
            {
                "fare": "630.00",
                "ladiesSeat": "false",
                "malesSeat": "false",
                "operatorServiceCharge": "0.00",
                "passenger": {
                    "address": "test",
                    "age": "24",
                    "email": "[email protected]",
                    "gender": "MALE",
                    "idNumber": "CCVFG7854H",
                    "idType": "PAN_CARD",
                    "mobile": "8500592946",
                    "name": "Tuka Ram Tharun",
                    "primary": "true",
                    "singleLadies": "false",
                    "title": "Mr"
                },
                "seatName": "f",
                "serviceTax": "30.00"
            }
        ],
        "MTicketEnabled": "true",
        "partialCancellationAllowed": "true",
        "pickUpContactNo": "909090909090",
        "pickUpLocationAddress": "Domlur",
        "pickupLocation": "Domlur",
        "pickupLocationId": "26609",
        "pickupLocationLandmark": "Domlur",
        "pickupTime": "960",
        "pnr": "77MQUKRD",
        "primeDepartureTime": "1020",
        "primoBooking": "false",
        "reschedulingPolicy": {
            "reschedulingCharge": "0",
            "windowTime": "240"
        },
        "serviceCharge": "0.00",
        "sourceCity": "Bangalore",
        "sourceCityId": "3",
        "status": "BOOKED",
        "tin": "77MQUKRD",
        "travels": "TESTING ACCOUNT",
        "vaccinatedBus": "false",
        "vaccinatedStaff": "false"
    }
  }
}