🔒Get business deposits
Last updated
Was this helpful?
Last updated
Was this helpful?
Fetch payments for a business.
ID of the business.
Returns payments.
const response = await fetch('/api/v1/businesses/{businessId}/payments', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"payments": [
{
"paymentId": "123e4567-e89b-12d3-a456-426614174000",
"clientPaymentId": "text",
"businessId": "123e4567-e89b-12d3-a456-426614174000",
"locale": "text",
"status": "NEW",
"rateType": "FIXED",
"type": "ONE_TIME",
"url": "text",
"overpaymentPolicy": "PROCESS",
"refundFollowUpDepositsForOneTimePayments": false,
"processorType": "BLOCKCHAIN",
"walletAddress": "text",
"destinationTag": "text",
"displayCurrency": "AED",
"expectedDisplayAmount": "text",
"expectedDisplayDistributedUserServiceFee": "text",
"actualDisplayAmount": "text",
"actualDisplayDistributedUserServiceFee": "text",
"depositCurrency": "BCH",
"expectedNetwork": "BCH",
"expectedDepositAmount": "text",
"expectedDepositDistributedUserServiceFee": "text",
"actualDepositAmount": "text",
"actualDepositDistributedUserServiceFee": "text",
"expectedUniformAmount": "text",
"actualUniformAmount": "text",
"userServiceFeeDistributionPercentage": "text",
"redirectUrl": "text",
"expirationMinutes": 0,
"paymentInitiatedAt": 0,
"paymentRequestedAt": 0,
"deposits": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"transactionId": "text",
"status": "PENDING_AML",
"fromAddress": "text",
"toAddress": "text",
"riskScore": "text",
"addressRiskAssessment": {
"addressOwner": {
"name": "text",
"category": "text"
},
"sourceRiskEntities": [
{
"name": "text",
"category": "text"
}
],
"destinationRiskEntities": [
{
"name": "text",
"category": "text"
}
]
},
"depositCurrency": "BCH",
"network": "BCH",
"depositAmount": "text",
"depositDistributedUserServiceFee": "text",
"onChainFee": "text",
"displayCurrency": "AED",
"displayAmount": "text",
"displayPayableAmount": "text",
"displayServiceFee": "text",
"displayDistributedUserServiceFee": "text",
"settlementCurrency": "BTC",
"settlementPayableAmount": "text",
"settlementServiceFee": "text",
"settlementDistributedUserServiceFee": "text",
"uniformCurrency": "text",
"uniformPayableAmount": "text",
"uniformServiceFee": "text",
"uniformDistributedUserServiceFee": "text",
"userServiceFeeDistributionPercentage": "text",
"depositReceivedAt": 0,
"refund": {
"type": "PARTIAL",
"status": "PENDING",
"reason": "OVERPAYMENT",
"depositCurrency": "BCH",
"network": "BCH",
"amount": "text",
"fee": "text",
"displayCurrency": "AED",
"displayAmount": "text",
"displayFee": "text",
"transactionId": "text",
"confirmedAt": 0
}
}
]
}
]
}