GET Globals/GlobalCountries

Returns list of GlobalCountries.


Response body formats

A list of GlobalCountries.

application/json, text/json

Sample:
{
  "List": [
    {
      "GlobalCountryid": 1,
      "Country": "sample string 2",
      "CountryCode": "sample string 3",
      "Alpha3CountryCode": "sample string 4",
      "Numeric3CountryCode": 5,
      "PostcodeRegex": "sample string 6",
      "PostcodeAnywhereEnabled": true
    },
    {
      "GlobalCountryid": 1,
      "Country": "sample string 2",
      "CountryCode": "sample string 3",
      "Alpha3CountryCode": "sample string 4",
      "Numeric3CountryCode": 5,
      "PostcodeRegex": "sample string 6",
      "PostcodeAnywhereEnabled": true
    },
    {
      "GlobalCountryid": 1,
      "Country": "sample string 2",
      "CountryCode": "sample string 3",
      "Alpha3CountryCode": "sample string 4",
      "Numeric3CountryCode": 5,
      "PostcodeRegex": "sample string 6",
      "PostcodeAnywhereEnabled": true
    }
  ],
  "ResponseInformation": {
    "Errors": [
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      }
    ],
    "Status": 0,
    "Links": [
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      }
    ]
  }
}

application/xml, text/xml

Sample:
<GetGlobalCountriesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Responses">
  <ResponseInformation xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
    <Errors>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
    </Errors>
    <Links>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
    </Links>
    <Status>Failure</Status>
  </ResponseInformation>
  <List xmlns:d2p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
    <d2p1:GlobalCountry>
      <d2p1:Alpha3CountryCode>sample string 4</d2p1:Alpha3CountryCode>
      <d2p1:Country>sample string 2</d2p1:Country>
      <d2p1:CountryCode>sample string 3</d2p1:CountryCode>
      <d2p1:GlobalCountryid>1</d2p1:GlobalCountryid>
      <d2p1:Numeric3CountryCode>5</d2p1:Numeric3CountryCode>
      <d2p1:PostcodeAnywhereEnabled>true</d2p1:PostcodeAnywhereEnabled>
      <d2p1:PostcodeRegex>sample string 6</d2p1:PostcodeRegex>
    </d2p1:GlobalCountry>
    <d2p1:GlobalCountry>
      <d2p1:Alpha3CountryCode>sample string 4</d2p1:Alpha3CountryCode>
      <d2p1:Country>sample string 2</d2p1:Country>
      <d2p1:CountryCode>sample string 3</d2p1:CountryCode>
      <d2p1:GlobalCountryid>1</d2p1:GlobalCountryid>
      <d2p1:Numeric3CountryCode>5</d2p1:Numeric3CountryCode>
      <d2p1:PostcodeAnywhereEnabled>true</d2p1:PostcodeAnywhereEnabled>
      <d2p1:PostcodeRegex>sample string 6</d2p1:PostcodeRegex>
    </d2p1:GlobalCountry>
    <d2p1:GlobalCountry>
      <d2p1:Alpha3CountryCode>sample string 4</d2p1:Alpha3CountryCode>
      <d2p1:Country>sample string 2</d2p1:Country>
      <d2p1:CountryCode>sample string 3</d2p1:CountryCode>
      <d2p1:GlobalCountryid>1</d2p1:GlobalCountryid>
      <d2p1:Numeric3CountryCode>5</d2p1:Numeric3CountryCode>
      <d2p1:PostcodeAnywhereEnabled>true</d2p1:PostcodeAnywhereEnabled>
      <d2p1:PostcodeRegex>sample string 6</d2p1:PostcodeRegex>
    </d2p1:GlobalCountry>
  </List>
</GetGlobalCountriesResponse>
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body