Skip to content

Receipts

Defined in: src/expenses/client.gen.ts:115

new Receipts(_core): Receipts

Defined in: src/expenses/client.gen.ts:116

BrexCore

Receipts

match(body, options?): Promise<{ id: string; uri: string; }>

Defined in: src/expenses/client.gen.ts:127

Create a new receipt match

The uri will be a pre-signed S3 URL allowing you to upload the receipt securely. This URL can only be used for a PUT operation and expires 30 minutes after its creation. Once your upload is complete, we will try to match the receipt with existing expenses.

Refer to these docs on how to upload to this pre-signed S3 URL. We highly recommend using one of AWS SDKs if they’re available for your language to upload these files.

POST /v1/expenses/card/receipt_match

string

Description

The name of the receipt (with the file extension). It will be used in the matching result email.

RequestOptions

Promise<{ id: string; uri: string; }>


upload(expenseId, body, options?): Promise<{ id: string; uri: string; }>

Defined in: src/expenses/client.gen.ts:149

Create a new receipt upload

The uri will be a pre-signed S3 URL allowing you to upload the receipt securely. This URL can only be used for a PUT operation and expires 30 minutes after its creation. Once your upload is complete, we will try to match the receipt with existing expenses.

Refer to these docs on how to upload to this pre-signed S3 URL. We highly recommend using one of AWS SDKs if they’re available for your language to upload these files.

POST /v1/expenses/card/{expense_id}/receipt_upload

string

string

Description

The name of the receipt (with the file extension).

RequestOptions

Promise<{ id: string; uri: string; }>