Get a void
Changed onReturns the details and current status of a void, including the authorisation it cancelled. Use this to track a void's outcome after creation, since processing is asynchronous.
Required scope: <code style="background:#e8f0fe;color:#1a73e8;padding:2px 8px;border-radius:12px;font-size:0.85em">void:read</code>
Request
- Base URLhttps://api.test.easypay.pt/2.0
- AuthAPI key in header AccountId and API key in header ApiKey
Path parameters
The void's unique identifier (the id returned when the void was created).
Response
OK
Indicates the current status of the void:
- pending: Initial state — the void has been created and queued.
- processing: The void is being processed by the acquirer.
- success: The void completed successfully (the authorisation was released).
- failed: The void could not be completed due to an error or issue.
A unique identifier for the resource. While typically formatted as a UUID (Universally Unique Identifier), it can also be in other formats as defined by the user. This field ensures the resource can be distinctly recognized and referenced.
A customizable text field for users to input their own identifier for the resource. This can be any string that helps the user uniquely identify or reference the resource in their own system.
A text field that describes the transaction as it will appear on the end user's account statement. This is typically used to provide clear, recognizable information about the payment, such as "Payment of Invoice Nº 1982652" or "Ticket for Queen".
How much this void asked the acquirer to release: the authorised amount minus what you already captured. If you authorised €100 and captured €75, this is 25.00.
Example response
{
"value": 25,
"authorisation": {
"customer": {
"id": "649e88cf-0b78-4c36-8f99-33f5ebb812a1",
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "911234567",
"phone_indicative": "+351",
"fiscal_number": "PT123456789",
"key": "customer Key Example",
"language": "PT"
},
"value": 15.78
}
}Changes
- info
added the optional property
valueto the response with the status
- info