GET
/v2/location/countries
Whenever you create or update a customer's main address and billing address, you have to use the country ID supplied by SimplePin. Use this endpoint to retrieve the list of all countries supported by SimplePin.
Parámetros
Nombre
Descripción
locale
string
(necesario)
This field is used to retrieve the provinces, countries, and names of users. It returns a customer profile based on his/her specific language settings. So if we create a customer and set his/her settings to French, then SimplePin’s parameters will also be in French.
Response Messages
Código
Descripción
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
[
{
"currency_code": "string",
"id": 0,
"name": "string"
}
]
{ } LocationModel
currency_code
optional
string
id
optional
integer
name
optional
string
<location_models>
<location_model>
<currency_code>string</currency_code>
<id>0</id>
<name>string</name>
</location_model>
</location_models>
{ } LocationModel
currency_code
optional
string
id
optional
integer
name
optional
string