Country

1. Method: Country


Important notes

Public and Private Keys are unique for Sandbox and Live.
Sandbox Endpoint URL: https://sandbox.api.igsend.co.uk/services/country 
Live Endpoint URL: https://api.igsend.co.uk/services/country 

 Double click the URL above to insert into the Endpoint field below
Endpoint URL
Public Key
Private Key

Request Payload

N/A


Response Payload



2. JSON Response Data

Please note: this is the data returned by an API call with no JSON payload
Key Value Description
ID The unique identifier of the record, this value is to be used in the Cross Border Payment "CBP" disburse API. Value is an interger.
CountryName Complete description of country.
ShortName Shortened description of country.
CountryIDISO2 Two letter identifier of the country.
CountryIDISO3 Three letter identifier of the country.
Currency Currency of the country, as a string.

3. Code Example

C#
								
	using (HttpClient client = new HttpClient())
	{
		string PublicKey = "{Your public key}";
		string PrivateKey = "{Your private key}";
		string RequestAddress = "https://api.igsend.co.uk/services/country"
		client.BaseAddress = new Uri(RequestAddress);
		var auth = string.Format("{0}:{1}", PublicKey, PrivateKey);
		var encoded = Convert.ToBase64String(Encoding.ASCII.GetBytes(auth));
		client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", encoded);
		HttpResponseMessage response = await client.GetAsync(RequestAddress);
	}
								
							
If you develop in another code, which may be useful to other customers, we would love to include further examples here. You can submit your example code to the API team.