List of countries
Countries
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | suppliercontacts.json | |
| General | Yes | Parameters described in overview | see overview | Structure of an API call |
| Company | Yes | The company number | company=1 | |
| Action | Yes | The action to perform | action=countries |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/suppliercontacts.json?&version=6&company=1&action=countries
Example request (legacy username/password):
http://<SERVER>/jsonapi/suppliercontacts.json?&version=6&company=1&action=countries&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 14,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"countryCode": "",
"countryName": "- Blank -",
"variable_selected": true,
"countryTimezoneCode": ""
},
{
"countryCode": "AU",
"countryName": "Australia",
"variable_selected": false,
"countryTimezoneCode": "UTC+10:00A"
},
{
"countryCode": "GBX",
"countryName": "Britain",
"variable_selected": false,
"countryTimezoneCode": "UTCA"
},
{
"countryCode": "CAN",
"countryName": "Canadax",
"variable_selected": false,
"countryTimezoneCode": "UTC-05:00A"
},
{
"countryCode": "CHN",
"countryName": "China",
"variable_selected": false,
"countryTimezoneCode": "UTC+08:00A"
},
{
"countryCode": "CYP",
"countryName": "Cyprus",
"variable_selected": false,
"countryTimezoneCode": "UTC+02:00D"
},
{
"countryCode": "FR",
"countryName": "France",
"variable_selected": false,
"countryTimezoneCode": "UTC+01:00D"
},
{
"countryCode": "DE",
"countryName": "Germany",
"variable_selected": false,
"countryTimezoneCode": "UTC+01:00F"
},
{
"countryCode": "NL",
"countryName": "Netherlands",
"variable_selected": false,
"countryTimezoneCode": "UTC+01:00F"
},
{
"countryCode": "ZA",
"countryName": "South Africa",
"variable_selected": false,
"countryTimezoneCode": "UTC+02:00H"
},
{
"countryCode": "SP",
"countryName": "Special place",
"variable_selected": false,
"countryTimezoneCode": "UTCA"
},
{
"countryCode": "UAE",
"countryName": "United Arab Emirates",
"variable_selected": false,
"countryTimezoneCode": "UTC+04:00A"
},
{
"countryCode": "UK",
"countryName": "United Kingdom",
"variable_selected": false,
"countryTimezoneCode": "UTCA"
},
{
"countryCode": "US",
"countryName": "United States",
"variable_selected": false,
"countryTimezoneCode": "UTC-08:00A"
}
]
}