POST api/Transaction/Withdraw/Bank?userId={userId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId | integer |
Required |
Body Parameters
WithdrawBankDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| user_id | integer |
None. |
|
| amount | decimal number |
None. |
|
| method_type | string |
None. |
|
| bank_name | string |
None. |
|
| account_holder | string |
None. |
|
| account_number | string |
None. |
|
| ifsc_code | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"user_id": 1,
"amount": 1.0,
"method_type": "sample string 1",
"bank_name": "sample string 2",
"account_holder": "sample string 3",
"account_number": "sample string 4",
"ifsc_code": "sample string 5"
}
application/xml, text/xml
Sample:
<WithdrawBankDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BettingAPI.Models.DTOs.Transaction"> <account_holder>sample string 3</account_holder> <account_number>sample string 4</account_number> <amount>1</amount> <bank_name>sample string 2</bank_name> <ifsc_code>sample string 5</ifsc_code> <method_type>sample string 1</method_type> <user_id>1</user_id> </WithdrawBankDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |