---
title: "Secure Accounting API Integration: What Apideck Stores, Logs and Lets You Control"
description: "How a secure accounting API integration works with Apideck: what passes through, where OAuth tokens live, what API logs keep and which controls stay in your code.\nTarget keyword: secure accounting api integration\n"
author: "Kateryna Poryvay"
published: "2026-12-03T00:00+02:00"
updated: "2026-12-03T17:39:21.710Z"
url: "https://www.apideck.com/blog/secure-accounting-api-integration-with-apideck"
tags: ["Unified API", "Accounting", "Product"]
---

# Secure Accounting API Integration: What Apideck Stores, Logs and Lets You Control

Before a finance team lets your product connect to its QuickBooks or NetSuite, someone sends a security questionnaire, either their vendor-risk team or your own. The wording changes from one review to the next, but most of it comes down to two things: where the customer's financial data goes, and who else ends up holding a copy.

For accounting data, most of the answers follow from one design choice. Invoices and bills your product reads or writes through Apideck pass through in real time and aren't kept as a copy, so the customer's ledger stays the only place they live. What Apideck stores is the encrypted credentials for each connection, held in [Vault](https://www.apideck.com/products/vault), and the API logs that record each call. The platform runs on AWS in the EU, with a US stack in AWS us-east-1 coming soon. It is audited every year under SOC 2 Type II and is ISO/IEC 27001 certified.

## Where is Apideck hosted, and can our data stay in the US?

[Apideck runs on AWS in the EU](https://www.apideck.com/security) by default, and a separate US stack in AWS us-east-1 is in internal testing, so if you need US-only processing, ask about the timeline before you sign. A few subprocessors on the [published list](https://compliance.apideck.com/subprocessors), such as Intercom for support, are in the US, while the accounting records themselves stay in the customer's ledger.

## What happens to an invoice during an API call?

Say your spend management product lists a customer's open invoices from QuickBooks Online. Your backend calls GET /accounting/invoices with your Apideck API key, your application ID and a consumer ID, which is your own identifier for that customer. Apideck looks up that customer's connection in Vault and [refreshes the OAuth token first](https://developers.apideck.com/guides/refresh-token-race-condition) if it expires within 30 seconds. Unify then calls QuickBooks over TLS and maps the response to the unified invoice model in memory, dropping any field outside your Data Scopes. The invoice goes back to you without being written to an Apideck database.

![What happens to an invoice during an API call?](//images.ctfassets.net/d6o5ai4eeewt/5dnTljevDNzMc0EKU6Xl9z/0cfa783e16e295e473ceec7fceb32f65/1-data-flow-3840x2160.png)

What Apideck does keep is the encrypted credentials for each connection and the API logs covered below. The [table on our security page](https://www.apideck.com/security) lists every kind of data and whether it is stored.

A few routes work differently, and they deserve a line in your own questionnaire. QuickBooks Desktop runs on the customer's own machines, so there's no vendor cloud API to call, and Apideck [shows a notice on the connector page](https://www.apideck.com/zero-data-retention) before you enable it. Bank feed statements follow the delivery model of the network: on the Intuit Bank Feeds route they wait in an encrypted store until Intuit pulls them into QuickBooks Online, and for Plaid bank feeds the retention period isn't published yet. The cloud accounting connectors themselves are pass-through.

Because nothing is cached, every read returns what the ledger holds at that moment, and each read costs a call to the source API. It also means live calls fail while Apideck or the ledger is unavailable, though nothing is lost, since the ledger stays the system of record. Unified APIs that sync records into their own store can answer while a ledger is slow, but they add a third-party copy of your customers' books to your data inventory and to every erasure request. Pass-through keeps that copy out of your vendor review. If your product needs history, you store it yourself, under your own controls.

## Where are the OAuth tokens, and who can reach them?

Your customer signs in to their ledger through Vault, as a hosted page or a modal inside your app, and Apideck stores the resulting OAuth tokens or API keys encrypted with AES-256 and refreshes them. Your backend never receives a ledger token. The only secret on your servers is your Apideck API key, which belongs in server-side configuration and never in a browser bundle. Inside Apideck, only a small group of staff can reach production, and every access is [logged and audited as part of SOC 2](https://www.apideck.com/security).

With [OAuth protection](https://developers.apideck.com/guides/vault-oauth-protection) enforced, Vault opens only on sites you registered and returns users only to pages you registered. It rejects a flow that finishes in a different browser from the one that started it, and a new connection stays unusable until it is confirmed with a single-use token, so nobody can complete a connection in someone else's session.

![Where are the OAuth tokens, and who can reach them?](//images.ctfassets.net/d6o5ai4eeewt/1EWmgWPUkJY6yqdbFt548m/07d63bc54198292580e41fc1bf1d70ba/2-vault-connection-3840x2160.png)

Revocation works at two levels. Your customer can disconnect or delete a connection in Vault if you leave those actions enabled, and your backend can delete a connection or a whole consumer through the [Vault API](https://developers.apideck.com/apis/vault/reference). A connection whose credentials stop working moves to the invalid state until the customer reauthorizes it, and enterprise customers can arrange source code escrow.

## What do the API logs keep, and for how long?

Logs are the one place where Apideck does keep business data, and the [developer docs](https://developers.apideck.com/guides/security-and-data-handling) say so. API Logs capture the full request and response bodies of each call, both your call to Apideck and Apideck's call to the ledger, so they can contain supplier and bank details. That is the price of being able to debug a rejected bill from the actual request and the ledger's actual response.

How long logs are kept [depends on your plan](https://www.apideck.com/api-logs). Standard retention covers recent traffic for day-to-day debugging, and extended retention is available for compliance and audit needs. Configurable log retention is [part of the Enterprise plan](https://www.apideck.com/pricing), and setting retention to 0 turns log storage off. Sensitive fields can be masked to match your data governance policy.

Here is what that difference looks like for a bill that QuickBooks rejected. The [Logs API](https://developers.apideck.com/apis/vault/reference) returns a record like this for every call, parent and child alike (illustrative values):

```json
{
  "id": "0b5f7480-5550-4f5c-a5fc-3c01ac43dd0f",
  "timestamp": "2026-11-30T09:14:02.118Z",
  "consumer_id": "acme",
  "unified_api": "accounting",
  "service": { "id": "quickbooks", "name": "QuickBooks" },
  "operation": { "id": "billsAdd", "name": "Create Bill" },
  "http_method": "POST",
  "path": "/accounting/bills",
  "status_code": 400,
  "success": false,
  "child_request": false,
  "has_children": true,
  "duration": 812.4,
  "latency": 31.2
}
```

The same entry also holds the request and response payloads, which you open in the dashboard. That is where the business data sits:

```json
{
  "bill_number": "DEMO-1042",
  "supplier": { "id": "21" },
  "line_items": [
    { "description": "Hosting", "unit_price": 100, "ledger_account": { "id": "64" } }
  ]
}
```

The first record tells you what failed and when. The second tells you why, and it is the part that can contain supplier and bank details. If your product handles bank details or payroll data, settle this before your first customer connects: agree with Apideck whether to mask those fields or turn log storage off, and treat access to the Logs view in the dashboard like access to production data. Your customers can also see the logs for their own connections in Vault unless you hide that view in the session settings.

## Is Apideck SOC 2, ISO 27001 and GDPR compliant?

Apideck holds a SOC 2 Type II report from an independent auditor, renewed every year and shared under NDA with prospects in an active evaluation. When you receive it, check the period it covers, and ask for a bridge letter if that period ended several months ago.

Apideck is also ISO/IEC 27001 certified, which covers its information security management system as a whole.

GDPR has no single certificate that most vendors hold, so the evidence is in the contract and the architecture. Core infrastructure is in the EU. The standard [Data Processing Addendum](https://compliance.apideck.com/dpa) covers the EU and UK GDPR and incorporates the European Commission's 2021 Standard Contractual Clauses, with the UK Addendum, for transfers outside the EU. Apideck has a data protection officer, reachable at dpo@apideck.com, and publishes a [CCPA position](https://compliance.apideck.com/) for California.

| Document | What it answers | How to get it |
| :-- | :-- | :-- |
| SOC 2 Type II report | How Apideck's controls performed over the audit period | Under NDA, from the Apideck team |
| ISO/IEC 27001 certificate | Whether the security management system is certified | From the Apideck team |
| Data Processing Addendum | Processor duties, incident notice, deletion, subprocessors, transfers | [Public](https://compliance.apideck.com/dpa) |
| Subprocessor list | Who else processes data, where, and why | [Public](https://compliance.apideck.com/subprocessors) |
| Security measures | Encryption, network, access and development controls | [Public](https://compliance.apideck.com/security) |
| SLA | 99.9% monthly uptime, service credits and support response times | [Security page](https://www.apideck.com/security) |

## Do we need to list Apideck as a subprocessor?

It depends on your role. In most integrations you are the controller and Apideck processes data on your behalf, and Apideck's [end-user consent guide](https://developers.apideck.com/guides/end-user-consent) notes that some customers name Apideck in their disclosures while others cover it only in their subprocessor list. Which applies to you is a question for your counsel, with the DPA in hand. Under the DPA, Apideck gives notice before a new subprocessor starts and you have 10 business days to object. Incidents are reported without undue delay, and deletion instructions are carried out within 90 days unless EU or UK law requires storage. If your own customers are regulated, their vendor teams may ask for Apideck's SOC 2 report as well.

## Can we limit what Apideck can read and write?

Yes, field by field. [Data Scopes](https://developers.apideck.com/guides/data-scopes-for-accounting) let you choose, per resource, which fields your application may read and which it may write, down to nested fields such as `line_items.tax_code`. Fields outside the scope are never requested from the ledger or are stripped before the response reaches you, and a write that includes one is rejected, so a lending product that only reads can grant no write fields at all. Your customer sees the exact field list in a Vault consent prompt and, if they gave explicit consent, must consent again when you add fields.

## What happens when AI agents access the data?

Agents that connect through Apideck's hosted MCP server at mcp.apideck.dev read and write through [the same pass-through layer as the API](https://www.apideck.com/zero-data-retention), so agent access doesn't create a stored copy at Apideck. Once a record reaches the agent, the model provider's and MCP client's own retention settings apply. Review those separately, and pass the agent only the fields a task needs.

## What stays on your side

A few controls sit in your own code. Resolve the consumer ID on your server from the authenticated user's organization, and never accept one sent by the browser, because that would let one customer reach another's connection. Verify the x-apideck-signature header on every webhook, an [HMAC SHA-256 of the request body](https://developers.apideck.com/guides/webhook-signature-verification) keyed with your API key. Give your error tracker and backups their own retention policy, since Apideck's guarantees stop at its platform, and put your own consent wording in front of Vault. If you integrate with QuickBooks Online, Intuit's annual security review also applies to your app, as our [QuickBooks security review guide](https://www.apideck.com/blog/quickbooks-security-review) explains.

## Before your next security review

Request the SOC 2 Type II report and the ISO certificate early, so procurement isn't waiting on paper. Turn on OAuth protection and Data Scopes before the first customer connects, and agree a log retention setting with Apideck that suits the most sensitive customer you expect to sign. If residency outside the EU is a hard requirement, raise it on the first call.

If your security team wants to go through any of this with us, [talk to our team](https://www.apideck.com/security), and we'll work through your questionnaire and logging setup together.
