Void a payment
POSThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/payments/{payment_id}/void
Void (cancel) an authorisation, releasing the hold on the customer’s funds. The void is for the authorised amount less anything already captured, and nothing more can be captured afterwards.
There are no parameters required to void a payment.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The authorisation’s payment ID (pay_...) or transaction ID (tr_...), or the alt_key you gave it (case-insensitive).
The record must be an authorisation, otherwise 404 Payment not found.
An alt_key resolves to the newest authorisation with an amount still open, ignoring failed attempts.
Request Body
Section titled “Request Body”object
Responses
Section titled “Responses”Void processed
object
object
"vo_5139_10151"Void operation identifier
"pay_5139_10150"Payment ID that was voided
"100"Amount that was voided
"SUCCESS"Status of the void operation
"REF-00010151"Reference for the void
"2019-10-01T16:25:24.000Z"When the void was requested
"2019-10-01T16:25:27.000Z"When the void was processed
Bad request - invalid parameters
Every error has a code and a message. Some add more fields alongside them, with detail about the error.
object
The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.
What went wrong, in words, for logs and support.
Unauthorized - invalid credentials
Every error has a code and a message. Some add more fields alongside them, with detail about the error.
object
The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.
What went wrong, in words, for logs and support.
Example
{ "code": "UNAUTHORIZED", "message": "Unauthorised"}Payment not found
Every error has a code and a message. Some add more fields alongside them, with detail about the error.
object
The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.
What went wrong, in words, for logs and support.
Was this page helpful?
What went wrong?
Thanks for telling us.