1. Home
  2. Docs
  3. Handbook
  4. Nafhaa API
  5. PULL API’s

PULL API’s

While Pulling data from Nafhaa, first user needs to get Token from Nafhaa site. So first we will see how to access token from Nafhaa.

Token Access

Following link used to access token:

URL: http://[domain name]/api/Pull/Nafhaa/Token?Username=<user registered with portal>&Password=<password>

Request: Get

Response:

You will receive the above response when Username, Password matches properly and finally all the configuration for API are found correct. The response will contain the Token and Token Validity after which the Token will be invalid and you need to pull the new token from the portal.

API With date parameters

SrModuleRequestTypeStart DateEnd Date
1ProformaproformaJsonRequiredRequired
2CashbookcashbookJsonRequiredRequired
3SalessalesJsonRequiredRequired
4Sales ReturnsalesreturnJsonRequiredRequired
5PurchasepurchaseJsonRequiredRequired
6Purchase ReturnpurchasereturnJsonRequiredRequired
7Sales OrdersalesordersJsonRequiredRequired
8TaskstasksJsonRequiredRequired
9EnquiryenquiryJsonRequiredRequired

As mentioned in above chart API calls can be done. Following is one example how the chart works:

Suppose user wants to get list of Proforma records then user will do following request:

URL:http://[domain name]/api/Pull/Nafhaa?NAuth=<NAuthKey>&Request=proforma&Type=json&StartDate=2021-12-01&EndDate=2022-03-01

API Without date parameters

SrModuleRequestType
1ContactcontactsJson
2ProductsproductsJson
3CurrencycurrencyJson
4CompanycompaniesJson
5CityCityJson

These are master modules data. So no need for date.

This is all about PULL API’s in Nafhaa API.

Was this article helpful to you? Yes 1 No