Expenses API (0.1)

Download OpenAPI specification:Download

The Expenses API allows you to manage accounting and expenses information.

Authentication

oAuth2ClientCredentials

Refer to these docs on how to use client credentials

Security Scheme Type OAuth2
clientCredentials OAuth Flow
Token URL: https://accounts.brex.com/oauth2/v1/token
Scopes:
  • openid -

    openid

  • offline_access -

    offline access

  • expenses.card -

    View and manage card expenses data

  • expenses.card.readonly -

    View card expenses data

Card Expenses

View and manage card expenses data.

Receipt Match

Upload receipt and match automatically.

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.

Request
Request Body schema: application/json
receipt_name
required
string

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

Responses
200

receiptMatch 200 response

400

Bad request

401

Unauthorized

post/v1/expenses/card/receipt_match
Request samples
application/json
{
  • "receipt_name": "string"
}
Response samples
application/json
{
  • "id": "string",
  • "uri": "string"
}
Copyright © Brex 2019–2022. All rights reserved.