LogoLogo
System status
Admin APIs reference
Admin APIs reference
  • Admin APIs reference
  • Order management
    • Refunds
    • Retrieve an order (synchronous API)
    • Retrieve an invoice (synchronous API)
    • Manage orders (synchronous API)
  • Customer management
    • Retrieve a customer (synchronous API)
    • Manage a customer (synchronous API)
  • Subscription mangement
    • Manage a subscription
    • Renew a subscription
    • Apply an immediate midterm change
    • Manage subscription payments
    • Modify the subscription's external reference ID
    • Manage the subscription's address
    • Get all orders
    • Retrieve subscriptions with pending actions
    • Retrieve subscriptions
    • Manage a perpetual price
    • Update a subscription's email address
  • Site management
    • Get authorized countries
  • Product management
    • Manage products (asynchronous API)
    • Retrieve a product (synchronous API)
    • Retrieve the product task status (synchronous API)
  • Offer Management
    • Manage offers (synchronous API)
    • Retrieve an offer (synchronous API)
  • Webhook management
    • Manage webhook events
  • Payment source
    • Source management
  • File management
    • Retrieve a file
Powered by GitBook
On this page
  1. Site management

Get authorized countries

PreviousUpdate a subscription's email addressNextManage products (asynchronous API)

Last updated 1 year ago

Get authorized billing countries for a given site

get

Provide list of authorized billing countries by locale

Authorizations
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
400
* API Key or user role is not allowed to access this site
application/json
401
* User has no sufficient privileges to access this resource
application/json
404
* Site not found
application/json
409
* Locale unsupported
application/json
get
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
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
400
* API Key or user role is not allowed to access this site
application/json
401
* User has no sufficient privileges to access this resource
application/json
404
* Site not found
application/json
409
* Locale unsupported
application/json
get
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"
        }
      ]
    }
  ]
}
  • GETGet authorized billing countries for a given site
  • GETGet authorized shipping countries for a given site