GET Brands/{brandID}/Countries?includeProperties={includeProperties}

Gets countries associated with a brand

Request Information

URI Parameters

NameDescriptionTypeAdditional information
brandID

integer

Required

includeProperties

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

Collection of OutputBrandCountryModel
NameDescriptionTypeAdditional information
Cultures

Collection of OutputBrandCountryCultureModel

None.

BrandID

integer

None.

BrandCountryID

integer

None.

Properties

Dictionary of string [key] and string [value]

None.

CountryID

integer

None.

MinRegistrationAge

byte

Required

Range: inclusive between 0 and 124

MaxRegistrationAge

byte

Required

Range: inclusive between 1 and 125

IsIncentiveInPoints

boolean

None.

StudyTypeExclusionTimeInDays

integer

None.

IsNewUserRegistrationAllowed

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Cultures": [
      {
        "BrandCountryCultureID": 1,
        "Properties": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "CultureID": 2,
        "IsNewUserRegistrationAllowed": true,
        "IsBrowserDetectionAllowed": true
      },
      {
        "BrandCountryCultureID": 1,
        "Properties": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "CultureID": 2,
        "IsNewUserRegistrationAllowed": true,
        "IsBrowserDetectionAllowed": true
      }
    ],
    "BrandID": 1,
    "BrandCountryID": 2,
    "Properties": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "CountryID": 3,
    "MinRegistrationAge": 64,
    "MaxRegistrationAge": 64,
    "IsIncentiveInPoints": true,
    "StudyTypeExclusionTimeInDays": 7,
    "IsNewUserRegistrationAllowed": true
  },
  {
    "Cultures": [
      {
        "BrandCountryCultureID": 1,
        "Properties": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "CultureID": 2,
        "IsNewUserRegistrationAllowed": true,
        "IsBrowserDetectionAllowed": true
      },
      {
        "BrandCountryCultureID": 1,
        "Properties": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        },
        "CultureID": 2,
        "IsNewUserRegistrationAllowed": true,
        "IsBrowserDetectionAllowed": true
      }
    ],
    "BrandID": 1,
    "BrandCountryID": 2,
    "Properties": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "CountryID": 3,
    "MinRegistrationAge": 64,
    "MaxRegistrationAge": 64,
    "IsIncentiveInPoints": true,
    "StudyTypeExclusionTimeInDays": 7,
    "IsNewUserRegistrationAllowed": true
  }
]

text/html

Sample:
[{"Cultures":[{"BrandCountryCultureID":1,"Properties":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"CultureID":2,"IsNewUserRegistrationAllowed":true,"IsBrowserDetectionAllowed":true},{"BrandCountryCultureID":1,"Properties":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"CultureID":2,"IsNewUserRegistrationAllowed":true,"IsBrowserDetectionAllowed":true}],"BrandID":1,"BrandCountryID":2,"Properties":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"CountryID":3,"MinRegistrationAge":64,"MaxRegistrationAge":64,"IsIncentiveInPoints":true,"StudyTypeExclusionTimeInDays":7,"IsNewUserRegistrationAllowed":true},{"Cultures":[{"BrandCountryCultureID":1,"Properties":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"CultureID":2,"IsNewUserRegistrationAllowed":true,"IsBrowserDetectionAllowed":true},{"BrandCountryCultureID":1,"Properties":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"CultureID":2,"IsNewUserRegistrationAllowed":true,"IsBrowserDetectionAllowed":true}],"BrandID":1,"BrandCountryID":2,"Properties":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"CountryID":3,"MinRegistrationAge":64,"MaxRegistrationAge":64,"IsIncentiveInPoints":true,"StudyTypeExclusionTimeInDays":7,"IsNewUserRegistrationAllowed":true}]

application/xml, text/xml

Sample:
<ArrayOfOutputBrandCountryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.Country">
  <OutputBrandCountryModel>
    <CountryID>3</CountryID>
    <IsIncentiveInPoints>true</IsIncentiveInPoints>
    <IsNewUserRegistrationAllowed>true</IsNewUserRegistrationAllowed>
    <MaxRegistrationAge>64</MaxRegistrationAge>
    <MinRegistrationAge>64</MinRegistrationAge>
    <StudyTypeExclusionTimeInDays>7</StudyTypeExclusionTimeInDays>
    <BrandCountryID>2</BrandCountryID>
    <BrandID>1</BrandID>
    <Cultures xmlns:d3p1="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.Culture">
      <d3p1:OutputBrandCountryCultureModel>
        <d3p1:CultureID>2</d3p1:CultureID>
        <d3p1:IsBrowserDetectionAllowed>true</d3p1:IsBrowserDetectionAllowed>
        <d3p1:IsNewUserRegistrationAllowed>true</d3p1:IsNewUserRegistrationAllowed>
        <d3p1:BrandCountryCultureID>1</d3p1:BrandCountryCultureID>
        <d3p1:Properties xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d3p1:Properties>
      </d3p1:OutputBrandCountryCultureModel>
      <d3p1:OutputBrandCountryCultureModel>
        <d3p1:CultureID>2</d3p1:CultureID>
        <d3p1:IsBrowserDetectionAllowed>true</d3p1:IsBrowserDetectionAllowed>
        <d3p1:IsNewUserRegistrationAllowed>true</d3p1:IsNewUserRegistrationAllowed>
        <d3p1:BrandCountryCultureID>1</d3p1:BrandCountryCultureID>
        <d3p1:Properties xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d3p1:Properties>
      </d3p1:OutputBrandCountryCultureModel>
    </Cultures>
    <Properties xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </Properties>
  </OutputBrandCountryModel>
  <OutputBrandCountryModel>
    <CountryID>3</CountryID>
    <IsIncentiveInPoints>true</IsIncentiveInPoints>
    <IsNewUserRegistrationAllowed>true</IsNewUserRegistrationAllowed>
    <MaxRegistrationAge>64</MaxRegistrationAge>
    <MinRegistrationAge>64</MinRegistrationAge>
    <StudyTypeExclusionTimeInDays>7</StudyTypeExclusionTimeInDays>
    <BrandCountryID>2</BrandCountryID>
    <BrandID>1</BrandID>
    <Cultures xmlns:d3p1="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.Culture">
      <d3p1:OutputBrandCountryCultureModel>
        <d3p1:CultureID>2</d3p1:CultureID>
        <d3p1:IsBrowserDetectionAllowed>true</d3p1:IsBrowserDetectionAllowed>
        <d3p1:IsNewUserRegistrationAllowed>true</d3p1:IsNewUserRegistrationAllowed>
        <d3p1:BrandCountryCultureID>1</d3p1:BrandCountryCultureID>
        <d3p1:Properties xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d3p1:Properties>
      </d3p1:OutputBrandCountryCultureModel>
      <d3p1:OutputBrandCountryCultureModel>
        <d3p1:CultureID>2</d3p1:CultureID>
        <d3p1:IsBrowserDetectionAllowed>true</d3p1:IsBrowserDetectionAllowed>
        <d3p1:IsNewUserRegistrationAllowed>true</d3p1:IsNewUserRegistrationAllowed>
        <d3p1:BrandCountryCultureID>1</d3p1:BrandCountryCultureID>
        <d3p1:Properties xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 3</d5p1:Key>
            <d5p1:Value>sample string 4</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d3p1:Properties>
      </d3p1:OutputBrandCountryCultureModel>
    </Cultures>
    <Properties xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </Properties>
  </OutputBrandCountryModel>
</ArrayOfOutputBrandCountryModel>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.