Schedule a meeting

Geographic

Get Country by Partner

This endpoint returns information about the countries associated with a specific partner account.

URL

PROD https://api.skypostal.com/

TEST https://api-test.skypostal.com/

Endpoint

POST /wcf-services/service-geographic.svc/geographic/get-country-by-partner

Request Parameters

Parameters

user_info

Object - Required

User Info Definition.

copa_id

Integer - Required

Commercial Partner Number (Provided by Skypostal).

User Info Definition

Parameters

user_code

Integer - Required

This is the user code provided by Skypostal.

user_key

String - Required

This is the app key provided by Skypostal.

app_key

String - Required

This is the app key provided by Skypostal.

Remember

user_code and app_key are generic credentials, make sure to request your own for TEST and PROD environemnts.

The command should be run as in the following example:

{
    "user_info": {
        "user_code": 123123,
        "user_key": "**",
        "app_key": "***"
    },
    "copa_id": 001
}

The command will return the following format:

[
    {
        "_verify": true,
        "additional_info": {
            "internal": [],
            "server": {
                "server_id": null,
                "server_time": 0
            }
        },
        "country_code": 155,
        "country_iso_code": "MX",
        "country_name": "Mexico",
        "ctry_code_phone": null,
        "error": {
            "error_code": "",
            "error_description": "",
            "error_location": "",
            "system_error": false
        }
    }
]