Crypto Payments
Accept an estimated payout
Changed onAccepts the current estimate and converts it into a pending crypto payment.
post/api/v1/pay/estimate/{externalId}/accept
Request
- Base URLhttps://api.sandbox.bvnk.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
externalIdstring uuid required
The ID of the estimate payout to accept.
Request body
Example request
{
"customerId": "9e9bb7cb-f5d4-4f7b-bada-6ad156f3a8d8",
"payOutDetails": {
"currency": "ETH",
"address": "0xb794f5ea0ba39494ce839613fffba74279579268"
},
"complianceDetails": {
"requesterIpAddress": "172.16.254.1",
"contactId": "1b083898-73ca-42ba-b433-7dc20ea67667",
"partyDetails": [
{
"type": "BENEFICIARY",
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "1984-06-30",
"relationshipType": "THIRD_PARTY",
"countryCode": "DE",
"regionCode": "UA-46"
}
]
}
}Response
OK
Example response
{
"uuid": "3A6FAFFA-F21D-416E-B17E-2529A9BC44A0",
"merchantDisplayName": "Test Merchant Name",
"walletId": "acc:23040543559277:x8rvQ:0",
"dateCreated": 1566203005000,
"expiryDate": 1566203005000,
"quoteExpiryDate": 1566203005000,
"acceptanceExpiryDate": 1566203005000,
"quoteStatus": "ACCEPTED",
"reference": "CryptoP-333",
"type": "IN",
"subType": "merchantPayIn",
"status": "PENDING",
"displayCurrency": {
"currency": "ETH",
"actual": 76.45
},
"walletCurrency": {
"currency": "ETH",
"actual": 76.45
},
"paidCurrency": {
"currency": "ETH",
"actual": 76.45
},
"feeCurrency": {
"currency": "ETH",
"actual": 76.45
},
"displayRate": {
"base": "ETH",
"counter": "EUR",
"rate": 1680.1
},
"exchangeRate": {
"base": "ETH",
"counter": "EUR",
"rate": 1680.1
},
"address": {
"address": "0xb794f5ea0ba39494ce839613fffba74279579268",
"network": "ETHEREUM",
"protocol": "ERC20",
"uri": "ethereum:0xABCDabcdABcDabcDaBCDAbcdABcdAbCdABcDABCd?value=1.1e18",
"alternatives": [
{
"network": "POLYGON",
"protocol": "POLYGON",
"address": "0x101bfbc5018b777cb531aa9d68511b96d800b9c6",
"tag": "null",
"uri": "polygon:0xA512f02EEa71580CBB7B5C3017F1f80A365f8329"
}
]
},
"returnUrl": "https://my-shop.com/payment-complete?ref=xyz",
"redirectUrl": "https://pay.bvnk.com/payin?uuid=3A6FAFFA-F21D-416E-B17E-2529A9BC44A0",
"transactions": [
{
"dateCreated": 1566203005000,
"dateConfirmed": 1566203005000,
"amount": 100,
"networkFeeCurrency": "BTC",
"networkFeeAmount": 1.05,
"sources": [
"0xb794f5ea0ba39494ce839613fffba74279579268"
],
"displayRate": {
"base": "ETH",
"counter": "EUR",
"rate": 1680.1
},
"exchangeRate": {
"base": "ETH",
"counter": "EUR",
"rate": 1680.1
}
}
],
"currencyOptions": {
"transaction": "https://etherscan.io/tx/{{hash}}",
"explorer": "https://etherscan.io/",
"address": "https://etherscan.io/address/{{address}}",
"confirmations": 12
},
"networkFeeCurrency": {
"currency": "EUR",
"amount": 1
},
"flow": "DEFAULT"
}Changes
- info
added the new
ARBITRUMenum value to the request property/ - info
added the new
ARCenum value to the request property/ - info
added the new
BASEenum value to the request property/
- info
- warning
removed the optional property
from the response with the status - info
added the optional property
to the response with the status
- warning