POST api/policyrestrictions/accept

Request Information

URI Parameters

None.

Body Parameters

AcceptPoliciesRequestDto
NameDescriptionTypeAdditional information
CustomerID

integer

None.

AgreementMethod

string

None.

IPAddress

string

None.

Policies

Collection of PolicyAcceptanceDto

None.

localization

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": 1,
  "AgreementMethod": "sample string 2",
  "IPAddress": "sample string 3",
  "Policies": [
    {
      "PolicyID": 1,
      "PolicyCountryID": 2,
      "VersionID": 3,
      "AgreedToTerms": true,
      "AgreementMethod": "sample string 4",
      "IPAddress": "sample string 5"
    },
    {
      "PolicyID": 1,
      "PolicyCountryID": 2,
      "VersionID": 3,
      "AgreedToTerms": true,
      "AgreementMethod": "sample string 4",
      "IPAddress": "sample string 5"
    }
  ],
  "localization": "sample string 4"
}

application/xml, text/xml

Sample:
<AcceptPoliciesRequestDto 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>
  <AgreementMethod>sample string 2</AgreementMethod>
  <CustomerID>1</CustomerID>
  <IPAddress>sample string 3</IPAddress>
  <Policies>
    <PolicyAcceptanceDto>
      <AgreedToTerms>true</AgreedToTerms>
      <AgreementMethod>sample string 4</AgreementMethod>
      <IPAddress>sample string 5</IPAddress>
      <PolicyCountryID>2</PolicyCountryID>
      <PolicyID>1</PolicyID>
      <VersionID>3</VersionID>
    </PolicyAcceptanceDto>
    <PolicyAcceptanceDto>
      <AgreedToTerms>true</AgreedToTerms>
      <AgreementMethod>sample string 4</AgreementMethod>
      <IPAddress>sample string 5</IPAddress>
      <PolicyCountryID>2</PolicyCountryID>
      <PolicyID>1</PolicyID>
      <VersionID>3</VersionID>
    </PolicyAcceptanceDto>
  </Policies>
</AcceptPoliciesRequestDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AcceptPoliciesResponseDto
NameDescriptionTypeAdditional information
Results

Collection of PolicyAcceptanceResultDto

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"
    }
  ],
  "Results": [
    {
      "PolicyID": 1,
      "VersionID": 2,
      "IsSuccess": true,
      "Message": "sample string 4"
    },
    {
      "PolicyID": 1,
      "VersionID": 2,
      "IsSuccess": true,
      "Message": "sample string 4"
    }
  ],
  "CustomerID": 1,
  "IsSuccess": true,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<AcceptPoliciesResponseDto 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>
  <Results>
    <PolicyAcceptanceResultDto>
      <IsSuccess>true</IsSuccess>
      <Message>sample string 4</Message>
      <PolicyID>1</PolicyID>
      <VersionID>2</VersionID>
    </PolicyAcceptanceResultDto>
    <PolicyAcceptanceResultDto>
      <IsSuccess>true</IsSuccess>
      <Message>sample string 4</Message>
      <PolicyID>1</PolicyID>
      <VersionID>2</VersionID>
    </PolicyAcceptanceResultDto>
  </Results>
</AcceptPoliciesResponseDto>