POST api/LiteShop/InsertMember

新增會員資料

Request Information

URI Parameters

None.

Body Parameters

LiteShop_Webhook_MemberRequest
NameDescriptionTypeAdditional information
vip_level_code

string

None.

vip_level_name

string

None.

vip_expiration_date

string

None.

email

string

None.

name

string

None.

phone

string

None.

uid

string

None.

birthday

string

None.

Request Formats

application/json, text/json

Sample:
{
  "vip_level_code": "sample string 1",
  "vip_level_name": "sample string 2",
  "vip_expiration_date": "sample string 3",
  "email": "sample string 4",
  "name": "sample string 5",
  "phone": "sample string 6",
  "uid": "sample string 7",
  "birthday": "sample string 8"
}

application/xml, text/xml

Sample:
<LiteShop_Webhook_MemberRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoodApi.API_DataTransferObject">
  <birthday>sample string 8</birthday>
  <email>sample string 4</email>
  <name>sample string 5</name>
  <phone>sample string 6</phone>
  <uid>sample string 7</uid>
  <vip_expiration_date>sample string 3</vip_expiration_date>
  <vip_level_code>sample string 1</vip_level_code>
  <vip_level_name>sample string 2</vip_level_name>
</LiteShop_Webhook_MemberRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResponse
NameDescriptionTypeAdditional information
error_code

integer

None.

error_msg

string

None.

logs

Collection of string

None.

error_logs

Collection of Exception

None.

data_string

string

None.

dec_request

string

None.

dec_response

string

None.

Response Formats

application/json, text/json

Sample:
{
  "error_code": 1,
  "error_msg": "sample string 2",
  "logs": [
    "sample string 1",
    "sample string 2"
  ],
  "error_logs": [
    {
      "ClassName": "System.Exception",
      "Message": null,
      "Data": null,
      "InnerException": null,
      "HelpURL": "sample string 1",
      "StackTraceString": null,
      "RemoteStackTraceString": null,
      "RemoteStackIndex": 0,
      "ExceptionMethod": null,
      "HResult": 3,
      "Source": "sample string 2",
      "WatsonBuckets": null
    },
    {
      "ClassName": "System.Exception",
      "Message": null,
      "Data": null,
      "InnerException": null,
      "HelpURL": "sample string 1",
      "StackTraceString": null,
      "RemoteStackTraceString": null,
      "RemoteStackIndex": 0,
      "ExceptionMethod": null,
      "HResult": 3,
      "Source": "sample string 2",
      "WatsonBuckets": null
    }
  ],
  "data_string": "sample string 3",
  "dec_request": "sample string 4",
  "dec_response": "sample string 5"
}

application/xml, text/xml

Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoodApi.API_DataTransferObject">
  <data_string>sample string 3</data_string>
  <dec_request>sample string 4</dec_request>
  <dec_response>sample string 5</dec_response>
  <error_code>1</error_code>
  <error_logs xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:Exception>
      <ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
      <Message i:nil="true" xmlns="" />
      <Data i:nil="true" xmlns="" />
      <InnerException i:nil="true" xmlns="" />
      <HelpURL xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 1</HelpURL>
      <StackTraceString i:nil="true" xmlns="" />
      <RemoteStackTraceString i:nil="true" xmlns="" />
      <RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
      <ExceptionMethod i:nil="true" xmlns="" />
      <HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">3</HResult>
      <Source xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 2</Source>
      <WatsonBuckets i:nil="true" xmlns="" />
    </d2p1:Exception>
    <d2p1:Exception>
      <ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
      <Message i:nil="true" xmlns="" />
      <Data i:nil="true" xmlns="" />
      <InnerException i:nil="true" xmlns="" />
      <HelpURL xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 1</HelpURL>
      <StackTraceString i:nil="true" xmlns="" />
      <RemoteStackTraceString i:nil="true" xmlns="" />
      <RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
      <ExceptionMethod i:nil="true" xmlns="" />
      <HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">3</HResult>
      <Source xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 2</Source>
      <WatsonBuckets i:nil="true" xmlns="" />
    </d2p1:Exception>
  </error_logs>
  <error_msg>sample string 2</error_msg>
  <logs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </logs>
</BaseResponse>