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 LIST
GET /expense
Request
{
}
Response (Success)
{
"status"
:
true
,
"code"
:
"EXPENSE_LIST_FETCH_SUCCESS"
,
"payload"
:
[
{
"id"
:
"<<string>>"
,
"bill_no"
:
"<<string>>"
,
"image"
:
"<<url>>"
,
"date"
:
"<<date>>"
,
"expense_type"
:
"doctor"
,
"total_cost"
:
"<<number>>"
,
"status"
:
"pending"
,
"created_by"
:
{
"id"
:
"<<string>>"
,
"name"
:
"<<string>>"
,
}
,
"contact"
:
"<<object>>"
,
}
,
{
"id"
:
"<<string>>"
,
"bill_no"
:
"<<string>>"
,
"image"
:
"<<url>>"
,
"date"
:
"<<date>>"
,
"reimbursed"
:
"<<number>>"
,
"expense_type"
:
"visit"
,
"total_cost"
:
"<<number>>"
,
"status"
:
"approved"
,
"created_by"
:
{
"id"
:
"<<string>>"
,
"name"
:
"<<string>>"
,
}
,
"visit"
:
"<<object>>"
,
}
,
{
"id"
:
"<<string>>"
,
"bill_no"
:
"<<string>>"
,
"image"
:
"<<url>>"
,
"date"
:
"<<date>>"
,
"reimbursed"
:
"<<number>>"
,
"expense_type"
:
"visit"
,
"total_cost"
:
"<<number>>"
,
"status"
:
"rejected"
,
"created_by"
:
{
"id"
:
"<<string>>"
,
"name"
:
"<<string>>"
,
}
,
"visit"
:
"<<object>>"
,
}
,
]
}
Response (Error)
{
"status"
:
false
,
"code"
:
"EXPENSE_LIST_FETCH_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.