v1
latestOpenAPI 3.0.02026-07-242830146.7 KBTransaction
Payment quote creation method
post/v2/quote
Headers
X-Request-Signaturestring
Signature to sign the request. For more information see https://docs.payb.is/reference/signing-requests
X-User-IDstring
User ID detected by a public endpoint that uses the current one
X-User-IPstring
User IP detected by a public endpoint that uses the current one
X-User-Locale'en' | 'ru' | 'it' | 'fr' | 'es' | 'de' | 'pt' | 'ko'
X-Refererstring
Request body
Example request
{
"currencyCodeFrom": "USD",
"currencyCodeTo": "BTC-TESTNET",
"amount": "1032.02",
"directionChange": "from",
"requestedCurrency": "EUR",
"isReceivedAmount": true,
"paymentMethod": "credit-card",
"payoutMethod": "tether-trc20",
"promoCode": "twyc54eozw"
}Response
A Quote successfully created.
Example response
{
"id": "14b555fe-6e61-47bf-82f3-de39c7d79a46",
"currencyCodeFrom": "USD",
"currencyCodeTo": "BTC",
"exchangeRate": {
"from": "USD",
"to": "BTC",
"rate": "0.000015595"
},
"exchangeRateCryptoToFiat": null,
"requestedAmount": {
"amount": "500",
"currencyCode": "USD"
},
"requestedAmountType": "to",
"paymentMethods": [
{
"id": "credit-card",
"name": "Credit card",
"amountFrom": {
"amount": "500",
"currencyCode": "USD"
},
"amountTo": {
"amount": "0.0808632",
"currencyCode": "BTC"
},
"amountToEquivalent": {
"amount": "450",
"currencyCode": "USD"
},
"fees": {
"networkFee": {
"amount": "10",
"currencyCode": "USD"
},
"serviceFee": {
"amount": "40",
"currencyCode": "USD"
},
"totalFee": {
"amount": "50",
"currencyCode": "USD"
}
},
"expiresAt": "2022-06-13T16:42:44+0000"
}
],
"paymentMethodErrors": [
{
"paymentMethod": "credit-card",
"error": {
"message": "Minimum limit error",
"code": "VALIDATION_ERROR"
}
}
]
}