POST staff/customer/import

Request Information

URI Parameters

None.

Body Parameters

Request_Customer_Import
NameDescriptionTypeAdditional information
full_name

string

Required

birthday

string

Required

email

string

Required

address

string

Required

phone

string

Required

phone2

string

Required

phone3

string

Required

gender

boolean

Required

commune_name

string

Required

province_name

string

Required

id_number

string

Required

issued_date

string

Required

issued_place

string

Required

is_company

boolean

Required

contact_name

string

Required

contact_phone

string

Required

token

string

Required

secret_key

string

Required

id_staff_action

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "full_name": "sample string 1",
  "birthday": "sample string 2",
  "email": "sample string 3",
  "address": "sample string 4",
  "phone": "sample string 5",
  "phone2": "sample string 6",
  "phone3": "sample string 7",
  "gender": true,
  "commune_name": "sample string 9",
  "province_name": "sample string 10",
  "id_number": "sample string 11",
  "issued_date": "sample string 12",
  "issued_place": "sample string 13",
  "is_company": true,
  "contact_name": "sample string 14",
  "contact_phone": "sample string 15",
  "token": "sample string 16",
  "secret_key": "sample string 17",
  "id_staff_action": 18
}

application/xml, text/xml

Sample:
<Request_Customer_Import xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Dictionary.Request">
  <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">18</id_staff_action>
  <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 17</secret_key>
  <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 16</token>
  <address>sample string 4</address>
  <birthday>sample string 2</birthday>
  <commune_name>sample string 9</commune_name>
  <contact_name>sample string 14</contact_name>
  <contact_phone>sample string 15</contact_phone>
  <email>sample string 3</email>
  <full_name>sample string 1</full_name>
  <gender>true</gender>
  <id_number>sample string 11</id_number>
  <is_company>true</is_company>
  <issued_date>sample string 12</issued_date>
  <issued_place>sample string 13</issued_place>
  <phone>sample string 5</phone>
  <phone2>sample string 6</phone2>
  <phone3>sample string 7</phone3>
  <province_name>sample string 10</province_name>
</Request_Customer_Import>

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 'Request_Customer_Import'.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
status

integer

None.

error_code

string

None.

content

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "error_code": "sample string 2",
  "content": {}
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">
  <content />
  <error_code>sample string 2</error_code>
  <status>1</status>
</Result>