Add expense

POST https://node-staging.billeasy.in/api/v1/customers/addExpenses

Headers

Name
Type
Description

x-customer-number

string

x-customer-token

string

x-api-secret

string

x-api-access

string

Content-Type

string

Request:

{
  "amount": "5",
  "collection_id": 0,
  "customer_id": "551",
  "metadata": {
    "category_type": "Shopping",
    "date": "12/02/2020",
    "payment_method": "Cash"
  },
  "name": "phone"
}

Response:

{
  "success": true,
  "msg": "Customer bill created.",
  "data": {
    "id": "25992",
    "total": 5,
    "tax": 0,
    "grandTotal": 5,
    "flagged": false,
    "business": false,
    "snippet": "phone",
    "billParticularsCount": 1,
    "customerId": 551,
    "createdAt": "2020-02-12T11:02:23.639Z",
    "updatedAt": "2020-02-12T11:02:23.639Z",
    "metadata": "{\"category_type\":\"Shopping\",\"date\":\"12/02/2020\",\"payment_method\":\"Cash\",\"type\":\"expense\"}"
  }
}

Last updated