{"openapi":"3.1.0","info":{"title":"Accounting Schedules & Close API","version":"1.0.0","description":"Book and MACRS depreciation, lease liability/ROU schedules, revenue recognition, loan amortisation journals, bank reconciliation matching, trial-balance checks, financial statements, 13-week cash forecast, FX revaluation, inventory costing, prepaid accruals, intercompany eliminations, journal anomaly flags and Form 1099 threshold checks — pure computation on caller ledgers. Paid with x402 exact USDC on Base. No account is required.","contact":{"email":"support@brainiac.software"},"x-guidance":"BRAINIAC.software is a pay-per-call API for software agents. No account or API key is required.\nPayment uses x402 with exact USDC on Base (8453). Each paid resource accepts POST for the call; unpaid GET/HEAD return the same 402 payment challenge for discovery.\nHow to call an operation:\n1. POST JSON matching the requestBody. An unpaid POST (including empty body) returns 402 payment terms before body validation.\n2. Compare 402 payTo, asset, and network with /api/v1/catalog and /.well-known/x402 — not only with the 402 itself.\n3. Pay and retry with payment-signature. Invalid JSON/schema after payment-signature returns 400 and is not charged. Settlement (a charge) only on 2xx. payment-signature attached ≠ charged.\nIdempotency-Key: 64 hex chars from 32 random bytes. Reuse only for the same operation and body (replays stored response, including status=partial). A new key runs a fresh call.\nIdempotency after errors: unpaid 402 does not store the key. Post-signature 402/503 release it (retry same key). Pre-reserve schema 400 does not store it. Other post-signature responses (2xx/4xx/5xx) are stored: same key+body replays; different body → 409. Stored 4xx/5xx replays are not a second charge. Prefer a new key after fixing a 4xx; after 5xx reuse the same key only for the stored error.\nPost-signature 402/503 include prior-payment-attempt (nonce, settled false|unknown). A facilitator 502 is SETTLEMENT_UNKNOWN (stored under the Idempotency-Key; cross-instance replay needs the shared store; may already be charged) — check USDC authorizationState(payer, nonce) on Base before re-signing.\nSettlement signal: settled 2xx include payment-response. 4xx/5xx do not. Do not book a cost from payment-signature alone.\nCoverage billing: HTTP 200 with status complete, partial, or failed is charged at the full listed price. Retrying missing checks needs a new settled call. 4xx/5xx are not charged.\nmissing_items.reason: timeout/rate_limited → one delayed retry (new key); upstream_down → after recovery; not_supported → never.\nInvariants: any missing_items ⇒ not status complete; sources[] is provenance only (source, url, retrievedAt), never success/error keyed by check.\nFree lookup: GET /api/v1/results/{result_id} returns stored coverage JSON (404 RESULT_NOT_FOUND if unknown/expired; not a 402). Prior-Result-Id sets replaces_result_id.\nOutputs are prechecks/drafts for human review — not official determinations, legal advice, or certified filings."},"servers":[{"url":"https://www.brainiac.software"}],"paths":{"/api/v1/accounting-schedules/depreciation-schedule":{"post":{"operationId":"book_depreciation_schedule","summary":"Book depreciation schedule","description":"Straight-line, declining-balance, sum-of-years'-digits and units-of-production depreciation schedules with optional first-year convention and journal entries.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cost":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"salvage":{"type":"integer","minimum":0,"maximum":9007199254740991},"lifeYears":{"type":"integer","exclusiveMinimum":0,"maximum":100},"method":{"type":"string","enum":["SL","DDB","DB150","SYD","UOP"]},"inServiceDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"convention":{"default":"none","type":"string","enum":["full_month","half_year","none"]},"fiscalYearEndMonth":{"default":12,"type":"integer","minimum":1,"maximum":12},"unitsTotal":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"unitsByPeriod":{"anyOf":[{"maxItems":200,"type":"array","items":{"type":"number","minimum":0}},{"type":"null"}]},"switchToSL":{"default":true,"type":"boolean"}},"required":["cost","salvage","lifeYears","method","inServiceDate"],"additionalProperties":false},"example":{"cost":1000000,"salvage":100000,"lifeYears":5,"method":"SL","inServiceDate":"2026-01-01","convention":"none"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"periods":{"type":"array","items":{"type":["object","string"],"properties":{"year":{"type":"number"},"depreciation":{"type":"number"},"accumulated":{"type":"number"},"bookValue":{"type":"number"}},"additionalProperties":true}},"entries":{"type":"array","items":{"type":["object","string"],"properties":{"date":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string"},"debit":{"type":"number"},"credit":{"type":"number"}},"additionalProperties":true}}},"additionalProperties":true}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"periods":[{"year":1,"depreciation":180000,"accumulated":180000,"bookValue":820000},{"year":2,"depreciation":180000,"accumulated":360000,"bookValue":640000},"…"],"entries":[{"date":"2026-01-01","lines":[{"account":"depreciation_expense","debit":180000,"credit":0},{"account":"accumulated_depreciation","debit":0,"credit":180000}]},{"date":"2027-01-01","lines":[{"account":"depreciation_expense","debit":180000,"credit":0},{"account":"accumulated_depreciation","debit":0,"credit":180000}]},"…"],"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/macrs-depreciation":{"post":{"operationId":"us_macrs_gds_depreciation","summary":"US MACRS GDS depreciation","description":"Apply IRS Publication 946 Appendix A GDS percentage tables (half-year, mid-quarter, mid-month) after optional section 179 and caller-supplied bonus percentage.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"basis":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recoveryPeriod":{"anyOf":[{"type":"number","const":3},{"type":"number","const":5},{"type":"number","const":7},{"type":"number","const":10},{"type":"number","const":15},{"type":"number","const":20},{"type":"number","const":27.5},{"type":"number","const":39}]},"convention":{"type":"string","enum":["HY","MQ","MM"]},"quarterPlaced":{"default":1,"type":"integer","minimum":1,"maximum":4},"monthPlaced":{"default":1,"type":"integer","minimum":1,"maximum":12},"placedInService":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"section179":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"bonusPct":{"default":0,"type":"number","minimum":0,"maximum":1},"q4BasisShare":{"type":"number","minimum":0,"maximum":1}},"required":["basis","recoveryPeriod","convention"],"additionalProperties":false},"example":{"basis":1000000,"recoveryPeriod":5,"convention":"HY"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":["object","string"],"properties":{"year":{"type":"number"},"rate":{"type":"number"},"depreciation":{"type":"number"}},"additionalProperties":true}},"table":{"type":"string"},"depreciableBasis":{"type":"number"},"section179":{"type":"number"},"bonus":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"rows":[{"year":1,"rate":0.2,"depreciation":200000},{"year":2,"rate":0.32,"depreciation":320000},"…"],"table":"A-1","depreciableBasis":1000000,"section179":0,"bonus":0,"sources":[{"source":"IRS Publication 946 (2025) Appendix A GDS percentage tables","url":"https://www.irs.gov/publications/p946","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…","Rates are from IRS Publication 946 Appendix A GDS tables. The endpoint does not decide bonus eligibility; bonusPct is c…","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/lease-schedule":{"post":{"operationId":"lessee_lease_liability_and_rou_schedule","summary":"Lessee lease liability and ROU schedule","description":"Present-value a payment stream at the periodic discount rate and amortise the lease liability and right-of-use asset (IFRS 16 / ASC 842 finance-lease mechanics).","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payments":{"minItems":1,"maxItems":600,"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["date","amount"],"additionalProperties":false}},"commencement":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"discountRate":{"type":"number","minimum":0,"maximum":1},"timing":{"default":"arrears","type":"string","enum":["arrears","advance"]},"initialDirectCosts":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"incentives":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"periodicity":{"default":"annual","type":"string","enum":["annual","monthly"]}},"required":["payments","commencement","discountRate"],"additionalProperties":false},"example":{"payments":[{"date":"2027-01-01","amount":100000},{"date":"2028-01-01","amount":100000},{"date":"2029-01-01","amount":100000}],"commencement":"2026-01-01","discountRate":0.05,"timing":"arrears","periodicity":"annual"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"initialLiability":{"type":"number"},"rouAsset":{"type":"number"},"schedule":{"type":"array","items":{"type":["object","string"],"properties":{"period":{"type":"number"},"openingLiability":{"type":"number"},"interest":{"type":"number"},"payment":{"type":"number"},"closingLiability":{"type":"number"},"rouDepreciation":{"type":"number"}},"additionalProperties":true}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"initialLiability":272325,"rouAsset":272325,"schedule":[{"period":1,"openingLiability":272325,"interest":13616,"payment":100000,"closingLiability":185941,"rouDepreciation":90775},{"period":2,"openingLiability":185941,"interest":9297,"payment":100000,"closingLiability":95238,"rouDepreciation":90775},"…"],"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.04"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/revenue-recognition-schedule":{"post":{"operationId":"allocate_contract_price_to_performance_obligations","summary":"Allocate contract price to performance obligations","description":"Allocate transaction price by relative standalone selling price and schedule point-in-time, straight-line or milestone recognition by month.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"transactionPrice":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"obligations":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"ssp":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"pattern":{"type":"string","enum":["point_in_time","straight_line","milestone"]},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"milestones":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"pct":{"type":"number","minimum":0,"maximum":1}},"required":["date","pct"],"additionalProperties":false}}},"required":["id","ssp","pattern"],"additionalProperties":false}}},"required":["transactionPrice","obligations"],"additionalProperties":false},"example":{"transactionPrice":120000,"obligations":[{"id":"licence","ssp":100000,"pattern":"point_in_time","date":"2026-01-01"},{"id":"support","ssp":50000,"pattern":"straight_line","start":"2026-01-01","end":"2026-12-31"}]}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"allocation":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"allocated":{"type":"number"}},"additionalProperties":true}},"schedule":{"type":"array","items":{"type":["object","string"],"properties":{"month":{"type":"string"},"revenue":{"type":"number"}},"additionalProperties":true}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"allocation":[{"id":"licence","allocated":80000},{"id":"support","allocated":40000}],"schedule":[{"month":"2026-01","revenue":83397},{"month":"2026-02","revenue":3069},"…"],"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/loan-amortization-journal":{"post":{"operationId":"fixed_rate_loan_amortisation_journal","summary":"Fixed-rate loan amortisation journal","description":"Compute a level-payment amortisation table and balancing journal entries for a fixed-rate loan.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"principal":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"annualRate":{"type":"number","minimum":0,"maximum":1},"termMonths":{"type":"integer","exclusiveMinimum":0,"maximum":600},"firstPaymentDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"accounts":{"type":"object","properties":{"loan":{"type":"string","minLength":1,"maxLength":32},"interest":{"type":"string","minLength":1,"maxLength":32},"cash":{"type":"string","minLength":1,"maxLength":32}},"required":["loan","interest","cash"],"additionalProperties":false}},"required":["principal","annualRate","termMonths","firstPaymentDate","accounts"],"additionalProperties":false},"example":{"principal":1000000,"annualRate":0.06,"termMonths":12,"firstPaymentDate":"2026-02-01","accounts":{"loan":"2300","interest":"7100","cash":"1000"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"payment":{"type":"number"},"rows":{"type":"array","items":{"type":["object","string"],"properties":{"n":{"type":"number"},"interest":{"type":"number"},"principal":{"type":"number"},"balance":{"type":"number"},"payment":{"type":"number"}},"additionalProperties":true}},"entries":{"type":"array","items":{"type":["object","string"],"properties":{"date":{"type":"string"},"lines":{"type":"array","items":{"type":["object","string"],"properties":{"account":{"type":"string"},"debit":{"type":"number"},"credit":{"type":"number"}},"additionalProperties":true}}},"additionalProperties":true}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"payment":86066,"rows":[{"n":1,"interest":5000,"principal":81066,"balance":918934,"payment":86066},{"n":2,"interest":4595,"principal":81471,"balance":837463,"payment":86066},"…"],"entries":[{"date":"2026-02-01","lines":[{"account":"7100","debit":5000,"credit":0},{"account":"2300","debit":81066,"credit":0},"…"]},{"date":"2026-03-01","lines":[{"account":"7100","debit":4595,"credit":0},{"account":"2300","debit":81471,"credit":0},"…"]},"…"],"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/bank-reconciliation-match":{"post":{"operationId":"match_bank_lines_to_ledger_entries","summary":"Match bank lines to ledger entries","description":"Match bank statement lines to ledger entries by amount+reference, amount+date tolerance, and optional many-to-one subset sums.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"bank":{"maxItems":5000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"default":"","type":"string","maxLength":500}},"required":["id","date","amount"],"additionalProperties":false}},"ledger":{"maxItems":5000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ref":{"default":"","type":"string","maxLength":500}},"required":["id","date","amount"],"additionalProperties":false}},"dateToleranceDays":{"default":5,"type":"integer","minimum":0,"maximum":90},"allowManyToOne":{"default":true,"type":"boolean"}},"required":["bank","ledger"],"additionalProperties":false},"example":{"bank":[{"id":"b1","date":"2026-11-03","amount":-12000,"text":"ACME INV 1043"}],"ledger":[{"id":"l1","date":"2026-11-01","amount":-12000,"ref":"INV 1043"}],"dateToleranceDays":5,"allowManyToOne":true}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"matches":{"type":"array","items":{"type":"object","properties":{"bank":{"type":"array","items":{"type":"string"}},"ledger":{"type":"array","items":{"type":"string"}},"rule":{"type":"string"},"score":{"type":"number"}},"additionalProperties":true}},"unmatchedBank":{"type":"array","items":{}},"unmatchedLedger":{"type":"array","items":{}},"difference":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"matches":[{"bank":["b1"],"ledger":["l1"],"rule":"exact_amount_ref","score":1}],"unmatchedBank":[],"unmatchedLedger":[],"difference":0,"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.04"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/trial-balance-validate":{"post":{"operationId":"validate_a_trial_balance","summary":"Validate a trial balance","description":"Check debit/credit equality, abnormal balances by account type, duplicate codes and lines with both debit and credit.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accounts":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":32},"name":{"default":"","type":"string","minLength":1,"maxLength":128},"type":{"type":"string","enum":["asset","liability","equity","income","expense"]},"debit":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"credit":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"statementLine":{"type":"string","minLength":1,"maxLength":128}},"required":["code","type"],"additionalProperties":false}}},"required":["accounts"],"additionalProperties":false},"example":{"accounts":[{"code":"1000","name":"Cash","type":"asset","debit":50000,"credit":0},{"code":"2000","name":"AP","type":"liability","debit":0,"credit":50000}]}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"balanced":{"type":"boolean"},"totalDebit":{"type":"number"},"totalCredit":{"type":"number"},"difference":{"type":"number"},"issues":{"type":"array","items":{}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"balanced":true,"totalDebit":50000,"totalCredit":50000,"difference":0,"issues":[],"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/financial-statements-build":{"post":{"operationId":"build_income_statement_and_balance_sheet","summary":"Build income statement and balance sheet","description":"Roll a mapped trial balance into income-statement and balance-sheet lines, add net income to equity, and check A = L + E.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accounts":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":32},"name":{"default":"","type":"string","minLength":1,"maxLength":128},"type":{"type":"string","enum":["asset","liability","equity","income","expense"]},"debit":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"credit":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"statementLine":{"type":"string","minLength":1,"maxLength":128}},"required":["code","type"],"additionalProperties":false}}},"required":["accounts"],"additionalProperties":false},"example":{"accounts":[{"code":"4000","name":"Revenue","type":"income","debit":0,"credit":100,"statementLine":"Revenue"},{"code":"5000","name":"Expenses","type":"expense","debit":80,"credit":0,"statementLine":"Expenses"},{"code":"1000","name":"Cash","type":"asset","debit":120,"credit":0,"statementLine":"Current assets"},{"code":"2000","name":"AP","type":"liability","debit":0,"credit":100,"statementLine":"Current liabilities"}]}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"incomeStatement":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"amount":{"type":"number"}},"additionalProperties":true}},"netIncome":{"type":"number"}},"additionalProperties":true},"balanceSheet":{"type":"object","properties":{"assets":{"type":"number"},"liabilities":{"type":"number"},"equity":{"type":"number"},"balances":{"type":"boolean"},"lines":{"type":"array","items":{"type":["object","string"],"properties":{"line":{"type":"string"},"amount":{"type":"number"}},"additionalProperties":true}}},"additionalProperties":true},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"incomeStatement":{"lines":[{"line":"Revenue","amount":100},{"line":"Expenses","amount":80}],"netIncome":20},"balanceSheet":{"assets":120,"liabilities":100,"equity":20,"balances":true,"lines":[{"line":"Current assets","amount":120},{"line":"Current liabilities","amount":100},"…"]},"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/cash-flow-forecast-13w":{"post":{"operationId":"13_week_direct_cash_flow_forecast","summary":"13-week direct cash-flow forecast","description":"Bucket receivables, payables and recurring cash items into Monday-start weeks and report closing cash versus a minimum.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"openingCash":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"weekStart":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"receivables":{"default":[],"maxItems":5000,"type":"array","items":{"type":"object","properties":{"due":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"collectionDelayDays":{"default":0,"type":"integer","minimum":0,"maximum":365}},"required":["due","amount"],"additionalProperties":false}},"payables":{"default":[],"maxItems":5000,"type":"array","items":{"type":"object","properties":{"due":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"paymentDelayDays":{"default":0,"type":"integer","minimum":0,"maximum":365}},"required":["due","amount"],"additionalProperties":false}},"recurring":{"default":[],"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"every":{"type":"string","enum":["1w","2w","4w","monthly"]},"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["name","amount","every","start"],"additionalProperties":false}},"minimumCash":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["openingCash","weekStart"],"additionalProperties":false},"example":{"openingCash":500000,"weekStart":"2026-11-16","receivables":[{"due":"2026-11-20","amount":100000,"collectionDelayDays":7}],"payables":[],"recurring":[{"name":"payroll","amount":-200000,"every":"2w","start":"2026-11-27"}],"minimumCash":100000}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"weeks":{"type":"array","items":{"type":["object","string"],"properties":{"week":{"type":"number"},"start":{"type":"string"},"inflows":{"type":"number"},"outflows":{"type":"number"},"closing":{"type":"number"},"belowMinimum":{"type":"boolean"}},"additionalProperties":true}},"lowestWeek":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"weeks":[{"week":1,"start":"2026-11-16","inflows":0,"outflows":0,"closing":500000,"belowMinimum":false},{"week":2,"start":"2026-11-23","inflows":100000,"outflows":200000,"closing":400000,"belowMinimum":false},"…"],"lowestWeek":12,"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.04"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/fx-revaluation":{"post":{"operationId":"unrealised_fx_revaluation","summary":"Unrealised FX revaluation","description":"Revalue foreign-currency monetary balances at closing rates and propose unrealised gain/loss journal entries.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"functionalCurrency":{"type":"string","minLength":3,"maxLength":3},"balances":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"object","properties":{"account":{"type":"string","minLength":1,"maxLength":64},"currency":{"type":"string","minLength":3,"maxLength":3},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"carryingRate":{"type":"number","exclusiveMinimum":0},"type":{"type":"string","enum":["asset","liability"]}},"required":["account","currency","amount","carryingRate","type"],"additionalProperties":false}},"closingRates":{"type":"object","propertyNames":{"type":"string","minLength":3,"maxLength":3},"additionalProperties":{"type":"number","exclusiveMinimum":0}},"rateQuote":{"type":"string","enum":["foreign_per_functional","functional_per_foreign"]},"accounts":{"default":{"gainLoss":"7900"},"type":"object","properties":{"gainLoss":{"default":"7900","type":"string","minLength":1,"maxLength":32}},"additionalProperties":false},"asOf":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["functionalCurrency","balances","closingRates","rateQuote"],"additionalProperties":false},"example":{"functionalCurrency":"GBP","balances":[{"account":"1200","currency":"USD","amount":100000,"carryingRate":1.25,"type":"asset"}],"closingRates":{"USD":1.3},"rateQuote":"functional_per_foreign"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string"},"currency":{"type":"string"},"carrying":{"type":"number"},"revalued":{"type":"number"},"gainLoss":{"type":"number"}},"additionalProperties":true}},"totalGainLoss":{"type":"number"},"functionalCurrency":{"type":"string"},"entries":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string"},"debit":{"type":"number"},"credit":{"type":"number"}},"additionalProperties":true}}},"additionalProperties":true}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"lines":[{"account":"1200","currency":"USD","carrying":125000,"revalued":130000,"gainLoss":5000}],"totalGainLoss":5000,"functionalCurrency":"GBP","entries":[{"date":"2026-11-14","lines":[{"account":"1200","debit":5000,"credit":0},{"account":"7900","debit":0,"credit":5000}]}],"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/inventory-costing":{"post":{"operationId":"fifo_weighted_average_and_specific_id_costing","summary":"FIFO, weighted-average and specific-ID costing","description":"Cost inventory issues under FIFO, perpetual weighted average or specific identification and report closing quantity and value.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"method":{"type":"string","enum":["FIFO","WAVG","SPECIFIC"]},"movements":{"minItems":1,"maxItems":20000,"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"type":{"type":"string","enum":["receipt","issue"]},"qty":{"type":"number","exclusiveMinimum":0},"unitCost":{"type":"integer","minimum":0,"maximum":9007199254740991},"lotId":{"type":"string","minLength":1,"maxLength":64}},"required":["date","type","qty"],"additionalProperties":false}}},"required":["method","movements"],"additionalProperties":false},"example":{"method":"FIFO","movements":[{"date":"2026-01-01","type":"receipt","qty":100,"unitCost":10},{"date":"2026-01-02","type":"receipt","qty":50,"unitCost":13},{"date":"2026-01-03","type":"issue","qty":120}]}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"issues":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"qty":{"type":"number"},"cogs":{"type":"number"}},"additionalProperties":true}},"closing":{"type":"object","properties":{"qty":{"type":"number"},"value":{"type":"number"},"unitCost":{"type":"number"}},"additionalProperties":true},"method":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"issues":[{"date":"2026-01-03","qty":120,"cogs":1260}],"closing":{"qty":30,"value":390,"unitCost":13},"method":"FIFO","sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/accrual-prepaid-schedule":{"post":{"operationId":"prepaid_accrual_amortisation_schedule","summary":"Prepaid/accrual amortisation schedule","description":"Spread a prepaid or accrual amount over months on a daily or equal-month basis with balancing journal entries.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"basis":{"default":"daily","type":"string","enum":["daily","monthly_equal"]},"accounts":{"type":"object","properties":{"prepaid":{"type":"string","minLength":1,"maxLength":32},"expense":{"type":"string","minLength":1,"maxLength":32}},"required":["prepaid","expense"],"additionalProperties":false}},"required":["amount","start","end","accounts"],"additionalProperties":false},"example":{"amount":120000,"start":"2026-01-15","end":"2027-01-14","basis":"daily","accounts":{"prepaid":"1400","expense":"6200"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"periods":{"type":"array","items":{"type":["object","string"],"properties":{"month":{"type":"string"},"amount":{"type":"number"}},"additionalProperties":true}},"entries":{"type":"array","items":{"type":["object","string"],"properties":{"date":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string"},"debit":{"type":"number"},"credit":{"type":"number"}},"additionalProperties":true}}},"additionalProperties":true}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"periods":[{"month":"2026-01","amount":5589},{"month":"2026-02","amount":9205},"…"],"entries":[{"date":"2026-01-28","lines":[{"account":"6200","debit":5589,"credit":0},{"account":"1400","debit":0,"credit":5589}]},{"date":"2026-02-28","lines":[{"account":"6200","debit":9205,"credit":0},{"account":"1400","debit":0,"credit":9205}]},"…"],"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/intercompany-eliminate":{"post":{"operationId":"intercompany_balance_elimination","summary":"Intercompany balance elimination","description":"Pair entity/counterparty intercompany balances, flag differences above tolerance, and propose elimination entries for matched amounts.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"balances":{"minItems":2,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1,"maxLength":64},"counterparty":{"type":"string","minLength":1,"maxLength":64},"account":{"type":"string","minLength":1,"maxLength":128},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["entity","counterparty","account","amount","currency"],"additionalProperties":false}},"tolerance":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["balances"],"additionalProperties":false},"example":{"balances":[{"entity":"UK","counterparty":"US","account":"IC receivable","amount":100000,"currency":"GBP"},{"entity":"US","counterparty":"UK","account":"IC payable","amount":-98000,"currency":"GBP"}],"tolerance":1000}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"pairs":{"type":"array","items":{"type":"object","properties":{"entities":{"type":"array","items":{"type":"string"}},"difference":{"type":"number"},"withinTolerance":{"type":"boolean"}},"additionalProperties":true}},"eliminations":{"type":"array","items":{}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"pairs":[{"entities":["UK","US"],"difference":2000,"withinTolerance":false}],"eliminations":[],"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/journal-anomaly-detect":{"post":{"operationId":"rule_based_journal_anomaly_flags","summary":"Rule-based journal anomaly flags","description":"Flag round amounts, weekend/after-hours postings, amount z-scores, duplicates and Benford first-digit chi-square on journal lines.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"entries":{"minItems":1,"maxItems":20000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"postedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"user":{"type":"string","maxLength":64},"account":{"type":"string","minLength":1,"maxLength":64},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":{"default":"","type":"string","maxLength":500}},"required":["id","date","account","amount"],"additionalProperties":false}},"rules":{"default":{"weekendPosting":true,"zScore":3},"type":"object","properties":{"roundAmountMultiple":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"weekendPosting":{"default":true,"type":"boolean"},"afterHours":{"type":"array","prefixItems":[{"type":"string","pattern":"^\\d{2}:\\d{2}$"},{"type":"string","pattern":"^\\d{2}:\\d{2}$"}],"items":false,"minItems":2,"maxItems":2},"zScore":{"default":3,"type":"number","exclusiveMinimum":0}},"additionalProperties":false}},"required":["entries"],"additionalProperties":false},"example":{"entries":[{"id":"j1","date":"2026-11-14","postedAt":"2026-11-15T23:30:00.000Z","user":"a","account":"6000","amount":1000000,"description":"adj"}],"rules":{"roundAmountMultiple":100000,"weekendPosting":true,"afterHours":["20:00","06:00"],"zScore":3}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"rules":{"type":"array","items":{"type":"string"}}},"additionalProperties":true}},"benford":{"type":"object","properties":{"chiSquare":{"type":"number"},"df":{"type":"number"},"pValue":{"type":"number"}},"additionalProperties":true},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"flags":[{"id":"j1","rules":["round_amount","weekend_posting","…"]}],"benford":{"chiSquare":2.321928,"df":8,"pValue":0.969518},"sources":[{"source":"Caller-supplied ledgers, contracts, asset registers and rates processed locally","url":"https://www.brainiac.software/api/v1/accounting-schedules","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.04"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/accounting-schedules/form-1099-threshold-check":{"post":{"operationId":"form_1099_threshold_check","summary":"Form 1099 threshold check","description":"Sum payee payments by category for tax year 2026 and flag 1099-NEC / 1099-MISC boxes that meet IRS thresholds.","tags":["accounting-schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"taxYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"payments":{"minItems":1,"maxItems":20000,"type":"array","items":{"type":"object","properties":{"payeeId":{"type":"string","minLength":1,"maxLength":64},"payeeType":{"type":"string","enum":["individual","corporation","attorney"]},"category":{"type":"string","enum":["services","rents","royalties","attorney_proceeds","prizes","other_income","medical"]},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"paidByCardOrThirdParty":{"default":false,"type":"boolean"}},"required":["payeeId","payeeType","category","amount"],"additionalProperties":false}}},"required":["taxYear","payments"],"additionalProperties":false},"example":{"taxYear":2026,"payments":[{"payeeId":"v1","payeeType":"individual","category":"services","amount":250000,"paidByCardOrThirdParty":false}]}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"payees":{"type":"array","items":{"type":"object","properties":{"payeeId":{"type":"string"},"form":{"type":"string"},"box":{"type":"string"},"total":{"type":"number"},"threshold":{"type":"number"},"required":{"type":"boolean"}},"additionalProperties":true}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"payees":[{"payeeId":"v1","form":"1099-NEC","box":"1a","total":250000,"threshold":200000,"required":true}],"sources":[{"source":"IRS Instructions for Forms 1099-MISC and 1099-NEC; P.L. 119-21 $2,000 general threshold for tax years beginning after 2…","url":"https://www.irs.gov/instructions/i1099mec","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Outputs are schedules and journal-entry proposals for an accountant's review. They are not audited figures, tax determi…","Thresholds apply for tax year 2026 only ($2,000 general; royalties $10; attorney gross proceeds $600). Card/third-party…","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}}},"components":{"schemas":{"ApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}}}}}}}}