Skip to main content

Create payment session

POSThttps://api.radom.com/payment_session

Authorization

Send your API key in the Authorization header. Scheme: radomToken.

Request body

methodManagedPaymentMethodrequired
networkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
tokenstringnullable
discountPercentOffnumber<float>nullable>= 0
totalnumber<float>required>= 0

Total price to be paid in the session.

currencyCurrencyrequired
AllowedUSDCADGBPEURAEDINRSEKBRLNZDAUDHKDNOKDKKJPYCNYCHFSGDPLNMXNCZKHUFZARSARRUBTRYILSUSDCUSDTEURCBTCTEST0ETHBNBSOLTRXAVAXMATIC
alternativeEvmPaymentMethodsEVMPaymentMethod[]nullable

Select additional payment methods that will be accepted on the provided EVM-based payment address. E.g. You can opt to accept USDC on both Ethereum and BNB on the same payment address.

networkEVMNetworkrequired
AllowedEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnet
tokenstringnullable
chargeCustomerNetworkFeebooleannullable

Whether or not to pass the network fee to the customer to pay, in addition to the total supplied. If this is false, the network fee is subtracted from the supplied total, otherwise, it's added to the total. Defaults to false.

travelRuleFieldsOptionalTravelRuleFieldsnullable

Travel rule fields, not required for Open Banking checkout sessions.

namestringnullable
emailAddressstringnullable
countryOfResidencestringnullable
dateOfBirthstringnullable

Accepted date formats are YYYY-MM-DD, YYYY/MM/DD, DD-MM-YYYY or DD/MM/YYYY

companyNamestringnullable

If populated, the account_type will always be set to `Business`

addressLine1stringnullable

Primary address line

addressLine2stringnullable

Second address line

townOrCitystringnullable

Town or city

postalCodestringnullable

Postal or ZIP code

stateOrProvincestringnullable

State or province

accountTypeCustomerAccountTypenullable
AllowedIndividualBusiness
metadataMetadata[]nullable

Associated metadata

keystringrequired
valuestringrequired

Responses

200Payment session created successfully.
idstring<uuid>required
methodManagedPaymentMethodrequired
networkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
tokenstringnullable
discountPercentOffnumber<float>nullable>= 0
totalnumber<float>required>= 0

Total price to be paid in the session.

currencyCurrencyrequired
AllowedUSDCADGBPEURAEDINRSEKBRLNZDAUDHKDNOKDKKJPYCNYCHFSGDPLNMXNCZKHUFZARSARRUBTRYILSUSDCUSDTEURCBTCTEST0ETHBNBSOLTRXAVAXMATIC
sessionStatusPaymentSessionStatusrequired
Allowedpendingsuccesscancelledexpiredrefunded
paymentTotalnumber<float>required>= 0

The payment amount to be sent by the buyer to the payment address.

paymentAddressstringnullable

The payment address the buyer should send the payment amount to.

transactionsManagedTransaction[]required

Transactions, if any, made by the buyer to the payment address

networkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
transactionHashstringrequired
tokenstringnullable
amountnumber<float>required>= 0
blockTimestampstring<date-time>required
tickerstringnullable
senderAddressesSenderAddress[]required
addressstringrequired
canExtendbooleanrequired

If the payment session's expiration time can be extended to allow more time to checkout.

alternativeEvmPaymentMethodsAlternativeEVMPaymentMethod[]nullable

Additional payment methods that will be accepted on the provided EVM-based payment address.

networkEVMNetworkrequired
AllowedEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnet
tokenstringnullable
paymentTotalnumber<float>required>= 0

The total amount expected if paid using this alternative payment method.

networkFeenumber<float>nullable>= 0
expiresAtstring<date-time>nullable

The time when the payment expires. After this time has passed, funds sent to the payment address will not trigger a successful payment.

createdAtstring<date-time>required

Creation time of the payment session.

paymentPaymentDetailsnullable
managedobjectrequired
idstring<uuid>required
paymentEventIdstring<uuid>nullable
networkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
tokenstringnullable
amountnumber<float>required>= 0
networkFeenumber<float>required>= 0
transactionsManagedTransaction[]required
networkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
transactionHashstringrequired
tokenstringnullable
amountnumber<float>required>= 0
blockTimestampstring<date-time>required
tickerstringnullable
senderAddressesSenderAddress[]required
addressstringrequired
conversionRatesConversionRate[]required
fromstringrequired
tostringrequired
ratenumber<float>required>= 0
managedTokenDelegatePaymentobjectrequired
networkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
tokenstringnullable
amountnumber<float>required>= 0
transactionsManagedTransaction[]required
networkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
transactionHashstringrequired
tokenstringnullable
amountnumber<float>required>= 0
blockTimestampstring<date-time>required
tickerstringnullable
senderAddressesSenderAddress[]required
addressstringrequired
conversionRatesConversionRate[]required
fromstringrequired
tostringrequired
ratenumber<float>required>= 0
openBankingobjectrequired
idstring<uuid>required
paymentEventIdstring<uuid>nullable
networkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
tokenstringnullable
amountnumber<float>required>= 0
onrampStatusOnrampStatusrequired
AllowedAwaitingFundsFundsReceivedPaymentSubmittedCompleteCancelled
onrampGrossAmountstringnullable
onrampNetAmountstringnullable
onrampNetworkNetworknullable
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
onrampTokenstringnullable
onrampFeestringnullable
openBankingPaymentDataOpenBankingPaymentDatanullable
statusstringnullable

Provider payment lifecycle status for open-banking payments. This is optional and remains a string so Radom can pass through future provider statuses without breaking clients.

Allowedprocessingwaiting_for_paymentauthorizedfinalizingpaidfailedcanceledcancelledin_refundpartially_refundedrefundedrefund_failed
bankStatementReferencestringrequired
onrampStatusOnrampStatusrequired
AllowedAwaitingFundsFundsReceivedPaymentSubmittedCompleteCancelled
payerFinancialAddressPayerFinancialAddressnullable
ibanIbannullable
ibanstringrequired
accountHolderNamestringnullable
bicstringnullable
sortCodeSortCodenullable
sortCodestringrequired
accountNumberstringrequired
accountHolderNamestringnullable
bankCodeBankCodenullable
codestringrequired
accountNumberstringrequired
accountHolderNamestringnullable
bbanBbannullable
bbanstringrequired
accountHolderNamestringnullable
bicstringnullable
bankIdstringnullable
bankNamestringnullable
bankMarketstringnullable
paymentSchemestringnullable
instantPaymentSchemebooleannullable
statusHistoryListOrderStatusHistoryEntry[]nullable
currentStatusstring
reasonstring
createdAtstring
updatedAtstring
previousStatusstringnullable
shopperShoppernullable
emailstringnullable
phoneNumberstringnullable
paymentReferencestringnullable
endToEndIdstringnullable
remittanceInformationstringnullable
senderNamestringnullable
senderIbanstringnullable
senderBicstringnullable
senderSortCodestringnullable
senderAccountNumberstringnullable
senderBankCodestringnullable
senderBbanstringnullable
paymentSummaryPaymentSummarynullable
currencyCurrencyrequired
AllowedUSDCADGBPEURAEDINRSEKBRLNZDAUDHKDNOKDKKJPYCNYCHFSGDPLNMXNCZKHUFZARSARRUBTRYILSUSDCUSDTEURCBTCTEST0ETHBNBSOLTRXAVAXMATIC
grossAmountnumber<float>required>= 0
underpaidAmountnumber<float>required>= 0
overpaidAmountnumber<float>required>= 0
netAmountnumber<float>required>= 0
networkFeeAmountnumber<float>required>= 0
radomFeeAmountnumber<float>required>= 0
feeAmountnumber<float>required>= 0
conversionRatesConversionRate[]nullable

The conversion rates used to calculate the payment totals.

fromstringrequired
tostringrequired
ratenumber<float>required>= 0
refundsRefundDetails[]required

If a refund is issued, this field will be populated with the refund details.

statusRefundStatusrequired
Allowedpendingsuccesscancelledfailed
networkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
tokenstringnullable
amountnumber<float>nullable>= 0
chargeCustomerNetworkFeebooleanrequired
recipientAddressstringrequired
transactionHashstringnullable
createdAtstring<date-time>required
metadataMetadata[]required

Metadata associated with this payment session

keystringrequired
valuestringrequired
travelRuleFieldsIdstring<uuid>nullable

Id of associated travel rule fields entry

400Bad Request
errorstringrequired
401Unauthorized
errorstringrequired
500Internal server error
errorstringrequired