- Getting Started
- Payments and Withdrawals
- Callbacks
- Address validation
- Rates and metadata
Fetch payment by ID
GET
/api/v1/payments/{paymentId}
POST /payments
.Request
Authorization
Add parameter in header
FRX-API
Example:
FRX-API: ********************
Path Params
paymentId
string <uuid>
required
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 GET 'https://payments.finrax.com/api/v1/payments/' \
--header 'FRX-API;'
Responses
🟢200Returns the payment with the specified ID.
application/json
Body
paymentId
string <uuid>
required
clientPaymentId
stringÂ
required
POST /payments
.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
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
.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Â
optional
depositCurrency
by the end user.expectedUniformAmount
stringÂ
optional
actualUniformAmount
stringÂ
optional
userServiceFeeDistributionPercentage
stringÂ
required
redirectUrl
stringÂ
optional
expirationMinutes
integer <int64>
required
>= 0
paymentRequestedAt
integer <int64>
optional
paymentInitiatedAt
integer <int64>
required
deposits
array[object (BasicDepositResponse) {14}]Â
required
id
string <uuid>
required
transactionId
stringÂ
required
status
enum<string>Â
required
Allowed values:
PENDING_AMLCOMPLIANCE_REVIEWUNCONFIRMEDCONFIRMEDBLOCKED
fromAddress
stringÂ
required
toAddress
stringÂ
required
onChainFee
stringÂ
required
depositCurrency
, paid by the end user.depositCurrency
enum<string>Â
required
Allowed values:
BCHBNBBTCETHLINKLTCSOLTRXUSDCUSDTXLMXRP
network
enum<string>Â
required
Allowed values:
BCHBTCLTCXLMXRPETHBSCSOLTRX
depositAmount
stringÂ
required
depositCurrency
.displayCurrency
enum<string>Â
required
Allowed values:
AEDARSAUDBDTBGNBRLCADCHFCLPCNYCZKDKKEURGBPHKDHRKHUFIDRILSINRISKJPYKESKRWMXNMYRNGNNOKNZDPENPHPPLNQARRONRUBSEKSGDTHBTRYUSDVNDZAR
displayAmount
stringÂ
required
displayCurrency
.userServiceFeeDistributionPercentage
stringÂ
required
depositReceivedAt
integer <int64>
required
refund
object (RefundResponse)Â
optional
Example
{
"paymentId": "1ede8457-ef97-432b-9f35-ec56ad7a5483",
"clientPaymentId": "payment-id-11-27",
"businessId": "407710f4-de33-454b-a47f-dda792e272c8",
"locale": "en-US",
"status": "DEPOSITED",
"rateType": "FIXED",
"type": "ONE_TIME",
"url": "https://example.com/deposit/1ede8457-ef97-432b-9f35-ec56ad7a5483?theme=skilling&locale=en-US&sessionToken=eyJhbGciOiJIUzUxMiJ9.eyJidXNpbmVzc0lkIjoiNDA3NzEwZjQtZGUzMy00NTRiLWE0N2YtZGRhNzkyZTI3MmM4Iiwib3JnYW5pc2F0aW9uSWQiOiJjZjFlNjdkMC00NmY2LTRhMDAtODM3MC0wOTBhNTA4N2M4MGYiLCJpYXQiOjE3MDEwNzg3ODcsInBheW1lbnRJZCI6IjFlZGU4NDU3LWVmOTctNDMyYi05ZjM1LWVjNTZhZDdhNTQ4MyJ9.jSFhewoOVOB5tkTAL-UaeQZvt4XtxbRYi0BYMkprDLwwrvMNTW7K7M7g80PJtPVXqM4eGAIyUKaILWdMLsM6Ug",
"overpaymentPolicy": "PROCESS",
"refundFollowUpDepositsForOneTimePayments": false,
"walletAddress": "bc1qse8f5fn4r06kae0q8umrcg587cjjsvpqjcjr3a",
"displayCurrency": "EUR",
"expectedDisplayAmount": "45.00",
"expectedDisplayDistributedUserServiceFee": "0.00",
"actualDisplayAmount": "45.00",
"depositCurrency": "BTC",
"expectedNetwork": "BTC",
"expectedDepositAmount": "0.00132076",
"expectedDepositDistributedUserServiceFee": "0.00000000",
"actualDepositAmount": "0.00132076",
"expectedUniformAmount": "45.00",
"userServiceFeeDistributionPercentage": "0.00",
"expirationMinutes": 30,
"paymentRequestedAt": 1701078868,
"paymentInitiatedAt": 1701078787,
"deposits": [
{
"id": "ace94de0-caae-47cb-b292-44669fd4c633",
"transactionId": "a20d743f945ad99f602a7b56f6f0f7f038704afd72a7ecb75b653b7afb865da4",
"status": "CONFIRMED",
"fromAddress": "bc1qe5m4h2ldcfn9ma833c0skw23ryx38x43c2ykx8",
"toAddress": "bc1qse8f5fn4r06kae0q8umrcg587cjjsvpqjcjr3a",
"depositCurrency": "BTC",
"network": "BTC",
"depositAmount": "0.00132076",
"onChainFee": "0.00009644",
"displayCurrency": "EUR",
"displayAmount": "45.00",
"userServiceFeeDistributionPercentage": "0.00"
"depositReceivedAt": 1701079084
}
]
}
Modified at 2024-07-24 14:04:47