Debit
POST/:apiKey/debit
Records a debit transaction.
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 Register,
Debit, or
Preauthorize
containing the merchant's reference (transactionId
).
ed0687ad-a876-42fd-bfc2-ce7c91d9700d
Reference to the related Register,
Debit, or
Preauthorize
containing the transaction reference (uuid
).
Possible values: <= 50 characters
20230315-6d432fb7217843388847
Decimal amount separated by .
, maximum of 3 decimals.
Possible values: Value must match regular expression ^(([0-9]+)|([0-9]+\.[0-9]{1,3}))$
9.99
ISO 4217 three-letter currency code.
Possible values: Value must match regular expression ^[A-Z]{3}$
EUR
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
URL where callbacks will be sent to.
Possible values: <= 255 characters
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
ISO 3166-1 alpha-2 country code.
Possible values: Value must match regular expression ^[A-Z]{2}$
AT
customer
object
Information on the customer making a payment.
Customer's ID.
Possible values: <= 36 characters
123
First name of the customer.
Possible values: <= 50 characters
Alex
Last name of the customer.
Possible values: <= 50 characters
Smith
Birthdate of customer.
RFC 3339 Internet Date/Time Format full-date
.
2001-02-03
Gender of the customer.
Possible values: [M
, F
]
F
Line one of the customer's billing address.
Possible values: <= 50 characters
Line two of the customer's billing address.
Possible values: <= 50 characters
City of the customer's billing address.
Possible values: <= 50 characters
Postal code of the customer's billing address.
Possible values: <= 16 characters
State of the customer's billing address.
Possible values: <= 30 characters
ISO 3166-1 alpha-2 country code.
Possible values: Value must match regular expression ^[A-Z]{2}$
AT
Possible values: <= 20 characters
+XX 1234567890
Possible values: <= 50 characters
Possible values: <= 50 characters
Possible values: <= 50 characters
Line one of the customer's shipping address.
Possible values: <= 50 characters
Line two of the customer's shipping address.
Possible values: <= 50 characters
City of the customer's shipping address.
Possible values: <= 50 characters
Postal code of the customer's shipping address.
Possible values: <= 16 characters
State of the customer's shipping address.
Possible values: <= 30 characters
ISO 3166-1 alpha-2 country code.
Possible values: Value must match regular expression ^[A-Z]{2}$
AT
Possible values: <= 20 characters
+XX 1234567890
Possible values: <= 50 characters
Possible values: <= 255 characters
Possible values: <= 50 characters
Possible values: <= 20 characters
IBAN of customer's bank account.
Possible values: <= 34 characters
BIC of customer's bank account.
Possible values: <= 11 characters
creditcard
object
Credit card data.
Name printed on card.
Possible values: <= 60 characters
Alex Smith
ISO 3166-1 alpha-2 country code.
Possible values: Value must match regular expression ^[A-Z]{2}$
AT
Expiration date - month.
Possible values: >= 1
and <= 12
4
Expiration date - year.
Possible values: <= 9999
2028
First 6 digits of card number.
Possible values: <= 6 characters
411111
Last 4 digits of card number.
Possible values: <= 4 characters
1111
Type of card.
Possible values: <= 15 characters
Visa
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"
}