Xpenser API: Receipts

Upload

URL: http://xpenser.com/api/receipt/

Method: POST - The receipt is uploaded via an HTTP file upload - a multi-part POST.

Parameters:

Response

Sample Usage:

Upload the file /tmp/sample-receipt.png and attach it to expense 829500:

curl -F file=@/tmp/sample-receipt.png -F expense=829500 -u username:password "http://xpenser.com/api/receipt/"

Response:

{"status": 200, "expenseid": 829500, "receiptid": 3496, "image": "4/70043344-1075-40c1-97ee-b58e780bfe3f.jpg"}