Quotations
This doamin serves fo quotations related requests.
Request Paramters
string domain |
Value should be quotations |
Required |
string action |
Value should be maincal |
Required |
object data |
Empty Object. | Required |
Sample Request Body
Response Paramters
string status |
This indicate the status of the response. success is the expected value. |
string message |
This explains the reson for status. |
list data |
This contain list of result data objects of the API call. |
string code |
The unique code associated with the item. |
string name |
The name of the item. |
string folder |
The folder where the item is categorized. |
string total_column |
The name of the column representing the total price. |
Sample Response
Get Calculation
POSTThis API call give details of spacipic calculationThis function retrieves various calculations related to a quotation based on the provided quote number.
Request Paramters
string domain |
Value should be quotations |
Required |
string action |
Value should be get_calculation |
Required |
object data |
Contains input parameters. | Required |
string quote_no |
The quote number for which calculations are to be retrieved. | Required |
Sample Request Body
Response Paramters
string status |
This indicate the status of the response. success is the expected value. |
string message |
This explains the reson for status. |
list data |
This contain list of result data objects of the API call. |
float main_prices |
The total price of all calculations. |
float total_fitting_charge |
The total fitting charge price. |
string records |
The records associated with the quotation. |
string discount_1 |
The first discount applied. |
float discount_2 |
The second discount applied. |
string extras |
Any additional extras. |
float deposit |
The deposit amount. |
float calc_acc_price |
The total accessory price calculation. |
float calc_fit_cha_price |
The total fitting charge price calculation. |
float calc_per_met_price |
The total per meter price calculation. |
float total_1 |
The total after initial calculations. |
float extras_amount |
The amount calculated for extras. |
float sub_total |
The subtotal after extras. |
string tax_name |
The name of the tax applied. |
float tax |
The calculated tax amount. |
float total_2 |
The total after tax. |
float discount_1_val |
The value of the first discount applied. |
float grand_total |
The grand total after discounts. |
float balance |
The remaining balance after deposit. |
array calculations |
An array containing names of various calculations performed. |
array the_calculation_names |
An array containing names of specific calculations. |
array the_calculations |
An array containing details of specific calculations. |
Sample Response
Get Trader Calculations
POSTThis API call give calculations of spacific trader. Retrieves the calculation codes selected by a trader based on the provided customer ID.
Request Paramters
string domain |
Value should be quotations |
Required |
string action |
Value should be get_trader_calculations |
Required |
object data |
Contains input parameters. | Required |
string customer_id |
The ID of the customer for whom the calculations are retrieved. | Required |
Sample Request Body
Response Paramters
string status |
This indicate the status of the response. success is the expected value. |
string message |
This explains the reson for status. |
list data |
This contain list of result data objects of the API call. |
Sample Response
Get Trader Calculation Names
POSTThis will provide list of calculation names for selected traderRetrieves the names of calculations selected by a trader based on the provided customer ID.
Request Paramters
string domain |
Value should be quotations |
Required |
string action |
Value should be get_calculation_names |
Required |
object data |
Contains input parameters. | Required |
string customer_id |
The ID of the customer for whom the calculation names are retrieved. | Required |
Sample Request Body
Response Paramters
string status |
This indicate the status of the response. success is the expected value. |
string message |
This explains the reson for status. |
list data |
This contain list of result data objects of the API call. |
Sample Response
Sort Quote Items
POSTThis API call will upadte the sorting order of quote items. Updates the sorting order of quote items based on the provided parameters.
Request Paramters
string domain |
Value should be quotations |
Required |
string action |
Value should be sort_quote_items |
Required |
object data |
Contains input parameters. | Required |
list sort_order |
The array containing the sorted order of quote item codes. | Required |
list row_nos |
The array containing the row numbers of quote items. | Required |
string calc |
The calculation type. | Required |
string cid |
The ID of the quotation. | Required |
Sample Request Body
Response Paramters
string status |
This indicate the status of the response. success is the expected value. |
string message |
This explains the reson for status. |
list data |
This contain list of result data objects of the API call. |