Currency

1. Method: Currency


Important notes

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

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

Request Payload

None


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, under the key payee_CurrencyID. Value is an interger.
Currency Currency of the country, as a string.
Short Name Short name of the currency, 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/currency"
		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.