Skip to content

Get Countries

Request

The operation fetches list of supported destination countries for a provided carrier and origin country. If query parameters are not provided, it will default to USPS as carrier and US as origin country.

Security
bearerAuth
Query
carrierstring

The carrierID, a unique identifier given to an individual carrier.

originCountryCodestring

The Source Country. The two-character ISO country code for the country where the Shipment originates.

Headers
X-PB-Developer-Partner-Idstring

This is the Developer Partner ID. When the developer is the only partner, this field is not required.

curl -i -X GET \
  'https://api-dev.sendpro360.pitneycloud.com/shipping/api/v1/countries?carrier=string&originCountryCode=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'X-PB-Developer-Partner-Id: string'

Responses

A list of Countries has been fetched.

Headers
X-PB-TransactionIdstring

A unique transaction Id provided by the partner which is used to enable debugging and linking between the client's transaction and the system.

Example:"GmeMZJ9YDK5z87b"
Bodyapplication/json
countriesArray of objects
Response
{ "countries": [ { "countryCode": "CA", "countryName": "Canada" } ] }