Use Navotar API to access your car rental information from your website/mobile app. Find more information on how to access in the API section.
TITLE | Authorization |
URL | /api/token |
METHOD | POST |
INPUT PARAMS |
{ "client_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "grant_type": "client_credentials", "client_secret": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", } |
SUCCESS RESPONSE |
{ "access_token": "PjGxruTsodH9n6HqVqJdZQBYf7RtIhfzbV……….....", "token_type": "bearer", "expires_in": 1199 } |
ERROR RESPONSE |
{ "error": "invalid_client" } |
NOTES |
• client_id and client_secret are given by Navotar after API subscription • Prior to any of the API call, this Authorization method has to be invoked and used the response access_token in request Authorization. Ex. "headers": { "authorization": "Bearer {{access_token}}” } |
TITLE | Search Billing Documents |
URL | /v1/Billing/Documents |
METHOD | POST |
INPUT PARAMS |
{ "startDate": "2015-01-01", "endDate": "2016-01-01", "clientId": 1 } |
SUCCESS RESPONSE |
[ { "clientId": 1, "documentNumber": null, "documentType": "Invoice", "documentDate": "2016-09-09T00:00:00", "customerID": "DRI02", "customerName": "Joan Doe", "description": "Invoice from 2015-01-01 to 2016-01-01", "notepad": "Invoice from 2015-01-01 to 2016-01-01", "poNumber": null, "paymentTerm": 0, "salesPerson": null, "cashAmt": 0, "cashCheckbook": null, "crNumber": null, "cashDate": "1900-01-01T00:00:00", "checkAmt": 0, "checkCheckbook": null, "checkNumber": null, "checkCRNumber": null, "checkDate": "1900-01-01T00:00:00", "cardAmt": 0, "cardName": null, "cardNumber": null, "cardDate": "1900-01-01T00:00:00", "cardCRNumber": null, "salesAmt": 710.28, "discAmt": null, "freightAmt": null, "miscAmt": 0, "taxDocDetailId": "GST OUTPUT 7%", "taxSalesAmt": 0, "taxFreightDetailId": null, "taxFreightAmt": null, "taxMiscDetailId": 0, "taxMiscAmt": 0, "taxAccount": "36004", "accountCode": "22101", "accountType": "RECV", "debitAmt": 760, "creditAmt": 0, "distributionRef": null, "currencyId": "SGD", "exchRate": null, "exchDate": "1900-01-01T00:00:00", "rateType": null, "buVerticalCode": "GR0", "cityCode": "SIN", "departmentCode": "BDP", "projectCode": "000000000000" } ] |
ERROR RESPONSE |
{ "message": "Authorization has been denied for this request." } |
NOTES |
"accountType" values are • RECV • SALES • TAXES |
TITLE | Search Customers |
URL | /v1/Billing/Customers |
METHOD | POST |
INPUT PARAMS |
{ "customerId": 0, "customerType": "", "customerNumber": "", "customerName": "john", "city": "toronto", "state": "", "zip": "", "phone": "" } |
SUCCESS RESPONSE |
[ { "customerId": 476, "customerType": null, "customerNumber": "DRI02", "module": "Dynamic", "navotarCustomerNumber": "476", "customerName": "John Smith", "address1": "2334 Main Street", "address2": "", "city": "Toronto", "state": null, "zip": null, "phone": "1234567890" } ] |
ERROR RESPONSE |
{ "message": "Authorization has been denied for this request." } |
NOTES |