Withdraw via Bank Transfer
The information provided by the customer should be transmitted to us using the BankoPay API service...
The operation of the Bank Transfer withdrawal method in the BankoPay system is as follows:
- The customer enters the Bank Transfer withdrawal form on the Merchant site.
- From this field, the withdrawal form is filled out;
Information required in the withdrawal form:
- Bank (should be added with select. Please check)
- IBAN
- Amount
- Turkish ID number
- Date of birth
In addition to the form information, the following information should also be sent during the callback:
- Merchant site_id
- Merchant site_key
- User ID
- Username
- Full name of the user
- After the withdrawal request is checked from the management panel of the Merchant site, the information is posted to the BankoPay /withdraw/bank-transfer API service when the transaction is marked as "Valid".
- Based on the code parameter in the response, if;
- code == 200, the customer's request has reached us. (The status of the withdrawal request should be changed to "Pending" in the service provider's system.)
- code != 200, the withdrawal request is not accepted and should be directly rejected in the service provider's system. The reason for rejection should be written in the message in the response.
Withdraw via Papara
The information provided by the customer should be transmitted to us using the BankoPay API service...
The operation of the Papara withdrawal method in the BankoPay system is as follows:
- The customer enters the Papara withdrawal form on the Merchant site.
- From this field, the withdrawal form is filled out;
Information required in the withdrawal form:
- Papara account number
- Amount
In addition to the form information, the following information should also be sent during the callback:
- Merchant site_id
- Merchant site_key
- User ID
- Username
- Full name of the user
- After the withdrawal request is checked from the management panel of the Merchant site, the information is posted to the BankoPay /withdraw/papara API service when the transaction is marked as "Valid".
- Based on the code parameter in the response, if;
- code == 200, the customer's request has reached us. (The status of the withdrawal request should be changed to "Pending" in the service provider's system.)
- code != 200, the withdrawal request is not accepted and should be directly rejected in the service provider's system. The reason for rejection should be written in the message in the response.
Withdraw via PopyPara
The information provided by the customer should be transmitted to us using the BankoPay API service...
The operation of the PopyPara withdrawal method in the BankoPay system is as follows:
- The customer enters the PopyPara withdrawal form on the Merchant site.
- From this field, the withdrawal form is filled out;
Information required in the withdrawal form:
- PopyPara account number
- Amount
In addition to the form information, the following information should also be sent during the callback:
- Merchant site_id
- Merchant site_key
- User ID
- Username
- Full name of the user
- After the withdrawal request is checked from the management panel of the Merchant site, the information is posted to the BankoPay /withdraw/popypara API service when the transaction is marked as "Valid".
- Based on the code parameter in the response, if;
- code == 200, the customer's request has reached us. (The status of the withdrawal request should be changed to "Pending" in the service provider's system.)
- code != 200, the withdrawal request is not accepted and should be directly rejected in the service provider's system. The reason for rejection should be written in the message in the response.
Withdraw via Paratim
The information provided by the customer should be transmitted to us using the BankoPay API service...
The operation of the Paratim withdrawal method in the BankoPay system is as follows:
- The customer enters the Paratim withdrawal form on the Merchant site.
- From this field, the withdrawal form is filled out;
Information required in the withdrawal form:
- Paratim account number
- Amount
In addition to the form information, the following information should also be sent during the callback:
- Merchant site_id
- Merchant site_key
- User ID
- Username
- Full name of the user
- After the withdrawal request is checked from the management panel of the Merchant site, the information is posted to the BankoPay /withdraw/paratim API service when the transaction is marked as "Valid".
- Based on the code parameter in the response, if;
- code == 200, the customer's request has reached us. (The status of the withdrawal request should be changed to "Pending" in the service provider's system.)
- code != 200, the withdrawal request is not accepted and should be directly rejected in the service provider's system. The reason for rejection should be written in the message in the response.
Withdraw via PayFix
The information provided by the customer should be transmitted to us using the BankoPay API service...
The operation of the PayFix withdrawal method in the BankoPay system is as follows:
- The customer enters the PayFix withdrawal form on the Merchant site.
- From this field, the withdrawal form is filled out;
Information required in the withdrawal form:
- PayFix account number
- Amount
In addition to the form information, the following information should also be sent during the callback:
- Merchant site_id
- Merchant site_key
- User ID
- Username
- Full name of the user
- After the withdrawal request is checked from the management panel of the Merchant site, the information is posted to the BankoPay /withdraw/payfix API service when the transaction is marked as "Valid".
- Based on the code parameter in the response, if;
- code == 200, the customer's request has reached us. (The status of the withdrawal request should be changed to "Pending" in the service provider's system.)
- code != 200, the withdrawal request is not accepted and should be directly rejected in the service provider's system. The reason for rejection should be written in the message in the response.
Withdraw via PayCo
The information provided by the customer should be transmitted to us using the BankoPay API service...
The operation of the PayCo withdrawal method in the BankoPay system is as follows:
- The customer enters the PayCo withdrawal form on the Merchant site.
- From this field, the withdrawal form is filled out;
Information required in the withdrawal form:
- PayCo account number
- Amount
In addition to the form information, the following information should also be sent during the callback:
- Merchant site_id
- Merchant site_key
- User ID
- Username
- Full name of the user
- After the withdrawal request is checked from the management panel of the Merchant site, the information is posted to the BankoPay /withdraw/payco API service when the transaction is marked as "Valid".
- Based on the code parameter in the response, if;
- code == 200, the customer's request has reached us. (The status of the withdrawal request should be changed to "Pending" in the service provider's system.)
- code != 200, the withdrawal request is not accepted and should be directly rejected in the service provider's system. The reason for rejection should be written in the message in the response.
Service: /api/withdraw/bank-transfer
POST: https://bankopay.co/api/withdraw/bank-transfer
Request content:
| Parameter |
Requirement |
Type |
Description |
| site_id |
required |
integer |
Provided specifically to the site by BankoPay. |
| site_key |
required |
string |
Provided specifically to the site by BankoPay. |
| user_id |
required |
string |
Customer's ID. |
| username |
required |
string |
Customer's username. |
| trx |
required |
string |
Transaction ID in the Merchant system. |
| fullname |
required |
string |
Customer's full name. |
| amount |
required |
string |
Withdrawal amount.
25000.00 or 25000, represents 25 thousand TL
|
| account_number |
required |
string |
IBAN. |
| provider_id |
required |
integer |
ID of the bank to be withdrawn from. Please check. |
| identity |
required |
string |
Turkish ID number. |
| birth_date |
required |
string |
Date of birth. |
Response content:
Example:
POST: https://bankopay.co/api/withdraw/bank-transfer
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU",
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250.00,
"account_number": "TR123445678945613245645",
"identity": "12345678910",
"birth_date": "16.09.1990",
"provider_id": 1
}
Response (For successful transaction)
{
"message": "Withdrawal request created",
"code": 200,
"type": "success",
"data": {
"site_id": 1,
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250,
"account_number": "TR123445678945613245645",
"identity": "12345678910",
"birth_date": "16.09.1990",
"provider_id": 1,
"callback_data": "{\"site_id\":1,\"site_key\":\"abc\",\"user_id\":\"1254137\",\"username\":\"demo123\",\"trx\":\"456454646\",\"fullname\":\"Ahmet Demir\",\"amount\":250,\"account_number\":\"TR123445678945613245645\",\"identity\":\"12345678910\",\"birth_date\":\"16.09.1990\",\"provider_id\":1}",
"updated_at": "17.02.2024 00:28:46",
"created_at": "17.02.2024 00:28:46",
"id": 2
}
}
Response (For an erroneous transaction)
{
"code": 20014,
"message": "API credentials are incorrect!",
"type": "error"
}
Note: If the code is not 200, the withdrawal request should not be accepted, and the reason for rejection should be recorded in the panel as a message.
Service: /api/withdraw/papara
POST: https://bankopay.co/api/withdraw/papara
Request content:
| Parameter |
Requirement |
Type |
Description |
| site_id |
required |
integer |
Provided specifically to the site by BankoPay. |
| site_key |
required |
string |
Provided specifically to the site by BankoPay. |
| user_id |
required |
string |
Customer's ID. |
| username |
required |
string |
Customer's username. |
| trx |
required |
string |
Transaction ID in the Merchant system. |
| fullname |
required |
string |
Customer's full name. |
| amount |
required |
string |
Withdrawal amount.
25000.00 or 25000, represents 25 thousand TL
|
| account_number |
required |
string |
Papara account number |
Response content:
Example:
POST: https://bankopay.co/api/withdraw/papara
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU",
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250.00,
"account_number": "TR123445678945613245645"
}
Response (For successful transaction)
{
"message": "Withdrawal request created",
"code": 200,
"type": "success",
"data": {
"site_id": 1,
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250,
"account_number": "TR123445678945613245645",
"callback_data": "{\"site_id\":1,\"site_key\":\"abc\",\"user_id\":\"1254137\",\"username\":\"demo123\",\"trx\":\"456454646\",\"fullname\":\"Ahmet Demir\",\"amount\":250,\"account_number\":\"TR123445678945613245645\",\"identity\":\"12345678910\",\"birth_date\":\"16.09.1990\",\"provider_id\":1}",
"updated_at": "17.02.2024 00:28:46",
"created_at": "17.02.2024 00:28:46",
"id": 2
}
}
Response (For an erroneous transaction)
{
"code": 20014,
"message": "API credentials are incorrect!",
"type": "error"
}
Note: If the code is not 200, the withdrawal request should not be accepted, and the reason for rejection should be recorded in the panel as a message.
Service: /api/withdraw/popypara
POST: https://bankopay.co/api/withdraw/popypara
Request content:
| Parameter |
Requirement |
Type |
Description |
| site_id |
required |
integer |
Provided specifically to the site by BankoPay. |
| site_key |
required |
string |
Provided specifically to the site by BankoPay. |
| user_id |
required |
string |
Customer's ID. |
| username |
required |
string |
Customer's username. |
| trx |
required |
string |
Transaction ID in the Merchant system. |
| fullname |
required |
string |
Customer's full name. |
| amount |
required |
string |
Withdrawal amount.
25000.00 or 25000, represents 25 thousand TL
|
| account_number |
required |
string |
PopyPara account number |
Response content:
Example:
POST: https://bankopay.co/api/withdraw/popypara
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU",
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250.00,
"account_number": "202400138923"
}
Response (For successful transaction)
{
"message": "Withdrawal request created",
"code": 200,
"type": "success",
"data": {
"site_id": 1,
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250,
"account_number": "202400138923",
"callback_data": "{\"site_id\":1,\"site_key\":\"abc\",\"user_id\":\"1254137\",\"username\":\"demo123\",\"trx\":\"456454646\",\"fullname\":\"Ahmet Demir\",\"amount\":250,\"account_number\":\"202400138923\",\"identity\":\"12345678910\",\"birth_date\":\"16.09.1990\",\"provider_id\":1}",
"updated_at": "17.02.2024 00:28:46",
"created_at": "17.02.2024 00:28:46",
"id": 2
}
}
Response (For an erroneous transaction)
{
"code": 20014,
"message": "API credentials are incorrect!",
"type": "error"
}
Note: If the code is not 200, the withdrawal request should not be accepted, and the reason for rejection should be recorded in the panel as a message.
Service: /api/withdraw/paratim
POST: https://bankopay.co/api/withdraw/paratim
Request content:
| Parameter |
Requirement |
Type |
Description |
| site_id |
required |
integer |
Provided specifically to the site by BankoPay. |
| site_key |
required |
string |
Provided specifically to the site by BankoPay. |
| user_id |
required |
string |
Customer's ID. |
| username |
required |
string |
Customer's username. |
| trx |
required |
string |
Transaction ID in the Merchant system. |
| fullname |
required |
string |
Customer's full name. |
| amount |
required |
string |
Withdrawal amount.
25000.00 or 25000, represents 25 thousand TL
|
| account_number |
required |
string |
Paratim account number |
Response content:
Example:
POST: https://bankopay.co/api/withdraw/paratim
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU",
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250.00,
"account_number": "202400138923"
}
Response (For successful transaction)
{
"message": "Withdrawal request created",
"code": 200,
"type": "success",
"data": {
"site_id": 1,
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250,
"account_number": "202400138923",
"callback_data": "{\"site_id\":1,\"site_key\":\"abc\",\"user_id\":\"1254137\",\"username\":\"demo123\",\"trx\":\"456454646\",\"fullname\":\"Ahmet Demir\",\"amount\":250,\"account_number\":\"202400138923\",\"identity\":\"12345678910\",\"birth_date\":\"16.09.1990\",\"provider_id\":1}",
"updated_at": "17.02.2024 00:28:46",
"created_at": "17.02.2024 00:28:46",
"id": 2
}
}
Response (For an erroneous transaction)
{
"code": 20014,
"message": "API credentials are incorrect!",
"type": "error"
}
Note: If the code is not 200, the withdrawal request should not be accepted, and the reason for rejection should be recorded in the panel as a message.
Service: /api/withdraw/payfix
POST: https://bankopay.co/api/withdraw/payfix
Request content:
| Parameter |
Requirement |
Type |
Description |
| site_id |
required |
integer |
Provided specifically to the site by BankoPay. |
| site_key |
required |
string |
Provided specifically to the site by BankoPay. |
| user_id |
required |
string |
Customer's ID. |
| username |
required |
string |
Customer's username. |
| trx |
required |
string |
Transaction ID in the Merchant system. |
| fullname |
required |
string |
Customer's full name. |
| amount |
required |
string |
Withdrawal amount.
25000.00 or 25000, represents 25 thousand TL
|
| account_number |
required |
string |
PayFix account number |
Response content:
Example:
POST: https://bankopay.co/api/withdraw/payfix
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU",
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250.00,
"account_number": "202400138923"
}
Response (For successful transaction)
{
"message": "Withdrawal request created",
"code": 200,
"type": "success",
"data": {
"site_id": 1,
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250,
"account_number": "202400138923",
"callback_data": "{\"site_id\":1,\"site_key\":\"abc\",\"user_id\":\"1254137\",\"username\":\"demo123\",\"trx\":\"456454646\",\"fullname\":\"Ahmet Demir\",\"amount\":250,\"account_number\":\"202400138923\",\"identity\":\"12345678910\",\"birth_date\":\"16.09.1990\",\"provider_id\":1}",
"updated_at": "17.02.2024 00:28:46",
"created_at": "17.02.2024 00:28:46",
"id": 2
}
}
Response (For an erroneous transaction)
{
"code": 20014,
"message": "API credentials are incorrect!",
"type": "error"
}
Note: If the code is not 200, the withdrawal request should not be accepted, and the reason for rejection should be recorded in the panel as a message.
Service: /api/withdraw/payco
POST: https://bankopay.co/api/withdraw/payco
Request content:
| Parameter |
Requirement |
Type |
Description |
| site_id |
required |
integer |
Provided specifically to the site by BankoPay. |
| site_key |
required |
string |
Provided specifically to the site by BankoPay. |
| user_id |
required |
string |
Customer's ID. |
| username |
required |
string |
Customer's username. |
| trx |
required |
string |
Transaction ID in the Merchant system. |
| fullname |
required |
string |
Customer's full name. |
| amount |
required |
string |
Withdrawal amount.
25000.00 or 25000, represents 25 thousand TL
|
| account_number |
required |
string |
PayCo account number |
Response content:
Example:
POST: https://bankopay.co/api/withdraw/payco
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU",
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250.00,
"account_number": "202400138923"
}
Response (For successful transaction)
{
"message": "Withdrawal request created",
"code": 200,
"type": "success",
"data": {
"site_id": 1,
"user_id": "1254137",
"username": "demo123",
"trx": "456454646",
"fullname": "Ahmet Demir",
"amount": 250,
"account_number": "202400138923",
"callback_data": "{\"site_id\":1,\"site_key\":\"abc\",\"user_id\":\"1254137\",\"username\":\"demo123\",\"trx\":\"456454646\",\"fullname\":\"Ahmet Demir\",\"amount\":250,\"account_number\":\"202400138923\",\"identity\":\"12345678910\",\"birth_date\":\"16.09.1990\",\"provider_id\":1}",
"updated_at": "17.02.2024 00:28:46",
"created_at": "17.02.2024 00:28:46",
"id": 2
}
}
Response (For an erroneous transaction)
{
"code": 20014,
"message": "API credentials are incorrect!",
"type": "error"
}
Note: If the code is not 200, the withdrawal request should not be accepted, and the reason for rejection should be recorded in the panel as a message.
Service: /api/bank-list/
POST: https://bankopay.co/api/bank-list/
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU"
}
Response (For a successful transaction)
{
"message": "Bank List",
"code": 200,
"type": "success",
"data": [
{
"provider_name": "Test - Garanti Bank",
"id": "1"
},
{
"provider_name": "Test - İş Bank",
"id": "2"
}
]
}
Response (For an erroneous transaction)
{
"code": 20014,
"message": "API credentials are incorrect!",
"type": "error"
}
Response Codes
Response information:
| Code |
Message |
| 200 |
Withdrawal request created! |
| 20014 |
API credentials are incorrect! |
Callback Service: info
Request content:
| Parameter |
Requirement |
Type |
Description |
| site_id |
required |
integer |
Provided uniquely for the site by BankoPay. |
| site_key |
required |
string |
Provided uniquely for the site by BankoPay. |
| user_id |
required |
string |
Customer's ID. |
| username |
required |
string |
Customer's username. |
| data |
optional |
string |
If you sent this parameter when redirecting the customer to the BankoPay page at the beginning of the investment process, we will return the data inside this parameter to you when we make a callback to this service. |
| trx |
required |
string |
If you sent this parameter when redirecting the customer to the BankoPay page at the beginning of the investment process, we will return the data inside this parameter to you when we make a callback to this service. |
| hash |
required |
string |
What you need to calculate "hash"
site_id|user_id|trx|site_key you can create the hash using this variable combination.
We are using BCRYPT for hashing. https://github.com/pyca/bcrypt
|
Response content:
| Parameter |
Type |
Description |
| code |
integer |
Status code. |
| message |
string |
Status message. |
Example:
POST: https://yourdomain.com/api/BankoPay/info/
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU",
"service": "info",
"user_id": "44843155",
"username": "demo123",
"trx": "9164088",
"hash": "$2a$12$gnZ3y0PcBIrKlk7lLCOZK.V5nnggrA2Vg2pyUMlpE24m3QAU30rmS"
}
Response (For successful transaction)
{
"code": 200,
"message": "Investment can be made!"
}
Response (For failed transaction)
{
"code": 999,
"message": "ERROR MESSAGE"
}
Note: We proceed with the process only when code: 200. If the code is not 200, we terminate the process.
Callback Service: deposit
Request content:
| Parameter |
Requirement |
Type |
Description |
| site_id |
required |
integer |
Provided uniquely for the site by BankoPay. |
| site_key |
required |
string |
Provided uniquely for the site by BankoPay. |
| method |
required |
string |
Sent as “BankTransfer”, “Papara”, “Parazula”, “Popypara”, “Paratim”, “PayFix”, “PayCo” olarak gönderilir. |
| user_id |
required |
string |
Customer's ID. |
| username |
required |
string |
Customer's username. |
| amount |
required |
string |
Amount to be added to the customer's balance. |
| currency |
required |
string |
Sent as "TRY". |
| transaction_id |
required |
string |
ID of the transaction in our system. |
| status |
required |
string |
Status sent as "approved" or "reject" depending on the transaction result.
-
"approved" : successfully completed
-
"reject" : failed
|
| trx |
required |
string |
If you sent this parameter when redirecting the customer to the BankoPay page at the beginning of the investment process, we will return the data inside this parameter to you when we make a callback to this service. |
| hash |
required |
string |
What you need to calculate "hash"
site_id|user_id|trx|site_key you can create the hash using this variable combination.
We are using BCRYPT for hashing. https://github.com/pyca/bcrypt
|
Response content:
| Parameter |
Type |
Description |
| code |
integer |
Status code. |
| message |
string |
Status message. |
Example:
POST: https://yourdomain.com/api/BankoPay/deposit/
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU",
"service": "deposit",
"method": "BankTransfer",
"user_id": "44843155",
"username": "demo123",
"amount": "200.00",
"currency": "TRY",
"transaction_id": "MD10001",
"status": "approved",
"trx": "9164088",
"hash": "$2a$12$gnZ3y0PcBIrKlk7lLCOZK.V5nnggrA2Vg2pyUMlpE24m3QAU30rmS"
}
Response (For successful transaction)
{
"code": 200,
"message": "Balance added to the account!"
}
Response (For failed transaction)
{
"code": 999,
"message": "ERROR MESSAGE"
}
Note: We proceed with the process only when code: 200. If the code is not 200, we terminate the process.
Callback Service: withdraw
Request content:
| Parameter |
Requirement |
Type |
Description |
| site_id |
required |
integer |
Provided uniquely for the site by BankoPay. |
| site_key |
required |
string |
Provided uniquely for the site by BankoPay. |
| method |
required |
string |
Sent as “BankTransfer”, “Papara”, “Parazula”, “Popypara”, “Paratim”, “PayFix”, “PayCo” olarak gönderilir. |
| user_id |
required |
string |
Customer's ID. |
| username |
required |
string |
Customer's username. |
| amount |
required |
string |
Withdrawal amount.
25000.00 or 25000, represents 25 thousand TL
|
| currency |
required |
string |
Sent as "TRY". |
| transaction_id |
required |
string |
ID of the transaction in our system. |
| trx |
required |
string |
ID of the withdrawal transaction in the Merchant system. |
| status |
required |
string |
Status sent as "approved" or "reject" depending on the transaction result.
-
"approved" : successfully completed
-
"reject" : failed
|
| message |
required |
string |
Note regarding the result of the withdrawal transaction. In case of C, it says Completed, In case of R, it states the reason for rejection. |
| hash |
required |
string |
What you need to calculate "hash"
site_id|user_id|trx|site_key you can create the hash using this variable combination.
We are using BCRYPT for hashing. https://github.com/pyca/bcrypt
|
Response content:
| Parameter |
Type |
Description |
| code |
integer |
Status code. |
| message |
string |
Status message. |
Example:
POST: https://yourdomain.com/api/BankoPay/withdraw/
Accept: application/json
Content-Type: application/json
Request:
{
"site_id": 1001,
"site_key": "k62FdW0BaEXn3iUrzuDXcwiNQIYqmorU",
"service": "withdraw",
"method": "BankTransfer",
"user_id": "44843155",
"username": "demo123",
"amount": "200.00",
"currency": "TRY",
"transaction_id": "MW10001",
"trx": "451474562",
"status": "approved",
"message": "Completed!",
"hash": "$2a$12$gnZ3y0PcBIrKlk7lLCOZK.V5nnggrA2Vg2pyUMlpE24m3QAU30rmS"
}
Response (For successful transaction)
{
"code": 200,
"message": "Balance added to the account!"
}
Response (For failed transaction)
{
"code": 999,
"message": "ERROR MESSAGE"
}
Note: We proceed with the process only when code: 200. If the code is not 200, we terminate the process.