As a global system we provide you with all the tools you need to make sure your app is global too – use this webservice to get the latest currency rates and additional data without the need of using additional 3rd party providers or hard coding the data into your app.
As services can be used in different territories this method is designed to return currencies’ conversation rates available in the system to maintain the same rates on both admincash and the apps (websites) connected to it.
Parameter | Mandatory | Type | Description |
---|---|---|---|
This method has an empty body as it doesn't require any input parameters. |
As a response this method returns an array which contains objects with info about currency rates. Each object includes parameters represented in the table below.
Parameter | Type | Description |
---|---|---|
Key | string | Defines which currencies' rate this item describes - will return the currency 3 letter ISO |
Value | decimal | Rate for current currency |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/international.svc/GetCurrencyRates"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddHeader("applicationToken", "fed45b9d-429f-449e-96a7-48ea02d8156a"); request.AddHeader("your_app_Token", "fd8e72b2-a769-4d2b-a656-f54001aaeaf5"); request.AddParameter("application/json", "", ParameterType.RequestBody); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var settings = { "url": "https://webservices.gr8pay.com/v2/international.svc/GetCurrencyRates", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, }; $.ajax(settings).done(function (response) { console.log(response); }); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <!--?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =--> "https://webservices.gr8pay.com/v2/international.svc/GetCurrencyRates", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "applicationToken: fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token: fd8e72b2-a769-4d2b-a656-f54001aaeaf5" ), )); $response = curl_exec($curl); curl_close($curl); echo $response; |
This service call will return the list of skills that can be associated with a customer.
Parameter | Mandatory | Type | Description |
---|---|---|---|
This method has an empty body as it doesn't require any input parameters. |
As a response this method returns an array which contains objects with info about skills. Each object includes parameters represented in the table below.
Parameter | Type | Description |
---|---|---|
Key | string | Defines which skill this item describes |
Value | string | Returns the name of the skill |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/international.svc/GetSkills"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddHeader("applicationToken", "fed45b9d-429f-449e-96a7-48ea02d8156a"); request.AddHeader("your_app_Token", "fd8e72b2-a769-4d2b-a656-f54001aaeaf5"); request.AddParameter("application/json", "", ParameterType.RequestBody); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var settings = { "url": "https://webservices.gr8pay.com/v2/international.svc/GetSkills", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, }; $.ajax(settings).done(function (response) { console.log(response); }); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <!--?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =--> "https://webservices.gr8pay.com/v2/international.svc/GetSkills", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "applicationToken: fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token: fd8e72b2-a769-4d2b-a656-f54001aaeaf5" ), )); $response = curl_exec($curl); curl_close($curl); echo $response; |
This service call will return the list of Interests that can be associated with a customer.
Parameter | Mandatory | Type | Description |
---|---|---|---|
This method has an empty body as it doesn't require any input parameters. |
As a response this method returns an array which contains objects with info about skills. Each object includes parameters represented in the table below.
Parameter | Type | Description |
---|---|---|
Key | string | Defines which skill this item describes |
Value | string | Returns the name of the skill |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/international.svc/GetInterests"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddHeader("applicationToken", "fed45b9d-429f-449e-96a7-48ea02d8156a"); request.AddHeader("your_app_Token", "fd8e72b2-a769-4d2b-a656-f54001aaeaf5"); request.AddParameter("application/json", "", ParameterType.RequestBody); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var settings = { "url": "https://webservices.gr8pay.com/v2/international.svc/GetInterests", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, }; $.ajax(settings).done(function (response) { console.log(response); }); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <!--?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =--> "https://webservices.gr8pay.com/v2/international.svc/GetInterests", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "applicationToken: fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token: fd8e72b2-a769-4d2b-a656-f54001aaeaf5" ), )); $response = curl_exec($curl); curl_close($curl); echo $response; |
This service call will return the list of Industries that can be associated with a customer.
Parameter | Mandatory | Type | Description |
---|---|---|---|
This method has an empty body as it doesn't require any input parameters. |
As a response this method returns an array which contains objects with info about skills. Each object includes parameters represented in the table below.
Parameter | Type | Description |
---|---|---|
Key | string | Defines which skill this item describes |
Value | string | Returns the name of the skill |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/international.svc/GetIndustries"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddHeader("applicationToken", "fed45b9d-429f-449e-96a7-48ea02d8156a"); request.AddHeader("your_app_Token", "fd8e72b2-a769-4d2b-a656-f54001aaeaf5"); request.AddParameter("application/json", "", ParameterType.RequestBody); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var settings = { "url": "https://webservices.gr8pay.com/v2/international.svc/GetIndustries", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, }; $.ajax(settings).done(function (response) { console.log(response); }); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <!--?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =--> "https://webservices.gr8pay.com/v2/international.svc/GetIndustries", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "applicationToken: fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token: fd8e72b2-a769-4d2b-a656-f54001aaeaf5" ), )); $response = curl_exec($curl); curl_close($curl); echo $response; |
This service returns all reply codes and their data to allow customization of responses on the client’s side.
Parameter | Mandatory | Type | Description |
---|---|---|---|
language | No | string | Define language which error data should be returned with. Should contain language ISO |
groups | No | ArrayOfstring | Define errors of which groups should be returned |
As a response this method returns an array which contains objects with info about matching errors. Each object includes parameters represented in the table below.
Parameter | Type | Description |
---|---|---|
Code | int | Result code |
IsSuccess | boolean | Defines whether service call was processed successfully or not |
Key | string | Result key ("Success", "Error", etc.) |
Message | string | Result message |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/international.svc/GetErrorCodes"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddHeader("applicationToken", "fed45b9d-429f-449e-96a7-48ea02d8156a"); request.AddHeader("your_app_Token", "fd8e72b2-a769-4d2b-a656-f54001aaeaf5"); request.AddParameter("application/json", "{\r\n \"language\": \"string\",\r\n \"groups\": [ArrayOfstring]\r\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | var settings = { "url": "https://webservices.gr8pay.com/v2/international.svc/GetErrorCodes", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": "{\r\n \"language\": \"string\",\r\n \"groups\": [ArrayOfstring]\r\n}", }; $.ajax(settings).done(function (response) { console.log(response); }); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <!--?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =--> "https://webservices.gr8pay.com/v2/international.svc/GetErrorCodes", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS =>"{\r\n \"language\": \"string\",\r\n \"groups\": [ArrayOfstring]\r\n}", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "applicationToken: fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token: fd8e72b2-a769-4d2b-a656-f54001aaeaf5" ), )); $response = curl_exec($curl); curl_close($curl); echo $response; |
This method returns all counties, Canada states, USA states and languages available in the system. Common practice is to call this service once and store the data locally for further usage during the current session.
Parameter | Mandatory | Type | Description |
---|---|---|---|
This method has an empty body as it doesn't require any input parameters. |
Parameter | Type | Description |
---|---|---|
CanadaStates | Array | Contains a list of objects with Canada states' data. Each object has three fields (Icon, Key, Name). Check detailed fields' descriptions below |
Icon | string | Icon for the current item |
Key | string | State's ISO |
Name | string | State's name |
Countries | Array | Contains a list of objects with countries' data. Each object has three fields (Icon, Key, Name). Check detailed fields' descriptions below |
Icon | string | Icon for the current item |
Key | string | Country's ISO |
Name | string | Country's name |
Languages | Array | Contains a list of objects with languages' data. Each object has three fields (Icon, Key, Name). Check detailed fields' descriptions below |
Icon | string | Icon for the current item |
Key | string | Language's ISO |
Name | string | Language's name |
UsaStates | Array | Contains a list of objects with USA states' data. Each object has three fields (Icon, Key, Name). Check detailed fields' descriptions below |
Icon | string | Icon for the current item |
Key | string | State's ISO |
Name | string | State's name |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/international.svc/GetStaticData"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddHeader("applicationToken", "fed45b9d-429f-449e-96a7-48ea02d8156a"); request.AddHeader("your_app_Token", "fd8e72b2-a769-4d2b-a656-f54001aaeaf5"); request.AddParameter("application/json", "", ParameterType.RequestBody); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var settings = { "url": "https://webservices.gr8pay.com/v2/international.svc/GetStaticData", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, }; $.ajax(settings).done(function (response) { console.log(response); }); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <!--?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =--> "https://webservices.gr8pay.com/v2/international.svc/GetStaticData", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "applicationToken: fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token: fd8e72b2-a769-4d2b-a656-f54001aaeaf5" ), )); $response = curl_exec($curl); curl_close($curl); echo $response; |