POST api/member/save/{companycode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companycode

string

Required

Body Parameters

Member
NameDescriptionTypeAdditional information
MemberId

integer

None.

RefNo

string

None.

Name

string

None.

Gender

string

None.

ContactNo

string

None.

Email

string

None.

Address

string

None.

PostalCode

string

None.

Remarks

string

None.

DOB

date

None.

BranchId

integer

None.

Points

decimal number

None.

ExpiryDate

date

None.

JoinDate

date

None.

IsNewsltter

boolean

None.

IsEmail

boolean

None.

IsSMS

boolean

None.

IsPhoneCall

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "MemberId": 1,
  "RefNo": "sample string 2",
  "Name": "sample string 3",
  "Gender": "sample string 4",
  "ContactNo": "sample string 5",
  "Email": "sample string 6",
  "Address": "sample string 7",
  "PostalCode": "sample string 8",
  "Remarks": "sample string 9",
  "DOB": "2024-05-12T03:54:00.5311525+08:00",
  "BranchId": 11,
  "Points": 12.0,
  "ExpiryDate": "2024-05-12T03:54:00.5311525+08:00",
  "JoinDate": "2024-05-12T03:54:00.5311525+08:00",
  "IsNewsltter": true,
  "IsEmail": true,
  "IsSMS": true,
  "IsPhoneCall": true
}

text/xml

Sample:
<Member xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CloudSysPOSWeb.Models">
  <Address>sample string 7</Address>
  <BranchId>11</BranchId>
  <ContactNo>sample string 5</ContactNo>
  <DOB>2024-05-12T03:54:00.5311525+08:00</DOB>
  <Email>sample string 6</Email>
  <ExpiryDate>2024-05-12T03:54:00.5311525+08:00</ExpiryDate>
  <Gender>sample string 4</Gender>
  <IsEmail>true</IsEmail>
  <IsNewsltter>true</IsNewsltter>
  <IsPhoneCall>true</IsPhoneCall>
  <IsSMS>true</IsSMS>
  <JoinDate>2024-05-12T03:54:00.5311525+08:00</JoinDate>
  <MemberId>1</MemberId>
  <Name>sample string 3</Name>
  <Points>12</Points>
  <PostalCode>sample string 8</PostalCode>
  <RefNo>sample string 2</RefNo>
  <Remarks>sample string 9</Remarks>
</Member>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.