GSP Utility API
If using UCL or FREE TaxPro API Library, Reference: Assembly: TaxProGST.API
1. GetApiBalance
HTTP Method: GET
Headers or QueryString Parms:
Property
|
Description
|
Data Type
|
aspid
|
AspUserId provided by GSP.
|
String
|
password
|
ASP Account password used for ASP Portal login.
|
String
|
Response in below Type:
public class AspApiBalance
{
public int ApiBal { get; set; }
public DateTime ApiBalExpDt { get; set; }
}
Sample Url:
https://gstapi.charteredinfo.com/aspapi/v1.0/getapibalance?aspid=<===YourAspId===>&password=<===YourPassword===>
2. SetASPPubCer
Used to update newly generated Public Key (".cer" file) to ASP Account.
HTTP Method: POST
Headers:
Property
|
Description
|
Data Type
|
aspid
|
AspUserId provided by GSP.
|
String
|
password
|
ASP Account password used for ASP Portal login.
|
String
|
Body: Content of Cer File (By replacing -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----)
Success Response: HttpStatusCode.OK (200)
Download API Txn Log for the date indicated by Query Parameter TxnDt.
HTTP Method: GET
Headers or Query Parameters:
Property
|
Description
|
Data Type
|
aspid
|
AspUserId provided by GSP.
|
String
|
password
|
ASP Account password used for ASP Portal login.
|
String
|
Query Parameter:
TxnDt=ddMMMyy (ex: 02APR18)
Sample Url:
https://gstapi.charteredinfo.com/aspapi/v1.0/dailytxnlog?aspid=<===YourAspId===>&password=<===YourPassword===>&TxnDt=02apr18
---------------