Request: POST
Signature: /api/v1/savebill
Creates or updates a bill if it already exists. The API expects a JSON body as shown in the sample request below.
If "BillID" is set to 0, a new bill is created. Otherwise, the bill with the matching ID is updated.
"OfficeID" is required only when creating the bill.
"ProfitCenter" is not mandatory. The name of the Profit Center must match exactly. If the field itself is missing, the entity's default profit center will be set (if available).
The token must be passed as a header in the request.
Sample Request:
{
"BillID": 0,
"OfficeID": 12,
"EntType": 2,
"EntID": 1213,
"ProfitCenter": "Trucking",
"BillNumber": "ABCD1234",
"BillDate": "2025-01-01",
"Received": "2025-01-15",
"DueDate": null,
"CurrCode": "USD",
"BillActual": 1234.56,
"TaxAmount": 123.45,
"TaxDeduct": 0.0,
"Submitted": false,
"Remarks": null,
"ExtRemarks": null
}