Receipts
Defined in: src/expenses/client.gen.ts:115
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Receipts(
_core):Receipts
Defined in: src/expenses/client.gen.ts:116
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Receipts
Methods
Section titled “Methods”match()
Section titled “match()”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
Parameters
Section titled “Parameters”receipt_name
Section titled “receipt_name”string
Description
The name of the receipt (with the file extension). It will be used in the matching result email.
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{ id: string; uri: string; }>
upload()
Section titled “upload()”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
Parameters
Section titled “Parameters”expenseId
Section titled “expenseId”string
receipt_name
Section titled “receipt_name”string
Description
The name of the receipt (with the file extension).
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{ id: string; uri: string; }>