Quotations
This doamin serves fo quotations related requests.
Get Main Calculations
POSTRetrieves a list of main calculations along with their details.
Request Paramters
string domain |
Value should be quotations |
Required |
string action |
Value should be maincal |
Required |
object data |
Empty Object. | Required |
Sample Request Body
{
domain: "quotations",
action: "maincal",
"data": {}
}
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
{
status: "success",
data: {
status: "success",
message: "Main calculations Read",
data: [
{
code: "582fffc680330",
name: "Price Grids",
folder: "window-price-sheet-calculation",
total_column: "price"
}
]
}
}
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
{
"domain": "quotations",
"action": "get_calculation",
"data": {
"quote_no": "Q05240053"
}
}
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
{
"status": "success",
"data": {
"status": "success",
"message": "Calculation Read",
"data": {
"main_prices": 3199.76,
"total_fitting_charge": 0,
"records": "",
"discount_1": "0",
"discount_2": 0,
"extras": "0",
"deposit": 0,
"calc_acc_price": 0,
"calc_fit_cha_price": 0,
"calc_per_met_price": 0,
"total_1": 3199.76,
"extras_amount": 0,
"sub_total": 3199.76,
"tax_name": "GST",
"tax": 319.98,
"total_2": 3519.7400000000002,
"discount_1_val": 0,
"grand_total": 3519.7400000000002,
"balance": 3519.7400000000002,
"calculations": [
[
"window-price-sheet-calculation"
],
[
"window-shutter-calculation"
],
[
"window-curtain-calculation"
],
[
"window-rt-hardware-calculation"
],
[
"window-pelmet-calculation"
],
[
"window-panel-glide-calculation"
],
[
"window-track-per-meter-calculation"
],
[
"flooring-acc-calculation"
],
[
"window-price-sheet-2-calculation"
],
[
"window-price-sheet-5-calculation"
],
[
"flooring-2-calculation"
],
[
"window-shutter-2-calculation"
],
[
"window-shutter-3-calculation"
],
[
"window-shutter-4-calculation"
],
[
"window-shutter-5-calculation"
],
[
"window-sqf-calculation"
],
[
"window-sqf-2-calculation"
],
[
"window-sqf-3-calculation"
],
[
"window-sqf-4-calculation"
],
[
"window-sqf-5-calculation"
],
[
"furnishing-calculation"
],
[
"window-price-sheet-3-calculation"
],
[
"window-price-sheet-4-calculation"
],
[
"twc-calculation"
],
[
"window-dual-blind-calculation"
],
[
"flooring-sqm-calculation"
],
[
"flooring-sqm-2-calculation"
],
[
"flooring-calculation"
],
[
"flooring-lab-calculation"
],
[
"form-no-calculation"
],
[
"window-price-sheet-6-calculation"
]
],
"the_calculation_names": [
"Rollers",
"Roofing System",
"Retrofit Double Glazing",
"Pelmets",
"Curtains",
"350 - Panel Glides",
"245 - 50mm Pure Wood",
"Dual Blinds 1",
"Vinyl"
],
"the_calculations": [
{
"code": "584f4f914be7e",
"name": "Rollers",
"pro_count": "4"
},
{
"code": "6094e93d50c68",
"name": "Roofing System",
"pro_count": "1"
},
{
"code": "6509024c16bef",
"name": "Retrofit Double Glazing",
"pro_count": "2"
},
{
"code": "583eb22d8d69f",
"name": "Pelmets",
"pro_count": "2"
},
{
"code": "613ed6d61d4a9",
"name": "Curtains",
"pro_count": "1"
},
{
"code": "5ceba39caf950",
"name": "350 - Panel Glides",
"pro_count": "1"
},
{
"code": "5cee2003a80cf",
"name": "245 - 50mm Pure Wood",
"pro_count": "1"
},
{
"code": "601c600492d6d",
"name": "Dual Blinds 1",
"pro_count": "1"
},
{
"code": "5bd8e80b05390",
"name": "Vinyl",
"pro_count": "1"
}
]
}
}
}
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
{
domain: "quotations",
action: "get_trader_calculations",
data: {
customer_id: "69"
}
}
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
{
status: "success",
data: {
status: "success",
message: "Trader Calculation Read",
data: null
}
}
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
{
domain: "quotations",
action: "get_trader_calculations",
data: {
customer_id: "69"
}
}
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
{
status: "success",
data: {
status: "success",
message: "Trader Calculation Names Read",
data: null
}
}
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
{
domain: "quotations",
action: "sort_quote_items",
data: {
sort_order: [
"sort_order"
],
row_nos: [
"row_nos"
],
calc: "calc",
cid: "cid"
}
}
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
{
status: "success",
data: [
1
]
}