{"uid":"cap_7l410y0Bmdproi7p_wnOl","slug":"settlement-ledger-line-94d0d5c0","name":"Settlement Ledger Line","description":"Turn a USDC settlement into bookkeeping lines: amount, accounts, memo, optional Base tx= enrichment (status, timestamp, to). Returns journal JSON plus a two-line CSV. Not tax advice.","url":"https://402.com.tr/api/x402/settlement-line","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":[],"properties":{"tx":{"type":"string","description":"Base tx hash (optional)"},"memo":{"type":"string","description":"Memo"},"asset":{"type":"string","description":"Asset"},"amount":{"type":"string","description":"Amount"},"counterparty":{"type":"string","description":"Counterparty"},"debitAccount":{"type":"string","description":"Debit account"},"creditAccount":{"type":"string","description":"Credit account"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Wz5Vh0PhAVmh5LAeigMfv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a USDC settlement amount into double-entry bookkeeping journal entries and CSV, optionally enriched with Base blockchain transaction data.","exampleAgentPrompt":"Create bookkeeping journal entries for a $50 USDC settlement — debit 'Cash' and credit 'Revenue', memo 'Invoice #1042', counterparty 'Acme Corp'. The Base tx hash is 0xabc123...","exampleUseCases":[{"title":"Invoice payment to ledger entry","prompt":"I just received a 200 USDC payment from a client. Can you generate the journal lines for it — debit 'Accounts Receivable' credit 'Cash', memo 'Client payment Q2', counterparty 'Globex LLC'?"},{"title":"On-chain tx reconciliation with enrichment","prompt":"Turn this Base transaction 0xdeadbeef... into accounting entries for me: $75 USDC, debit 'Operating Expenses' and credit 'USDC Wallet'. I want to see the tx status and timestamp too."},{"title":"Contractor payout bookkeeping","prompt":"Record a USDC contractor payout of $500 — debit 'Contractor Fees' and credit 'USDC Cash Account', memo 'Design work May 2025', counterparty 'Freelancer Jane'. Give me the journal JSON and the CSV."}],"resultDescription":"Returns a JSON journal object containing the debit and credit lines (amount, account names, memo, counterparty) plus a two-line CSV ready for import into accounting software. If a Base transaction hash is provided, the response is enriched with on-chain status, timestamp, and recipient address.","failureModes":["Missing required amount parameter returns an error or incomplete journal","Invalid Base tx hash returns no on-chain enrichment or an error from the blockchain lookup","Malformed account names may produce valid but incorrect journal lines","Service may timeout if Base node is slow when enriching tx data","Non-USDC asset strings may be accepted but yield unvalidated accounting lines"],"whenToPreferThis":"Choose this endpoint when you need to convert a known USDC payment amount into structured double-entry bookkeeping records, especially if you want to simultaneously enrich with real Base blockchain transaction data. Prefer it over generic accounting APIs when your workflow involves on-chain stablecoin settlements that need to be reconciled into traditional accounting formats with debit/credit account labels.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:53:36.712Z","isFirstParty":false}