# Settlement Ledger Line

> Settlement Ledger Line is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Converts a USDC settlement amount into double-entry bookkeeping journal entries and CSV, optionally enriched with Base blockchain transaction data.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/settlement-line
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/settlement-ledger-line-94d0d5c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7l410y0Bmdproi7p_wnOl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability settlement-ledger-line-94d0d5c0
```

Example prompt: 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...

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/settlement-ledger-line-94d0d5c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
