API UI logo

Introduction

Codegotech provides a simple and powerful REST API to integrate prepaid cards system into your business or application. This API reference provides information on available endpoints and how to interact with it.

API Reference

This API reference provides information on available endpoints and how to interact with it.

https://{domain}

Prepaid Card Api Authentication

API key is recommend if you only need to access your own account. All API key requests must be signed and contain the following headers:

  • clientid - Requested your Client id
  • secretid - Requested your secret id

All request bodies should have content type x-www-form-form-data.

Header:

$headers = array( 'Content-Type: application/x-www-form-form-data',
'clientid: 'xxxxxx',
'secretid: ' 'xxxxxx');

The method should be lower case.

Authentication
1 - OK Status 1 means success response.
0 - Error Status 0 means error response
101 - Error Required Parameter
102 - Error client id missing or secret id missing
103 - Error Unauthorized access
105 - Error Account has been blocked
501 - Error Invalid Endpoint
502 - Error Server not responding

Interacting with the API

Status codes

  • 1 Success Status 1 means success response
  • 0 Error Status 0 means error response
  • 101 - Failed Required Parameter
  • 102 - Failed Missing client id or secret id
  • 103 - Failed Unauthorized access
  • 105 - Failed Account has been blocked
  • 501 - Failed Invalid Endpoint
  • 502 - Failed Server not responding

Making requests

As per RESTful design patterns, CoinBuy API implements following
HTTP verbs:

  • GET - Read resources
  • POST - Create new resources
  • PUT - Modify existing resources
  • DELETE - Remove resources

When making requests, arguments can be passed as params,
form data or JSON with correct Content-Type header.

POST Signup - getCountry

country data for signup

HTTP Request

https://{domain}/api/public/getCountry

Parameter:

-

Country data for signup

Method: GET

$headers = array( 'application/x-www-form-unicode',
'clientid: 'xxxxxx',
'secretid: ' 'xxxxxx');

Parameter:

-

https://{domain}/api/public/getCountry

Response:


[{"status":1,"countries":[{"id":"62","country_code":"EG","country_name":"Egypt","phonecode":"20","status":"1","is_iban":"0"},{"id":"99","country_code":"IN","country_name":"India","phonecode":"91","status":"1","is_iban":"0"},{"id":"106","country_code":"IT","country_name":"Italy","phonecode":"39","status":"1","is_iban":"1"},{"id":"167","country_code":"PK","country_name":"Pakistan","phonecode":"92","status":"1","is_iban":"0"}]}]
				   

Signup - Registered Phone Number

register a phone number for customer signup

HTTP Request

GET https://{domain}/api/public/register_mobile

Parameter:

country_code,mobile

Name Type Mandatory Description
country_code INTEGER YES country_code=91
mobile INTEGER YES mobile=9999999999
register a phone number for customer signup

Method: GET

Parameter:

country_code,mobile

https://{domain}/api/public/register_mobile

Response:



			{"status":1,"message":"Mobile verification code has been sent."}
			{"status":0,"message":"Phone number already exist in our database."}
				   

Signup - Verify Phone Number

verify phone number by otp for signup

HTTP Request

GET https://{domain}/api/public/verify_mobile_by_otp

Parameter:

mobile, otp

Name Type Mandatory Description
mobile INTEGER YES Example : mobile: 9999999999
otp INTEGER YES Example : otp : 8472
erify phone number by otp for signup

Method: GET

Parameter: mobile, otp

https://{domain}/api/public/verify_mobile_by_otp

Response:



{"id":"9","name":"Bitcoin","symbol":"BTC","image":"https:\/\/res.cloudinary.com\/dmhxw8r6k\/image\/upload\/v1549482216\/uploads\/currency\/ud9oloykozmhus4q6hfz.png","reserve_Amount":"322.20109312","min_deposit_limit":"0.00","max_deposit_limit":"0.00","min_withdraw_limit":"0.00200000","max_withdraw_limit":"1.00000000"}
				   

check email if already exists

HTTP Request

GET https://{domain}/api/public/register_email

Parameter:

email

Name Type Mandatory Description
email STRING YES Example : email : aaa@aaa.com
check email if already exists

Method: GET

Parameter: email

https://{domain}/api/public/register_email

Response:

{"status":1,"message":"We have sent OTP in your email. Please check your email."}
{"status":0,"message":"Email already exist."}

verify email by providing OTP

HTTP Request

GET https://{domain}/api/public/verify_email_otp

Parameter:

email,activation_code

Name Type Mandatory Description
email STRING YES Example : email : aaa@aaa.com
activation_code STRING YES Example : activation_code : 8650
verify email verification by provding OTP

Method: GET

Parameter: email,activation_code

https://{domain}/api/public/verify_email_otp

Response:

{"status":1,"message":"Congratulation, your email id has been successfully verified. Please copy email_reg_id and passing into signup api."}{"status":0,"message":"Wrong verification code"}

list of income sources

HTTP Request

GET https://{domain}/api/public/income_source

Parameter:

-

list of income sources in signup process

Method: GET

Parameter:-

https://{domain}/api/public/income_source

Response:

{"status":1,"income_source":["Salary","Investment","Real Estate","Agriculture"]}

register with personal details

HTTP Request

GET https://{domain}/api/public/signup

Parameter:email_reg_id,country_of_residence,name,
surname,mobile,email,password,
country_id,dob,nationality,address,city,
country,zipcode,is_same,receive_card_address,
receive_card_city,receive_card_zipcode,work_country,
income_soruce,political_person,
country_pay_tax,tax_personal_number,gender

Name Type Mandatory Description
email_reg_id STRING YES Example : email_reg_id : pxnnqb281v77x1129wnv5ya61jeo51pvy7cjifij5gr4hs8rjm
country_of_residence INTERGER YES Example : country_of_residence : 99
name STRING YES Example : name : David
surname STRING YES Example : surname : David
mobile STRING YES Example : surname : 91-9999999999
email STRING YES Example : email : aaa@test.com
password STRING YES Example : password : aaaaa
country_id INTEGER YES Example : country_id : 99
dob STRING YES Example : dob : 1989-01-02
nationality STRING YES Example : nationality : 25
address STRING YES Example : address : #B004/566,XXX
city STRING YES Example : address : XXXX
country INTEGER YES Example : country : 99
zipcode INTEGER YES Example : zipcode : 140301
is_same INTEGER YES Example : is_same : 1
receive_card_address STRING YES Example : receive_card_address : XXX
receive_card_city STRING YES Example : receive_card_city : XXX
receive_card_country STRING YES Example : receive_card_country : XXX
receive_card_zipcode STRING YES Example : receive_card_zipcode : XXX
work_country INTEGER YES Example : work_country : 99
income_soruce STRING YES Example : income_soruce : Salary
political_person STRING(Yes/No) YES Example : political_person : No
country_pay_tax INTEGER YES Example : country_pay_tax : 99
tax_personal_number STRING YES Example : country_pay_tax : 134567889
gender STRING(Male/Female) YES Example : gender : Male
register with personal details

Method: GET

Parameter:-

email_reg_id,country_of_residence,name,surname,mobile,email,password,
country_id,dob,nationality,address,city,country,zipcode,is_same,receive_card_address,
receive_card_city,receive_card_zipcode,work_country,
income_soruce,political_person,country_pay_tax,tax_personal_number,gender

https://{domain}/api/public/signup

Response:

{"status":1,"message":"Registration is completed successfully. Please try to login."}{"status":0,"message":"Mobile number is already exists"}

Login with Email And Password

HTTP Request

GET https://{domain}/api/public/login

Parameter:

email,password

Name Type Mandatory Description
email STRING YES Example : email : aaa@aaa.com
password STRING YES Example : password : 8650
Login with Email And Password

Method: GET

Parameter: email,password

https://{domain}/api/public/login

Response:

{"status":1,"user_id":"bj8U1DHP8BtFga8C04JSBgclZWkonzg7kXrIM16qqUuxI9MmezadJQgUiGV2ANBJ98FjUtrzvJ28AClC5Yy\/xnVKwLxKfo2v","token":"wqxUWykyYKxaPrRCd606jmcG6o3rq5oWvVRsub1tVyEK0vmdBnkVJwBPUFgkKEhgA8J5jKzeidZjJmwlJQgsmSihxzCidTzO1iUk2tylHyErUbME127oVpGt","token":"MXpT3WyB91pDiPpCyIFYVhBhIzwtnzhggS7FN0GoqQD2d5F7eXDPaEgaiW10AYlJ6ZBkUo\/tpIr3WGkBp5j5xXsbnL4TLovw","message":"Please check your mail box. Confirm the login process."}
		   {"status":0,"message":"You are already logged. First Logout then you can login."}

Verify Login Details

HTTP Request

GET https://{domain}/api/public/verifyaccount

Parameter:

user_id,token

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
Verify Login Details

Method: GET

Parameter: user_id,token

https://{domain}/api/public/verifyaccount

Response:

{"status":1,"message":"Thanks for verification"}{"status":0,"message":"token missing"} 

Account - Dashboard

HTTP Request

GET https://{domain)api/private/account

Parameter:

user_id,token

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
Verify Login Details

Method: GET

Parameter: user_id,token

https://{domain)api/private/account

Response:

{"status": 1,"user_image": "https://res.cloudinary.com/hashfort/image/upload/v1622639809/profile/Sample_User_Icon_vqjmbw.png","user_name": "Ranjit singh","wallet_balance": "0.00","symbol": "€","label": "Main","wallet": "HB4PH821EPU41","qrcode": "https://chart.googleapis.com/chart?chs=50x50&cht=qr&chl=HB4PH8Y4KONMD1T68GHRHI9V21EPU41&choe=UTF-8","currency_name": "eur","plan_id": "44","account_id": "","card": {
						"balance": "0.00",
						"status": 0,
						"card_status": "No Card"
					},"transactions": [],"beneficiary": [],"total_notification": 0}
					

Account - Dashboard

HTTP Request

GET https://{domain)api/private/account

Parameter:

user_id,token

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
Verify Login Details

Method: GET

Parameter: user_id,token

https://{domain)api/private/account

Response:


					{"status": 1,"user_image": "https://res.cloudinary.com/hashfort/image/upload/v1622639809/profile/Sample_User_Icon_vqjmbw.png",
					"user_name": "Ranjit singh","wallet_balance": "0.00","symbol": "€","label": "Main",
					"wallet": "HB4PH821EPU41","qrcode": "https://chart.googleapis.com/chart?chs=50x50&cht=qr&chl=HB4PH8Y4KONMD1T68GHRHI9V21EPU41&choe=UTF-8",
					"currency_name": "eur","plan_id": "44","account_id": "",
					"card": {
						"balance": "0.00",
						"status": 0,
						"card_status": "No Card"
					},
					"transactions": [],
					"beneficiary": [],
					"total_notification": 0
					}
					

Deposit - Wire Transfer

HTTP Request

GET https://{domain)api/private/deposit_wire_transfe

Parameter:

user_id,token,amount

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
amount STRING YES Example : amount: 10
Deposit - Wire Transfer

Method: GET

Parameter: user_id,token,amount

https://{domain)api/private/deposit_wire_transfe

Response:

				{"status":1,"referen{"status":1,"reference":"80TV8OQIQ10GU41","bank":{"bankname":"BNL","account":"IT49S0100504603000000005012","bank_swift_code":"IT06985680801","bank_swift":"Bic
Swift"}}ce":"80TV8OQIQ10GU41","bank":{"bankname":"BNL","account":"IT49S0100504603000000005012","bank_swift_code":"IT06985680801","bank_swift":"Bic Swift"}}
					

Deposit - Vocucher Code

HTTP Request

GET https://{domain)api/private/vouchercode

Parameter:

user_id,token,voucher

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
voucher STRING YES Example : voucher: sdvdfvdfvdfvdfv2d6f1df6
Deposit - Vocucher Code

Method: GET

Parameter: user_id,token,voucher

https://{domain)api/private/vouchercode

Response:

				
					{"status":1,"message":"Voucher code successfully redeemed"}
					{"status":0,"message":"Voucher is already used"}
					{"status":0,"message":"Wrong voucher code"}
					{"status":101,"message":"You have entered 3 times wrong voucher code, Your account has been blocked. Please contact to support team."}
					

Prepaid Card - Card Fee if not activated card

HTTP Request

GET https://{domain)api/private/card_fees

Parameter:

user_id,token,type

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
type STRING YES activate or order
Prepaid Card - Card Fee if not activated card

Method: GET

Parameter: user_id,token,type

https://{domain)api/private/card_fees

Response:

				
					{"service_fee":"6.00","status":1,"bank_balance":"0.00","label":"Main","card_type":"Prepaid Card","title":"Activate
Card","message":"You have insufficent balance in your wallet account. You need atleast 6.00 eur"}
					

Prepaid Card - Order Card

HTTP Request

GET https://{domain)api/private/card_order

Parameter:

user_id,token,type

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
account_id STRING YES You will take from account api response
Prepaid Card - Order Card

Method: GET

Parameter: user_id,token,account_id

https://{domain)api/private/card_order

Response:

{"status":1,"message":"Your order request has submitted successfully."}

Prepaid Card - Activate Card

HTTP Request

GET https://{domain)api/private/card_activate

Parameter:

user_id,token,account_id,card_number,cvv,mm,yy

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
account_id STRING YES You will take from account api response
card_number INTERGER YES 16 digit credit card number : 6507209341112462
cvv INTERGER YES credit card cvv number : 123
mm INTERGER YES Expiry Month : 12
yy INTERGER YES Expiry Year : 2026
Prepaid Card - Activate Card

Method: GET

Parameter: user_id,token,account_id,card_number,cvv,mm,yy

https://{domain)api/private/card_activate

Response:

{"status":1,"message":"Your prepaid card has been successfully activated. Pin sent to your registered email."}

Prepaid Card - Card Detail

HTTP Request

GET https://{domain)api/private/card_details

Parameter:

user_id,token,card_id

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
card_id STRING YES You will take from card api response
Prepaid Card - Activate Card

Method: GET

Parameter: user_id,token,card_id

https://{domain)api/private/card_details

Response:

							{"status":1,"card_image":"https:\/\/res.cloudinary.com\/hashfort\/image\/upload\/v1610737076\/cards\/v0dtzuurzhynw9zq6eev.png","card_details":{"card_plastic_virtual":"","bank_account_id":"5","card_number":"XXXX
XXXX XXXX 2462","balance":"0.00","card_type":"Prepaid
Card","allow_online_payment":"0","allow_atm_withdrawal":"0","allow_abroad_payments":"0","card_lock":"0","daily_withdrawal_limit":"0","withdraw_monthly_fixed_limit":"0","daily_payment_limit":"0","monthly_fixed_payment_limit":"0","issue_date":"0000-00-00
00:00:00","status":"1","request_status":"4","card_id":"p9aWI8lo\\\/I2+pQ==","card_status":"Activated"}}
					

Load Card - Load money from your user wallet to prepaid card

HTTP Request

GET https://{domain)api/private/load_balance_card

Parameter:

user_id,token,card_id,amount

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
card_id STRING YES You will take from card api response
amount STRING YES Example: amount: 90
Load Card - Load money from your user wallet to prepaid card

Method: GET

Parameter: user_id,token,card_id,amount

https://{domain)api/private/load_balance_card

Response:

{"status":1,"account":"XXXX XXXX XXXX 2462","memo":" Load money to XXXX XXXX XXXX 2462","amount":"€20.00","message":"Your order request has submitted successfully."}

Load Card - Confirm Load Request

HTTP Request

GET https://{domain)api/private/load_balance_card_confirm

Parameter:

user_id,token,unique_id,status

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
unique_id STRING YES You will take from card api response
status STRING YES Completed , Cancel
Load Card - Confirm Load Request

Method: GET

Parameter: user_id,token,unique_id,status

https://{domain)api/private/load_balance_card_confirm

Response:

{"status":1,"message":"Transaction Successfully Completed."}	

User Wallet: QR Code

HTTP Request

GET https://{domain)api/private/qrcode

Parameter:

user_id,token,card_id

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
card_id STRING YES You will take from card api response
User Wallet: QR Code

Method: GET

Parameter: user_id,token,card_id

https://{domain)api/private/qrcode

Response:

{"status":1,"name":"Test","wallet":"HB4PH8Y4KONMD1T68GHRHI9V21EPU41","qrcode":"https:\/\/chart.googleapis.com\/chart?chs=50x50&cht=qr&chl=HB4PH8Y4KONMD1T68GHRHI9V21EPU41&choe=UTF-8"}

Transaction: transaction list

HTTP Request

GET https://{domain)api/private/transaction_list

Parameter:

user_id,token,account_id

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
account_id STRING YES Example : account_id: oNzeZYti8da4oxCxUYUfVtd\/o\/Y=
Transaction: transaction list

Method: GET

Parameter: user_id,token,account_id

https://{domain)api/private/transaction_list

Response:

							
					{"user_image":"https:\/\/res.cloudinary.com\/hashfort\/image\/upload\/v1622639809\/profile\/Sample_User_Icon_vqjmbw.png","available_balance":"38.00","label":"Main","symbol":"€","iban":"HB4PH8Y4KONMD1T68GHRHI9V21EPU41","currency_name":"eur","debit_total":"0.00","credit_total":"0.00","status":1,"user_transactions":{"today":[{"unique_id":"cca-rh4qhhyli4jt5uxt8g1d","transaction_id":"CCAGI88K840B5B0A3NJP758KEXA7A5L1K","type":"debit","currency_id":"2","description":"Order new debit card","status":"Completed","amount":"6.00","fees":"0.00","total":"6.00","currency_name":"eur","comment":null,"symbol":"€","icon":"card_activate_fee","created":"2021-09-27  13:55:06"},{"unique_id":"cco-t8xniy72w9752dxs5377y3n22o22ow5c851ivykm1jr5wipumo","transaction_id":"CCDENZA1GP5B2ESERXQCC1V5O971ZZ019","type":"debit","currency_id":"2","description":"Order New Prepaid Card","status":"Completed","amount":"65.00","fees":"0.00","total":"65.00","currency_name":"eur","comment":null,"symbol":"€","icon":"order_card","created":"2021-09-27 13:46:38"},{"unique_id":"wires31142k4ohv1po5rnv7e","transaction_id":"XZZ","type":"credit","currency_id":"2","description":"Wire Transaction €100.00 successfully completed","status":"Completed","amount":"100.00","fees":"1.00","total":"99.00","currency_name":"eur","comment":null,"symbol":"€","icon":"wt","created":"2021-09-27 13:46:33"},{"unique_id":"wire1j97xb6byg9k5148lzi0","transaction_id":"23D223","type":"credit","currency_id":"2","description":"Wire Transaction €10.00 successfully 
completed","status":"Completed","amount":"10.00","fees":"0.00","total":"10.00","currency_name":"eur","comment":null,"symbol":"€","icon":"wt","created":"2021-09-27
13:46:01"}],"yesterday":[],"other":[]}}
					

Beneficiary : beneficiary countries

HTTP Request

GET https://{domain)api/private/beneficiary_countries

Parameter:

user_id,token

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
Beneficiary : beneficiary countries

Method: GET

Parameter: user_id,token

https://{domain)api/private/beneficiary_countries

Response:

							{"status":1,"countries":[{"id":"2","country_code":"AL","country_name":"Albania","phonecode":"355","status":"0","is_iban":"0"},{"id":"3","country_code":"DZ","country_name":"Algeria","phonecode":"213","status":"0","is_iban":"0"}]}
					

Beneficiary : Delete Beneficiary

HTTP Request

GET https://{domain)api/private/delete_beneficiary

Parameter:

user_id,token,beneficiary_id

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
beneficiary_id STRING YES The token you will be get from beneficiary_list api response
Beneficiary : Delete Beneficiary

Method: GET

Parameter: user_id,token,beneficiary_id

https://{domain)api/private/delete_beneficiary

Response:

{"status":1,"message":"Beneficiary deleted successfully."}
					

Beneficiary : List of Beneficiary User

HTTP Request

GET https://{domain)api/private/beneficiary_list

Parameter:

user_id,token

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
Beneficiary : List of Beneficiary User

Method: GET

Parameter: user_id,token

https://{domain)api/private/beneficiary_list

Response:

{"status":1,"data":[{"unique_id":"u7kfbbha19gr74xpd2i82uoldbpv742s4g2grjqmt08150ka34","name":"surjeet
singh","bank_account":"internal","status":"1","update_date":"2021-09-27
15:13:39","beneficiary_country":"99","account_type":"internal","image":"https:\/\/res.cloudinary.com\/hashfort\/image\/upload\/v1632322697\/profile\/ax7snz8n2samyhr0ypyw.jpg"},{"unique_id":"2uxuktkvtomy1l7rzpjx55zedxp4aqp6fg1z4fox55qxqyjjh4","name":"Ranjit","bank_account":"swift","status":"1","update_date":"2021-09-27
16:43:59","beneficiary_country":"99","account_type":"Personal","image":"https:\/\/res.cloudinary.com\/hashfort\/image\/upload\/v1623960219\/transaction-icon\/usr_g0nqll.png"},{"unique_id":"g6w7f58f9gz06oy7t5jdrk6og2axhe2xky7zv698n28tqyse76","name":"Ranjit","bank_account":"iban","status":"1","update_date":"2021-09-27
16:44:05","beneficiary_country":"106","account_type":"Personal","image":"https:\/\/res.cloudinary.com\/hashfort\/image\/upload\/v1623960219\/transaction-icon\/usr_g0nqll.png"}]}
					

Beneficiary : Add Internal User

HTTP Request

GET https://{domain)api/private/add_internal_beneficiary

Parameter:

user_id,token,email

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
email STRING YES Email address of internal user
Beneficiary : Add Internal User

Method: GET

Parameter: user_id,token,email

https://{domain)api/private/add_internal_beneficiary

Response:


					{"status":1,"message":"Beneficiary saved"}
					{"status":0,"message":"You already added this user"}
					

Beneficiary : Add Sepa

HTTP Request

GET https://{domain)api/private/add_beneficiary

Parameter:

user_id,token,account_type,beneficiary_country,name,email,bank_account,,
bank_iban,bank_swift_code,beneficiary_upload_image

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
account_type STRING YES Example: account_type: Personal
beneficiary_country INTEGER YES Example: beneficiary_country: 106
name STRING YES Beneficiary name
bank_account STRING YES Example: bank_account: iban
bank_iban STRING YES Example: bank_iban: 159752258413
bank_swift_code STRING YES Example: bank_swift_code: HB15672
beneficiary_upload_image STRING YES Beneficiary Image /C:/Users/USER/Desktop/beneficiary.jpg
Beneficiary : Add Sepa

Method: GET

Parameter: user_id,token,account_type,beneficiary_country,name,email,bank_account,
bank_iban,bank_swift_code,beneficiary_upload_image

https://{domain)api/private/add_beneficiary

Response:

{"status":1,"message":"Beneficiary saved"}
					

Beneficiary : Add Swift Benificary

HTTP Request

GET https://{domain)api/private/add_beneficiary

Parameter:

user_id,token,account_type,beneficiary_country,name,email,bank_account,,
bank_account_number,bank_swift_code,bank_address,
bank_postcode,bank_city,bank_country,beneficiary_upload_image

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
account_type STRING YES Example: account_type: Personal
beneficiary_country INTEGER YES Example: beneficiary_country: 106
name STRING YES Beneficiary name
bank_account STRING YES Example: bank_account: swift
bank_account_number STRING YES Example: bank_account_number: 159752258413
bank_swift_code STRING YES Example: bank_swift_code: HB15672
bank_address STRING YES Example: bank_address: HB15672,NY
bank_postcode STRING YES Example: bank_postcode: 15672
bank_city STRING YES Example: bank_city: NY
bank_country STRING YES Example: bank_country: 99
beneficiary_upload_image STRING YES Beneficiary Image /C:/Users/USER/Desktop/beneficiary.jpg
Beneficiary : Add Swift Benificary

Method: GET

Parameter: user_id,token,account_type,beneficiary_country,name,email,bank_account,,
bank_account_number,bank_swift_code,bank_address,,
bank_postcode,bank_city,bank_country,beneficiary_upload_image

https://{domain)api/private/add_beneficiary

Response:

{"status":1,"message":"Beneficiary saved"}
					

Send Money - send money to your benficary

HTTP Request

GET https://{domain)api/private/sendmoney

Parameter:

user_id,token,amount,beneficiary,reference,send_email

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
amount STRING YES Example: amount: 90
beneficiary STRING YES Example: beneficiary: u7kfbbha19gr74xpd2i82uoldbpv742s4g2grjqmt08150ka34
reference STRING YES Example: reference: Sending amount to ranjit
send_email STRING YES if 1 send email to receiver if 0 not send email.
Send Money - send money to your benficary

Method: GET

Parameter: user_id,token,amount,beneficiary,reference,send_email

https://{domain)api/private/sendmoney

Response:

{"status":1,"message":"Your request has been successfully sent and please check your mail and verify the transaction."}
					

Send Money - Confirm Transaction

HTTP Request

GET https://{domain)api/private/confirm_transaction

Parameter:

user_id,token,unique_id,status

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The token you will be get from login api response
unique_id STRING YES Example: unique_id: f7quefmolsc8rsr455p92zz7255sohs5pds5t8m82yhmk2qh8a
status STRING YES Completed , Canceled
Send Money - Confirm Transaction

Method: GET

Parameter: user_id,token,unique_id,status

https://{domain)api/private/confirm_transaction

Response:

{"status":1,"message":"Your request has been successfully sent and please check your mail and verify the transaction."}
					

User: Profile

HTTP Request

GET https://{domain)api/private/profile

Parameter:

user_id,token

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The userid you will be get from login api response
User: Profile

Method: GET

Parameter: user_id,token

https://{domain)api/private/profile

Response:

{"status":1,"name":"Ranjit","surname":"singh","email":"ranjitsingh.ranjit7@gmail.com ","username":"Ranjit-4317","phone_number":"91-9056460308","account_type":"0","profile_image":"https:\/\/res.cloudinary.com\/hashfort\/image\/upload\/v1622639809\/profile\/Sample_User_Icon_vqjmbw.png","update_date":"2021-09-27
11:58:17","profile_data":{"address":"#B004\/566, Dashmesh Nagar,Kharar,
Punjab","capital":"","city":"Mohali","country":"99","zipcode":"140301","dob":"1989-01-02","receive_card_address":"#B004\/566,
Dashmesh Nagar,Kharar,
Punjab","receive_card_capital":"","receive_card_city":"Mohali","receive_card_country":"99","receive_card_zipcode":"140301","gender":"Male","income_soruce":"Salary","country_pay_tax":"99","tax_personal_number":"134567889","political_person":"No","created":"2021-09-27
11:58:17","country_name":"India","receive_country_name":"India","country_pay_tax_name":"India"}}
					

User: logout

HTTP Request

GET https://{domain)api/private/logout

Parameter:

user_id,token

Name Type Mandatory Description
user_id STRING YES The userid you will be get from login api response
token STRING YES The userid you will be get from login api response
User: Profile

Method: GET

Parameter: user_id,token

https://{domain)api/private/logout

Response:

{"status":1,"message":"logged out  successfully."}