Get authorized countries

Get authorized billing countries for a given site

get

Provide list of authorized billing countries by locale

Authorizations
AuthorizationstringRequired

For system access use case, use API key/secret in the Authorization header, the API key should be set up with sufficient role.

Path parameters
siteIdstringRequired

The site's ID.

Query parameters
localestringOptional

Only return authorized billing countries specific to the given locale

apiKeystringOptional

The client identifier used to authorize the request. You must specify either an apiKey or token.

Responses
200

Successful response.

application/json
get
/v1/sites/{siteId}/authorized-billing-countries
GET /v1/sites/{siteId}/authorized-billing-countries HTTP/1.1
Host: api.digitalriver.com
Authorization: Basic username:password
Accept: */*
{
  "authorizedBillingCountries": [
    {
      "locale": "en_US",
      "countries": [
        {
          "displayName": "Taiwan",
          "countryCode": "TW"
        }
      ]
    }
  ]
}

Get authorized shipping countries for a given site

get

Provide list of authorized billing countries by locale

Authorizations
AuthorizationstringRequired

For system access use case, use API key/secret in the Authorization header, the API key should be set up with sufficient role.

Path parameters
siteIdstringRequired

The site's ID.

Query parameters
localestringOptional

Only return authorized shipping countries specific to the given locale

apiKeystringOptional

The client identifier used to authorize the request. You must specify either an apiKey or token.

Responses
200

Successful response.

application/json
get
/v1/sites/{siteId}/authorized-shipping-countries
GET /v1/sites/{siteId}/authorized-shipping-countries HTTP/1.1
Host: api.digitalriver.com
Authorization: Basic username:password
Accept: */*
{
  "authorizedShippingCountries": [
    {
      "locale": "en_US",
      "countries": [
        {
          "displayName": "Taiwan",
          "countryCode": "TW"
        }
      ]
    }
  ]
}

Last updated