#
Expenditures
#
Create Invoice
POST
/businesses/:urlKey/expenditures
This endpoint allows you to record an expenditure.
Path Params
urlKey
- will be provided by us
Headers
Body
200: OK
Successful auth
{
"_id": "60cc8cc6aa3024abd4bef447",
"invoiceNumber": "APP-2020-0004",
"invoiceDate": "2021-06-18T12:08:38.000Z",
"currency": "INR",
"billType": "INVOICE",
"status": "UNPAID",
"billedBy": {
"name": "Vendor Name",
"street": "Vendor street line",
"city": "Bangalore",
"pincode": "560100",
"gstState": "29",
"country": "IN"
},
"billedTo": {
"name": "Customer Name",
"street": "Customer street line",
"city": "Bangalore",
"pincode": "560100",
"gstState": "29",
"country": "IN"
},
"invoiceTitle": "Invoice",
"discount": {
"discountType": "PERCENTAGE"
},
"items": [
{
"discount": {
"discountType": "PERCENTAGE"
},
"images": [],
"_id": "60cc8cc6aa3024abd4bef448",
"rate": 100,
"quantity": 2,
"gstRate": 18,
"name": "Item one name",
"igst": 36,
"cgst": 18,
"sgst": 18,
"subTotal": 200,
"amount": 200,
"total": 236
},
{
"discount": {
"discountType": "PERCENTAGE"
},
"images": [],
"_id": "60cc8cc6aa3024abd4bef449",
"rate": 200,
"quantity": 6,
"gstRate": 12,
"name": "Item two name",
"igst": 144,
"cgst": 72,
"sgst": 72,
"subTotal": 1200,
"amount": 1200,
"total": 1344
}
],
"client": "60cc8cc6aa3024abdsdf23dsf",
"igst": false,
"createdAt": "2021-06-18T12:08:38.606Z",
"updatedAt": "2021-06-18T12:08:38.606Z",
"finalTotal": {
"total": 1580,
"amount": 1400,
"subTotal": 1400,
"igst": 180,
"cgst": 90,
"sgst": 90,
"discount": 0
},
"share": {
"link": "<view link>",
"pdf": "<pdf link>"
},
"terms": [],
"attachments": [],
"isExpenditure": false,
"taxType": "INDIA",
"locale": "en-IN",
"tags": []
}
401: Unauthorized
Successful auth
{
"name": "NotAuthenticated",
"message": "Invalid login",
"code": 401,
"className": "not-authenticated",
"data": {
"message": "Invalid login"
},
"errors": {}
}