Entire Ticket Cancellation with Acknowledgement (Including a Rejection Example)

This is an example of an entire ticket cancellation.

Cancellation Request
{
  "operatorId": 9985,
  "content": {
    "type": "cancel",
    "cancellationId": "CANC8787414",
    "details": {
      "type": "ticket",
      "ticketId": "Ticket_3668",
      "ticketSignature": "HHDut7XIEl+SmjWB3xDB0AIB6fUZVFOvmGKm6Rcvxm0=",
      "code": 101
    }
  },
  "correlationId": "7Swn291Bxk",
  "timestampUtc": 1678980298000,
  "operation": "ticket-cancel",
  "version": "3.0"
}
Cancellation Response
{
  "content": {
    "type": "cancel-reply",
    "cancellationId": "CANC8787414",
    "signature": "ztmWXaG1HKHGnb8oqs9QzhxnaThiWjf4ARtN9YMs7Ag=",
    "status": "accepted",
    "ticketId": "Ticket_3668",
    "code": 0,
    "message": "Transaction processed"
  },
  "correlationId": "7Swn291Bxk",
  "timestampUtc": 1678980299000,
  "operation": "ticket-cancel",
  "version": "3.0"
}
Acknowledgement Message
{
  "operatorId": 9985,
  "content": {
    "type": "cancel-ack",
    "cancellationId": "CANC8787414",
    "ticketId": "Ticket_3668",
    "cancellationSignature": "ztmWXaG1HKHGnb8oqs9QzhxnaThiWjf4ARtN9YMs7Ag=", 
    "acknowledged": true
  },
  "correlationId": "rZ20Cb1ka8",
  "timestampUtc": 1678980301000,
  "operation": "ticket-cancel-ack",
  "version": "3.0"
}
Acknowledgement Reply Message
{
  "content": {
    "type": "cancel-ack-reply",
    "cancellationId": "CANC8787414",
    "signature": "TjlNtQGQUBWeOYbaClN+/Tnip5xBskLseR+pea/sAgE=",
    "status": "accepted",
    "ticketId": "Ticket_3668",
    "code": 0,
    "message": "Transaction processed"
  },
  "correlationId": "rZ20Cb1ka8",
  "timestampUtc": 1678980302000,
  "operation": "ticket-cancel-ack",
  "version": "3.0"
}

Rejection Example

Alternatively, an example of the same Cancellation request being rejected can be found below. List of available Cancellation rejection codes can be found here.

Cancellation Response
{
  "content": {
    "type": "cancel-reply",
    "cancellationId": "CANC8787414",
    "signature": "ztmWXaG1HKHGnb8oqs9QzhxnaThiWjf4ARtN9YMs7Ag=",
    "status": "rejected",
    "ticketId": "Ticket_3668",
    "code": -2013,
    "message": "Ticket time for cancellation expired"
  },
  "correlationId": "7Swn291Bxk",
  "timestampUtc": 1678980299000,
  "operation": "ticket-cancel",
  "version": "3.0"
}

Last updated

Was this helpful?