**גרסאות API** · **V2 (Latest)** · [V1](/integrations/v1/docs?lang=he)

# Accounting connections

OpenAPI 3.0.3 · API 2.0.0

```json
[
  {
    "url": "https://api.unisoft.world/integrations/v2",
    "description": "API"
  }
]
```

## פעולות

## GET /accounting/connections

List authorised accounting connections and stored mappings

`list_accounting_connections`

Requires explicit accounting:read. This is the approved accounting-connection surface for PENNYLANE/QUICKBOOKS, not general integration or secret administration. Campaign-restricted keys are refused. The server privately re-reads the authenticated API-key record and its original createdBy (creator/OAuth consenter), then the actual current same-organisation ADMIN access: disabled, deleted, expired, malformed, missing or synthetic/root provenance is refused with ACCOUNTING_AUTHORITY_UNAVAILABLE. No administrator is fabricated and createdBy/owner IDs are never exposed. Connected QuickBooks additionally requires exact equality with its persisted ownerAccessId and the currently enabled sandbox/production runtime; no first-claim or cross-owner access. Pennylane retains organisation/association/company ownership. Reads use persisted local configuration/jobs/issues only, with current scalar tenant re-admission; they do not instantiate a provider client, test credentials, refresh resources/tokens, synchronise, change mappings/flows, queue work or mutate business/cache state. Unknown amounts are not aggregated; unknown dates, counters, flags and diagnostics remain null, never invented zero/current time. Only allowlisted mapping IDs, flow flags, status, company name and safe diagnostic codes are returned; no token, password, OAuth state/link, encrypted secret, realm/company identity, private payload, provider body or raw error. Shared authentication may record key usage. Unknown arguments and non-empty GET bodies are rejected. Returns at most 100 records per provider, otherwise ACCOUNTING_CATALOG_LIMIT. QuickBooks is restricted to the real current key creator/consenter owner and active runtime environment; a disabled runtime is reported in partial coverage, never represented as an empty global account list. Empty unconnected drafts without owner/token/realm follow the native read exception without any ownership claim; no realm is fabricated for their records. Mapping IDs and flow flags are existing configuration only, not live validated resources. credentialPresent is stored presence, not validity or a connected-provider guarantee. Coverage is always partial and an empty list does not prove absence of other owners or providers.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "accounting:read",
  "additional": []
}
```

### פרמטרים

```json
{
  "name": "provider",
  "in": "query",
  "description": "Optional exact provider filter.",
  "schema": {
    "type": "string",
    "enum": [
      "PENNYLANE",
      "QUICKBOOKS"
    ]
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Qualified persisted accounting observations or durable queue-admission receipt.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionsResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid UUID, provider, version, pagination, request, unexpected query/body.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid authentication.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, CAMPAIGN_RESTRICTED_KEY, disabled organisation or ACCOUNTING_AUTHORITY_UNAVAILABLE: no current matching real creator/consenter authority.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "NOT_FOUND within the current organisation, association, owner and runtime environment.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "STALE_CONFIG, ALREADY_RUNNING, MANUAL_COOLDOWN, DISABLED, TOKEN_REQUIRED, START_DATE_REQUIRED, ACCOUNTING_TENANT_UNAVAILABLE, ACCOUNTING_CATALOG_LIMIT, AMBIGUOUS_ACCOUNTING_CONNECTION, INVALID_ACCOUNTING_HISTORY, COMMAND_ID_REUSED, COMMAND_UNCERTAIN, COMMAND_HISTORY_LIMIT or INVALID_COMMAND_HISTORY, or a safe native accounting prerequisite code. No provider write retry or credential bypass.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR without private provider diagnostics. Preserve the original command UUID after uncertain queue admission.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "accounting:read",
  "x-unisoft-additional-scopes": [],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## GET /accounting/connections/{provider}/{id}

Read an accounting connection without contacting its provider

`get_accounting_connection`

Requires explicit accounting:read. This is the approved accounting-connection surface for PENNYLANE/QUICKBOOKS, not general integration or secret administration. Campaign-restricted keys are refused. The server privately re-reads the authenticated API-key record and its original createdBy (creator/OAuth consenter), then the actual current same-organisation ADMIN access: disabled, deleted, expired, malformed, missing or synthetic/root provenance is refused with ACCOUNTING_AUTHORITY_UNAVAILABLE. No administrator is fabricated and createdBy/owner IDs are never exposed. Connected QuickBooks additionally requires exact equality with its persisted ownerAccessId and the currently enabled sandbox/production runtime; no first-claim or cross-owner access. Pennylane retains organisation/association/company ownership. Reads use persisted local configuration/jobs/issues only, with current scalar tenant re-admission; they do not instantiate a provider client, test credentials, refresh resources/tokens, synchronise, change mappings/flows, queue work or mutate business/cache state. Unknown amounts are not aggregated; unknown dates, counters, flags and diagnostics remain null, never invented zero/current time. Only allowlisted mapping IDs, flow flags, status, company name and safe diagnostic codes are returned; no token, password, OAuth state/link, encrypted secret, realm/company identity, private payload, provider body or raw error. Shared authentication may record key usage. Unknown arguments and non-empty GET bodies are rejected. version is an opaque admission fingerprint of current native configuration/queue fields, distinct from numeric revision. lastSync/nextSyncAt are stored observations; ACTIVE or credentialPresent never proves successful/live synchronisation. Missing, foreign, wrong-owner and wrong-environment connections share 404.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "accounting:read",
  "additional": []
}
```

### פרמטרים

```json
{
  "name": "provider",
  "in": "path",
  "required": true,
  "description": "Exact accounting owner PENNYLANE or QUICKBOOKS from list_accounting_connections; this is not the generic integration catalogue.",
  "schema": {
    "type": "string",
    "enum": [
      "PENNYLANE",
      "QUICKBOOKS"
    ]
  }
}
```

```json
{
  "name": "id",
  "in": "path",
  "required": true,
  "description": "Local connection UUID from the authorised accounting list, not a provider company, realm, account or OAuth reference.",
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Qualified persisted accounting observations or durable queue-admission receipt.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid UUID, provider, version, pagination, request, unexpected query/body.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid authentication.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, CAMPAIGN_RESTRICTED_KEY, disabled organisation or ACCOUNTING_AUTHORITY_UNAVAILABLE: no current matching real creator/consenter authority.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "NOT_FOUND within the current organisation, association, owner and runtime environment.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "STALE_CONFIG, ALREADY_RUNNING, MANUAL_COOLDOWN, DISABLED, TOKEN_REQUIRED, START_DATE_REQUIRED, ACCOUNTING_TENANT_UNAVAILABLE, ACCOUNTING_CATALOG_LIMIT, AMBIGUOUS_ACCOUNTING_CONNECTION, INVALID_ACCOUNTING_HISTORY, COMMAND_ID_REUSED, COMMAND_UNCERTAIN, COMMAND_HISTORY_LIMIT or INVALID_COMMAND_HISTORY, or a safe native accounting prerequisite code. No provider write retry or credential bypass.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR without private provider diagnostics. Preserve the original command UUID after uncertain queue admission.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "accounting:read",
  "x-unisoft-additional-scopes": [],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## GET /accounting/connections/{provider}/{id}/issues

Read stored open accounting issues with safe diagnostics

`list_accounting_connection_issues`

Requires explicit accounting:read. This is the approved accounting-connection surface for PENNYLANE/QUICKBOOKS, not general integration or secret administration. Campaign-restricted keys are refused. The server privately re-reads the authenticated API-key record and its original createdBy (creator/OAuth consenter), then the actual current same-organisation ADMIN access: disabled, deleted, expired, malformed, missing or synthetic/root provenance is refused with ACCOUNTING_AUTHORITY_UNAVAILABLE. No administrator is fabricated and createdBy/owner IDs are never exposed. Connected QuickBooks additionally requires exact equality with its persisted ownerAccessId and the currently enabled sandbox/production runtime; no first-claim or cross-owner access. Pennylane retains organisation/association/company ownership. Reads use persisted local configuration/jobs/issues only, with current scalar tenant re-admission; they do not instantiate a provider client, test credentials, refresh resources/tokens, synchronise, change mappings/flows, queue work or mutate business/cache state. Unknown amounts are not aggregated; unknown dates, counters, flags and diagnostics remain null, never invented zero/current time. Only allowlisted mapping IDs, flow flags, status, company name and safe diagnostic codes are returned; no token, password, OAuth state/link, encrypted secret, realm/company identity, private payload, provider body or raw error. Shared authentication may record key usage. Unknown arguments and non-empty GET bodies are rejected. Additionally requires paiements:read and budgets:read, both checked separately. Uses the current owner’s canonical tenant: organisation/association/company for Pennylane; organisation/association/environment/realm for QuickBooks. A record from another tenant or an ambiguous ID returns INVALID_ACCOUNTING_HISTORY. Local payment/operation IDs are independently re-read in the current organisation/association and non-deleted scope; unavailable/foreign references become localId:null/localAvailability:UNAVAILABLE, never an authorisation to read that target. Remote-only records have NOT_REPORTED. remoteId is only an existing positive numeric provider-record reference, not a reusable credential. State/code/date are stored observations, not provider verification. Mapping/job IDs and provider account configuration IDs are different objects. No private accounting payload, donor identity or diagnostic body is returned. Lists only native state OPEN by opaque ID ascending. A safe code such as WRITE_UNCERTAIN, SOURCE_MODIFIED, REMOTE_MODIFIED or POSSIBLE_DUPLICATE is a review requirement, not permission to resend an entry, overwrite a source or recreate a payment. Unknown codes are null. after continues the same current connection read.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "accounting:read",
  "additional": [
    "paiements:read",
    "budgets:read"
  ]
}
```

### פרמטרים

```json
{
  "name": "provider",
  "in": "path",
  "required": true,
  "description": "Exact accounting owner PENNYLANE or QUICKBOOKS from list_accounting_connections; this is not the generic integration catalogue.",
  "schema": {
    "type": "string",
    "enum": [
      "PENNYLANE",
      "QUICKBOOKS"
    ]
  }
}
```

```json
{
  "name": "id",
  "in": "path",
  "required": true,
  "description": "Local connection UUID from the authorised accounting list, not a provider company, realm, account or OAuth reference.",
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}
```

```json
{
  "name": "limit",
  "in": "query",
  "description": "Page size 1–100, default 50.",
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 100
  }
}
```

```json
{
  "name": "after",
  "in": "query",
  "description": "Last returned opaque accounting record ID with the same connection and read kind. Concurrent changes do not form a snapshot.",
  "schema": {
    "type": "string",
    "pattern": "^[a-f0-9]{64}$"
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Qualified persisted accounting observations or durable queue-admission receipt.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingRecordsResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid UUID, provider, version, pagination, request, unexpected query/body.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid authentication.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, CAMPAIGN_RESTRICTED_KEY, disabled organisation or ACCOUNTING_AUTHORITY_UNAVAILABLE: no current matching real creator/consenter authority.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "NOT_FOUND within the current organisation, association, owner and runtime environment.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "STALE_CONFIG, ALREADY_RUNNING, MANUAL_COOLDOWN, DISABLED, TOKEN_REQUIRED, START_DATE_REQUIRED, ACCOUNTING_TENANT_UNAVAILABLE, ACCOUNTING_CATALOG_LIMIT, AMBIGUOUS_ACCOUNTING_CONNECTION, INVALID_ACCOUNTING_HISTORY, COMMAND_ID_REUSED, COMMAND_UNCERTAIN, COMMAND_HISTORY_LIMIT or INVALID_COMMAND_HISTORY, or a safe native accounting prerequisite code. No provider write retry or credential bypass.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR without private provider diagnostics. Preserve the original command UUID after uncertain queue admission.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "accounting:read",
  "x-unisoft-additional-scopes": [
    "paiements:read",
    "budgets:read"
  ],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## GET /accounting/connections/{provider}/{id}/records

Read recorded local-to-accounting correspondences and job states

`list_accounting_connection_records`

Requires explicit accounting:read. This is the approved accounting-connection surface for PENNYLANE/QUICKBOOKS, not general integration or secret administration. Campaign-restricted keys are refused. The server privately re-reads the authenticated API-key record and its original createdBy (creator/OAuth consenter), then the actual current same-organisation ADMIN access: disabled, deleted, expired, malformed, missing or synthetic/root provenance is refused with ACCOUNTING_AUTHORITY_UNAVAILABLE. No administrator is fabricated and createdBy/owner IDs are never exposed. Connected QuickBooks additionally requires exact equality with its persisted ownerAccessId and the currently enabled sandbox/production runtime; no first-claim or cross-owner access. Pennylane retains organisation/association/company ownership. Reads use persisted local configuration/jobs/issues only, with current scalar tenant re-admission; they do not instantiate a provider client, test credentials, refresh resources/tokens, synchronise, change mappings/flows, queue work or mutate business/cache state. Unknown amounts are not aggregated; unknown dates, counters, flags and diagnostics remain null, never invented zero/current time. Only allowlisted mapping IDs, flow flags, status, company name and safe diagnostic codes are returned; no token, password, OAuth state/link, encrypted secret, realm/company identity, private payload, provider body or raw error. Shared authentication may record key usage. Unknown arguments and non-empty GET bodies are rejected. Additionally requires paiements:read and budgets:read, both checked separately. Uses the current owner’s canonical tenant: organisation/association/company for Pennylane; organisation/association/environment/realm for QuickBooks. A record from another tenant or an ambiguous ID returns INVALID_ACCOUNTING_HISTORY. Local payment/operation IDs are independently re-read in the current organisation/association and non-deleted scope; unavailable/foreign references become localId:null/localAvailability:UNAVAILABLE, never an authorisation to read that target. Remote-only records have NOT_REPORTED. remoteId is only an existing positive numeric provider-record reference, not a reusable credential. State/code/date are stored observations, not provider verification. Mapping/job IDs and provider account configuration IDs are different objects. No private accounting payload, donor identity or diagnostic body is returned. Reads native sync jobs, not remote provider entries. PENDING/POSTING describe queued/in-flight work; DONE/SUCCEEDED are recorded job outcomes, not bank settlement; UNCERTAIN is unresolved provider-write evidence and never authorises a write retry. A stored remote ID does not prove that the remote entry still exists. No mapping or correspondence is created, edited or confirmed.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "accounting:read",
  "additional": [
    "paiements:read",
    "budgets:read"
  ]
}
```

### פרמטרים

```json
{
  "name": "provider",
  "in": "path",
  "required": true,
  "description": "Exact accounting owner PENNYLANE or QUICKBOOKS from list_accounting_connections; this is not the generic integration catalogue.",
  "schema": {
    "type": "string",
    "enum": [
      "PENNYLANE",
      "QUICKBOOKS"
    ]
  }
}
```

```json
{
  "name": "id",
  "in": "path",
  "required": true,
  "description": "Local connection UUID from the authorised accounting list, not a provider company, realm, account or OAuth reference.",
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}
```

```json
{
  "name": "limit",
  "in": "query",
  "description": "Page size 1–100, default 50.",
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 100
  }
}
```

```json
{
  "name": "after",
  "in": "query",
  "description": "Last returned opaque accounting record ID with the same connection and read kind. Concurrent changes do not form a snapshot.",
  "schema": {
    "type": "string",
    "pattern": "^[a-f0-9]{64}$"
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Qualified persisted accounting observations or durable queue-admission receipt.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingRecordsResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid UUID, provider, version, pagination, request, unexpected query/body.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid authentication.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, CAMPAIGN_RESTRICTED_KEY, disabled organisation or ACCOUNTING_AUTHORITY_UNAVAILABLE: no current matching real creator/consenter authority.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "NOT_FOUND within the current organisation, association, owner and runtime environment.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "STALE_CONFIG, ALREADY_RUNNING, MANUAL_COOLDOWN, DISABLED, TOKEN_REQUIRED, START_DATE_REQUIRED, ACCOUNTING_TENANT_UNAVAILABLE, ACCOUNTING_CATALOG_LIMIT, AMBIGUOUS_ACCOUNTING_CONNECTION, INVALID_ACCOUNTING_HISTORY, COMMAND_ID_REUSED, COMMAND_UNCERTAIN, COMMAND_HISTORY_LIMIT or INVALID_COMMAND_HISTORY, or a safe native accounting prerequisite code. No provider write retry or credential bypass.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR without private provider diagnostics. Preserve the original command UUID after uncertain queue admission.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "accounting:read",
  "x-unisoft-additional-scopes": [
    "paiements:read",
    "budgets:read"
  ],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## POST /accounting/connections/{provider}/{id}/sync

Queue one explicitly authorised native accounting synchronisation

`request_accounting_connection_sync`

Requires explicit accounting:read. This is the approved accounting-connection surface for PENNYLANE/QUICKBOOKS, not general integration or secret administration. Campaign-restricted keys are refused. The server privately re-reads the authenticated API-key record and its original createdBy (creator/OAuth consenter), then the actual current same-organisation ADMIN access: disabled, deleted, expired, malformed, missing or synthetic/root provenance is refused with ACCOUNTING_AUTHORITY_UNAVAILABLE. No administrator is fabricated and createdBy/owner IDs are never exposed. Connected QuickBooks additionally requires exact equality with its persisted ownerAccessId and the currently enabled sandbox/production runtime; no first-claim or cross-owner access. Pennylane retains organisation/association/company ownership. Reads use persisted local configuration/jobs/issues only, with current scalar tenant re-admission; they do not instantiate a provider client, test credentials, refresh resources/tokens, synchronise, change mappings/flows, queue work or mutate business/cache state. Unknown amounts are not aggregated; unknown dates, counters, flags and diagnostics remain null, never invented zero/current time. Only allowlisted mapping IDs, flow flags, status, company name and safe diagnostic codes are returned; no token, password, OAuth state/link, encrypted secret, realm/company identity, private payload, provider body or raw error. Shared authentication may record key usage. Unknown arguments and non-empty GET bodies are rejected. MUTATING COMMAND: additionally requires accounting:sync, paiements:read, budgets:read and budgets:write, all explicitly granted and checked separately and against the current key. The native worker may export accounting entries and import/update local accounting operations according to the existing mapping, flows, startDate/timeZone and owner rules. This can cause real provider accounting writes after queueing; it is not a dry run or a direct bank transfer/debit/refund. First inspect connection, open issues and recorded jobs; preserve WRITE_UNCERTAIN/duplicates for review, never force individual provider writes. Requires a caller-generated commandId UUID and the current expectedVersion. A guarded database port passes the admitted snapshot to the actual owner enqueue, preserving enabled/token/startDate/lease/request/cooldown checks and allowing only its native queue fields; a marker is added in that same CAS. No synthetic ADMIN, direct provider call, token test, resource refresh, OAuth, mapping/flow change or generic integration operation occurs here. QUEUED proves only native queue admission; execution is NOT_REPORTED and must be followed through existing reads. A consumed queue flag does not invalidate the marker. Identical commands recover their receipt without requeueing; changed reuse is refused. COMMAND_UNCERTAIN requires read_accounting_sync_command with the same ID/principal, never a new ID or automatic retry. Claims require acknowledged:true and the exact insertedId, and all effect/CAS/terminal writes force majority+j:true with positive driver acknowledgement. A lost, absent or false acknowledgement returns COMMAND_UNCERTAIN; only a later read may resolve the durable marker without repeating an effect.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "accounting:sync",
  "additional": [
    "accounting:read",
    "paiements:read",
    "budgets:read",
    "budgets:write"
  ]
}
```

### פרמטרים

```json
{
  "name": "provider",
  "in": "path",
  "required": true,
  "description": "Exact accounting owner PENNYLANE or QUICKBOOKS from list_accounting_connections; this is not the generic integration catalogue.",
  "schema": {
    "type": "string",
    "enum": [
      "PENNYLANE",
      "QUICKBOOKS"
    ]
  }
}
```

```json
{
  "name": "id",
  "in": "path",
  "required": true,
  "description": "Local connection UUID from the authorised accounting list, not a provider company, realm, account or OAuth reference.",
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}
```

### גוף הבקשה

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "commandId": {
            "type": "string",
            "format": "uuid"
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "commandId",
          "expectedVersion"
        ],
        "additionalProperties": false
      }
    }
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Qualified persisted accounting observations or durable queue-admission receipt.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingSyncResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid UUID, provider, version, pagination, request, unexpected query/body.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid authentication.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, CAMPAIGN_RESTRICTED_KEY, disabled organisation or ACCOUNTING_AUTHORITY_UNAVAILABLE: no current matching real creator/consenter authority.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "NOT_FOUND within the current organisation, association, owner and runtime environment.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "STALE_CONFIG, ALREADY_RUNNING, MANUAL_COOLDOWN, DISABLED, TOKEN_REQUIRED, START_DATE_REQUIRED, ACCOUNTING_TENANT_UNAVAILABLE, ACCOUNTING_CATALOG_LIMIT, AMBIGUOUS_ACCOUNTING_CONNECTION, INVALID_ACCOUNTING_HISTORY, COMMAND_ID_REUSED, COMMAND_UNCERTAIN, COMMAND_HISTORY_LIMIT or INVALID_COMMAND_HISTORY, or a safe native accounting prerequisite code. No provider write retry or credential bypass.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR without private provider diagnostics. Preserve the original command UUID after uncertain queue admission.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "accounting:sync",
  "x-unisoft-additional-scopes": [
    "accounting:read",
    "paiements:read",
    "budgets:read",
    "budgets:write"
  ],
  "x-unisoft-mcp": {
    "category": "write",
    "readOnly": false,
    "destructive": true,
    "idempotent": true,
    "warn": true
  }
}
```

## GET /accounting/sync-commands/{commandId}

Resolve native accounting queue admission without requeueing

`read_accounting_sync_command`

Requires explicit accounting:read. This is the approved accounting-connection surface for PENNYLANE/QUICKBOOKS, not general integration or secret administration. Campaign-restricted keys are refused. The server privately re-reads the authenticated API-key record and its original createdBy (creator/OAuth consenter), then the actual current same-organisation ADMIN access: disabled, deleted, expired, malformed, missing or synthetic/root provenance is refused with ACCOUNTING_AUTHORITY_UNAVAILABLE. No administrator is fabricated and createdBy/owner IDs are never exposed. Connected QuickBooks additionally requires exact equality with its persisted ownerAccessId and the currently enabled sandbox/production runtime; no first-claim or cross-owner access. Pennylane retains organisation/association/company ownership. Reads use persisted local configuration/jobs/issues only, with current scalar tenant re-admission; they do not instantiate a provider client, test credentials, refresh resources/tokens, synchronise, change mappings/flows, queue work or mutate business/cache state. Unknown amounts are not aggregated; unknown dates, counters, flags and diagnostics remain null, never invented zero/current time. Only allowlisted mapping IDs, flow flags, status, company name and safe diagnostic codes are returned; no token, password, OAuth state/link, encrypted secret, realm/company identity, private payload, provider body or raw error. Shared authentication may record key usage. Unknown arguments and non-empty GET bodies are rejected. Requires the same explicit scopes as sync admission, including accounting:sync, paiements:read, budgets:read and budgets:write. READ ONLY: checks the original principal’s journal and the marker on the currently authorised connection. QUEUED reports original admission, never worker completion or successful provider accounting. REJECTED is a known safe native prerequisite refusal; absent proof stays COMMAND_UNCERTAIN. It never calls enqueue, the provider, cleanup or a financial retry. No query/body is accepted.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "accounting:sync",
  "additional": [
    "accounting:read",
    "paiements:read",
    "budgets:read",
    "budgets:write"
  ]
}
```

### פרמטרים

```json
{
  "name": "commandId",
  "in": "path",
  "required": true,
  "description": "Original sync-command UUID for the same API principal. Keep it after a lost response.",
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Qualified persisted accounting observations or durable queue-admission receipt.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingSyncResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid UUID, provider, version, pagination, request, unexpected query/body.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid authentication.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, CAMPAIGN_RESTRICTED_KEY, disabled organisation or ACCOUNTING_AUTHORITY_UNAVAILABLE: no current matching real creator/consenter authority.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "NOT_FOUND within the current organisation, association, owner and runtime environment.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "STALE_CONFIG, ALREADY_RUNNING, MANUAL_COOLDOWN, DISABLED, TOKEN_REQUIRED, START_DATE_REQUIRED, ACCOUNTING_TENANT_UNAVAILABLE, ACCOUNTING_CATALOG_LIMIT, AMBIGUOUS_ACCOUNTING_CONNECTION, INVALID_ACCOUNTING_HISTORY, COMMAND_ID_REUSED, COMMAND_UNCERTAIN, COMMAND_HISTORY_LIMIT or INVALID_COMMAND_HISTORY, or a safe native accounting prerequisite code. No provider write retry or credential bypass.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR without private provider diagnostics. Preserve the original command UUID after uncertain queue admission.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/AccountingConnectionError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "accounting:sync",
  "x-unisoft-additional-scopes": [
    "accounting:read",
    "paiements:read",
    "budgets:read",
    "budgets:write"
  ],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## סכמות

```json
{
  "components": {
    "schemas": {
      "AccountingConnectionsResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "data",
          "coverage"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountingConnection"
            }
          },
          "coverage": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "complete",
              "providers"
            ],
            "properties": {
              "complete": {
                "type": "boolean",
                "enum": [
                  false
                ]
              },
              "providers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "provider",
                    "availability"
                  ],
                  "properties": {
                    "provider": {
                      "type": "string",
                      "enum": [
                        "PENNYLANE",
                        "QUICKBOOKS"
                      ]
                    },
                    "availability": {
                      "type": "string",
                      "enum": [
                        "LOCAL_RECORDS",
                        "CURRENT_OWNER_AND_ENVIRONMENT",
                        "RUNTIME_DISABLED"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      },
      "AccountingConnection": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "provider",
          "assoc",
          "label",
          "companyName",
          "environment",
          "currency",
          "state",
          "credentialPresent",
          "revision",
          "version",
          "mapping",
          "flows",
          "startDate",
          "timeZone",
          "syncing",
          "queued",
          "lastSync",
          "nextSyncAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string",
            "enum": [
              "PENNYLANE",
              "QUICKBOOKS"
            ]
          },
          "assoc": {
            "type": "string"
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "environment": {
            "type": "string",
            "nullable": true,
            "enum": [
              "sandbox",
              "production",
              null
            ]
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "DISABLED",
              "DRAFT",
              "PAUSED",
              "REAUTH_REQUIRED",
              "DISCONNECTED",
              "UNKNOWN"
            ]
          },
          "credentialPresent": {
            "type": "boolean"
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "version": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "mapping": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "journalId": {
                "type": "string",
                "nullable": true
              },
              "cashAccountId": {
                "type": "string",
                "nullable": true
              },
              "paymentAccountId": {
                "type": "string",
                "nullable": true
              },
              "processorAccountId": {
                "type": "string",
                "nullable": true
              },
              "expenseAccountId": {
                "type": "string",
                "nullable": true
              },
              "incomeAccountId": {
                "type": "string",
                "nullable": true
              },
              "customerId": {
                "type": "string",
                "nullable": true
              },
              "donationItemId": {
                "type": "string",
                "nullable": true
              }
            }
          },
          "flows": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "paymentsToPennylane": {
                "type": "boolean",
                "nullable": true
              },
              "expensesToPennylane": {
                "type": "boolean",
                "nullable": true
              },
              "expensesToUnisoft": {
                "type": "boolean",
                "nullable": true
              },
              "incomeToPennylane": {
                "type": "boolean",
                "nullable": true
              },
              "incomeToUnisoft": {
                "type": "boolean",
                "nullable": true
              },
              "paymentsToQuickBooks": {
                "type": "boolean",
                "nullable": true
              },
              "expensesToQuickBooks": {
                "type": "boolean",
                "nullable": true
              },
              "incomeToQuickBooks": {
                "type": "boolean",
                "nullable": true
              }
            }
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "timeZone": {
            "type": "string",
            "nullable": true
          },
          "syncing": {
            "type": "boolean",
            "nullable": true
          },
          "queued": {
            "type": "boolean",
            "nullable": true
          },
          "lastSync": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "at",
              "state",
              "errorCode",
              "stats"
            ],
            "properties": {
              "at": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "state": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "SUCCESS",
                  "DONE",
                  "RUNNING",
                  "BACKFILL",
                  "REVIEW",
                  "ERROR",
                  null
                ]
              },
              "errorCode": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "AUTH_REQUIRED",
                  "REAUTH_REQUIRED",
                  "MISSING_SCOPES",
                  "TOKEN_REQUIRED",
                  "DISABLED",
                  "ALREADY_RUNNING",
                  "MANUAL_COOLDOWN",
                  "START_DATE_REQUIRED",
                  "STALE_CONFIG",
                  "CONFIG_CHANGED",
                  "COMPANY_MISMATCH",
                  "CURRENCY_MISMATCH",
                  "CURRENCY_UNSUPPORTED",
                  "INVALID_MAPPING",
                  "INVALID_CONFIG",
                  "INVALID_AMOUNT",
                  "INVALID_PROVIDER_RESPONSE",
                  "PROVIDER_UNAVAILABLE",
                  "PROVIDER_DATA_LIMIT",
                  "RATE_LIMITED",
                  "API_BUDGET_REACHED",
                  "API_CONCURRENCY_LIMIT",
                  "INVALID_ACCOUNTING_DATA",
                  "COMPLEX_ENTRY",
                  "SOURCE_MODIFIED",
                  "REMOTE_MODIFIED",
                  "REMOTE_DELETED",
                  "REMOTE_MISSING",
                  "IMPORT_MODIFIED",
                  "POSSIBLE_DUPLICATE",
                  "UNKNOWN_UNISOFT_REFERENCE",
                  "WRITE_UNCERTAIN",
                  "CDC_SATURATED",
                  "LEASE_LOST",
                  "SYNC_FAILED",
                  "SYNC_ERROR",
                  "SERVER_NOT_CONFIGURED",
                  "ENVIRONMENT_MISMATCH",
                  "ENCRYPTION_UNAVAILABLE",
                  "ORGANISATION_NOT_FOUND",
                  "RESOURCE_NOT_FOUND",
                  null
                ]
              },
              "stats": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "imported",
                  "exported",
                  "updated",
                  "skipped",
                  "toReview"
                ],
                "properties": {
                  "imported": {
                    "type": "integer",
                    "minimum": 0,
                    "nullable": true
                  },
                  "exported": {
                    "type": "integer",
                    "minimum": 0,
                    "nullable": true
                  },
                  "updated": {
                    "type": "integer",
                    "minimum": 0,
                    "nullable": true
                  },
                  "skipped": {
                    "type": "integer",
                    "minimum": 0,
                    "nullable": true
                  },
                  "toReview": {
                    "type": "integer",
                    "minimum": 0,
                    "nullable": true
                  }
                }
              }
            }
          },
          "nextSyncAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "AccountingConnectionError": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        }
      },
      "AccountingConnectionResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "data"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "$ref": "#/components/schemas/AccountingConnection"
          }
        }
      },
      "AccountingRecordsResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "kind",
                "localId",
                "localAvailability",
                "remoteId",
                "state",
                "errorCode",
                "at"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "kind": {
                  "type": "string",
                  "nullable": true,
                  "enum": [
                    "paiements",
                    "operations",
                    "ledger_entries",
                    "SalesReceipt",
                    "Purchase",
                    "Deposit",
                    "connection",
                    null
                  ]
                },
                "localId": {
                  "type": "string",
                  "format": "uuid",
                  "nullable": true
                },
                "localAvailability": {
                  "type": "string",
                  "enum": [
                    "AVAILABLE",
                    "UNAVAILABLE",
                    "NOT_REPORTED"
                  ]
                },
                "remoteId": {
                  "type": "string",
                  "nullable": true
                },
                "state": {
                  "type": "string",
                  "nullable": true,
                  "enum": [
                    "OPEN",
                    "RESOLVED",
                    "PENDING",
                    "POSTING",
                    "DONE",
                    "SUCCEEDED",
                    "UNCERTAIN",
                    "BLOCKED",
                    "FAILED",
                    null
                  ]
                },
                "errorCode": {
                  "type": "string",
                  "nullable": true,
                  "enum": [
                    "AUTH_REQUIRED",
                    "REAUTH_REQUIRED",
                    "MISSING_SCOPES",
                    "TOKEN_REQUIRED",
                    "DISABLED",
                    "ALREADY_RUNNING",
                    "MANUAL_COOLDOWN",
                    "START_DATE_REQUIRED",
                    "STALE_CONFIG",
                    "CONFIG_CHANGED",
                    "COMPANY_MISMATCH",
                    "CURRENCY_MISMATCH",
                    "CURRENCY_UNSUPPORTED",
                    "INVALID_MAPPING",
                    "INVALID_CONFIG",
                    "INVALID_AMOUNT",
                    "INVALID_PROVIDER_RESPONSE",
                    "PROVIDER_UNAVAILABLE",
                    "PROVIDER_DATA_LIMIT",
                    "RATE_LIMITED",
                    "API_BUDGET_REACHED",
                    "API_CONCURRENCY_LIMIT",
                    "INVALID_ACCOUNTING_DATA",
                    "COMPLEX_ENTRY",
                    "SOURCE_MODIFIED",
                    "REMOTE_MODIFIED",
                    "REMOTE_DELETED",
                    "REMOTE_MISSING",
                    "IMPORT_MODIFIED",
                    "POSSIBLE_DUPLICATE",
                    "UNKNOWN_UNISOFT_REFERENCE",
                    "WRITE_UNCERTAIN",
                    "CDC_SATURATED",
                    "LEASE_LOST",
                    "SYNC_FAILED",
                    "SYNC_ERROR",
                    "SERVER_NOT_CONFIGURED",
                    "ENVIRONMENT_MISMATCH",
                    "ENCRYPTION_UNAVAILABLE",
                    "ORGANISATION_NOT_FOUND",
                    "RESOURCE_NOT_FOUND",
                    null
                  ]
                },
                "at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": true
                }
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "hasMore",
              "after"
            ],
            "properties": {
              "hasMore": {
                "type": "boolean"
              },
              "after": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$",
                "nullable": true
              }
            }
          }
        }
      },
      "AccountingSyncResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "commandId",
          "outcome",
          "replayed",
          "data"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "commandId": {
            "type": "string",
            "format": "uuid"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "QUEUED",
              "REJECTED"
            ]
          },
          "replayed": {
            "type": "boolean"
          },
          "error": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "provider",
              "connectionId",
              "execution"
            ],
            "properties": {
              "provider": {
                "type": "string",
                "enum": [
                  "PENNYLANE",
                  "QUICKBOOKS"
                ]
              },
              "connectionId": {
                "type": "string",
                "format": "uuid"
              },
              "execution": {
                "type": "string",
                "enum": [
                  "NOT_REPORTED"
                ]
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key",
        "description": "Format: `ke_live_xxx`"
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  }
}
```
