WiPay
Payments APIv1.0.11Helpers

Get States/Subdivisions

Retrieve ISO 3166-2 subdivisions (states, provinces, parishes) for a given country. The usable values for the `state` Payment Request parameter are the keys of the returned JSON object.

GET
/get/states

Query Parameters

country_codestring

ISO 3166-1 alpha-2 country code.

Match^[A-Z]{2}$

Response Body

curl -X GET "https://tt.wipayfinancial.com/plugins/get/states?country_code=string"
{
  "property1": "string",
  "property2": "string"
}
{
  "message": "string",
  "url": "http://example.com",
  "transaction_id": "string"
}