POST Common/Country/Save

Request Information

URI Parameters

None.

Body Parameters

CountryViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

StoreId

integer

None.

Name

string

Required

AllowsBilling

boolean

None.

AllowsShipping

boolean

None.

ISOCode2

string

Required

Max length: 2

ISOCode3

string

Required

Max length: 3

ISD

string

None.

SubjectToVat

boolean

None.

Published

boolean

None.

DisplayOrder

integer

None.

ModifiedBy

string

None.

ModifiedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "StoreId": 1,
  "Name": "sample string 2",
  "AllowsBilling": true,
  "AllowsShipping": true,
  "ISOCode2": "sample string 5",
  "ISOCode3": "sample string 6",
  "ISD": "sample string 7",
  "SubjectToVat": true,
  "Published": true,
  "DisplayOrder": 10,
  "ModifiedBy": "sample string 11",
  "ModifiedDate": "2025-04-26T16:27:17.2749752+01:00"
}

application/xml, text/xml

Sample:
<CountryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ECommerce.Service.Common.ViewModel">
  <AllowsBilling>true</AllowsBilling>
  <AllowsShipping>true</AllowsShipping>
  <DisplayOrder>10</DisplayOrder>
  <ISD>sample string 7</ISD>
  <ISOCode2>sample string 5</ISOCode2>
  <ISOCode3>sample string 6</ISOCode3>
  <Id>1</Id>
  <ModifiedBy>sample string 11</ModifiedBy>
  <ModifiedDate>2025-04-26T16:27:17.2749752+01:00</ModifiedDate>
  <Name>sample string 2</Name>
  <Published>true</Published>
  <StoreId>1</StoreId>
  <SubjectToVat>true</SubjectToVat>
</CountryViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.