---
title: "Save a batch of QuickBooks account mappings"
method: POST
path: "/money/integrations/quickbooks/mapping"
tags: ["money", "quickbooks"]
---

# Save a batch of QuickBooks account mappings

`POST /money/integrations/quickbooks/mapping`

## Request body

- QuickbooksSaveQuickBooksMappingInput
  - `assets` QuickbooksQuickBooksAssetMappingEntry[], nullable
    - `asset` 'usdc' | 'wtgxx' | 'flttx' | 'wtsix' | 'btc', required
    - `event` 'deposit' | 'withdrawal' | 'purchase' | 'redemption' | 'sale' | 'dividend', required
    - `leg_role` 'primary_debit' | 'primary_credit' | 'fee' | 'tax' | 'realized_gain', required
    - `qbo_account_id` string, required
  - `cost_basis` QuickbooksQuickBooksCostBasisEntry[], nullable
    - `asset` 'btc', required
    - `method` 'fifo' | 'lifo' | 'hifo' | 'specific_id', required
  - `movements` QuickbooksQuickBooksMovementMappingEntry[], nullable
    - `leg_role` 'primary_debit' | 'primary_credit' | 'fee' | 'tax', required
    - `movement_type` string, required
    - `qbo_account_id` string, required

## Response `200`

OK

- QuickbooksGetQuickBooksMappingOutput
  - `accounts` QuickbooksQuickBooksAccount[], nullable
    - `account_sub_type` string
    - `account_type` string
    - `active` boolean
    - `currency_ref` string
    - `id` string
    - `name` string
  - `asset_rows` QuickbooksQuickBooksAssetMappingRow[], nullable
    - `asset` 'usdc' | 'wtgxx' | 'flttx' | 'wtsix' | 'btc'
    - `event` 'deposit' | 'withdrawal' | 'purchase' | 'redemption' | 'sale' | 'dividend'
    - `leg_role` 'primary_debit' | 'primary_credit' | 'fee' | 'tax' | 'realized_gain'
    - `mapped_account_id` string
    - `needs_mapping` boolean
    - `suggested_account_id` string
  - `cost_basis` QuickbooksQuickBooksAssetCostBasis[], nullable
    - `asset` 'btc'
    - `method` 'fifo' | 'lifo' | 'hifo' | 'specific_id'
  - `mappable_account_types` string[], nullable
  - `rows` QuickbooksQuickBooksMappingRow[], nullable
    - `leg_role` string
    - `mapped_account_id` string
    - `movement_type` string
    - `needs_mapping` boolean
    - `suggested_account_id` string

## Other responses

- `default` — Error response.

---

[API](https://skmtc.net/stablesea/apis/stable-sea-backend.md) · [All operations](https://skmtc.net/stablesea/apis/stable-sea-backend/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stablesea/stable-sea-backend/versions/3feea260296c/schema)
