FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
Currency | Yes | String | Currency of account | USD |
Field Name | Field Type | Description |
---|---|---|
UserID | String | Id of the newly created user, for authentication |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/RegisterUser"); 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", "{"currency":"USD"}", 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/prepaid.svc/RegisterUser", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"currency":"USD"}), }; $.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/prepaid.svc/RegisterUser", 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 =>"{"currency":"USD"}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | This parameter can be used to assign a card (using card's AccountId) from stock if you have it. The card must not be assigned to another user. If this data is not sent, then the system generates a new electronic card and AccountId number for this user, using the currency selected on Register user method. | 1E+15 |
Field Name | Field Type | Description |
---|---|---|
AccountID | Number | Assigned AccountId |
AccountNum | String | Assigned card number |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/AssignUser"); 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", "{"AccountId": 1000000000236589}", 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/prepaid.svc/AssignUser", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"AccountId":1000000000236589}), }; $.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/prepaid.svc/AssignUser", 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 =>"{"AccountId": 1000000000236589}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample | |
---|---|---|---|---|---|
firstname | Yes | String | User’s first name | ||
Lastname | Yes | String | User’s last name | ||
Whoregistersname | Yes | String | Name of who updated name | ||
Middlename | No | String | User’s middle name | ||
Secondlastname | No | String | User’s second last name |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/UpdateUserInfo"); 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", "{"firstname":"string","lastname":"string","whoregistersname":"string","middlename":"string","secondlastname":""}", 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/prepaid.svc/UpdateUserInfo", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"firstname":"string","lastname":"string","whoregistersname":"string","middlename":"string","secondlastname":""}), }; $.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/prepaid.svc/UpdateUserInfo", 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 =>"{"firstname":"string","lastname":"string","whoregistersname":"string","middlename":"string","secondlastname":""}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample | |
---|---|---|---|---|---|
Street | Yes | String | Street address | ||
NumStreet | Yes | String | Street number | ||
NumApt | Yes | String | Apt number of address | ||
CountryIso | Yes | Int | ID of country of the user address | ||
Country | Yes | String | Country name of the user address | ||
StateISOCode | Yes | int | Id of state of the user address | ||
State | Yes | String | State name of the user address | ||
City | Yes | String | City name of the user address | ||
ZipCode | Yes | String | Zip code of the user address | ||
Suburb | Yes | String | Suburb |
Field Name | Field Type | Description |
---|---|---|
Code | Integer | |
IsSuccess | Boolean | |
Key | String | |
Message | String | See Return Codes Table* |
Number | String |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/UpdateUserAddress"); 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", "{"useraddress":{"Street":"Hardif","NumStreet":"5","NumApt":"7","CountryISOCode":"US","Country":"USA","StateISOCode":"AL","State":"Alabama","City":"Hamilton","ZipCode":"12345","Suburb":""}}", 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/prepaid.svc/UpdateUserAddress", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"useraddress":{"Street":"Hardif","NumStreet":"5","NumApt":"7","CountryISOCode":"US","Country":"USA","StateISOCode":"AL","State":"Alabama","City":"Hamilton","ZipCode":"12345","Suburb":""}}), }; $.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/prepaid.svc/UpdateUserAddress", 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 =>"{"useraddress":{"Street":"Hardif","NumStreet":"5","NumApt":"7","CountryISOCode":"US","Country":"USA","StateISOCode":"AL","State":"Alabama","City":"Hamilton","ZipCode":"12345","Suburb":""}}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample | |
---|---|---|---|---|---|
Birthdate | Yes | String | User’s birth date (yyyMMdd) | ||
Gendered | Yes | String | User’s gender id (1-Male, 2-Female) | ||
countrybirthISOCode | Yes | String | User’s country birth id | ||
Occupationid | Yes | Int | User’s occupation id | ||
1-“BUSINESSMAN” | |||||
2-“EMPLOYEE’ | |||||
3-“STUDENT” | |||||
4-“HOUSEWIFE” | |||||
5-“RETIRED” |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/RegisterUserPersonalInfo"); 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", "{"birthdate":"19900101","genderid":2,"countrybirthISOCode":"USA","occupationid":2}", 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/prepaid.svc/RegisterUserPersonalInfo", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"birthdate":"19900101","genderid":2,"countrybirthISOCode":"USA","occupationid":2}), }; $.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/prepaid.svc/RegisterUserPersonalInfo", 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 =>"{"birthdate":"19900101","genderid":2,"countrybirthISOCode":"USA","occupationid":2}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
Occupationid | Yes | Int | User’s occupation id | |
1-“BUSINESSMAN” | ||||
2-“EMPLOYEE’ | ||||
3-“STUDENT” | ||||
4-“HOUSEWIFE” | ||||
5-“RETIRED” |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/UpdateUserOccupation"); 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", "{"OccupationId": 1}", 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/prepaid.svc/UpdateUserOccupation", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"OccupationId":1}), }; $.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/prepaid.svc/UpdateUserOccupation", 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 =>"{"OccupationId": 1}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
Yes | String | Email to search (1), you need to send at least one of the fields | ||
countrycode | Yes | String | Country code to search, (2) you need to send at least one of the fields | |
cellphone | Yes | String | Cellphone to search (3), you need to send at least one of the fields |
Field Name | Field Type | Description |
---|---|---|
UserInfo | String | The currency for the User created |
GenderId | String | User’s occupation id: |
1-“BUSINESSMAN” | ||
2-“EMPLOYEE” | ||
3-“STUDENT” | ||
4-“HOUSEWIFE” | ||
5-“RETIRED” | ||
UserId | String | The currency for the User created |
BirthDate | String | Birth date of user. Format: YYYMMDD |
CellPhone | String | Cellphone number |
CountryCode | String | The country code |
Currency | String | The currency for the user created |
String | ||
LastName | String | Last Name |
MiddleName | String | Middle Name |
MotherLastName | String | Last Name |
Name | String | Name |
TaxpayerRegistration | String | Tax Payer Registration |
Username | String | User Name |
CountryId | Int | Country ID |
StateId | Int | State ID |
City | String | City |
Country | String | Country |
NumApt | String | NumApt |
Street | String | Street |
State | String | State |
Suburb | String | Suburb |
ZipCode | String | Zip Code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/SearchUserInfo"); 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", "{"email":"user@example.com","cellphone":"2563985644125","countrycode":"563"}", 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/prepaid.svc/SearchUserInfo", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"email":"user@example.com","cellphone":"2563985644125","countrycode":"563"}), }; $.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/prepaid.svc/SearchUserInfo", 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 =>"{"email":"user@example.com","cellphone":"2563985644125","countrycode":"563"}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | Id of the card to be activated | |
ValidThru | Yes | String | Month and year of expiration (MMyy) | |
SecurityCode | Yes | String | Security code printed on the reverse of the card |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/ActivateCard"); 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", "{"AccountId":1000000000013817,"ValidThru":"0719","SecurityCode":"321"}", 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/prepaid.svc/ActivateCard", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"AccountId":1000000000013817,"ValidThru":"0719","SecurityCode":"321"}), }; $.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/prepaid.svc/ActivateCard", 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 =>"{"AccountId":1000000000013817,"ValidThru":"0719","SecurityCode":"321"}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | Id of the card to be activated | |
PIN | Yes | String | Personal identification number. You can update this on PIN assignment method. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/BlockCard"); 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", "{"AccountId":1000000000013817,"PIN":"6789"}", 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/prepaid.svc/BlockCard", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"AccountId":1000000000013817,"PIN":"6789"}), }; $.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/prepaid.svc/BlockCard", 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 =>"{"AccountId":1000000000013817,"PIN":"6789"}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample | |
---|---|---|---|---|---|
CurrentAccountId | Yes | Number | Id of the card to be activated | ||
NewAccountId | Yes | Number | Id of the card to be activated |
Field Name | Field Type | Description |
---|---|---|
OnlineSecurity | String | Indicates if extra security protection for online shopping is active |
CardState | String | Card State |
CardStatus | String | Card Status |
RequestedCards | String | Requested cards |
OnlineSecurityDate | String | Activation date of extra security protection for online shopping |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/CardReplace"); 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", "{"CurrentAccountId":1450000000000256,"NewAccountId":1450000000000278}", 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/prepaid.svc/CardReplace", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"CurrentAccountId":1450000000000256,"NewAccountId":1450000000000278}), }; $.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/prepaid.svc/CardReplace", 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 =>"{"CurrentAccountId":1450000000000256,"NewAccountId":1450000000000278}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
CurrentAccountId | Yes | Number | Id of the card to be activated | |
NewAccountId | Yes | Number | Id of the card to be activated |
Field Name | Field Type | Description |
---|---|---|
NewAccountID | Number | New Account ID |
NewCardNum | String | New Card Number |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/CardReplace"); 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", "{"CurrentAccountId":1450000000000256,"NewAccountId":1450000000000278}", 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/prepaid.svc/CardReplace", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"CurrentAccountId":1450000000000256,"NewAccountId":1450000000000278}), }; $.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/prepaid.svc/CardReplace", 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 =>"{"CurrentAccountId":1450000000000256,"NewAccountId":1450000000000278}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | Id of the card to be activated |
Field Name | Field Type | Description |
---|---|---|
Barcode | String | String bar code ID |
BarCode2 | String | String bar code ID |
CardNum | String | Card Number |
CardState | String | Card State |
Currency | String | Currency |
Month | String | Month |
SecurityCode | String | Security Code |
Year | String | Year |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/CardInfo"); 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", "{"AccountId":1000000000013817}", 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/prepaid.svc/CardInfo", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"AccountId":1000000000013817}), }; $.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/prepaid.svc/CardInfo", 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 =>"{"AccountId":1000000000013817}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | Id of the card to be activated | |
ValidThru | Yes | String | ValidThru | |
SecurityCode | Yes | String | SecurityCode | |
PIN | Yes | String | PIN |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/CardPIN"); 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", "{"AccountId":1000000000013817,"ValidThru":"0719","SecurityCode":"321","PIN":"6789"}", 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/prepaid.svc/CardPIN", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"AccountId":1000000000013817,"ValidThru":"0719","SecurityCode":"321","PIN":"6789"}), }; $.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/prepaid.svc/CardPIN", 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 =>"{"AccountId":1000000000013817,"ValidThru":"0719","SecurityCode":"321","PIN":"6789"}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | Id of the card to be activated | |
PIN | Yes | String | PIN |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/CardUnlock"); 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", "{"AccountId":1000000000013817,"PIN":"6789"}", 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/prepaid.svc/CardUnlock", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"AccountId":1000000000013817,"PIN":"6789"}), }; $.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/prepaid.svc/CardUnlock", 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 =>"{"AccountId":1000000000013817,"PIN":"6789"}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | Id of the card to be activated | |
NewAccountId | Yes | Number | New Account ID |
Field Name | Field Type | Description |
---|---|---|
AccountId | Number | Id of the card to be activated |
NewAccountId | Number | New Account ID |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/CardReplace"); 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", "{"CurrentAccountId":1450000000000256,"NewAccountId":1450000000000278}", 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/prepaid.svc/CardReplace", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"CurrentAccountId":1450000000000256,"NewAccountId":1450000000000278}), }; $.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/prepaid.svc/CardReplace", 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 =>"{"CurrentAccountId":1450000000000256,"NewAccountId":1450000000000278}", 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; |
Field Name | Field Type | Description |
---|---|---|
AccountId | Number | Id of the card to be activated |
AccountNum | Number | Account Number |
Currency | Number | Currency |
Balance | Number | Balance |
CardStatus | String | CardSatatus |
CardStatusID | Int | CardStatus ID |
Card | Int | Card |
Alias | String | Alias |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/UserAccountList"); 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/prepaid.svc/UserAccountList", "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/prepaid.svc/UserAccountList", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | Id of the card to be activated | |
Currency | Yes | String | The currency for the User created |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/AccountAdd"); 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", " {"AccountId":5890000000000547,"Currency":"USD"}", 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/prepaid.svc/AccountAdd", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"AccountId":5890000000000547,"Currency":"USD"}), }; $.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/prepaid.svc/AccountAdd", 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 =>" {"AccountId":5890000000000547,"Currency":"USD"}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | Id of the card to be activated |
Field Name | Field Type | Description |
---|---|---|
AccountBalance | Number | Account Balance |
AvailableBalance | Decimal | AvailableBalance |
CurrentBalance | Decimal | CurrentBalance |
AverageBalance | Decimal | AverageBalance |
DailyLoad | Decimal | DailyLoad |
DailyCharge | Decimal | Daily Charge |
CLABE | Decimal | Clabe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using RestSharp; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/Balance"); 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", "{"AccountId":5890000000000547}", 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/prepaid.svc/Balance", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"AccountId":5890000000000547}), }; $.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/prepaid.svc/Balance", 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 =>"{"AccountId":5890000000000547}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
AccountId | Yes | Number | Id of the card to be activated |
Field Name | Field Type | Description |
---|---|---|
AccountBalance | Number | Account Balance |
AvailableBalance | Decimal | AvailableBalance |
CurrentBalance | Decimal | CurrentBalance |
TransactionList | String | Transaction List |
Transaction | String | Transaction |
Authorization | String | Authorization |
Description | String | Description |
MovDate | Date | Mov Date |
ConfDate | Date | Conf Date |
Load | Decimal | Load |
Charge | String | Charge |
Balance | Decimal | Balance |
Balance | Decimal | Balance |
Currency | String | Currency |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/RecentTransactionsDetails"); 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", "{"AccountId":5890000000000547}", 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/prepaid.svc/RecentTransactionsDetails", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"AccountId":5890000000000547}), }; $.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 26 | <!--?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =--> "https://webservices.gr8pay.com/v2/prepaid.svc/RecentTransactionsDetails", 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 =>"{"AccountId":5890000000000547}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
DateFrom | Yes | Date | Date From | |
DateTo | Yes | Date | Date To |
Field Name | Field Type | Description |
---|---|---|
AccountBalance | Number | Account Balance |
AvailableBalance | Decimal | AvailableBalance |
CurrentBalance | Decimal | CurrentBalance |
TransactionList | String | Transaction List |
Transaction | String | Transaction |
Authorization | String | Authorization |
Description | String | Description |
MovDate | Date | Mov Date |
ConfDate | Date | Conf Date |
Load | Decimal | Load |
Charge | String | Charge |
Balance | Decimal | Balance |
Balance | Decimal | Balance |
Currency | String | Currency |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/TransactionSearchByDate"); 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", "{"DateFrom":"20140101","DateTo":"20140131","AccountId":1000000000013817}", 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/prepaid.svc/TransactionSearchByDate", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"DateFrom":"20140101","DateTo":"20140131","AccountId":1000000000013817}), }; $.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/prepaid.svc/TransactionSearchByDate", 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 =>"{"DateFrom":"20140101","DateTo":"20140131","AccountId":1000000000013817}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
TransactionNum | Yes | String | Transaction number |
Field Name | Field Type | Description |
---|---|---|
AccountBalance | Number | Account Balance |
AvailableBalance | Decimal | AvailableBalance |
CurrentBalance | Decimal | CurrentBalance |
TransactionList | String | Transaction List |
Transaction | String | Transaction |
Authorization | String | Authorization |
Description | String | Description |
MovDate | Date | Mov Date |
ConfDate | Date | Conf Date |
Load | Decimal | Load |
Charge | String | Charge |
Balance | Decimal | Balance |
Balance | Decimal | Balance |
Currency | String | Currency |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/TransactionSearchByNum"); 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", "{"TransactionNum":"2341100093"}", 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/prepaid.svc/TransactionSearchByNum", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"TransactionNum":"2341100093"}), }; $.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/prepaid.svc/TransactionSearchByNum", 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 =>"{"TransactionNum":"2341100093"}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
TransactionNum | Yes | String | Transaction number |
Field Name | Field Type | Description |
---|---|---|
TransactionStatus | String | Transaction Status |
TransactionStatusID | Decimal | TransactionStatus ID |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/TransactionStatus"); 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", "{"TransactionNum":"2341100093"}", 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/prepaid.svc/TransactionStatus", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"TransactionNum":"2341100093"}), }; $.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/prepaid.svc/TransactionStatus", 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 =>"{"TransactionNum":"2341100093"}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample |
---|---|---|---|---|
Amount | Yes | Decimal | Amount to send | |
Currency | Yes | String | The currency for the transfer | |
Currency | Yes | String | Currency | |
Concept | Yes | String | Description of money transfer | |
AccountID | Yes | Number | Id of the account to be charge in case the user has two or more accounts. If not send, the charge will be done to user's master account | |
AccountNum | Yes | Number | Account Number | |
CellPhone | Yes | String | Cell Phone Number | |
Yes | String | |||
RecipientUserId | Yes | String | RecipientUserId |
Field Name | Field Type | Description |
---|---|---|
CustomerSummary | String | Contains user identity to confirm load funds and customer token for settle |
CustomerToken | String | Customer token |
CustomerName | String | Customer Name |
Transaction | String | Contains a summary of created transaction, and Transaction number to for settle |
TransactionNum | String | Transaction number |
Summary | String | Summary of transaction |
Amount | Decimal | Amount of transaction |
Fee | Decimal | Amount of transaction |
Total | Int | Total of transaction |
ConfirmDate | Date | Transaction’s confirmation date |
ExchangeFac | String | Exchange factor used on transaction |
Currency | String | Currency of transaction |
Recipient | String | Recipient's name |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/TransferMoney2Wallet"); 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", "{"Amount":100,"Currency":"USD","Concept":"Send money to wallet","AccountId":1000000000013817,"AccountNum":"3552010100000012","CellPhone":"811111111111","EMail":"recipient@test.com","RecipientUserId":2012}", 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/prepaid.svc/TransferMoney2Wallet", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"Amount":100,"Currency":"USD","Concept":"Send money to wallet","AccountId":1000000000013817,"AccountNum":"3552010100000012","CellPhone":"811111111111","EMail":"recipient@test.com","RecipientUserId":2012}), }; $.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/prepaid.svc/TransferMoney2Wallet", 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 =>"{"Amount":100,"Currency":"USD","Concept":"Send money to wallet","AccountId":1000000000013817,"AccountNum":"3552010100000012","CellPhone":"811111111111","EMail":"recipient@test.com","RecipientUserId":2012}", 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; |
FieldName | Mandatory? | Field Type | Description | Sample | |
---|---|---|---|---|---|
TypeSearch | Yes | String | Type of search (1=Frequently; 2=Recents) |
Field Name | Field Type | Description |
---|---|---|
PreviousRecipients | String | List of previous recipients used for transactions |
TransactionStatusId | String | Transaction id on lists |
RecipientName | String | Recipient's name for transaction |
AccountNum | String | Recipient's account number |
CountryCode | String | Recipient's cellphone country code |
Cellphone | String | Recipient's cellphone |
String | Recipient's email | |
LastTransaction | String | Last transaction date |
TotalTransaction | String | Total transactions made with recipient |
1 2 3 4 5 6 7 8 9 | var client = new RestClient("https://webservices.gr8pay.com/v2/prepaid.svc/PreviousRecipientsList"); 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", "{"TypeSearch":1}", 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/prepaid.svc/PreviousRecipientsList", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "applicationToken": "fed45b9d-429f-449e-96a7-48ea02d8156a", "your_app_Token": "fd8e72b2-a769-4d2b-a656-f54001aaeaf5" }, "data": JSON.stringify({"TypeSearch":1}), }; $.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/prepaid.svc/PreviousRecipientsList", 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 =>"{"TypeSearch":1}", 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; |