{"api":"v1","generated_at":"2026-09-16T01:51:55.959Z","licence":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"TOLL, with a link to the page cited"},"page":"https://tollindex.com/e/stackbill-app-routes-x402-invoice-from-data-b8074b","pinned_page":"https://tollindex.com/e/stackbill-app-routes-x402-invoice-from-data-b8074b/at/2026-09-15T21-20Z","pinned":false,"method":"https://tollindex.com/ledger/method","snapshot_at":"2026-09-15T21:20:12.737Z","snapshot_stamp":"2026-09-15T21-20Z","endpoint":{"slug":"stackbill-app-routes-x402-invoice-from-data-b8074b","canonical_url":"https://stackbill.app/routes/x402/invoice-from-data","resource":"https://stackbill.app/routes/x402/invoice-from-data","http_method":"POST","type":"http","x402_version":2,"registries":["cdp"],"primary_registry":"cdp","curated_by_coinbase":false,"description":"Generate a finished, professional invoice PDF from JSON — recipient and line items in, a ready-to-send application/pdf out. Layouts: standard, legal, creative. Totals and tax are computed server-side so the numbers always add up. First payment auto-creates a wallet profile (token + API key in response headers); returning wallets get sequential invoice numbering and can save a sender letterhead. USD only.","service_name":"Stack Billing","declared_category":null,"declared_tags":["invoice","invoice-pdf","invoice-generator","billing","pdf-generation"],"route_template":null,"registry_updated":"2026-09-14T14:53:01.677Z"},"derived":{"note":"fields no registry supplies; TOLL derives them and marks them derived on the page","title":"routes invoice from data","category":"market-data","first_observed_by_toll":"2026-09-10T19:08:24.178Z","last_observed_by_toll":"2026-09-15T21:20:12.737Z","observation_began":"2026-09-10"},"presence":{"listed_now":true,"first_absent_at":null,"delisting_confirmed_at":null,"events":[{"registry":"cdp","at":"2026-09-10T19:08:24.178Z","event":"listed"}]},"accepts":[{"registry":"cdp","ordinal":0,"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","asset_name":"USD Coin","symbol":"USDC","decimals":6,"amount_display":"0.1 USDC","amount_units":0.1,"decimals_known":true,"pay_to":"0x1f2A484ef654d49c58c625b09e78B538501D652D","scheme":"exact"}],"counters":{"observed_at":"2026-09-15T21:20:12.737Z","calls_30d":2,"unique_payers_30d":1,"last_called_at":"2026-09-14T14:53:01.163Z"},"validation":{"latest":{"observed_at":"2026-09-15T06:19:43.950Z","state":"pass","failed_checks":[],"endpoint_http_status":402,"run_id":"daily-2026-09-15"},"uptime":[{"days":7,"observed":5,"passed":5,"ratio":1},{"days":30,"observed":5,"passed":5,"ratio":1},{"days":90,"observed":5,"passed":5,"ratio":1}],"history_90d":[{"observed_at":"2026-09-15T06:19:43.950Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-15","state_changed":false},{"observed_at":"2026-09-14T05:49:48.961Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-14","state_changed":false},{"observed_at":"2026-09-13T05:42:46.151Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-13","state_changed":false},{"observed_at":"2026-09-12T07:59:46.598Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-12","state_changed":false},{"observed_at":"2026-09-11T11:55:09.506Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-11","state_changed":true}]},"seller":{"wallet":"0x1f2A484ef654d49c58c625b09e78B538501D652D","page":"https://tollindex.com/seller/0x1f2A484ef654d49c58c625b09e78B538501D652D","endpoints":14,"hosts":3},"reports":0,"registry_record":{"cdp":[{"tags":["invoice","invoice-pdf","invoice-generator","billing","pdf-generation"],"type":"http","accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"payTo":"0x1f2A484ef654d49c58c625b09e78B538501D652D","amount":"100000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":300}],"quality":{"lastCalledAt":"2026-09-14T14:53:01.163Z","l30DaysTotalCalls":2,"l30DaysUniquePayers":1},"resource":"https://stackbill.app/routes/x402/invoice-from-data","extensions":{"bazaar":{"info":{"input":{"body":{"notes":"Payment due within 30 days.","sender":{"name":"Jane Doe Consulting","address":"123 Main St, Springfield, IL 62701"},"dueDate":"2026-08-01","taxRate":7.5,"currency":"USD","lineItems":[{"quantity":10,"unitPrice":95,"description":"Backend development"},{"quantity":2,"unitPrice":120,"description":"Code review"}],"recipient":{"name":"Acme Corp","address":"456 Oak Ave, Chicago, IL 60601"},"invoiceNumber":"INV-2026-042"},"type":"http","method":"POST","bodyType":"json"},"output":{"type":"json","example":{"note":"application/pdf — the finished invoice document"}}},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["recipient","lineItems"],"properties":{"notes":{"type":"string","description":"Optional notes printed at the bottom of the invoice"},"sender":{"type":"object","required":["name","address"],"properties":{"name":{"type":"string"},"address":{"type":"string"}},"description":"Who the invoice is from. Optional for activated wallet profiles (send X-StackApps-Token) — the profile's saved name and address are used"},"dueDate":{"type":"string","description":"Optional due date, YYYY-MM-DD"},"taxRate":{"type":"number","minimum":0,"description":"Optional tax percent applied to the subtotal (e.g. 7.5)"},"currency":{"type":"string","description":"Optional; must be \"USD\" if present (v1 renders USD only)"},"template":{"enum":["standard","legal","creative"],"type":"string","description":"Optional PDF layout (default standard): legal = billing statement with a per-line Date column (populated when descriptions start with 'Work session on YYYY-MM-DD: '); creative = service/fee layout without hours-rate columns (service name taken from the text before ': ' in each description)"},"lineItems":{"type":"array","items":{"type":"object","required":["description","quantity","unitPrice"],"properties":{"quantity":{"type":"number","exclusiveMinimum":0},"unitPrice":{"type":"number","minimum":0},"description":{"type":"string"}}},"description":"At least one line item; amount per line, subtotal, tax and total are computed server-side"},"recipient":{"type":"object","required":["name","address"],"properties":{"name":{"type":"string"},"address":{"type":"string"}},"description":"Who the invoice is billed to"},"invoiceNumber":{"type":"string","description":"Invoice number printed on the PDF. Optional when the request carries an X-StackApps-Token header from a previous paid call — the next sequential number for that wallet is used and returned in the X-Invoice-Number response header"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}}},"description":"Generate a finished, professional invoice PDF from JSON — recipient and line items in, a ready-to-send application/pdf out. Layouts: standard, legal, creative. Totals and tax are computed server-side so the numbers always add up. First payment auto-creates a wallet profile (token + API key in response headers); returning wallets get sequential invoice numbering and can save a sender letterhead. USD only.","lastUpdated":"2026-09-14T14:53:01.677Z","serviceName":"Stack Billing","x402Version":2}]}}