• Pages
  • /
  • Dealers
  • /
  • Data Depot
  • /
  • Version 4
  • /
  • API
  • /
  • Services
  • /
  • Countries

Countries

Countries in the WPS API refer to the Country of Origin of an Item in an ISO 3166-1 alpha-2 code format.

This endpoint allows you to retrieve a collection of all our Countries, or the data surrounding a specific Country via the entity endpoint. The Countries endpoint also allows you to retrieve the associated relationships that Countries have with other services.

Example requests

Collection

http://api.wps-inc.com/countries

Entity

This request will return the entity with details like the Country name and Country code. Like in this example, the Country id of 101 = "Italy".

http://api.wps-inc.com/countries/101

...or send multiple ids separated by a comma(,)

http://api.wps-inc.com/countries/44,101,208

Associated Items

Get all the Items associated with the Country of "Italy".

http://api.wps-inc.com/countries/101/items