POST api/shippingAddress/ShippingAddress_Upsert

Request Information

URI Parameters

None.

Body Parameters

ShippingAddress
NameDescriptionTypeAdditional information
Id

integer

None.

SalonId

integer

None.

Address

string

None.

CountryId

integer

None.

StateId

integer

None.

City

string

None.

ZipCode

integer

None.

PrimaryNumber

string

None.

AlternateNumber

string

None.

IsDefault

boolean

None.

CreatedBy

integer

None.

DeletedDate

date

None.

DeletedBy

integer

None.

CreatedDate

date

None.

StateName

string

None.

CountryName

string

None.

SalonName

string

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

CreatedDateStr

string

None.

UpdatedDateStr

string

None.

DeletedDateStr

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "SalonId": 2,
  "Address": "sample string 3",
  "CountryId": 4,
  "StateId": 5,
  "City": "sample string 6",
  "ZipCode": 7,
  "PrimaryNumber": "sample string 8",
  "AlternateNumber": "sample string 9",
  "IsDefault": true,
  "CreatedBy": 11,
  "DeletedDate": "2025-07-08T19:46:49.2060024+03:00",
  "DeletedBy": 13,
  "CreatedDate": "2025-07-08T19:46:49.2060024+03:00",
  "StateName": "sample string 15",
  "CountryName": "sample string 16",
  "SalonName": "sample string 17",
  "UpdatedBy": 18,
  "UpdatedDate": "2025-07-08T19:46:49.2060024+03:00",
  "CreatedDateStr": "08-Jul-2025 07:46 PM",
  "UpdatedDateStr": "08-Jul-2025 07:46 PM",
  "DeletedDateStr": "08-Jul-2025 07:46 PM"
}

text/xml

Sample:
<ShippingAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1">
  <Address xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 3</Address>
  <AlternateNumber xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 9</AlternateNumber>
  <City xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 6</City>
  <CountryId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">4</CountryId>
  <CountryName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 16</CountryName>
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">11</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:46:49.2060024+03:00</CreatedDate>
  <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">13</DeletedBy>
  <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:46:49.2060024+03:00</DeletedDate>
  <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id>
  <IsDefault xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">true</IsDefault>
  <PrimaryNumber xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 8</PrimaryNumber>
  <SalonId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</SalonId>
  <SalonName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 17</SalonName>
  <StateId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">5</StateId>
  <StateName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 15</StateName>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">18</UpdatedBy>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2025-07-08T19:46:49.2060024+03:00</UpdatedDate>
  <ZipCode xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">7</ZipCode>
</ShippingAddress>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.