PATCH
/
v1
/
businesses
/
{businessId}
/
accounting-config
Patch accounting configuration
curl --request PATCH \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/accounting-config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "default_reporting_basis": "ACCRUAL",
  "category_list_type": "ALL_ACCOUNTS",
  "closing_date": "2023-11-07T05:31:56Z",
  "match_rounding_threshold": 123,
  "match_adjustment_threshold": 0.1,
  "disable_adjustment_match_suggestions": true
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "default_reporting_basis": "ACCRUAL",
  "category_list_type": "ALL_ACCOUNTS",
  "closing_date": "2023-11-07T05:31:56Z",
  "match_rounding_threshold": 123,
  "match_adjustment_threshold": 0.1,
  "disable_adjustment_match_suggestions": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to fetch the accounting configuration for

Body

application/json
default_reporting_basis
enum<string>

The default reporting basis for the business.

Available options:
ACCRUAL,
CASH
category_list_type
enum<string>

The default subset of accounts that are fetched by the /businesses/:businessId/categories endpoint.

Available options:
ALL_ACCOUNTS,
REVENUE_AND_EXPENSES
closing_date
string<date-time> | null

Setting this date means closing the books before this date. If present, attempts to create ledger entries before this date will fail. This should only ever be set at the business level (rather than the platform level).

match_rounding_threshold
integer | null

The maximum difference in cents allowed between bank transactions and invoice payments, bill payments, refund payments, or payouts. Defaults to 1 (one cent) if null.

match_adjustment_threshold
number | null

The maximum percentage difference allowed between bank transactions and invoice/bill payments for matches to be suggested. Defaults to 0.10 (10%) if null.

Example:

0.1

disable_adjustment_match_suggestions
boolean | null

Whether the system will suggest matches with adjustments up to a maximum percentage (default of 10%) for invoice and bill payments. Defaults to false (meaning adjustments are enabled) if null.

Response

200 - application/json
id
string<uuid>

Unique identifier for the accounting configuration.

business_id
string<uuid>

Unique identifier for the business.

default_reporting_basis
enum<string>

The default reporting basis for the business.

Available options:
ACCRUAL,
CASH
category_list_type
enum<string>

The default subset of accounts that are fetched by the /businesses/:businessId/categories endpoint.

Available options:
ALL_ACCOUNTS,
REVENUE_AND_EXPENSES
closing_date
string<date-time> | null

The timestamp of when the books are closed as of. If present, attempts to create ledger entries before this date will fail. This should only ever be set at the business level (rather than the platform level).

match_rounding_threshold
integer | null

The maximum difference in cents allowed between bank transactions and invoice payments, bill payments, refund payments, or payouts. Defaults to 1 (one cent) if null.

match_adjustment_threshold
number | null

The maximum percentage difference allowed between bank transactions and invoice/bill payments for matches to be suggested. Defaults to 0.10 (10%) if null.

Example:

0.1

disable_adjustment_match_suggestions
boolean | null

Whether the system will suggest matches with adjustments up to a maximum percentage (default of 10%) for invoice and bill payments. Defaults to false (meaning adjustments are enabled) if null.