Skip to content
Gallery
API Documentation Admin Webapp
Share
Explore
EXPENSE

EXPENSE CREATE

POST /expense/create

Request
{
"bill_no":"<<string>>", //REQUIRED
"image": "<<url>>",
"date":"<<date>>", //REQUIRED
"expense_type":enum["doctor","visit"], //REQUIRED
"contact_id":"<<string>>",
"total_cost":"<<number>>", //Required
"visit_id":"<<string>>",
"created_by": {
"id": "<<string>>",
"name": "<<string>>",
}
, //REQUIRED
}
Response (Success)
{
"status":true,
"code":"EXPENSE_CREATE_SUCCESS",
"payload":{
"id":"<<string>>",
"created_at":"<<date>>",
}

}

Response (Error)
{
"status": false,
"code": "EXPENSE_CREATE_FAILED",
"message": "Bad request"
}

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.