Skip to main content
GET
/
address-requirements
curl -X GET "https://transaction-tax.api.in.commenda.io/api/v1/address-requirements?country=US" \
  -H "Authorization: Bearer <token>"
{
  "data": {
    "country_code": "US",
    "address_line_1": "REQUIRED",
    "address_line_2": "OPTIONAL",
    "address_line_3": "IGNORED",
    "city": "REQUIRED",
    "state": "REQUIRED",
    "postal_code": "REQUIRED",
    "postal_code_regex": "^\\d{5}(-\\d{4})?$",
    "valid_state_codes": [
      "AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA",
      "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD",
      "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ",
      "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC",
      "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY",
      "DC"
    ]
  },
  "message": "Successfully retrieved address requirements."
}

Documentation Index

Fetch the complete documentation index at: https://docs.commenda.io/llms.txt

Use this file to discover all available pages before exploring further.

curl -X GET "https://transaction-tax.api.in.commenda.io/api/v1/address-requirements?country=US" \
  -H "Authorization: Bearer <token>"
{
  "data": {
    "country_code": "US",
    "address_line_1": "REQUIRED",
    "address_line_2": "OPTIONAL",
    "address_line_3": "IGNORED",
    "city": "REQUIRED",
    "state": "REQUIRED",
    "postal_code": "REQUIRED",
    "postal_code_regex": "^\\d{5}(-\\d{4})?$",
    "valid_state_codes": [
      "AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA",
      "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD",
      "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ",
      "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC",
      "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY",
      "DC"
    ]
  },
  "message": "Successfully retrieved address requirements."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

country
string
required

A valid 2-letter ISO 3166-1 alpha-2 country code (e.g., US, CA, GB).

Example:

"US"

Response

Address requirements for the specified country

data
object
message
string
Example:

"Successfully retrieved address requirements."