Void
POST/:apiKey/void
Records a void transaction.
Either referenceTransactionId
or referenceUuid
must be provided.
Request
Path Parameters
Possible values: <= 50 characters
API key of connector.
- application/json
Bodyrequired
required
Your unique transaction ID.
Possible values: non-empty
and <= 50 characters
c5f2accd-2c37-4b2c-bb03-22d168c25a74
Reference to the related
Preauthorize
containing the merchant's reference (transactionId
).
ed0687ad-a876-42fd-bfc2-ce7c91d9700d
Reference to the related
Preauthorize
containing the transaction reference (uuid
).
Possible values: <= 50 characters
20230315-6d432fb7217843388847
Status of Transaction.
Possible values: [success
, failed
, error_adapter
, error_internal
, cancelled
]
success
PSP's reference of Transaction.
Possible values: <= 50 characters
Token given by the adapter.
Possible values: <= 50 characters
Date/Time of transaction processing, defaults to now()
.
RFC 3339 Internet Date/Time Format date-time
null
2001-02-03T04:05:06+02:00
Any additional ID if required by the Adapter.
Possible values: <= 50 characters
Any additional ID if required by the Adapter.
Possible values: <= 50 characters
Additional metadata for the merchant.
Possible values: <= 255 characters
Description of your transaction.
Possible values: <= 255 characters
My Purchase Order 123
extraData
object
Object containing key-value pairs (string-to-string), to be used by either the upstream Adapter, the Risk Engine etc.
Descriptor which is printed on card-holder's statement.
Possible values: <= 50 characters
Order# 123
error
object
Error/Decline reason data.
Error message.
Possible values: <= 60 characters
Transaction declined.
Error code.
Possible values: <= 20 characters
3002
Error message of PSP.
Possible values: <= 65535 characters
Do not honour
Error code of PSP.
Possible values: <= 20 characters
5
Date and time of error, defaults to now()
.
RFC 3339 Internet Date/Time Format date-time
.
2001-02-03T04:05:06+02:00
Responses
- 200
Push transaction response.
- application/json
- Schema
- Example (from schema)
- Success
- Error
Schema
- true
- false
success
string
required
Whether the request was successful or not.
Possible values: [true
, false
]
The assigned transaction uuid.
On error, this field will contain a description of the error.
The error code.
Possible values: [MISSING_FIELDS
, INVALID_DATA
, DUPLICATE_ID
, INVALID_REFERENCE
]
{
"success": true
}
Success
{
"success": true,
"uuid": "12c0b3f4aa1d02d1608a"
}
Error
{
"success": false,
"error_message": "The following fields are missing: registrationId",
"error_code": "MISSING_FIELDS"
}