Skip to content
Status

Get a void

GEThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/voids/{void_id}

GET
/voids/{void_id}

Retrieve details of a specific void transaction.

You can expand the following fields:

  • account
  • created_session
  • parts
  • source_transaction
  • updated_session
void_id
required
string
Pattern /^vo_[0-9]+_[0-9a-z]+$/

The void’s ID (vo_...).

expand
string

Fields to expand into full objects

Void details

Media typeapplication/json
object
void
object

A void transaction representing the cancellation of a previously authorised payment

object
id
string

The ID of the void

Pattern /^vo_[0-9]+_[0-9a-z]+$/
account
string

The account the void was for

amount
string

The amount voided

created
string · date-time

When the void was created

created_session
string

The session that created the void

currency
string

The currency in ISO format

gateway_message
string

The status message returned by the gateway

gateway_reference
string

The gateway identifier for the void

gateway_status
string

The category or error message received from the gateway

metadata
object

Custom key-value pairs stored on the void

object
key
additional properties
any
offline
boolean

Whether this void was recorded as an offline transaction

parts
Array<string>

Array of parts objects for which charge(s) the void was applied to

payment
string

The original payment (AUTH) this void relates to

processed
string · date-time

When the void was processed by the gateway

reference
string

The customer-facing reference (format BOLT-*)

source_transaction
string

The original AUTH transaction that was voided

status
string · enum

The status of the void

Allowed values: SUCCESS PENDING DECLINED INVALID_PAYMENT_METHOD UNRESOLVED UNATTRIBUTED
updated
string · date-time

When the void was last updated

updated_session
string

The session that last updated the void

v
integer

The version of the record

Bad request - invalid parameters

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Unauthorised: the API key is missing or not valid

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Example
{
"code": "UNAUTHORIZED",
"message": "Unauthorised"
}

Void not found

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Was this page helpful?