Skip to content

AccountingPaths

Defined in: src/accounting/types.gen.ts:2

/v3/accounting/integration: object

Defined in: src/accounting/types.gen.ts:3

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create accounting integration

Create a new accounting integration. The behavior depends on the existing active integration:

- If no active integration exists: Creates and returns new integration
- If active integration exists with same vendor and vendor_account_id: Returns the existing active integration
- If active integration exists with same vendor but different vendor_account_id: Returns 409 error
- If active integration exists with different vendor: Returns 409 error
This ensures only one active integration exists per account.

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.vendor
Section titled “post.requestBody.content.application/json.vendor”

vendor: string

The accounting vendor/system. ERP partners must request Brex to create a vendor ID for them to use this field.

ERP_A
post.requestBody.content.application/json.vendor_account_id
Section titled “post.requestBody.content.application/json.vendor_account_id”

vendor_account_id: string

The vendor account ID to tie this integration to

vendor_account_id

responses: object

200: object

Integration created successfully

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.created_at
Section titled “post.responses.200.content.application/json.created_at”

created_at: string

Format: date-time

Timestamp when the integration was created

2025-08-15T10:00:00Z
post.responses.200.content.application/json.integration_id
Section titled “post.responses.200.content.application/json.integration_id”

integration_id: string

Unique identifier for the integration

int_abc123
post.responses.200.content.application/json.status
Section titled “post.responses.200.content.application/json.status”

status: "ACTIVE" | "DISABLED"

Current status of the integration

ACTIVE
@enum {string}
post.responses.200.content.application/json.vendor
Section titled “post.responses.200.content.application/json.vendor”

vendor: string

The accounting vendor/system. ERP partners must request Brex to create a vendor ID for them to use this field.

post.responses.200.content.application/json.vendor_account_id
Section titled “post.responses.200.content.application/json.vendor_account_id”

vendor_account_id: string

The vendor account ID this integration is tied to

customer_account_id

headers: object

[name: string]: unknown

400: object

Bad request

content: object

post.responses.400.content.application/json
Section titled “post.responses.400.content.application/json”

application/json: object

post.responses.400.content.application/json.details?
Section titled “post.responses.400.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.400.content.application/json.error_code
Section titled “post.responses.400.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.400.content.application/json.message
Section titled “post.responses.400.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

401: object

Unauthorized

content: object

post.responses.401.content.application/json
Section titled “post.responses.401.content.application/json”

application/json: object

post.responses.401.content.application/json.details?
Section titled “post.responses.401.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.401.content.application/json.error_code
Section titled “post.responses.401.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.401.content.application/json.message
Section titled “post.responses.401.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

403: object

Forbidden

content: object

post.responses.403.content.application/json
Section titled “post.responses.403.content.application/json”

application/json: object

post.responses.403.content.application/json.details?
Section titled “post.responses.403.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.403.content.application/json.error_code
Section titled “post.responses.403.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.403.content.application/json.message
Section titled “post.responses.403.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

409: object

Active integration exists with different vendor or different vendor account ID

content: object

post.responses.409.content.application/json
Section titled “post.responses.409.content.application/json”

application/json: object

post.responses.409.content.application/json.details?
Section titled “post.responses.409.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.409.content.application/json.error_code
Section titled “post.responses.409.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.409.content.application/json.message
Section titled “post.responses.409.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

500: object

Internal server error

content: object

post.responses.500.content.application/json
Section titled “post.responses.500.content.application/json”

application/json: object

post.responses.500.content.application/json.details?
Section titled “post.responses.500.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.500.content.application/json.error_code
Section titled “post.responses.500.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.500.content.application/json.message
Section titled “post.responses.500.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v3/accounting/integration/{integration_id}/disconnect

Section titled “/v3/accounting/integration/{integration_id}/disconnect”

/v3/accounting/integration/{integration_id}/disconnect: object

Defined in: src/accounting/types.gen.ts:30

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Disconnect accounting integration

Disconnect an active accounting integration.

- If integration is ACTIVE: Disconnects and returns success
- If integration ID doesn't exist: Returns 404 error
- If integration is not currently active: Returns 409 error

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

integration_id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

Integration disconnected successfully

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.created_at
Section titled “post.responses.200.content.application/json.created_at”

created_at: string

Format: date-time

Timestamp when the integration was created

2025-08-15T10:00:00Z
post.responses.200.content.application/json.integration_id
Section titled “post.responses.200.content.application/json.integration_id”

integration_id: string

Unique identifier for the integration

int_abc123
post.responses.200.content.application/json.status
Section titled “post.responses.200.content.application/json.status”

status: "ACTIVE" | "DISABLED"

Current status of the integration

ACTIVE
@enum {string}
post.responses.200.content.application/json.vendor
Section titled “post.responses.200.content.application/json.vendor”

vendor: string

The accounting vendor/system. ERP partners must request Brex to create a vendor ID for them to use this field.

post.responses.200.content.application/json.vendor_account_id
Section titled “post.responses.200.content.application/json.vendor_account_id”

vendor_account_id: string

The vendor account ID this integration is tied to

customer_account_id

headers: object

[name: string]: unknown

401: object

Unauthorized

content: object

post.responses.401.content.application/json
Section titled “post.responses.401.content.application/json”

application/json: object

post.responses.401.content.application/json.details?
Section titled “post.responses.401.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.401.content.application/json.error_code
Section titled “post.responses.401.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.401.content.application/json.message
Section titled “post.responses.401.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

403: object

Forbidden

content: object

post.responses.403.content.application/json
Section titled “post.responses.403.content.application/json”

application/json: object

post.responses.403.content.application/json.details?
Section titled “post.responses.403.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.403.content.application/json.error_code
Section titled “post.responses.403.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.403.content.application/json.message
Section titled “post.responses.403.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

404: object

Integration not found

content: object

post.responses.404.content.application/json
Section titled “post.responses.404.content.application/json”

application/json: object

post.responses.404.content.application/json.details?
Section titled “post.responses.404.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.404.content.application/json.error_code
Section titled “post.responses.404.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.404.content.application/json.message
Section titled “post.responses.404.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

409: object

Integration is not active

content: object

post.responses.409.content.application/json
Section titled “post.responses.409.content.application/json”

application/json: object

post.responses.409.content.application/json.details?
Section titled “post.responses.409.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.409.content.application/json.error_code
Section titled “post.responses.409.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.409.content.application/json.message
Section titled “post.responses.409.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

500: object

Internal server error

content: object

post.responses.500.content.application/json
Section titled “post.responses.500.content.application/json”

application/json: object

post.responses.500.content.application/json.details?
Section titled “post.responses.500.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.500.content.application/json.error_code
Section titled “post.responses.500.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.500.content.application/json.message
Section titled “post.responses.500.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v3/accounting/integration/{integration_id}/reactivate

Section titled “/v3/accounting/integration/{integration_id}/reactivate”

/v3/accounting/integration/{integration_id}/reactivate: object

Defined in: src/accounting/types.gen.ts:54

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Reactivate accounting integration

Reactivate a disconnected accounting integration.

- If integration is DISABLED: Reactivates and returns success
- If integration ID doesn't exist: Returns 404 error
- If an active integration already exists: Returns 409 error

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

integration_id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

Integration reactivated successfully

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.created_at
Section titled “post.responses.200.content.application/json.created_at”

created_at: string

Format: date-time

Timestamp when the integration was created

2025-08-15T10:00:00Z
post.responses.200.content.application/json.integration_id
Section titled “post.responses.200.content.application/json.integration_id”

integration_id: string

Unique identifier for the integration

int_abc123
post.responses.200.content.application/json.status
Section titled “post.responses.200.content.application/json.status”

status: "ACTIVE" | "DISABLED"

Current status of the integration

ACTIVE
@enum {string}
post.responses.200.content.application/json.vendor
Section titled “post.responses.200.content.application/json.vendor”

vendor: string

The accounting vendor/system. ERP partners must request Brex to create a vendor ID for them to use this field.

post.responses.200.content.application/json.vendor_account_id
Section titled “post.responses.200.content.application/json.vendor_account_id”

vendor_account_id: string

The vendor account ID this integration is tied to

customer_account_id

headers: object

[name: string]: unknown

401: object

Unauthorized

content: object

post.responses.401.content.application/json
Section titled “post.responses.401.content.application/json”

application/json: object

post.responses.401.content.application/json.details?
Section titled “post.responses.401.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.401.content.application/json.error_code
Section titled “post.responses.401.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.401.content.application/json.message
Section titled “post.responses.401.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

403: object

Forbidden

content: object

post.responses.403.content.application/json
Section titled “post.responses.403.content.application/json”

application/json: object

post.responses.403.content.application/json.details?
Section titled “post.responses.403.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.403.content.application/json.error_code
Section titled “post.responses.403.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.403.content.application/json.message
Section titled “post.responses.403.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

404: object

Integration not found

content: object

post.responses.404.content.application/json
Section titled “post.responses.404.content.application/json”

application/json: object

post.responses.404.content.application/json.details?
Section titled “post.responses.404.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.404.content.application/json.error_code
Section titled “post.responses.404.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.404.content.application/json.message
Section titled “post.responses.404.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

409: object

Active integration already exists

content: object

post.responses.409.content.application/json
Section titled “post.responses.409.content.application/json”

application/json: object

post.responses.409.content.application/json.details?
Section titled “post.responses.409.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.409.content.application/json.error_code
Section titled “post.responses.409.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.409.content.application/json.message
Section titled “post.responses.409.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

500: object

Internal server error

content: object

post.responses.500.content.application/json
Section titled “post.responses.500.content.application/json”

application/json: object

post.responses.500.content.application/json.details?
Section titled “post.responses.500.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.500.content.application/json.error_code
Section titled “post.responses.500.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.500.content.application/json.message
Section titled “post.responses.500.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v3/accounting/records: object

Defined in: src/accounting/types.gen.ts:78

optional delete?: undefined

get: object

Query accounting records

Query accounting records by IDs or with filters for polling. When building integrations with Brex accounting workflow, use filter-based polling as a fallback mechanism. Suggested cadence is 1 hour.

**For card and reimbursement records:**
Use `review_status` to filter by accounting workflow stage (e.g., READY_FOR_EXPORT, EXPORTED).
**For bill records:**
Use `source_type=BILL` with `updated_at[gt]` to poll for updated bill records.
**Filter Constraints:**
- `review_status` is only supported with CARD and REIMBURSEMENT source types

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string

Cursor for pagination

optional ids?: string[]

Filter by accounting record IDs. ID size is limited to 500. Example: ids=accr_xxx&ids=accr_yyy

optional limit?: number

Maximum number of records to return. Defaults to 100. The maximum is 500; requests with a higher value are rejected with a 400 error.

optional review_status?: "PREPARE" | "REVIEW" | "READY_FOR_EXPORT" | "EXPORTED"

Filter by review status. Tracks a record’s stage in the accounting review lifecycle, which progresses in this order: PREPARE (the record is being prepared and is not yet ready for review) → REVIEW (the record is ready to be reviewed) → READY_FOR_EXPORT (the record has been reviewed and is queued for export to your ERP) → EXPORTED (the record has been exported).

optional single_entry?: boolean

Toggles the response format between single-entry and double-entry bookkeeping. Set to true to filter out offsetting ledger entries and return only the core cash-flow or economic-impact line items. Defaults to false.

optional source_type?: "CARD" | "REIMBURSEMENT" | "BILL"

Filter by accounting record source type. This is a high-level filter that maps to specific accounting record types. Example: source_type=BILL

optional updated_at?: object

Filter by updated_at timestamp range in UTC. Accepts gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: updated_at[gte]=2025-01-01

optional gt?: string

Format: date-time

Minimum value to filter by (exclusive) - ISO 8601 format

2025-01-01T00:00:00Z

optional gte?: string

Format: date-time

Minimum value to filter by (inclusive) - ISO 8601 format

2025-01-01T00:00:00Z

optional lt?: string

Format: date-time

Maximum value to filter by (exclusive) - ISO 8601 format

2025-01-01T00:00:00Z

optional lte?: string

Format: date-time

Maximum value to filter by (inclusive) - ISO 8601 format

2025-01-01T23:59:59.999Z

optional requestBody?: undefined

responses: object

200: object

Query accounting records response

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.has_next_page
Section titled “get.responses.200.content.application/json.has_next_page”

has_next_page: boolean

Whether there are more results available

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

List of accounting records

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

Cursor for the next page of results

get.responses.200.content.application/json.total_count?
Section titled “get.responses.200.content.application/json.total_count?”

optional total_count?: number | null

Format: int32

Total count of records matching the query

headers: object

[name: string]: unknown

400: object

Bad request

content: object

get.responses.400.content.application/json
Section titled “get.responses.400.content.application/json”

application/json: object

get.responses.400.content.application/json.details?
Section titled “get.responses.400.content.application/json.details?”

optional details?: object & object | null

Additional error context

get.responses.400.content.application/json.error_code
Section titled “get.responses.400.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
get.responses.400.content.application/json.message
Section titled “get.responses.400.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

401: object

Unauthorized

content: object

get.responses.401.content.application/json
Section titled “get.responses.401.content.application/json”

application/json: object

get.responses.401.content.application/json.details?
Section titled “get.responses.401.content.application/json.details?”

optional details?: object & object | null

Additional error context

get.responses.401.content.application/json.error_code
Section titled “get.responses.401.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
get.responses.401.content.application/json.message
Section titled “get.responses.401.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

403: object

Forbidden

content: object

get.responses.403.content.application/json
Section titled “get.responses.403.content.application/json”

application/json: object

get.responses.403.content.application/json.details?
Section titled “get.responses.403.content.application/json.details?”

optional details?: object & object | null

Additional error context

get.responses.403.content.application/json.error_code
Section titled “get.responses.403.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
get.responses.403.content.application/json.message
Section titled “get.responses.403.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

500: object

Internal server error

content: object

get.responses.500.content.application/json
Section titled “get.responses.500.content.application/json”

application/json: object

get.responses.500.content.application/json.details?
Section titled “get.responses.500.content.application/json.details?”

optional details?: object & object | null

Additional error context

get.responses.500.content.application/json.error_code
Section titled “get.responses.500.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
get.responses.500.content.application/json.message
Section titled “get.responses.500.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v3/accounting/records/{record_id}: object

Defined in: src/accounting/types.gen.ts:107

optional delete?: undefined

get: object

Get accounting record by ID

Retrieve a single accounting record by its unique identifier

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

record_id: string

optional query?: object

optional single_entry?: boolean

Toggles the response format between single-entry and double-entry bookkeeping. Set to true to filter out offsetting ledger entries and return only the core cash-flow or economic-impact line items. Defaults to false.

optional requestBody?: undefined

responses: object

200: object

Accounting record retrieved successfully

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.amount
Section titled “get.responses.200.content.application/json.amount”

amount: object

Amount of the accounting record

get.responses.200.content.application/json.amount.amount
Section titled “get.responses.200.content.application/json.amount.amount”

amount: number

The amount

100
get.responses.200.content.application/json.amount.currency
Section titled “get.responses.200.content.application/json.amount.currency”

currency: string

The currency

USD
get.responses.200.content.application/json.due_at?
Section titled “get.responses.200.content.application/json.due_at?”

optional due_at?: string | null

Format: date-time

Source due at in UTC timezone. For bills only

get.responses.200.content.application/json.erp_posting_date
Section titled “get.responses.200.content.application/json.erp_posting_date”

erp_posting_date: string

Format: date-time

ERP impact date in UTC timezone

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

Unique identifier for the accounting record

accr_abc123
get.responses.200.content.application/json.invoice_number?
Section titled “get.responses.200.content.application/json.invoice_number?”

optional invoice_number?: string | null

Invoice number. For bills only

get.responses.200.content.application/json.line_items
Section titled “get.responses.200.content.application/json.line_items”

line_items: object[]

Line items for double-entry bookkeeping

get.responses.200.content.application/json.memo?
Section titled “get.responses.200.content.application/json.memo?”

optional memo?: string | null

Memo/description

get.responses.200.content.application/json.original_amount?
Section titled “get.responses.200.content.application/json.original_amount?”

optional original_amount?: { amount: number; currency: string; } | null

{ amount: number; currency: string; }

amount: number

The amount

100

currency: string

The currency

USD

null

Original amount if different from current

get.responses.200.content.application/json.posted_at
Section titled “get.responses.200.content.application/json.posted_at”

posted_at: string

Format: date-time

Source posted date in UTC timezone

get.responses.200.content.application/json.receipts?
Section titled “get.responses.200.content.application/json.receipts?”

optional receipts?: object[] | null

Associated receipts

get.responses.200.content.application/json.review_status
Section titled “get.responses.200.content.application/json.review_status”

review_status: "PREPARE" | "REVIEW" | "READY_FOR_EXPORT" | "EXPORTED"

Current review status of the record in the accounting review lifecycle: PREPAREREVIEWREADY_FOR_EXPORTEXPORTED.

get.responses.200.content.application/json.source_id?
Section titled “get.responses.200.content.application/json.source_id?”

optional source_id?: string | null

Source transaction ID

get.responses.200.content.application/json.source_type
Section titled “get.responses.200.content.application/json.source_type”

source_type: "CARD" | "REIMBURSEMENT" | "BILL"

Source type

get.responses.200.content.application/json.type
Section titled “get.responses.200.content.application/json.type”

type: "CARD_EXPENSE_POST" | "CARD_EXPENSE_REPAYMENT" | "REIMBURSEMENT_EXPENSE_REPAYMENT" | "REIMBURSEMENT_EXPENSE_APPROVAL" | "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT" | "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYIN" | "REIMBURSEMENT_EXPENSE_POST" | "CARD_PAYMENT" | "REWARD_REDEMPTION" | "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_REFUND" | "CARD_EXPENSE_REFUND" | "CARD_PAYMENT_REFUND" | "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT_REVERSAL" | "INVOICE" | "INVOICE_PAYMENT" | "BILL_EXPENSE" | "BILL_EXPENSE_PAYMENT" | "BILL_EXPENSE_CARD_PAYMENT" | "BILL_MONEY_MOVEMENT_PAYIN"

Types of accounting records representing different financial transactions:

**Card-related transactions:**
- `CARD_EXPENSE_POST`: Records when a card expense is posted and settled
- `CARD_EXPENSE_REFUND`: Records when a merchant issues a refund for a card transaction
- `CARD_EXPENSE_REPAYMENT`: Records when an employee repays money to the company for a card expense
- `CARD_PAYMENT`: Records payments from customer to Brex for card balances
- `CARD_PAYMENT_REFUND`: Records refunds from Brex to customer for overpayments
- `REWARD_REDEMPTION`: Records when a reward is redeemed
**Bill-related transactions:**
- `BILL_EXPENSE`: Records when a bill expense is created
- `BILL_EXPENSE_PAYMENT`: Records when a bill is paid through ACH/wire transfer
- `BILL_EXPENSE_CARD_PAYMENT`: Records when a bill is paid using a Brex card
**Reimbursement-related transactions:**
- `REIMBURSEMENT_EXPENSE_APPROVAL`: Records approval of reimbursement (accrual basis)
- `REIMBURSEMENT_EXPENSE_POST`: Records when reimbursement is fulfilled (cash basis)
- `REIMBURSEMENT_EXPENSE_REPAYMENT`: Records repayment of a reimbursement expense
- `REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT`: Records payout to employee/third party
- `REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT_REVERSAL`: Records reversal of payout
- `REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYIN`: Records payment from customer to Brex
- `REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_REFUND`: Records refund to customer's bank
get.responses.200.content.application/json.updated_at
Section titled “get.responses.200.content.application/json.updated_at”

updated_at: string

Format: date-time

Last update timestamp in UTC timezone

get.responses.200.content.application/json.user?
Section titled “get.responses.200.content.application/json.user?”

optional user?: { department_id?: string; department_name?: string; email: string; first_name: string; id: string; last_name: string; location_id?: string; location_name?: string; manager_first_name?: string; manager_id?: string; manager_last_name?: string; manager_title_id?: string; manager_title_name?: string; role: "ACCOUNT_ADMIN" | "AP_CLERK" | "BOOKKEEPER" | "CARD_ADMIN" | "EMPLOYEE" | "EMPLOYEE_WITHOUT_CORP_CARDS" | "EXPENSE_ADMIN" | "SUPER_ADMIN" | "USER_MANAGEMENT_ADMIN"; status: "ACTIVE" | "DISABLED" | "ARCHIVED" | "DELETED" | "INACTIVE" | "INVITED" | "PENDING_ACTIVATION"; title_id?: string; title_name?: string; } | null

{ department_id?: string; department_name?: string; email: string; first_name: string; id: string; last_name: string; location_id?: string; location_name?: string; manager_first_name?: string; manager_id?: string; manager_last_name?: string; manager_title_id?: string; manager_title_name?: string; role: "ACCOUNT_ADMIN" | "AP_CLERK" | "BOOKKEEPER" | "CARD_ADMIN" | "EMPLOYEE" | "EMPLOYEE_WITHOUT_CORP_CARDS" | "EXPENSE_ADMIN" | "SUPER_ADMIN" | "USER_MANAGEMENT_ADMIN"; status: "ACTIVE" | "DISABLED" | "ARCHIVED" | "DELETED" | "INACTIVE" | "INVITED" | "PENDING_ACTIVATION"; title_id?: string; title_name?: string; }

optional department_id?: string

The ID of the user’s department

VXNlcjpjdXVzZXJfMTIzNA==

optional department_name?: string

The user’s department name

Engineering

email: string

The user’s email address

john.doe@example.com

first_name: string

The user’s first name

John

id: string

The ID of the user

VXNlcjpjdXVzZXJfMTIzNA==

last_name: string

The user’s last name

Doe

optional location_id?: string

The ID of the user’s location

VXNlcjpjdXVzZXJfMTIzNA==

optional location_name?: string

The user’s location name

San Francisco

optional manager_first_name?: string

The user’s manager first name

Jane

optional manager_id?: string

The ID of the user’s manager

VXNlcjpjdXVzZXJfMTIzNA==

optional manager_last_name?: string

The user’s manager last name

Smith

optional manager_title_id?: string

The user’s manager title ID

VGl0bGU6dGl0bGVfMTIzNA==

optional manager_title_name?: string

The user’s manager title display name

Engineering Manager

role: "ACCOUNT_ADMIN" | "AP_CLERK" | "BOOKKEEPER" | "CARD_ADMIN" | "EMPLOYEE" | "EMPLOYEE_WITHOUT_CORP_CARDS" | "EXPENSE_ADMIN" | "SUPER_ADMIN" | "USER_MANAGEMENT_ADMIN"

The user’s role in the system

CARD_ADMIN
@enum {string}

status: "ACTIVE" | "DISABLED" | "ARCHIVED" | "DELETED" | "INACTIVE" | "INVITED" | "PENDING_ACTIVATION"

The user’s status in the system

ACTIVE
@enum {string}

optional title_id?: string

The user’s title ID

VGl0bGU6dGl0bGVfMTIzNA==

optional title_name?: string

The user’s title display name

Software Engineer

null

User associated with the record

get.responses.200.content.application/json.vendor?
Section titled “get.responses.200.content.application/json.vendor?”

optional vendor?: { contact_name?: string | null; email?: string | null; id: string; name: string; phone?: string | null; website?: string | null; } | null

{ contact_name?: string | null; email?: string | null; id: string; name: string; phone?: string | null; website?: string | null; }

optional contact_name?: string | null

The name of the contact for the vendor

Jane Smith

optional email?: string | null

The email for the vendor

contact@acme.com

id: string

The unique identifier for the vendor

vendor_123

name: string

The name of the vendor

Acme Corp

optional phone?: string | null

The phone number for the vendor

+1-555-123-4567

optional website?: string | null

The website of the vendor

https://acme.com

null

Vendor information

get.responses.200.content.application/json.version
Section titled “get.responses.200.content.application/json.version”

version: number

Version number

headers: object

[name: string]: unknown

400: object

Bad request

content: object

get.responses.400.content.application/json
Section titled “get.responses.400.content.application/json”

application/json: object

get.responses.400.content.application/json.details?
Section titled “get.responses.400.content.application/json.details?”

optional details?: object & object | null

Additional error context

get.responses.400.content.application/json.error_code
Section titled “get.responses.400.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
get.responses.400.content.application/json.message
Section titled “get.responses.400.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

401: object

Unauthorized

content: object

get.responses.401.content.application/json
Section titled “get.responses.401.content.application/json”

application/json: object

get.responses.401.content.application/json.details?
Section titled “get.responses.401.content.application/json.details?”

optional details?: object & object | null

Additional error context

get.responses.401.content.application/json.error_code
Section titled “get.responses.401.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
get.responses.401.content.application/json.message
Section titled “get.responses.401.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

403: object

Forbidden

content: object

get.responses.403.content.application/json
Section titled “get.responses.403.content.application/json”

application/json: object

get.responses.403.content.application/json.details?
Section titled “get.responses.403.content.application/json.details?”

optional details?: object & object | null

Additional error context

get.responses.403.content.application/json.error_code
Section titled “get.responses.403.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
get.responses.403.content.application/json.message
Section titled “get.responses.403.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

404: object

Record not found

content: object

get.responses.404.content.application/json
Section titled “get.responses.404.content.application/json”

application/json: object

get.responses.404.content.application/json.details?
Section titled “get.responses.404.content.application/json.details?”

optional details?: object & object | null

Additional error context

get.responses.404.content.application/json.error_code
Section titled “get.responses.404.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
get.responses.404.content.application/json.message
Section titled “get.responses.404.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

500: object

Internal server error

content: object

get.responses.500.content.application/json
Section titled “get.responses.500.content.application/json”

application/json: object

get.responses.500.content.application/json.details?
Section titled “get.responses.500.content.application/json.details?”

optional details?: object & object | null

Additional error context

get.responses.500.content.application/json.error_code
Section titled “get.responses.500.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
get.responses.500.content.application/json.message
Section titled “get.responses.500.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v3/accounting/records/export-results: object

Defined in: src/accounting/types.gen.ts:127

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Report accounting export results

Report export success or failure for accounting records.

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.results
Section titled “post.requestBody.content.application/json.results”

results: ({ accounting_record_id: string; failure: { error_message: string; }; } | { accounting_record_id: string; success: { deep_link_url?: string; reference_id?: string | null; }; })[]

Array of export results (must contain at least one result)

responses: object

200: object

Export results processed successfully

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.updated_accounting_record_ids
Section titled “post.responses.200.content.application/json.updated_accounting_record_ids”

updated_accounting_record_ids: string[]

Accounting record ids that were updated by the request

[
"accr_abc123",
"accr_def456"
]

headers: object

[name: string]: unknown

404: object

Not found - Given accounting record id is not found

content: object

post.responses.404.content.application/json
Section titled “post.responses.404.content.application/json”

application/json: object

post.responses.404.content.application/json.details?
Section titled “post.responses.404.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.404.content.application/json.error_code
Section titled “post.responses.404.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.404.content.application/json.message
Section titled “post.responses.404.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

422: object

Validation failed (duplicate accounting record ids or records not READY_FOR_EXPORT)

content: object

post.responses.422.content.application/json
Section titled “post.responses.422.content.application/json”

application/json: object

post.responses.422.content.application/json.details?
Section titled “post.responses.422.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.422.content.application/json.error_code
Section titled “post.responses.422.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.422.content.application/json.message
Section titled “post.responses.422.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

500: object

Internal server error

content: object

post.responses.500.content.application/json
Section titled “post.responses.500.content.application/json”

application/json: object

post.responses.500.content.application/json.details?
Section titled “post.responses.500.content.application/json.details?”

optional details?: object & object | null

Additional error context

post.responses.500.content.application/json.error_code
Section titled “post.responses.500.content.application/json.error_code”

error_code: "ACTIVE_INTEGRATION_EXISTS" | "FORBIDDEN" | "INTEGRATION_NOT_ACTIVE" | "INTERNAL_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "UNAUTHORIZED" | "DUPLICATE_ACCOUNTING_RECORD_IDS" | "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT" | "VENDOR_ACCOUNT_ID_MISMATCH"

Machine-readable error code

INVALID_REQUEST
@enum {string}
post.responses.500.content.application/json.message
Section titled “post.responses.500.content.application/json.message”

message: string

Human-readable error message

The request is malformed or contains invalid data.

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined