Countries

GET {{host_gateway}}/api/partner/product/{{api_product_id}}/countries

Use this to receive the list of home countries and destination countries allowed for this product. It also provides a list of host country states, if applicable.

Request URL Parameters

All the below are required.

KeyDescriptionExample
product_idProduct ID. See product reference section.6

Response Body Parameters

The response will be an array of objects. Each object will have the below parameters:

KeyDescription
host_countriesSee Host Countries reference below.
destination_countriesSee Destination Countries reference below.

Host Countries

KeyDescriptionExample
codeCountry code in ISO 3166 alpha-2 format.US
nameCountry nameUnited States
is_disabledBoolean value that determines if the associated host country is disabled.false
statesSee States reference below.

Destination Countries

KeyDescriptionExample
codeCountry code in ISO 3166 alpha-2 format.US
nameCountry nameUnited States
is_disabledBoolean value that determines if the associated destination country is disabled.false

States

KeyDescriptionExample
code2 letter code for state in ISO 3166-2 standard. Can also be an empty string for non-applicable countries.
https://www.iso.org/obp/ui/#iso:code:3166:US
OH
nameState nameOhio
is_disabledBoolean value that determines if the associated state is disabled.false

RESPONSES

status: OK

{"data":{"host_countries":[{"code":"AU","name":"Australia","is_disabled":false,"states":[{"code":"NSW","name":"New South Wales","is_disabled":false},{"code":"VIC","name":"Victoria","is_disabled":false},{"code":"QLD","name":"Queensland","is_disabled":false},{"code":"WA","name":"Western Australia","is_disabled":false},{"code":"SA","name":"South Australia","is_disabled":false},{"code":"TAS","name":"Tasmania","is_disabled":false}]}],"destination_countries":[{"code":"US","name":"United States","is_disabled":false},{"code":"PR","name":"Puerto Rico","is_disabled":false}]}}