Countries

Get list of countries and relative IDs to be used in countryId field for user signup

get

To create a new user with the /affiliate/signup POST method you need to pass a countryId field you can get from this endpoint.

Authorizations
Responses
200

200 response

application/json
get
GET /partners/countries HTTP/1.1
Host: api.streetlib.com
x-api-key: YOUR_API_KEY
Accept: */*
200

200 response

[
  {
    "alpha2": "text",
    "name": "text",
    "alpha3": "text",
    "id": "text"
  }
]
options
Responses
200

200 response

options
OPTIONS /partners/countries HTTP/1.1
Host: api.streetlib.com
Accept: */*
200

200 response

No content

Last updated

Was this helpful?