v1

latestOpenAPI 3.1.02026-07-26490301.4 KB
Test payment data

Create test payment details

post/testPaymentData

Request body

type'visa' | 'mastercard' | 'diners club international' | 'jcb' | 'maestro' | 'sepa' | 'discover' | 'unionpay' | 'unionpay (19 digits)' required

Test payment data type

emulate3dsboolean required

Set to <b>true</b> to emulate the 3DS flow for this test payment data

balanceinteger required

Balance of the test payment details

currency'USD' | 'EUR' | 'GBP' ISO3 required

Currency of operation in ISO3 format

allowedIpsstring[] required

Allowed IPs array

commentstring

Optional comment for additional context

Example request

{
  "type": "visa",
  "emulate3ds": "true",
  "balance": "44"
}

Response

OK

idstring

Unique test payment ID

typestring

Test payment data type

emulate3dsboolean

Set to <b>true</b> to emulate the 3DS or SCA authentication process for this transaction

numberstring

Test payment data

balanceinteger

Test payment data balance

blockedboolean

Set to <b>true</b> to emulate blocked payment amount

allowedIpsstring[]

List of allowed IPs

createdAtinteger

Date when test payment details were created

updatedAtinteger

Date when test payment details were updated

commentstring

Comment for additional context

Example response

{
  "type": "visa",
  "number": "4024007179366348",
  "balance": 44
}