Receipts
Receipts should always be linked with one expense, therefore the
receipt.create
Create a new expense receipt.
Request
<?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>
Response
<?xml version="1.0" encoding="utf-8"?>
<response xmlns="https://www.freshbooks.com/api/" status="ok" />
receipt.update
Update an existing expense receipt.
Request
<?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>
Response
<?xml version="1.0" encoding="utf-8"?>
<response xmlns="https://www.freshbooks.com/api/" status="ok" />
receipt.get
Gets information for a specified receipt.
Request
<?xml version="1.0" encoding="utf-8"?>
<request method="receipt.get">
<expense_id>1</expense_id> <!-- id of expense -->
</request>
Response
Binary data
receipt.delete
Delete the specified receipt.
Request
<?xml version="1.0" encoding="utf-8"?>
<request method="receipt.delete">
<expense_id>1</expense_id> <!-- id of expense -->
</request>
Response
<?xml version="1.0" encoding="utf-8"?>
<response xmlns="https://www.freshbooks.com/api/" status="ok" />