## Expenses API examples **Attempt to match a receipt to an existing transaction. An email reply will send back with the matching result.** Step 1: Generate an upload link. ```json POST https://api.brex.com/v1/expenses/receipt_match REQUEST { "receipt_name": "my receipt.pdf" } RESPONSE { "id": "1f869235-718f-4458-8180-8a5254585c39", "uri": "https://s3.amazonaws.com/destination-link" } ``` Step 2: Upload the file to the URL provided. ```json PUT https://s3.amazonaws.com/destination-link REQUEST * binary file content ```