POST api/customers/registercustomer

Request Information

URI Parameters

None.

Body Parameters

CustomerInfo
NameDescriptionTypeAdditional information
Name

string

None.

Phone

string

None.

BirthDay

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Phone": "sample string 2",
  "BirthDay": "2026-02-03T16:39:26.2365711+04:00"
}

text/html

Sample:
{"Name":"sample string 1","Phone":"sample string 2","BirthDay":"2026-02-03T16:39:26.2365711+04:00"}

application/xml, text/xml

Sample:
<CustomerInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gregsys.WebApi.Models">
  <BirthDay>2026-02-03T16:39:26.2365711+04:00</BirthDay>
  <Name>sample string 1</Name>
  <Phone>sample string 2</Phone>
</CustomerInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CustomerInfoResponse
NameDescriptionTypeAdditional information
CustomerId

integer

None.

isSuccess

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "isSuccess": true,
  "message": "sample string 3"
}

text/html

Sample:
{"CustomerId":1,"isSuccess":true,"message":"sample string 3"}

application/xml, text/xml

Sample:
<CustomerInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gregsys.WebApi.Models">
  <isSuccess>true</isSuccess>
  <message>sample string 3</message>
  <CustomerId>1</CustomerId>
</CustomerInfoResponse>