Simulator
The following section refers to APIs which can be used to simulate incoming payments. Available only on the sandbox environment
Simulating payment status update
POST /v1/simulator/payment-status/update/{transactionId}
Simulate a status update of the payment with the given transaction ID, to CANCELLED, SCHEDULED or PROCESSED. A webhook is sent as for a real update.
Available only on the sandbox environment
Requires the X-Api-Key and X-Api-Secret headers.
Parameters
transactionIdrequired path · integerX-Signatureheader · stringX-Signature-Key-Idheader · string
Request body
statusrequired stringNew payment status
Allowed values:
CANCELLEDSCHEDULEDPROCESSEDcommentrequired stringFree-text details about the update
Responses
200 Updated transaction
transactionIdinteger · int64Platform transaction ID
accountIdinteger · int64ID of the currency account for which the transaction is created
merchantIdinteger · int64ID of the Merchant
parentMerchantIdinteger · int64ID of the Parent Merchant
merchantNamestringName of the Merchant
createdTimestring · date-timeWhen the transaction was created, UTC, ISO 8601 with second precision
lastStatusUpdateTimestring · date-timeWhen the transaction last changed status (confirmation time, or creation time if not yet confirmed), UTC
statusstringStatus of the transaction, see Transaction status above
Allowed values:
INITIALPENDINGSCHEDULEDPROCESSEDCANCELLEDFAILEDbalancenumberAccount balance after this transaction
transactionAmountnumberAmount of the transaction in the account currency, rounded to the currency precision
processingAmountnumberAmount in the processing (payment) currency
transactionCurrencystringCurrency of the transaction
processingCurrencystringProcessing (payment) currency
directionstringDirection of the transaction:
DEPOSIT, money going into your account (credit);WITHDRAW, money going out of your account (debit)Allowed values:
DEPOSITWITHDRAWtypestringHuman-readable type of the transaction. May change; use
categoryfor programmatic handlingcategorystringCategory of the transaction, see Transaction categories above. Not a closed list
paymentMethodstringKey of the payment method used for the transaction
requestIdinteger · int64ID of the payment request (if applicable)
payerNamestringName of the payer
payerEmailstringEmail of the payer
counterpartyEmailstringEmail of the counterparty
counterpartyNamestringName of the counterparty
counterpartyBankstringBank name of the counterparty
counterpartyIbanstringIBAN of the counterparty. For checkout payments only returned when full account info is enabled on your account
counterpartyLast4DigitsstringLast 4 digits of the counterparty bank account
foreignTransactionIdstringUnique identifier passed by the merchant for this transaction
referencestringBank reference/other descriptor used for this transaction
parentTransactionIdinteger · int64ID of the transaction's parent
linkedTransactionsarray of LinkedTransactionsApiResponseTransactions linked to this one. Only returned by Search transactions with
include: [LINKED_TRANSACTIONS]Show fields
linkTypestringFEE: the linked transaction is a fee for this one.FEE_FOR: this transaction is a fee for the linked one.REFUND: this is a refund of the linked transaction.REFUNDED_BY: the linked transaction refunds this oneAllowed values:
REFUNDED_BYFEE_FORREFUNDFEEtransactionTransactionApiResponseTransaction affecting your merchant currency account
Show fields
Recursive reference to TransactionApiResponse
destinationCryptoAddressDetailsCryptoAddressDetailsDeposit address details, only for pending crypto checkout payments
Show fields
addressstringThe address of a crypto transaction
tagstringThe address tag of a crypto transaction
currencystringThe currency of a crypto transaction
expectedAmountnumberThe expected amount of a crypto transaction
statusCodeinteger · int64Status code in case of failed transaction
statusMessagestringStatus message in case of failed transaction
userMessagestringLast message shown to the customer. Only returned when enabled on your account
feebooleanSame as
isFee(kept for compatibility)isFeebooleanWhether this transaction is a fee (transaction, service or otherwise)
400 The request is malformed or failed validation
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
401 Missing or invalid API credentials, or invalid request signature
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
409 The request conflicts with the merchant setup or the current state of the resource
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
429 Rate limit exceeded
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
500 Unexpected error
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
Simulating manual review update
POST /v1/simulator/manual-review/update/{transactionId}
Simulate the outcome of a manual review of the transaction with the given ID: PROCESS approves it, DECLINE declines it.
Available only on the sandbox environment
Requires the X-Api-Key and X-Api-Secret headers.
Parameters
transactionIdrequired path · integerX-Signatureheader · stringX-Signature-Key-Idheader · string
Request body
actionrequired stringPROCESSapproves,DECLINEdeclines the transaction under manual reviewAllowed values:
PROCESSDECLINEcommentstringExtra details about the manual review update
Responses
200 Updated manual review
transactionIdinteger · int64statusstringAllowed values:
PENDINGDECLINEDAPPROVEDBROKENWAITING_COMPLIANCE_REVIEWWAITING_SECOND_APPROVALDOCUMENTS_REQUESTEDDOCUMENTS_UPLOADED
400 The request is malformed or failed validation
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
401 Missing or invalid API credentials, or invalid request signature
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
409 The request conflicts with the merchant setup or the current state of the resource
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
429 Rate limit exceeded
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
500 Unexpected error
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
Simulate crypto payment
POST /v1/simulator/crypto/payment
Simulate an incoming crypto payment to an address returned by Create Crypto Payment Request. Available only on the sandbox environment
Requires the X-Api-Key and X-Api-Secret headers.
Parameters
X-Signatureheader · stringSignature header containing request body signature. Signed using the signature key provided to the merchant. If SKIP_SIGNATURE_CHECK capability is enabled on the merchant account this parameter is not required and will not be validated
X-Signature-Key-Idheader · stringKey ID header used for signing request body If SKIP_SIGNATURE_CHECK capability is enabled on the merchant account this parameter is not required and will not be validated
Request body
Request body for the payment to be initiated
currencyrequired stringCryptocurrency of the simulated payment
amountrequired numberAmount of the simulated payment
addressrequired stringCrypto address returned by Create Crypto Payment Request
tagstringDestination tag/memo. Only for XRP
Responses
200 Crypto payment simulated
400 The request is malformed or failed validation
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
401 Missing or invalid API credentials, or invalid request signature
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
409 The request conflicts with the merchant setup or the current state of the resource
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
429 Rate limit exceeded
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
500 Unexpected error
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring