Top

Receipt

Get an expense receipt
GET /expenses/:expense_id/receipt
Returns the receipt attached to the expense.
Add receipt to an expense
POST /expenses/:expense_id/receipt
Attach a receipt to an expense.
Delete a receipt
DELETE /expenses/:expense_id/receipt
Delete the receipt attached to the expense.

Get an expense receipt

GET  /expenses/:expense_id/receipt

Returns the receipt attached to the expense.

Parameters

preview boolean Get the thumbnail of the receipt.

Add receipt to an expense

POST  /expenses/:expense_id/receipt

Attach a receipt to an expense.

multipart/form-data

receipt file Expense receipt file to attach.
Allowed Extensions: gif, png, jpeg, jpg, bmp, pdf, xls, xlsx, doc and docx

Sample Response

Status: 201 Created
Content Type: application/json;charset=UTF-8
{
  "code": 0,
  "message": "The expense receipt has been attached."
}

Delete a receipt

DELETE  /expenses/:expense_id/receipt

Delete the receipt attached to the expense.

Sample Response

Status: 200 OK
Content Type: application/json;charset=UTF-8
{
  "code": 0,
  "message": "The attached expense receipt has been deleted."
}