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

1. Hold seat B1 (availabilityUrl)

11:48:01 · HTTP 200
Request
{
    "action": 1,
    "seatId": "2331",
    "sessionId": "facad189-6dbd-4dc9-903c-2c59aa1b8985",
    "seatNumber": "B1",
    "busScheduleId": "BS-68"
}
Response
{
    "data": {
        "available": false,
        "expire_time": ""
    },
    "status": "MS",
    "trxnId": null,
    "message": "Successful",
    "statusCode": 200
}

1. Hold seat B2 (availabilityUrl)

11:48:02 · HTTP 200
Request
{
    "action": 1,
    "seatId": "2332",
    "sessionId": "facad189-6dbd-4dc9-903c-2c59aa1b8985",
    "seatNumber": "B2",
    "busScheduleId": "BS-68"
}
Response
{
    "data": {
        "available": true,
        "expire_time": "2026-11-19 14:58:02"
    },
    "status": "MS",
    "trxnId": null,
    "message": "Successful",
    "statusCode": 200
}

2. Reserve seat (reserveUrl)

11:48:04 · HTTP 200
Request
{
    "sessionId": "facad189-6dbd-4dc9-903c-2c59aa1b8985",
    "journey_id": "BS-68",
    "passengers": [
        {
            "seat": "B2",
            "email": "[email protected]",
            "gender": "male",
            "seatId": "2332",
            "age_group": 1,
            "last_name": "Passenger",
            "first_name": "Simulated",
            "middle_name": "",
            "nationality": "TANZANIAN",
            "phone_number": "0712345678",
            "identity_type": "National ID (NIDA)",
            "identity_number": "19900101680886"
        }
    ],
    "dropoff_point_id": null,
    "boarding_point_id": null,
    "dropoff_point_name": null,
    "boarding_point_name": null,
    "reservation_request_id": 355072
}
Response
{
    "data": {
        "expires": "2026-11-19T15:03:04+03:00",
        "journey_id": "BS-68",
        "payment_ref": "UTS-MOW8MVMJPW",
        "total_price": 2000,
        "reservation_id": "UTS-MOW8MVMJPW",
        "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-MOW8MVMJPW",
                        "Enter amount: 2,000",
                        "Enter your M-Pesa PIN",
                        "Press 1 to confirm the payment"
                    ],
                    "amount": 2000,
                    "short_code": "009009",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-MOW8MVMJPW"
                },
                "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": 2000,
                    "short_code": "273300",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-MOW8MVMJPW"
                },
                "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": 2000,
                    "short_code": "009009",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-MOW8MVMJPW"
                },
                "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": 2000,
                    "short_code": "009009",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-MOW8MVMJPW"
                },
                "channel_name": "HALOPESA"
            },
            {
                "c2b": true,
                "push": false,
                "push_url": null,
                "channel_id": 6,
                "instruction": {
                    "steps": null,
                    "amount": 2000,
                    "short_code": "009009",
                    "company_name": "LATRA Gateway",
                    "payment_reference": "UTS-MOW8MVMJPW"
                },
                "channel_name": "AZAMPESA"
            }
        ],
        "reservation_url": "https://ltr-gateway.intermsafirismart.com/reservations/UTS-MOW8MVMJPW",
        "confirm_payment_url": "https://ltr-gateway.intermsafirismart.com/latra/inbound/confirm-payment",
        "reservation_request_id": 355072
    },
    "message": "Successful",
    "statusCode": 200
}

3. Trigger payment push (push_url)

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

4. Confirm payment (confirm_payment_url)

11:48:05 · HTTP 200
Request
{
    "payment_reference": "UTS-MOW8MVMJPW"
}
Response
{
    "data": {
        "ticketNo": "C6515524D1",
        "confirmed": false,
        "ticketUrl": null,
        "ticketImage": null,
        "ticketDataType": null,
        "reservationRequestId": "355072"
    },
    "message": "Successful",
    "statusCode": 200
}