- Getting Started
- Payments and Withdrawals
- Callbacks
- Address validation
- Rates and metadata
Submit crypto payment
PATCH
/api/v1/payments/{paymentId}
Request
Authorization
Add parameter in header
FRX-API
Example:
FRX-API: ********************
Path Params
paymentId
string <uuid>
required
Body Params application/json
depositCurrency
enum<string>Â
required
Allowed values:
BCHBNBBTCETHLINKLTCSOLTRXUSDCUSDTXLMXRP
network
enum<string>Â
optional
depositCurrency
.Allowed values:
BCHBTCLTCXLMXRPETHBSCSOLTRX
displayCurrency
enum<string>Â
optional
Allowed values:
AEDARSAUDBDTBGNBRLCADCHFCLPCNYCZKDKKEURGBPHKDHRKHUFIDRILSINRISKJPYKESKRWMXNMYRNGNNOKNZDPENPHPPLNQARRONRUBSEKSGDTHBTRYUSDVNDZAR
displayAmount
stringÂ
optional
displayCurrency
, if not provided on payment creation.Example
{
"displayCurrency": "EUR",
"displayAmount": 50,
"depositCurrency": "USDT",
"network": "ETH"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://payments.finrax.com/api/v1/payments/' \
--header 'Content-Type: application/json' \
--header 'FRX-API;' \
--data-raw '{
"displayCurrency": "EUR",
"displayAmount": 50,
"depositCurrency": "USDT",
"network": "ETH"
}'
Responses
🟢200Returns the submitted payment.
application/json
Body
paymentInfo
object (DetailedPaymentResponse)Â
optional
paymentId
string <uuid>
required
clientPaymentId
stringÂ
required
businessId
string <uuid>
required
locale
stringÂ
required
status
enum<string>Â
required
Allowed values:
NEWPENDINGAWAITINGDEPOSITEDEXPIREDBLOCKEDOVERPAID
rateType
enum<string>Â
required
Allowed values:
FIXEDFLOATING
type
enum<string>Â
required
Allowed values:
ONE_TIMEREUSABLE
url
string <url>
required
overpaymentPolicy
enum<string>Â
optional
Allowed values:
PROCESSEXCESS_REFUND
refundFollowUpDepositsForOneTimePayments
booleanÂ
optional
processorType
enum<string>Â
required
Allowed value:
BLOCKCHAIN
walletAddress
stringÂ
optional
destinationTag
stringÂ
optional
displayCurrency
enum<string>Â
optional
Allowed values:
AEDARSAUDBDTBGNBRLCADCHFCLPCNYCZKDKKEURGBPHKDHRKHUFIDRILSINRISKJPYKESKRWMXNMYRNGNNOKNZDPENPHPPLNQARRONRUBSEKSGDTHBTRYUSDVNDZAR
expectedDisplayAmount
stringÂ
optional
displayCurrency
requested for this payment.expectedDisplayDistributedUserServiceFee
stringÂ
optional
displayCurrency
requested for this payment.actualDisplayAmount
stringÂ
required
displayCurrency
.actualDisplayDistributedUserServiceFee
stringÂ
required
displayCurrency
.depositCurrency
enum<string>Â
optional
Allowed values:
BCHBNBBTCETHLINKLTCSOLTRXUSDCUSDTXLMXRP
expectedNetwork
enum<string>Â
optional
Allowed values:
BCHBTCLTCXLMXRPETHBSCSOLTRX
expectedDepositAmount
stringÂ
optional
depositCurrency
to be deposited to fulfill the required amount in displayCurrency
.expectedDepositDistributedUserServiceFee
stringÂ
optional
depositCurrency
requested for this payment.actualDepositAmount
stringÂ
required
depositCurrency
by the end user.actualDepositDistributedUserServiceFee
stringÂ
required
depositCurrency
.expectedUniformAmount
stringÂ
optional
actualUniformAmount
stringÂ
required
userServiceFeeDistributionPercentage
stringÂ
required
redirectUrl
string <url>
optional
expirationMinutes
integer <int64>
required
>= 0
paymentInitiatedAt
integer <int64>
required
paymentRequestedAt
integer <int64>
optional
deposits
array[object (DetailedDepositResponse) {28}]Â
required
Example
{
"paymentInfo": {
"paymentId": "2fcd3399-49d4-45e0-b995-7c489f43fe08",
"clientPaymentId": "test-payment-23-12-18-1",
"businessId": "407710f4-de33-454b-a47f-dda792e272c8",
"locale": "en-US",
"status": "PENDING",
"rateType": "FLOATING",
"type": "ONE_TIME",
"url": "https://example.com/deposit/2fcd3399-49d4-45e0-b995-7c489f43fe08?theme=skilling&locale=en-US&sessionToken=eyJhbGciOiJIUzUxMiJ9.eyJidXNpbmVzc0lkIjoiNDA3NzEwZjQtZGUzMy00NTRiLWE0N2YtZGRhNzkyZTI3MmM4Iiwib3JnYW5pc2F0aW9uSWQiOiJjZjFlNjdkMC00NmY2LTRhMDAtODM3MC0wOTBhNTA4N2M4MGYiLCJpYXQiOjE3MDI5MDY4OTksInBheW1lbnRJZCI6IjJmY2QzMzk5LTQ5ZDQtNDVlMC1iOTk1LTdjNDg5ZjQzZmUwOCJ9.LUnvFdCySVS03SX2ym4eJdUDlQfTe2un_DZ3tbYAoc7c9ABj71Po43tVxLTGP7VknrSftjB5ItvEuxF9EGn84Q",
"overpaymentPolicy": "PROCESS",
"refundFollowUpDepositsForOneTimePayments": false,
"processorType": "BLOCKCHAIN",
"walletAddress": "0x356c19d41921eb88C03308F31700C3F08cbD36D4",
"displayCurrency": "EUR",
"expectedDisplayAmount": "50.00",
"expectedDisplayDistributedUserServiceFee": "0.00",
"actualDisplayAmount": "0.00",
"actualDisplayDistributedUserServiceFee": "0.00",
"depositCurrency": "USDT",
"expectedNetwork": "ETH",
"expectedDepositAmount": "54.759355",
"expectedDepositDistributedUserServiceFee": "0.000000",
"actualDepositAmount": "0",
"actualDepositDistributedUserServiceFee": "0",
"expectedUniformAmount": "50.00",
"actualUniformAmount": "0.00",
"userServiceFeeDistributionPercentage": "0.00",
"redirectUrl": "https://my-business.com/account?id=3423",
"expirationMinutes": 10080,
"paymentRequestedAt": 1702909646,
"paymentInitiatedAt": 1702906899,
"deposits": []
}
}
Modified at 2024-07-24 14:04:47