GET//
Retrieve a specific acceptedcountries object. Send a GET request to the /acceptedcountries endpoint to retrieve existing acceptedcountries object tokens.
URL path parameters
| Fields | Description |
|---|---|
| token string Required | Unique identifier of the accepted countries object. Allowable Values: Existing accepted countries object token |
URL query parameters
| Fields | Description |
|---|---|
| fields string Optional | Comma-delimited list of fields to return (field_1,field_2, and so on). Leave blank to return all fields.Allowable Values: token, name, is_whitelist, country_codes, created_time, last_modified_time, or blank |
Response body
| Fields | Description |
|---|---|
| country_codes array of strings Returned | Comma-delimited list of accepted countries by ISO 3166 three-digit country code. Allowable Values: ISO 3166 three-digit numeric codes. For example, the numeric code for the United States is 840.The ISO maintains the ISO-3166 country codes. |
| created_time datetime Conditionally returned | Date and time when the accepted countries object was created, in UTC. This field is returned when included in your query. Allowable Values: datetime Format: yyyy-MM-ddThh:mm:ssZ |
| is_whitelist boolean Returned | Specifies if the list of accepted countries in this object is an allow list. If set to true, transactions are accepted for all countries included in the object’s country_codes array. If set to false, transactions are prohibited for all countries included in the object’s country_codes array.Allowable Values: true, false |
| last_modified_time datetime Conditionally returned | Date and time when the accepted countries object was last updated, in UTC. This field is returned when included in your query. Allowable Values: datetime Format: yyyy-MM-ddThh:mm:ssZ |
| name string Returned | Name of the acceptedcountries object.Allowable Values: 99 char max |
| token string Conditionally returned | The unique identifier of the acceptedcountries object.This field is always returned. Allowable Values: 1–36 chars |