ReferenceWallet protocol
Export the applied operations of a period
The RGS calls POST /operations on the casino's wallet. Optional.
POST
/operationsWhat reconciliation compares with the journal, by transactionId. A casino without this call is not reconciled and loses nothing else. It lists every debit, credit and rollback the wallet applied with from <= at < to, by the wallet's clock, in an order that does not change between pages. A debit that was later rolled back stays listed. A refused call is not an operation. An empty nextCursor ends the list.
Authorization
signature X-Signature<token>
Hex HMAC-SHA256 of "timestamp\nMETHOD\npath\nsha256(body)". A response signs "timestamp\nstatus\npath\nsha256(body)".
In: header
Header Parameters
X-Key-Id*string
X-Timestamp*string
Unix seconds
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/operations" \ -H "X-Key-Id: string" \ -H "X-Timestamp: string" \ -H "Content-Type: application/json" \ -d '{ "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z" }'{ "status": "ok", "nextCursor": "string", "operations": [ { "transactionId": "string", "type": "debit", "roundId": "string", "playerId": "string", "currency": "string", "amount": 0, "targetTransactionId": "string", "at": "2019-08-24T14:15:22Z" } ]}