Authorization: Bearer ********************
{
"items": [
{
"taxIds": [
"string"
],
"discountIds": [
"string"
],
"newAmount": 0,
"quantity": 0
}
],
"discountIds": [
"string"
],
"taxIds": [
"string"
],
"taxCalculationMode": "before-discount",
"currency": {
"name": "string",
"symbol": "string"
},
"taxPerItem": true,
"discountPerItem": true
}
curl --location --request POST 'https://api.upbooks.io/api/v1/proposal/calculate-total' \
--header 'ORGANIZATION-ID: 00000' \
--header 'Content-Type: application/json' \
--data-raw '{
"items": [
{
"taxIds": [
"string"
],
"discountIds": [
"string"
],
"newAmount": 0,
"quantity": 0
}
],
"discountIds": [
"string"
],
"taxIds": [
"string"
],
"taxCalculationMode": "before-discount",
"currency": {
"name": "string",
"symbol": "string"
},
"taxPerItem": true,
"discountPerItem": true
}'
{
"data": {
"totalAmount": 0,
"taxAmount": 0,
"discountAmount": 0,
"finalAmount": 0,
"items": [
{
"discount": [
{
"id": "string",
"type": "percentage",
"value": 0,
"name": "string",
"discountCode": "string",
"currency": {
"name": "string",
"symbol": "string"
},
"sysgenerated": true,
"amount": 0
}
],
"tax": [
{
"id": "string",
"name": "string",
"percentage": 0,
"sysgenerated": true,
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"identifier": "string",
"slab": 0,
"type": "igst",
"taxableAmount": 0,
"regions": [
"string"
]
}
],
"finalAmount": 0,
"newAmount": 0,
"quantity": 0
}
],
"tax": [
{
"id": "string",
"name": "string",
"percentage": 0,
"sysgenerated": true,
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"identifier": "string",
"slab": 0,
"type": "igst",
"taxableAmount": 0,
"regions": [
"string"
]
}
],
"discount": [
{
"id": "string",
"type": "percentage",
"value": 0,
"name": "string",
"discountCode": "string",
"currency": {
"name": "string",
"symbol": "string"
},
"sysgenerated": true,
"amount": 0
}
],
"taxCalculationMode": "before-discount"
},
"message": "string"
}