Crypto Payments
Binance Pay
Auth-Service API
curl --location --request POST 'https://{{baseUrl}}/auth-service/1.1/protocol/openid-connect/token' \
--header 'x-api-key: {{apikey}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username={{username}}' \
--data-urlencode 'password={{password}}'
{
"access_token": "{{access_token}}",
"expires_in": 300,
"refresh_expires_in": 1800,
"refresh_token": "{{refresh_token}}",
"token_type": "Bearer",
"not-before-policy": 0,
"session_state": "{{session_state}}",
"scope": "profile email"
}
Payment-Methods API
curl --location --request GET 'https://{{baseUrl}}/payment-methods/1.0/paymentmethodtypes?paymentMethodTypeClass=crypto' \
--header 'X-User-Bearer: {{access_token}}' \
--header 'x-api-key: {{apikey}}'
[
{
"country": "UY",
"currency": "USD",
"directUsage": true,
"direction": "in",
"fields": [
{
"description": "First Name",
"fieldType": "input",
"isUserField": true,
"mandatory": true,
"name": "first_name",
"regex": "^[a-zA-Z ]+$",
"validOptions": []
},
{
"description": "Last Name",
"fieldType": "input",
"isUserField": true,
"mandatory": true,
"name": "last_name",
"regex": "^[a-zA-Z ]+$",
"validOptions": []
}
],
"imageURL": "https://inswitchpublic2.s3.amazonaws.com/Binancelogo1.png",
"paymentMethodType": "binancepayin-uy",
"paymentMethodTypeClass": "crypto",
"paymentMethodTypeDescription": "Binance Pay",
"paymentMethodTypePos": [],
"paymentMethodTypeStatus": "available",
"protected": false,
"storable": false,
"usage": null
}
Transactions API
curl --location --request POST '{{baseUrl}}/transactions/1.0/transactions/type/deposit' \
--header 'x-api-key: {{apikey}}' \
--header 'X-User-Bearer: {{access_token}}' \
--header 'X-CorrelationID: e051c99b-f91d-4b2f-a08d-5fe62b744669' \
--header 'X-Callback-URL: {{callbackUrl}}' \
--header 'X-Redirect-OK: https://mysite.com/success' \
--header 'X-Redirect-Error: https://mysite.com/error' \
--header 'X-Channel: WS' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": "2.50",
"currency": "USD",
"debitParty": {
"type": "binancepayin-uy",
"data": {
"first_name": "Gonzalo",
"last_name": "Zabala"
}
},
"creditParty": {
"paymentMethodReference": "{{payment_reference}}"
},
"descriptionText": "Payment Isuing Binance Pay",
"requestingOrganisationTransactionReference": "100034",
"country": "UY"
}'
{
"amount": "2.50000000",
"conciliationOptions": [
"finished",
"error"
],
"confirmed": true,
"country": "UY",
"creationDate": "2022-08-26T19:01:06.649799Z",
"creditParty": {
"data": {
"ACCOUNT_ID": "1000572"
},
"paymentMethodReference": "3336313333352D313030302D31393433",
"type": "emoneyin-usd",
"typeClass": "emoneyin",
"typeCountry": null
},
"currency": "USD",
"debitParty": {
"data": {
"first_name": "Gonzalo",
"last_name": "Zabala"
},
"type": "binancepayin-uy",
"typeClass": "crypto",
"typeCountry": "UY"
},
"descriptionText": "Payment Isuing Binance Pay",
"fees": {
"creditPartyEarnedCommission": "0.00000000",
"creditPartyNetCommission": "0.00000000",
"creditPartyPaidCommission": "0.00000000",
"debitPartyEarnedCommission": "0.00000000",
"debitPartyNetCommission": "0.00000000",
"debitPartyPaidCommission": "0.00000000"
},
"fx": {},
"geoCode": "",
"metadata": [
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "SV_TRANSACTION_ID",
"value": "103628"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_PAID_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:07Z",
"key": "prepayId",
"value": "179752256999931904"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_NET_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_EARNED_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_NET_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_PAID_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_EARNED_COMMISSION",
"value": "0.00000000"
}
],
"modificationDate": "2022-08-26T19:01:07.589824Z",
"recipientKyc": {},
"requestDate": "",
"requestingOrganisationTransactionReference": "100034",
"requiredAction": {
"actionType": "redirecturl",
"data": {
"additionalInformation": [
{
"key": "qrCodeLink",
"value": "https://public.bnbstatic.com/static/payment/20220826/d3a7c107-bb14-4257-8586-d71fcf69ed34.jpg"
},
{
"key": "qrCodeContent",
"value": "https://app.binance.com/qr/dplkbb9a3cd8713c46f282918dda7732767a"
},
{
"key": "deepLink",
"value": "bnc://app.binance.com/payment/secpay?tempToken=qzjv00WU9LbliSeg1ZxchjpKHcAajNWj&returnLink=https://pay.binance.com/en/checkout/646996ce1ca64d4f83a1adb6d1d8322a"
},
{
"key": "checkoutLink",
"value": "https://pay.binance.com/en/checkout/646996ce1ca64d4f83a1adb6d1d8322a"
}
],
"redirectURL": "https://app.binance.com/payment/secpay?linkToken=646996ce1ca64d4f83a1adb6d1d8322a&_dp=Ym5jOi8vYXBwLmJpbmFuY2UuY29tL3BheW1lbnQvc2VjcGF5P3RlbXBUb2tlbj1xemp2MDBXVTlMYmxpU2VnMVp4Y2hqcEtIY0Fhak5XaiZyZXR1cm5MaW5rPWh0dHBzOi8vcGF5LmJpbmFuY2UuY29tL2VuL2NoZWNrb3V0LzY0Njk5NmNlMWNhNjRkNGY4M2ExYWRiNmQxZDgzMjJh"
},
"expirationDate": "2022-08-26T20:01:07Z",
"relatedPaymentMethodData": {
"paymentMethodType": "binancepayin-uy",
"paymentMethodTypeClass": "crypto",
"paymentMethodTypeCountry": "UY",
"paymentMethodTypeDescription": "Binance Pay"
},
"status": "active"
},
"senderKyc": {},
"subType": "",
"transactionReference": "1002460",
"transactionStatus": "waiting",
"type": "deposit"
}
Callbacks
curl --location --request PUT '{{callback_URL}}' \
--header 'connection: close' \
--header 'accept-encoding: gzip' \
--header 'x-timestamp: 2022-08-26T19:01:07.609285Z' \
--header 'x-signature: vUddkOuHWdue42gWQxPNO6ZN8h1WmfarhBK4OaUHsYlsPvOzSal08IT2zMJsmbKaOpneHEHE9Lm70d/XpIWG5VglSqA2TX2orpt/qpaIn59yzfUEoEdN8nAVVfspbLadW5VHkDlavhyuWFVPlnridWdl9rjsxg6B44to7NurpFVn4wSSCHbtBqL8IePld3N2AUg/N/7tI6Dk4nWxsB835lbXhGSztXCNozlqOBE5KQslsIWYy0ciZZ8YqHpmXPisy6v0nKA+Ke7QModCRtXtad8WhR/oz+G7cHPtHwZRGF4SCveB2lyD85WyGzCfX9TLhiAs80T51Zj033OQRr0K9Q==' \
--header 'x-correlationid: e051c99b-f91d-4b2f-a08d-5fe62b744669' \
--header 'content-type: application/json' \
--header 'content-length: 2948' \
--data-raw '{
"amount": "2.50000000",
"conciliationOptions": [
"finished",
"error"
],
"confirmed": true,
"country": "UY",
"creationDate": "2022-08-26T19:01:06.649799Z",
"creditParty": {
"data": {
"ACCOUNT_ID": "1000572"
},
"paymentMethodReference": "3336313333352D313030302D31393433",
"type": "emoneyin-usd",
"typeClass": "emoneyin",
"typeCountry": null
},
"currency": "USD",
"debitParty": {
"data": {
"first_name": "Gonzalo",
"last_name": "Zabala"
},
"type": "binancepayin-uy",
"typeClass": "crypto",
"typeCountry": "UY"
},
"descriptionText": "Payment Isuing Binance Pay",
"fees": {
"creditPartyEarnedCommission": "0.00000000",
"creditPartyNetCommission": "0.00000000",
"creditPartyPaidCommission": "0.00000000",
"debitPartyEarnedCommission": "0.00000000",
"debitPartyNetCommission": "0.00000000",
"debitPartyPaidCommission": "0.00000000"
},
"fx": {},
"geoCode": "",
"metadata": [
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "SV_TRANSACTION_ID",
"value": "103628"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_PAID_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:07Z",
"key": "prepayId",
"value": "179752256999931904"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_NET_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_EARNED_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_NET_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_PAID_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_EARNED_COMMISSION",
"value": "0.00000000"
}
],
"modificationDate": "2022-08-26T19:01:07.589824Z",
"recipientKyc": {},
"requestDate": "",
"requestingOrganisationTransactionReference": "100034",
"requiredAction": {
"actionType": "redirecturl",
"data": {
"additionalInformation": [
{
"key": "qrCodeLink",
"value": "https://public.bnbstatic.com/static/payment/20220826/d3a7c107-bb14-4257-8586-d71fcf69ed34.jpg"
},
{
"key": "qrCodeContent",
"value": "https://app.binance.com/qr/dplkbb9a3cd8713c46f282918dda7732767a"
},
{
"key": "deepLink",
"value": "bnc://app.binance.com/payment/secpay?tempToken=qzjv00WU9LbliSeg1ZxchjpKHcAajNWj&returnLink=https://pay.binance.com/en/checkout/646996ce1ca64d4f83a1adb6d1d8322a"
},
{
"key": "checkoutLink",
"value": "https://pay.binance.com/en/checkout/646996ce1ca64d4f83a1adb6d1d8322a"
}
],
"redirectURL": "https://app.binance.com/payment/secpay?linkToken=646996ce1ca64d4f83a1adb6d1d8322a&_dp=Ym5jOi8vYXBwLmJpbmFuY2UuY29tL3BheW1lbnQvc2VjcGF5P3RlbXBUb2tlbj1xemp2MDBXVTlMYmxpU2VnMVp4Y2hqcEtIY0Fhak5XaiZyZXR1cm5MaW5rPWh0dHBzOi8vcGF5LmJpbmFuY2UuY29tL2VuL2NoZWNrb3V0LzY0Njk5NmNlMWNhNjRkNGY4M2ExYWRiNmQxZDgzMjJh"
},
"expirationDate": "2022-08-26T20:01:07Z",
"relatedPaymentMethodData": {
"paymentMethodType": "binancepayin-uy",
"paymentMethodTypeClass": "crypto",
"paymentMethodTypeCountry": "UY",
"paymentMethodTypeDescription": "Binance Pay"
},
"status": "active"
},
"senderKyc": {},
"subType": "",
"transactionReference": "1002460",
"transactionStatus": "waiting",
"type": "deposit"
}'
curl --location --request PUT '{{callback_URL}}' \
--header 'connection: close' \
--header 'accept-encoding: gzip' \
--header 'x-timestamp: 2022-08-26T19:01:07.609285Z' \
--header 'x-signature: vUddkOuHWdue42gWQxPNO6ZN8h1WmfarhBK4OaUHsYlsPvOzSal08IT2zMJsmbKaOpneHEHE9Lm70d/XpIWG5VglSqA2TX2orpt/qpaIn59yzfUEoEdN8nAVVfspbLadW5VHkDlavhyuWFVPlnridWdl9rjsxg6B44to7NurpFVn4wSSCHbtBqL8IePld3N2AUg/N/7tI6Dk4nWxsB835lbXhGSztXCNozlqOBE5KQslsIWYy0ciZZ8YqHpmXPisy6v0nKA+Ke7QModCRtXtad8WhR/oz+G7cHPtHwZRGF4SCveB2lyD85WyGzCfX9TLhiAs80T51Zj033OQRr0K9Q==' \
--header 'x-correlationid: e051c99b-f91d-4b2f-a08d-5fe62b744669' \
--header 'content-type: application/json' \
--header 'content-length: 2948' \
--data-raw '{
"amount": "2.50000000",
"conciliationOptions": [
],
"confirmed": true,
"country": "UY",
"creationDate": "2022-08-26T19:01:06.649799Z",
"creditParty": {
"data": {
"ACCOUNT_ID": "1000572"
},
"paymentMethodReference": "3336313333352D313030302D31393433",
"type": "emoneyin-usd",
"typeClass": "emoneyin",
"typeCountry": null
},
"currency": "USD",
"debitParty": {
"data": {
"first_name": "Gonzalo",
"last_name": "Zabala"
},
"type": "binancepayin-uy",
"typeClass": "crypto",
"typeCountry": "UY"
},
"descriptionText": "Payment Isuing Binance Pay",
"fees": {
"creditPartyEarnedCommission": "0.00000000",
"creditPartyNetCommission": "0.00000000",
"creditPartyPaidCommission": "0.00000000",
"debitPartyEarnedCommission": "0.00000000",
"debitPartyNetCommission": "0.00000000",
"debitPartyPaidCommission": "0.00000000"
},
"fx": {},
"geoCode": "",
"metadata": [
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "SV_TRANSACTION_ID",
"value": "103628"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_PAID_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:07Z",
"key": "prepayId",
"value": "179752256999931904"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_NET_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_EARNED_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_NET_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_PAID_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_EARNED_COMMISSION",
"value": "0.00000000"
}
],
"modificationDate": "2022-08-26T19:01:07.589824Z",
"recipientKyc": {},
"requestDate": "",
"requestingOrganisationTransactionReference": "100034",
"requiredAction": {
"actionType": "redirecturl",
"data": {
"additionalInformation": [
{
"key": "qrCodeLink",
"value": "https://public.bnbstatic.com/static/payment/20220826/d3a7c107-bb14-4257-8586-d71fcf69ed34.jpg"
},
{
"key": "qrCodeContent",
"value": "https://app.binance.com/qr/dplkbb9a3cd8713c46f282918dda7732767a"
},
{
"key": "deepLink",
"value": "bnc://app.binance.com/payment/secpay?tempToken=qzjv00WU9LbliSeg1ZxchjpKHcAajNWj&returnLink=https://pay.binance.com/en/checkout/646996ce1ca64d4f83a1adb6d1d8322a"
},
{
"key": "checkoutLink",
"value": "https://pay.binance.com/en/checkout/646996ce1ca64d4f83a1adb6d1d8322a"
}
],
"redirectURL": "https://app.binance.com/payment/secpay?linkToken=646996ce1ca64d4f83a1adb6d1d8322a&_dp=Ym5jOi8vYXBwLmJpbmFuY2UuY29tL3BheW1lbnQvc2VjcGF5P3RlbXBUb2tlbj1xemp2MDBXVTlMYmxpU2VnMVp4Y2hqcEtIY0Fhak5XaiZyZXR1cm5MaW5rPWh0dHBzOi8vcGF5LmJpbmFuY2UuY29tL2VuL2NoZWNrb3V0LzY0Njk5NmNlMWNhNjRkNGY4M2ExYWRiNmQxZDgzMjJh"
},
"expirationDate": "2022-08-26T20:01:07Z",
"relatedPaymentMethodData": {
"paymentMethodType": "binancepayin-uy",
"paymentMethodTypeClass": "crypto",
"paymentMethodTypeCountry": "UY",
"paymentMethodTypeDescription": "Binance Pay"
},
"status": "confirmed"
},
"senderKyc": {},
"subType": "",
"transactionReference": "1002460",
"transactionStatus": "finished",
"type": "deposit"
}'
curl --location --request PUT '{{callback_URL}}' \
--header 'connection: close' \
--header 'accept-encoding: gzip' \
--header 'x-timestamp: 2022-08-26T19:01:07.609285Z' \
--header 'x-signature: vUddkOuHWdue42gWQxPNO6ZN8h1WmfarhBK4OaUHsYlsPvOzSal08IT2zMJsmbKaOpneHEHE9Lm70d/XpIWG5VglSqA2TX2orpt/qpaIn59yzfUEoEdN8nAVVfspbLadW5VHkDlavhyuWFVPlnridWdl9rjsxg6B44to7NurpFVn4wSSCHbtBqL8IePld3N2AUg/N/7tI6Dk4nWxsB835lbXhGSztXCNozlqOBE5KQslsIWYy0ciZZ8YqHpmXPisy6v0nKA+Ke7QModCRtXtad8WhR/oz+G7cHPtHwZRGF4SCveB2lyD85WyGzCfX9TLhiAs80T51Zj033OQRr0K9Q==' \
--header 'x-correlationid: e051c99b-f91d-4b2f-a08d-5fe62b744669' \
--header 'content-type: application/json' \
--header 'content-length: 2948' \
--data-raw '{
"amount": "2.50000000",
"conciliationOptions": [],
"confirmed": true,
"country": "UY",
"creationDate": "2022-08-26T19:01:06.649799Z",
"creditParty": {
"data": {
"ACCOUNT_ID": "1000572"
},
"paymentMethodReference": "3336313333352D313030302D31393433",
"type": "emoneyin-usd",
"typeClass": "emoneyin",
"typeCountry": null
},
"currency": "USD",
"debitParty": {
"data": {
"first_name": "Gonzalo",
"last_name": "Zabala"
},
"type": "binancepayin-uy",
"typeClass": "crypto",
"typeCountry": "UY"
},
"descriptionText": "Payment Isuing Binance Pay",
"fx": {},
"geoCode": "",
"metadata": [
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "SV_TRANSACTION_ID",
"value": "103628"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_PAID_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:07Z",
"key": "prepayId",
"value": "179752256999931904"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_NET_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_EARNED_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "DEBIT_PARTY_NET_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_PAID_COMMISSION",
"value": "0.00000000"
},
{
"creationDate": "2022-08-26T19:01:06Z",
"key": "CREDIT_PARTY_EARNED_COMMISSION",
"value": "0.00000000"
}
],
"modificationDate": "2022-08-26T20:01:49.051807Z",
"recipientKyc": {},
"requestDate": "",
"requestingOrganisationTransactionReference": "100034",
"requiredAction": {
"actionType": "redirecturl",
"data": {
"additionalInformation": [
{
"key": "qrCodeLink",
"value": "https://public.bnbstatic.com/static/payment/20220826/d3a7c107-bb14-4257-8586-d71fcf69ed34.jpg"
},
{
"key": "qrCodeContent",
"value": "https://app.binance.com/qr/dplkbb9a3cd8713c46f282918dda7732767a"
},
{
"key": "deepLink",
"value": "bnc://app.binance.com/payment/secpay?tempToken=qzjv00WU9LbliSeg1ZxchjpKHcAajNWj&returnLink=https://pay.binance.com/en/checkout/646996ce1ca64d4f83a1adb6d1d8322a"
},
{
"key": "checkoutLink",
"value": "https://pay.binance.com/en/checkout/646996ce1ca64d4f83a1adb6d1d8322a"
}
],
"redirectURL": "https://app.binance.com/payment/secpay?linkToken=646996ce1ca64d4f83a1adb6d1d8322a&_dp=Ym5jOi8vYXBwLmJpbmFuY2UuY29tL3BheW1lbnQvc2VjcGF5P3RlbXBUb2tlbj1xemp2MDBXVTlMYmxpU2VnMVp4Y2hqcEtIY0Fhak5XaiZyZXR1cm5MaW5rPWh0dHBzOi8vcGF5LmJpbmFuY2UuY29tL2VuL2NoZWNrb3V0LzY0Njk5NmNlMWNhNjRkNGY4M2ExYWRiNmQxZDgzMjJh"
},
"expirationDate": "2022-08-26T20:01:07Z",
"relatedPaymentMethodData": {
"paymentMethodType": "binancepayin-uy",
"paymentMethodTypeClass": "crypto",
"paymentMethodTypeCountry": "UY",
"paymentMethodTypeDescription": "Binance Pay"
},
"status": "cancelled"
},
"senderKyc": {},
"subType": "",
"transactionReference": "1002460",
"transactionStatus": "cancelled",
"type": "deposit"
}'
Updated 1 day ago