Skip to main content

Fetch a transaction

Get Transaction Endpoint

Get a transaction from your wallet.

Badge https://sandbox.tickpay.com/api/v1/wallets/transaction/{id}

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/transaction/id' \
-H 'accept: application/json' \
-H 'Authorization: Bearer your_access_token'

Response

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

{
"data": {
"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",
"payer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "+5511911111111",
"document": "123456789"
},
"codeCopyPaste": "https://sandbox.tickpay.com/api/v1/simulations/cashin/9e8ec046-c2c7-4d9a-9fb1-0d98cdc94ca3",
"qrcodeImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAAAklEQVR4AewaftIAAA+1SURBVO3BUY4kyWIkMDNH",
"createdAt": "2023-12-26T14:19:39.986Z"
},
"messageError": null,
"success": true
}

Response Properties

ParameterDescriptionDefault Value
messageErrorError message.null
successIndicates whether the request was successful.false
data Properties
idUnique identifier for the transaction.
callbackUrlURL for callback.
valueSpecific value in the response, representing cents.> 0
taxTax value.
descriptionDescription of the operation.
operationType of operation. Possible properties
statusCurrent status of the transaction. Possible properties
metadataAdditional metadata.
externalReferenceExternal reference identifier.
payerInformation about the payer.
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