Receipts should always be linked with one expense, therefore the
Create a new expense receipt.
<?xml version="1.0" encoding="utf-8"?> <request method="receipt.create">
<receipt>
<expense_id>1</expense_id> <!-- id of expense -->
<image>cid:xxxxxxxxxxxxx</image> <!-- content-id used on the related binary content -->
</receipt></request>
<?xml version="1.0" encoding="utf-8"?> <response xmlns="http://www.freshbooks.com/api/" status="ok" />
Update an existing expense receipt.
<?xml version="1.0" encoding="utf-8"?>
<request method="receipt.update">
<receipt>
<expense_id>1</expense_id> <!-- id of expense -->
<image>cid:xxxxxxxxxxxxx</image> <!-- content-id used on the related binary content -->
</receipt>
</request>
<?xml version="1.0" encoding="utf-8"?> <response xmlns="http://www.freshbooks.com/api/" status="ok" />
Gets information for a specified receipt.
<?xml version="1.0" encoding="utf-8"?> <request method="receipt.get"> <expense_id>1</expense_id> <!-- id of expense --> </request>
Binary data
Delete the specified receipt.
<?xml version="1.0" encoding="utf-8"?> <request method="receipt.delete"> <expense_id>1</expense_id> <!-- id of expense --> </request>
<?xml version="1.0" encoding="utf-8"?> <response xmlns="http://www.freshbooks.com/api/" status="ok" />