Skip to main content

Transaction list

Get transactions Endpoint

Get all transactions from your wallet.

Badge https://sandbox.tickpay.com/api/v1/wallets/transactions?operation={operation}&pageNumber={pageNumber}&pageSize={pageSize}

Request

To access this endpoint, you need to provide a valid access token in the Authorization header.

Use the following cURL command to retrieve the wallet transaction:

curl -X 'GET' \
'https://sandbox.tickpay.com/api/v1/wallets/transactions?operation=CASH_IN&pageNumber=1&pageSize=10' \
-H 'accept: application/json' \
-H 'Authorization: Bearer your_access_token'

Query parameters

ParameterDescriptionRequired
operationSpecifies the type of operation. Accepted valuestrue
pageSizeNumber of items to include per page.true
pageNumberThe page number to retrieve.true

Accepted values

ParameterDescription
operationCASH_IN, CASH_OUT or REFUND

Response

The response will contain a data object, along with additional information:

{
"messageError": null,
"success": true,
"pageNumber": 1,
"pageSize": 1,
"totalItems": 5,
"totalPages": 5,
"items": [
{
"id": "9e8ec046-c2c7-4d9a-9fb1-0d98cdc94ca3",
"callbackUrl": "https://example.com/callback",
"value": 5000,
"tax": 25,
"description": "Cash-in created successfully.",
"operation": "CASH_IN",
"status": "PENDING",
"metadata": {
"key": "value",
"anotherKey": "anotherValue"
},
"externalReference": "ABC123",
"codeCopyPaste": "https://sandbox.tickpay.com/api/v1/simulations/cashin/9e8ec046-c2c7-4d9a-9fb1-0d98cdc94ca3",
"qrcodeImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAAAklEQVR4AewaftIAAA+1SURBVO3BUY4kyWIkMDN",
"createdAt": "2023-12-26T14:19:39.986Z"
}
]
}

Response Properties

ParameterDescriptionDefault Value
messageErrorError message.null
successIndicates whether the request was successful.true
pageNumberIndicates the current page number.0
pageSizeIndicates the page size.0
totalItemsTotal number of items.0
totalPagesTotal number of pages.0
items Properties
idUnique identifier for the transaction.
callbackUrlURL for callback.
valueSpecific value in the response, representing cents.
taxTax value.
descriptionDescription of the operation.
operationType of operation. Possible properties
statusCurrent status of the transaction. Possible properties
metadataAdditional metadata.
externalReferenceExternal reference identifier.
codeCopyPasteURL for copying and pasting the code.
qrcodeImageData URI for the QR code image.
createdAtDate and time of creation.

Possible Properties

ParameterDescription
operationCASHIN, CASHOUT, REFUND
statusPENDING, CANCELED, SUCCEED, FAILED