Country specifications

The Country Specs API returns schemas based on the selling entity and country combination you provide. You can then use these schemas to determine whether an address component or tax identifier is required and also whether it is properly formatted.

Returns an array containing a country specification

get

Gets a country specification.

Authorizations
Query parameters
countrystringRequired

Represents the expected billing or ship to country of the customer.

sellingEntitystringRequired

Represents the selling entity assigned to the order.

Responses
200
200 OK
application/json
get
GET /country-specs HTTP/1.1
Host: api.digitalriver.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "country": "US",
      "sellingEntity": "DR_IRELAND-ENTITY",
      "billingAddressSchema": "text",
      "shippingAddressSchema": "text",
      "billingAddressOnlySchema": "text",
      "individualTaxIdentifiersSchemas": [
        "text"
      ],
      "businessTaxIdentifiersSchemas": [
        "text"
      ],
      "liveMode": false
    }
  ]
}

Last updated