POST api/CUSTOMER

Post insert CUSTOMER

Request Information

URI Parameters

None.

Body Parameters

{"vMethod": "POST","mB_INTL": "นาย,นาง,น.ส.", "mB_NAME": "ชื่อ","mB_SURNME": "นามสกุล","mB_E_NAME": "ชื่อกลาง", "mB_SEX": "เพศชาย = 1,เพศหญิง = 2", "mB_BIRTH": "วันเดือนปีเกิด(yyyy-mm-dd 00:00:00.000", "mB_ADDR_1": "ที่อยู่ 1","mB_ADDR_2": "ที่อยู่ 2""mB_ADDR_3": "ที่อยู่ 3", "mB_POST": "รหัสไปรษณีย์","mB_PHONE": "เบอร์โทร", "mB_EMAIL": "email","mB_I_CARD": "รหัสบัตรประชาชน", "mB_I_EXPIRE": "วันหมดอายุ (2030-11-11 00:00:00.000)", "mB_OCCUPATION": "1", "mB_YR_INCOME": "0", "mB_MARITAL": "1", "mB_KEY": ""}

Customer
NameDescriptionTypeAdditional information
vMethod

string

None.

MB_INTL

string

None.

MB_NAME

string

None.

MB_SURNME

string

None.

MB_E_NAME

string

None.

MB_SEX

string

None.

MB_BIRTH

string

None.

MB_ADDR_1

string

None.

MB_ADDR_2

string

None.

MB_ADDR_3

string

None.

MB_POST

string

None.

MB_PHONE

string

None.

MB_EMAIL

string

None.

MB_I_CARD

string

None.

MB_I_EXPIRE

string

None.

MB_OCCUPATION

string

None.

MB_YR_INCOME

string

None.

MB_MARITAL

string

None.

MB_KEY

string

None.

MB_ENABLED

string

None.

Request Formats

application/json, text/json

Sample:
{
  "vMethod": "sample string 1",
  "mB_INTL": "sample string 2",
  "mB_NAME": "sample string 3",
  "mB_SURNME": "sample string 4",
  "mB_E_NAME": "sample string 5",
  "mB_SEX": "sample string 6",
  "mB_BIRTH": "sample string 7",
  "mB_ADDR_1": "sample string 8",
  "mB_ADDR_2": "sample string 9",
  "mB_ADDR_3": "sample string 10",
  "mB_POST": "sample string 11",
  "mB_PHONE": "sample string 12",
  "mB_EMAIL": "sample string 13",
  "mB_I_CARD": "sample string 14",
  "mB_I_EXPIRE": "sample string 15",
  "mB_OCCUPATION": "sample string 16",
  "mB_YR_INCOME": "sample string 17",
  "mB_MARITAL": "sample string 18",
  "mB_KEY": "sample string 19",
  "mB_ENABLED": "sample string 20"
}

application/xml, text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webAPI1.Models">
  <MB_ADDR_1>sample string 8</MB_ADDR_1>
  <MB_ADDR_2>sample string 9</MB_ADDR_2>
  <MB_ADDR_3>sample string 10</MB_ADDR_3>
  <MB_BIRTH>sample string 7</MB_BIRTH>
  <MB_EMAIL>sample string 13</MB_EMAIL>
  <MB_ENABLED>sample string 20</MB_ENABLED>
  <MB_E_NAME>sample string 5</MB_E_NAME>
  <MB_INTL>sample string 2</MB_INTL>
  <MB_I_CARD>sample string 14</MB_I_CARD>
  <MB_I_EXPIRE>sample string 15</MB_I_EXPIRE>
  <MB_KEY>sample string 19</MB_KEY>
  <MB_MARITAL>sample string 18</MB_MARITAL>
  <MB_NAME>sample string 3</MB_NAME>
  <MB_OCCUPATION>sample string 16</MB_OCCUPATION>
  <MB_PHONE>sample string 12</MB_PHONE>
  <MB_POST>sample string 11</MB_POST>
  <MB_SEX>sample string 6</MB_SEX>
  <MB_SURNME>sample string 4</MB_SURNME>
  <MB_YR_INCOME>sample string 17</MB_YR_INCOME>
  <vMethod>sample string 1</vMethod>
</Customer>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Customer'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.