JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
API Documentation Admin Webapp
API Documentation
MEDPULSE DATABASE [DRAFT]
More
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 (
Ctrl
P
) instead.