PUT api/bank_connection/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

m_bank_connection
NameDescriptionTypeAdditional information
bank_id

string

Required

String length: inclusive between 0 and 3

account_no

string

Required

String length: inclusive between 0 and 20

account_firstname

string

Required

String length: inclusive between 0 and 50

account_lastname

string

Required

String length: inclusive between 0 and 50

web_username

string

String length: inclusive between 0 and 50

web_password

string

String length: inclusive between 0 and 50

web_enabled

boolean

None.

app_citizen_id

string

String length: inclusive between 0 and 50

app_birthday

date

None.

app_phone

string

String length: inclusive between 0 and 20

app_enabled

boolean

None.

line_username

string

String length: inclusive between 0 and 50

line_password

string

String length: inclusive between 0 and 50

line_enabled

boolean

None.

status

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "bank_id": "sample string 1",
  "account_no": "sample string 2",
  "account_firstname": "sample string 3",
  "account_lastname": "sample string 4",
  "web_username": "sample string 5",
  "web_password": "sample string 6",
  "web_enabled": true,
  "app_citizen_id": "sample string 8",
  "app_birthday": "2024-07-27T09:32:01.5417605+07:00",
  "app_phone": "sample string 9",
  "app_enabled": true,
  "line_username": "sample string 11",
  "line_password": "sample string 12",
  "line_enabled": true,
  "status": "sample string 14"
}

application/xml, text/xml

Sample:
<m_bank_connection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Features.Models">
  <account_firstname>sample string 3</account_firstname>
  <account_lastname>sample string 4</account_lastname>
  <account_no>sample string 2</account_no>
  <app_birthday>2024-07-27T09:32:01.5417605+07:00</app_birthday>
  <app_citizen_id>sample string 8</app_citizen_id>
  <app_enabled>true</app_enabled>
  <app_phone>sample string 9</app_phone>
  <bank_id>sample string 1</bank_id>
  <line_enabled>true</line_enabled>
  <line_password>sample string 12</line_password>
  <line_username>sample string 11</line_username>
  <status>sample string 14</status>
  <web_enabled>true</web_enabled>
  <web_password>sample string 6</web_password>
  <web_username>sample string 5</web_username>
</m_bank_connection>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

bank_connection
NameDescriptionTypeAdditional information
id

integer

None.

code

string

Required

String length: inclusive between 0 and 20

website_id

integer

None.

bank_id

string

Required

String length: inclusive between 0 and 3

account_no

string

Required

String length: inclusive between 0 and 20

account_firstname

string

Required

String length: inclusive between 0 and 50

account_lastname

string

Required

String length: inclusive between 0 and 50

account_balance

decimal number

None.

balance_updated_at

date

None.

statement_updated_at

date

None.

web_username

string

String length: inclusive between 0 and 50

web_password

string

String length: inclusive between 0 and 50

web_enabled

boolean

None.

app_citizen_id

string

String length: inclusive between 0 and 50

app_birthday

date

None.

app_phone

string

String length: inclusive between 0 and 20

app_enabled

boolean

None.

line_username

string

String length: inclusive between 0 and 50

line_password

string

String length: inclusive between 0 and 50

line_enabled

boolean

None.

status

string

Required

String length: inclusive between 0 and 20

session_id

string

String length: inclusive between 0 and 100

access_token

string

String length: inclusive between 0 and 500

access_token_bank_api

string

None.

created_at

date

None.

updated_at

date

None.

updated_by

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "code": "sample string 2",
  "website_id": 3,
  "bank_id": "sample string 4",
  "account_no": "sample string 5",
  "account_firstname": "sample string 6",
  "account_lastname": "sample string 7",
  "account_balance": 8.0,
  "balance_updated_at": "2024-07-27T09:32:01.5417605+07:00",
  "statement_updated_at": "2024-07-27T09:32:01.5417605+07:00",
  "web_username": "sample string 9",
  "web_password": "sample string 10",
  "web_enabled": true,
  "app_citizen_id": "sample string 12",
  "app_birthday": "2024-07-27T09:32:01.5417605+07:00",
  "app_phone": "sample string 13",
  "app_enabled": true,
  "line_username": "sample string 15",
  "line_password": "sample string 16",
  "line_enabled": true,
  "status": "sample string 18",
  "session_id": "sample string 19",
  "access_token": "sample string 20",
  "access_token_bank_api": "sample string 21",
  "created_at": "2024-07-27T09:32:01.5417605+07:00",
  "updated_at": "2024-07-27T09:32:01.5417605+07:00",
  "updated_by": 24
}

application/xml, text/xml

Sample:
<bank_connection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Domain.Entities">
  <access_token>sample string 20</access_token>
  <access_token_bank_api>sample string 21</access_token_bank_api>
  <account_balance>8</account_balance>
  <account_firstname>sample string 6</account_firstname>
  <account_lastname>sample string 7</account_lastname>
  <account_no>sample string 5</account_no>
  <app_birthday>2024-07-27T09:32:01.5417605+07:00</app_birthday>
  <app_citizen_id>sample string 12</app_citizen_id>
  <app_enabled>true</app_enabled>
  <app_phone>sample string 13</app_phone>
  <balance_updated_at>2024-07-27T09:32:01.5417605+07:00</balance_updated_at>
  <bank_id>sample string 4</bank_id>
  <code>sample string 2</code>
  <created_at>2024-07-27T09:32:01.5417605+07:00</created_at>
  <id>1</id>
  <line_enabled>true</line_enabled>
  <line_password>sample string 16</line_password>
  <line_username>sample string 15</line_username>
  <session_id>sample string 19</session_id>
  <statement_updated_at>2024-07-27T09:32:01.5417605+07:00</statement_updated_at>
  <status>sample string 18</status>
  <updated_at>2024-07-27T09:32:01.5417605+07:00</updated_at>
  <updated_by>24</updated_by>
  <web_enabled>true</web_enabled>
  <web_password>sample string 10</web_password>
  <web_username>sample string 9</web_username>
  <website_id>3</website_id>
</bank_connection>