Vizo Digital Api
Sign in

Bus Booking · Bus Booking Services

Bus Cancel Ticket

Cancel a booked ticket or selected seats

POST request

URL: https://uat-api.vizodigital.com/api/v1/bus/cancel-ticket

Body

{
    "orderid": "CANC_001",
    "refid": 12345,
    "seatsToCancel": [
        "L1"
    ]
}

Include a valid Bearer token with every request

UAT example

{
    "response_code": 1,
    "status": true,
    "message": "Ticket cancelled successfully",
    "data": {
        "refundAmount": "600.00"
    }
}

Failure response

{
    "status": "error",
    "message": "Request failed. Check credentials, wallet balance, or validation errors."
}

Overview

Cancel a booked ticket or selected seats.

UAT vs Production

  • UAT calls hit the Paysprint sandbox environment and are not billed.
  • Production calls use live credentials and deduct per-call fee from wallet.

Access & billing

  • Requires active permission/service key (bus_cancel_ticket) on developer account.
  • Authenticate with Bearer token header Authorization: Bearer <your_token>.

Body

application/json required

Bus Cancel Ticket request body

Schema

{
    "type": "object",
    "properties": {
        "orderid": {
            "type": "string",
            "description": "Unique request ID"
        },
        "refid": {
            "type": "integer",
            "description": "Booking reference ID"
        },
        "seatsToCancel": {
            "type": "object",
            "description": "Seats array to cancel"
        }
    }
}

Example

{
    "orderid": "CANC_001",
    "refid": 12345,
    "seatsToCancel": [
        "L1"
    ]
}

Responses

  • 200 · application/json

    Successful response

    Example

    {
        "response_code": 1,
        "status": true,
        "message": "Ticket cancelled successfully",
        "data": {
            "refundAmount": "600.00"
        }
    }

Rate Limits

60/min