@grof-sg/grof-iras-api
v1.0.0
Published
Sprout's interface with IRAS
Downloads
75
Keywords
Readme
Simplified IRAS Rest API http request for Sprout Apps
Key features
- Search GST Registered
Installation
1.Install package
To install sprout-basis-api with npm
:
npm install @sproutasia/sprout-iras-api --save
To install sprout-basis-api with yarn
:
yarn add @sproutasia/sprout-iras-api --save
Usage
Here is a basic example of using sprout-iras-api within a nodejs application.
const Iras = require("@sproutasia/sprout-iras-api");
const irasAPI = new Iras(false, "<PasteClientIDHere>", "<PasteSecretHere>");
// Check GST
irasAPI.searchGSTRegistered("<PasteUENHere>").then((resp) => {
console.log(resp);
/*
{
returnCode: "10",
data: {
gstRegistrationNumber: "Test GST Reg Number",
name: "Test name",
registrationId: "Test Reg ID",
RegisteredFrom: "1994-04-01T00:00:00",
Status: "Registered",
},
info: {
fieldInfoList: [],
},
}
*/
});