Entire Ticket Cash-out (Including a Rejection Example)

This is an example of an entire ticket cash-out request.

Cash-out Request
{
    "operatorId": 9985,
    "content": {
      "type": "cashout-inform",
      "cashout": {
        "type": "cashout",
        "cashoutId": "COUT92328",
        "details": {
            "type": "ticket",
            "ticketId": "Ticket_3486",
            "ticketSignature": "Tek32Cbgo2+SmjWB3xDB0AIB6fUZVFOvmGKm6Rcvxm0=",
            "code": 101,
            "payout": [
                {
                  "type": "cash",
                  "currency": "USD",
                  "amount": "20",
                  "traceId": "Source_2099"
                }
            ]
          }
      },
      "validation": {
        "code": 1100,
        "message": "Validated, OK"
      }
    },
    "correlationId": "gS30kLc61s",
    "timestampUtc": 1678985535000,
    "operation": "cashout-inform",
    "version": "3.0"
  }
Cash-out Response
{
    "content": {
      "type": "cashout-inform-reply",
      "cashoutId": "COUT92328",
      "signature": "mMF6RuNsGILhrlF5ZITVp7Qpjz6xwa0setDaSu9Q/dA=",
      "status": "accepted",
      "ticketId": "Ticket_3486",
      "code": 0,
      "message": "Transaction processed"
    },
    "correlationId": "gS30kLc61s",
    "timestampUtc": 1678985536000,
    "operation": "cashout-inform",
    "version": "3.0"
  }

Rejection example

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

Cash-out Response - Rejection
{
  "content": {
    "type": "cashout-inform-reply",
    "cashoutId": "COUT92328",
    "signature": "mMF6RuNsGILhrlF5ZITVp7Qpjz6xwa0setDaSu9Q/dA=",
    "status": "rejected",
    "ticketId": "Ticket_3486",
    "code": -204,
    "message": "Cash-out amount is too high"
  },
  "correlationId": "gS30kLc61s",
  "timestampUtc": 1678985536000,
  "operation": "cashout-inform",
  "version": "3.0"
}

Last updated

Was this helpful?