Country specifications

The Country Specifications resource streamlines the checkout process by providing detailed schemas based on the selling entity and country combination. It assists in determining the necessity and format of address components and tax identifiers, ensuring compliance with country-specific requirements. By leveraging this API, businesses can enhance their international operations and reduce friction during cross-border transactions.

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 one country specification

get

Gets a country specification.

Query parameters
countrystringRequired

Only return a country spec for this country

sellingEntitystringRequired

Only return a country spec for this selling entity

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

Last updated