POST
/
v1
/
businesses
/
{businessId}
/
quickbooks
/
ledger
/
accounts
/
{accountId}
/
update-mapping
Update Quickbooks account mapping
curl --request POST \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/quickbooks/ledger/accounts/{accountId}/update-mapping \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "local_ledger_account_identifier": {
    "type": "AccountId",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "stable_name": {
    "type": "AccountId",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "normality": "CREDIT",
  "account_type": {
    "value": "ASSET",
    "display_name": "Asset"
  },
  "account_subtype": {
    "value": "BANK_ACCOUNTS",
    "display_name": "Current Assets"
  },
  "balance": 123,
  "local_ledger_account": {
    "id": {
      "type": "AccountId",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "name": "Current Assets",
    "stable_name": {
      "type": "StableName",
      "stable_name": "CURRENT_ASSETS"
    },
    "normality": "CREDIT",
    "account_type": {
      "value": "ASSET",
      "display_name": "Asset"
    },
    "account_subtype": {
      "value": "BANK_ACCOUNTS",
      "display_name": "Current Assets"
    }
  },
  "child_accounts": [
    {}
  ]
}

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 update Quickbooks account mapping for.

accountId
string
required

The UUID of the Quickbooks account to update mapping for.

Body

application/json
local_ledger_account_identifier
object

The local ledger account identifier to map the Quickbooks ledger account to. ID of the account

Response

id
string<uuid>

The UUID of the Quickbooks ledger account.

name
string

The name of the Quickbooks ledger account.

stable_name
object

The stable name of the Quickbooks ledger account. ID of the account

normality
enum<string>

The normality of the Quickbooks ledger account.

Available options:
CREDIT,
DEBIT
account_type
object

The type of the Quickbooks ledger account.

account_subtype
object

The subtype of the Quickbooks ledger account.

balance
integer

The balance of the Quickbooks ledger account.

local_ledger_account
object

The local ledger account associated with the Quickbooks ledger account.

child_accounts
object[]

The child accounts of the Quickbooks ledger account.