Methods |
public
|
listExpenses(
array $queryParameters = [],
string $fetch = self::FETCH_OBJECT,
): PageExpandableExpense|ResponseInterface|null
List expenses under the same account. Admin and bookkeeper have access to any expense, and regular users can only…
List expenses under the same account. Admin and bookkeeper have access to any expense, and regular users can only access their own.
Parameters
$queryParameters |
{
|
$fetch |
Fetch mode to use (can be OBJECT or RESPONSE)
|
Throws
|
#
|
public
|
receiptMatch(
ReceiptMatchRequest $requestBody,
string $fetch = self::FETCH_OBJECT,
): CreateAsyncFileUploadResponse|ResponseInterface|null
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…
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.
Parameters
$fetch |
Fetch mode to use (can be OBJECT or RESPONSE)
|
Throws
|
#
|
public
|
getExpense(
string $expenseId,
array $queryParameters = [],
string $fetch = self::FETCH_OBJECT,
): ExpandableExpense|ResponseInterface|null
Get an expense by its ID.
Get an expense by its ID.
Parameters
$queryParameters |
{
|
$fetch |
Fetch mode to use (can be OBJECT or RESPONSE)
|
Throws
|
#
|
public
|
updateExpense(
string $expenseId,
UpdateExpenseRequest $requestBody,
string $fetch = self::FETCH_OBJECT,
): Expense|ResponseInterface|null
Update an expense. Admin and bookkeeper have access to any expense, and regular users can only access their own.
Update an expense. Admin and bookkeeper have access to any expense, and regular users can only access their own.
Parameters
$fetch |
Fetch mode to use (can be OBJECT or RESPONSE)
|
Throws
|
#
|
public
|
receiptUpload(
string $expenseId,
ReceiptUploadRequest $requestBody,
string $fetch = self::FETCH_OBJECT,
): CreateAsyncFileUploadResponse|ResponseInterface|null
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…
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.
Parameters
$fetch |
Fetch mode to use (can be OBJECT or RESPONSE)
|
Throws
|
#
|
public
static
|
create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = [])
|
#
|