POST api/policyrestrictions/country

Request Information

URI Parameters

None.

Body Parameters

PoliciesForCountryRequestDto
NameDescriptionTypeAdditional information
CountryCode

string

None.

LanguageID

integer

None.

CustomerTypeID

integer

None.

PaymentTypeID

integer

None.

localization

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CountryCode": "sample string 1",
  "LanguageID": 2,
  "CustomerTypeID": 3,
  "PaymentTypeID": 1,
  "localization": "sample string 4"
}

application/xml, text/xml

Sample:
<PoliciesForCountryRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Neora.Services.Model.DTO">
  <localization>sample string 4</localization>
  <CountryCode>sample string 1</CountryCode>
  <CustomerTypeID>3</CustomerTypeID>
  <LanguageID>2</LanguageID>
  <PaymentTypeID>1</PaymentTypeID>
</PoliciesForCountryRequestDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PoliciesForCountryResponseDto
NameDescriptionTypeAdditional information
Policies

Collection of CountryPolicyDto

None.

CustomerID

integer

None.

IsSuccess

boolean

None.

Message

string

None.

Messages

Collection of ErrorMessage

None.

Response Formats

application/json, text/json

Sample:
{
  "Messages": [
    {
      "code": 1,
      "message": "sample string 2"
    },
    {
      "code": 1,
      "message": "sample string 2"
    }
  ],
  "Policies": [
    {
      "PolicyID": 1,
      "PolicyCountryID": 2,
      "VersionID": 3,
      "PolicyDocumentUrl": "sample string 4",
      "PolicyType": "sample string 5",
      "ApplicationUrl": "sample string 6"
    },
    {
      "PolicyID": 1,
      "PolicyCountryID": 2,
      "VersionID": 3,
      "PolicyDocumentUrl": "sample string 4",
      "PolicyType": "sample string 5",
      "ApplicationUrl": "sample string 6"
    }
  ],
  "CustomerID": 1,
  "IsSuccess": true,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<PoliciesForCountryResponseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Neora.Services.Model.DTO">
  <CustomerID>1</CustomerID>
  <IsSuccess>true</IsSuccess>
  <Message>sample string 3</Message>
  <Messages>
    <ErrorMessage>
      <code>1</code>
      <message>sample string 2</message>
    </ErrorMessage>
    <ErrorMessage>
      <code>1</code>
      <message>sample string 2</message>
    </ErrorMessage>
  </Messages>
  <Policies>
    <CountryPolicyDto>
      <ApplicationUrl>sample string 6</ApplicationUrl>
      <PolicyCountryID>2</PolicyCountryID>
      <PolicyDocumentUrl>sample string 4</PolicyDocumentUrl>
      <PolicyID>1</PolicyID>
      <PolicyType>sample string 5</PolicyType>
      <VersionID>3</VersionID>
    </CountryPolicyDto>
    <CountryPolicyDto>
      <ApplicationUrl>sample string 6</ApplicationUrl>
      <PolicyCountryID>2</PolicyCountryID>
      <PolicyDocumentUrl>sample string 4</PolicyDocumentUrl>
      <PolicyID>1</PolicyID>
      <PolicyType>sample string 5</PolicyType>
      <VersionID>3</VersionID>
    </CountryPolicyDto>
  </Policies>
</PoliciesForCountryResponseDto>