- Getting Started
- Payments and Withdrawals
- Callbacks
- Address validation
- Rates and metadata
🔒Fetch payments
GET
/api/v1/businesses/{id}/payments
Request
Authorization
Add parameter in header
FRX-API
Example:
FRX-API: ********************
Path Params
id
string <uuid>
required
Query Params
coins
array[string]
optional
Allowed values:
BCHBNBBTCETHLINKLTCSOLTRXUSDCUSDTXLMXRP
statuses
enum<string>Â
optional
Allowed values:
NEWPENDINGAWAITINGDEPOSITEDEXPIREDBLOCKEDOVERPAID
Example:
DEPOSITED
paymentId
string <uuid>
optional
clientPaymentId
stringÂ
optional
fromTxAddress
stringÂ
optional
Example:
bc1qz0m3ynhmmqkzx8tna7g8p6zkhzp9ssakqgayu6
walletTxAddress
stringÂ
optional
Example:
bc1qz0m3ynhmmqkzx8tna7g8p6zkhzp9ssakqgayu6
before
integer <int64>
optional
Example:
1702894529
after
integer <int64>
optional
Example:
1702894529
sortBy
stringÂ
optional
Default:
CREATED
Example:
CREATED
descending
stringÂ
optional
Default:
true
Example:
true
limit
integerÂ
optional
<= 2000
Default:
25
Example:
25
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/businesses//payments' \
--header 'FRX-API;'
Responses
🟢200Returns payments.
application/json
Body
payments
array[object (DetailedPaymentResponse) {32}]Â
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
{
"payments": [
{
"paymentId": "b66dc539-d323-4e56-9cf6-b8c3c761f403",
"clientPaymentId": "Not updating amounts",
"businessId": "407710f4-de33-454b-a47f-dda792e272c8",
"locale": "en-US",
"status": "EXPIRED",
"rateType": "FLOATING",
"type": "ONE_TIME",
"url": "https://example.com/deposit/b66dc539-d323-4e56-9cf6-b8c3c761f403?theme=skilling&locale=en-US&sessionToken=eyJhbGciOiJIUzUxMiJ9.eyJidXNpbmVzc0lkIjoiNDA3NzEwZjQtZGUzMy00NTRiLWE0N2YtZGRhNzkyZTI3MmM4Iiwib3JnYW5pc2F0aW9uSWQiOiJjZjFlNjdkMC00NmY2LTRhMDAtODM3MC0wOTBhNTA4N2M4MGYiLCJpYXQiOjE2OTYyNDc2OTUsInBheW1lbnRJZCI6ImI2NmRjNTM5LWQzMjMtNGU1Ni05Y2Y2LWI4YzNjNzYxZjQwMyJ9.4EotVp2ooWK9PsT1GOYjisgCGmJVcXVOQXbxqFAz3MSzntoq22fjp7nnc7qjjMb0cd5bjGNcC6Vn64GPTxNsbQ",
"overpaymentPolicy": "EXCESS_REFUND",
"refundFollowUpDepositsForOneTimePayments": true,
"processorType": "BLOCKCHAIN",
"walletAddress": "bc1ql8tnegglq95c6x3khu6xm53tddr0n2nsukmq82",
"displayCurrency": "EUR",
"expectedDisplayAmount": "10000.00",
"expectedDisplayDistributedUserServiceFee": "0.00",
"actualDisplayAmount": "0.00",
"actualDisplayDistributedUserServiceFee": "0.00",
"depositCurrency": "BTC",
"expectedNetwork": "BTC",
"expectedDepositAmount": "0.37401328",
"expectedDepositDistributedUserServiceFee": "0.00000000",
"actualDepositAmount": "0",
"actualDepositDistributedUserServiceFee": "0",
"expectedUniformAmount": "10000.00",
"actualUniformAmount": "0.00",
"userServiceFeeDistributionPercentage": "0.00",
"expirationMinutes": 10080,
"paymentRequestedAt": 1696247708,
"paymentInitiatedAt": 1696247695,
"deposits": []
},
{
"clientPaymentId": "payment-id-29-9",
"paymentId": "e49220db-961b-4f32-a70c-459353c1c2cf",
"businessId": "407710f4-de33-454b-a47f-dda792e272c8",
"locale": "en-US",
"status": "OVERPAID",
"rateType": "FIXED",
"type": "ONE_TIME",
"url": "https://example.com/deposit/e49220db-961b-4f32-a70c-459353c1c2cf?theme=skilling&locale=en-US&sessionToken=eyJhbGciOiJIUzUxMiJ9.eyJidXNpbmVzc0lkIjoiNDA3NzEwZjQtZGUzMy00NTRiLWE0N2YtZGRhNzkyZTI3MmM4Iiwib3JnYW5pc2F0aW9uSWQiOiJjZjFlNjdkMC00NmY2LTRhMDAtODM3MC0wOTBhNTA4N2M4MGYiLCJpYXQiOjE2OTU5Nzg2MTksInBheW1lbnRJZCI6ImU0OTIyMGRiLTk2MWItNGYzMi1hNzBjLTQ1OTM1M2MxYzJjZiJ9.YghiO1S0X-2FXHszlZIrMfqi79TlTczVMA_ClBq0ZtbQKPXtkQMhilW3p8qEU0v_8TfdFADmi6MHUT5e4WpR8w",
"overpaymentPolicy": "EXCESS_REFUND",
"refundFollowUpDepositsForOneTimePayments": true,
"processorType": "BLOCKCHAIN",
"walletAddress": "ltc1qf403sgjyhs4v4d8tumlr9ffn0dzsudvam6ly4l",
"displayCurrency": "EUR",
"expectedDisplayAmount": "45.00",
"expectedDisplayDistributedUserServiceFee": "0.00",
"actualDisplayAmount": "45.00",
"actualDisplayDistributedUserServiceFee": "0.00",
"depositCurrency": "LTC",
"expectedNetwork": "LTC",
"expectedDepositAmount": "0.72714600",
"expectedDepositDistributedUserServiceFee": "0.00000000",
"actualDepositAmount": "0.72566918",
"actualDepositDistributedUserServiceFee": "0.00000000",
"expectedUniformAmount": "45.00",
"actualUniformAmount": "45.00",
"userServiceFeeDistributionPercentage": "0.00",
"expirationMinutes": 30,
"paymentRequestedAt": 1695978628,
"paymentInitiatedAt": 1695978619,
"deposits": [
{
"id": "4e3ee4d6-0402-42e4-8e1d-a250211da571",
"transactionId": "f7bc2bfb2a0c6d982930c7936610d62985659e578738a44b250437bac471d15f",
"status": "CONFIRMED",
"fromAddress": "ltc1qtwcue0py8jzjyecky45303xqlyy4sltw28kpg3",
"toAddress": "ltc1qf403sgjyhs4v4d8tumlr9ffn0dzsudvam6ly4l",
"addressRiskAssessment": {
"addressOwner": {
"category": "Unknown",
"name": "Unknown"
},
"destinationRiskEntities": [],
"sourceRiskEntities": []
},
"depositCurrency": "LTC",
"network": "LTC",
"depositAmount": "0.72566918",
"depositDistributedUserServiceFee": "0.00000000",
"onChainFee": "0.00000277",
"displayCurrency": "EUR",
"displayAmount": "45.00",
"displayPayableAmount": "44.55",
"displayServiceFee": "0.45",
"displayDistributedUserServiceFee": "0.00",
"settlementCurrency": "EUR",
"settlementPayableAmount": "44.55",
"settlementServiceFee": "0.45",
"settlementDistributedUserServiceFee": "0.00",
"uniformCurrency": "EUR",
"uniformPayableAmount": "44.55",
"uniformServiceFee": "0.45",
"uniformDistributedUserServiceFee": "0.00",
"userServiceFeeDistributionPercentage": "0.00",
"depositReceivedAt": 1695978685,
"refund": {
"transactionId": "7fd6b12fbe43acd7cfbb0988278e03cd33d1f8a58adbae7673087a92549d105c",
"type": "PARTIAL",
"status": "CONFIRMED",
"reason": "OVERPAYMENT",
"depositCurrency": "LTC",
"network": "LTC",
"amount": "0.55937760",
"fee": "0.00000141",
"displayCurrency": "EUR",
"displayAmount": "34.58",
"displayFee": "0.00",
"confirmedAt": 1695979331
}
}
]
}
]
}
Modified at 2024-07-09 09:38:52