LATRA Mock Plays the role of real LATRA CeTS/UTS for local integration testing
← Back
Simulation #6 — schedule BS-68 completed

2. Reserve seat (reserveUrl)

11:46:15 · HTTP 200
Request
{
    "sessionId": "d97b831b-6056-49ae-aa17-7dfe1f341844",
    "journey_id": "BS-68",
    "passengers": [
        {
            "seat": "B1",
            "email": "[email protected]",
            "gender": "male",
            "seatId": "2331",
            "age_group": 1,
            "last_name": "Passenger",
            "first_name": "Simulated",
            "middle_name": "",
            "nationality": "TANZANIAN",
            "phone_number": "0712345678",
            "identity_type": "National ID (NIDA)",
            "identity_number": "19900101548500"
        }
    ],
    "dropoff_point_id": "317",
    "boarding_point_id": "316",
    "dropoff_point_name": "Chalinze",
    "boarding_point_name": "Dodoma",
    "reservation_request_id": 462878
}
Response
{
    "data": {
        "expires": "2026-11-19T15:01:15+03:00",
        "journey_id": "BS-68",
        "payment_ref": "UTS-UGXQKLGZKM",
        "total_price": 1000,
        "reservation_id": "UTS-UGXQKLGZKM",
        "payment_channel": [
            {
                "c2b": true,
                "push": false,
                "push_url": null,
                "channel_id": 1,
                "instruction": {
                    "steps": [
                        "Dial Vodacom M-Pesa menu: *150*00#",
                        "Choose option 4: Pay by M-Pesa",
                        "Choose option 4: Enter business number",
                        "Enter business number: 009009",
                        "Enter reference number: UTS-UGXQKLGZKM",
                        "Enter amount: 1,000",
                        "Enter your M-Pesa PIN",
                        "Press 1 to confirm the payment"
                    ],
                    "amount": 1000,
                    "short_code": "009009",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-UGXQKLGZKM"
                },
                "channel_name": "VODACOM"
            },
            {
                "c2b": true,
                "push": true,
                "push_url": "https://ltr-gateway.intermsafirismart.com/latra/inbound/push-payment",
                "channel_id": 2,
                "instruction": {
                    "steps": null,
                    "amount": 1000,
                    "short_code": "273300",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-UGXQKLGZKM"
                },
                "channel_name": "AIRTEL"
            },
            {
                "c2b": true,
                "push": true,
                "push_url": "https://ltr-gateway.intermsafirismart.com/latra/inbound/push-payment",
                "channel_id": 3,
                "instruction": {
                    "steps": null,
                    "amount": 1000,
                    "short_code": "009009",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-UGXQKLGZKM"
                },
                "channel_name": "TIGOPESA"
            },
            {
                "c2b": true,
                "push": true,
                "push_url": "https://ltr-gateway.intermsafirismart.com/latra/inbound/push-payment",
                "channel_id": 5,
                "instruction": {
                    "steps": null,
                    "amount": 1000,
                    "short_code": "009009",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-UGXQKLGZKM"
                },
                "channel_name": "HALOPESA"
            },
            {
                "c2b": true,
                "push": false,
                "push_url": null,
                "channel_id": 6,
                "instruction": {
                    "steps": null,
                    "amount": 1000,
                    "short_code": "009009",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-UGXQKLGZKM"
                },
                "channel_name": "AZAMPESA"
            }
        ],
        "reservation_url": "https://ltr-gateway.intermsafirismart.com/reservations/UTS-UGXQKLGZKM",
        "confirm_payment_url": "https://ltr-gateway.intermsafirismart.com/latra/inbound/confirm-payment",
        "reservation_request_id": 462878
    },
    "message": "Successful",
    "statusCode": 200
}

3. Trigger payment push (push_url)

11:46:15 · HTTP no response
Request
{
    "phone_number": "0712345678",
    "payment_channel": 1,
    "payment_reference": "UTS-UGXQKLGZKM"
}
Response
{
    "error": "No URL available for this step."
}

4. Confirm payment (confirm_payment_url)

11:46:16 · HTTP 200
Request
{
    "payment_reference": "UTS-UGXQKLGZKM"
}
Response
{
    "data": {
        "ticketNo": "D6CB2DDA79",
        "confirmed": false,
        "ticketUrl": null,
        "ticketImage": null,
        "ticketDataType": null,
        "reservationRequestId": "462878"
    },
    "message": "Successful",
    "statusCode": 200
}