CompanyOperations - Get Countries
When should this function be used?
This function retrieves the countries of the businesses associated with a supplier/dealer.
Below is a link to the function in JSON.
Request method - GET.
Get countries
https://secure.cardcom.solutions/api/v11/CompanyOperations/GetCountries
Below are the parameters that must be passed to the function.
Legend:
Red parameter - required
Bold parameter - recommended
A parameter that is neither red nor bold is optional.
| Number |
Parameter | Example values | Description |
| 1 | SupplierUserName | (String) | The supplier's username. |
| 2 | Secret | (String) | Secret ? |
Get Countries Response
| Number |
Parameter | Example values | Description |
| 1 | CountryCode | (String) | Country code. |
| 2 | Name | (String) | Country name. |
| 3 | NameHeb | (String) | Country name in Hebrew. |
| 4 | Alpha_2 | (String) | Alpha-2 code (two-character code) |
| 5 | Alpha_3 | (String) | Alpha-3 code (three-character code) |
| 6 | Iso_3166_2 | (String) | Region code according to the ISO 3166 standard. |
| 7 | Region | (String) | Region |
| 8 | SubRegion | (String) | Subregion |
| 9 | IntermediateRegion | (String) | Intermediate region |
| 10 | RegionCode | (String) | Region code |
| 11 | SubRegionCode | (String) | Subregion code |
| 12 | IntermediateRegionCode | (String) | Intermediate region code |
| 13 | BDI_CountryCode | (String) | BDI country code |
Below is sample code for the function, together with the response.
Request example:
{
"SupplierUserName":"sdgfg",
"secret":"ahsdfg11"
}
Example response:
[
{
"CountryCode": "string",
"Name": "string",
"NameHeb": "string",
"Alpha_2": "string",
"Alpha_3": "string",
"Iso_3166_2": "string",
"Region": "string",
"SubRegion": "string",
"IntermediateRegion": "string",
"RegionCode": "string",
"SubRegionCode": "string",
"IntermediateRegionCode": "string",
"BDI_CountryCode": "string"
}
]