List all (or one) countries.

Endpoint URL

https://dashboard-api.revnue.com/api/v2/country

Authentication and rate limits

Item

Details

Authentication method

OAuth 2.0 Bearer token

Rate limit

Rate Limit

Requests Example

curl --request GET \
  --url 'https://dashboard-api.revnue.com/api/v2/country' \
  --header 'Authorization: Bearer $BEARER_TOKEN'
curl --request GET \
  --url 'https://dashboard-api.revnue.com/api/v2/country/$id' \
  --header 'Authorization: Bearer $BEARER_TOKEN'

Query Parameters

  • id (integer) --

    Optional if you want to list a specific country ID. The id parameter is passed as part of the request url /country/$id.

Response Syntax

{
  "country_name": "string",
  "country_numeric_code": integer
}

Response Fields

  • country_name (string) --

    The name of the country.

  • country_numeric_code (integer) --

    The numeric code of the country.