API документація
get
/api/v1/Payments/quotePrices a payment to a beneficiary in a different currency from the payment account, before it is sent: what the beneficiary receives, what is debited from the account (fee included), the fee and the exchange rate. The same beneficiary and minimum-amount checks as sending are applied, so a refusal is shown before confirming.
Payments
Параметри
accountId
query · string
Обов'язковий
contactId
query · string
Обов'язковий
amount
query · number
Обов'язковий
currency
query · string
Обов'язковий
version
path · string
Обов'язковий
Відповіді
- 200The price of the payment. Rates move, so the amount debited when sending can differ slightly.application/json
{ "bankAmount": { "amount": 8, "currency": { "value": "EUR" } }, "debitAmount": { "amount": 10.096862, "currency": { "value": "USDC" } }, "fee": { "amount": 1, "currency": { "value": "USDC" } }, "exchangeRate": 0.8914, "exchangeRateFrom": "USDC", "exchangeRateTo": "EUR", "minimumDebit": { "amount": 5, "currency": { "value": "USDC" } } } - 204This beneficiary is paid in the account currency, so there is nothing to price.
- 400The payment cannot be made, for example it is below the minimum or the beneficiary is not approved. The body is a message to show the user.application/json
"string"
- 401Not authenticated.application/json
{}