Skip to main content

RefundRequest

sessionIDstringrequired

The Game Session's ID (external). Provided by client via Create New Game call.

Example: some_external_session_id
txIDuuidrequired

Unique ID for the refund (internal) on Swipe Games' side. Could be used as idempotency key.

Example: c27ccade-5a45-4157-a85f-7d023a689ea5
origTxIDuuidrequired

Original transaction ID (internal) on Swipe Games' side. This is the ID of the transaction that should be refunded. In some cases this original transaction ID might be not recorded on your side (timeout, server side error, etc).

Example: c27ccade-5a45-4157-a85f-7d023a689ea5
amountstringrequired

The amount of the refund in currency main units (note: not cents). Currency selected by the client during the Create New Game call. We support 2 decimal places for all fiat currencies. Refunds are always done for the whole bet amount.

Possible values: Value must match regular expression ^(0|[1-9]\d*)(\.\d+)?$

Example: 100.10
RefundRequest
{
"sessionID": "some_external_session_id",
"txID": "c27ccade-5a45-4157-a85f-7d023a689ea5",
"origTxID": "c27ccade-5a45-4157-a85f-7d023a689ea5",
"amount": "100.10"
}