# Credit Note PDF Generator

> Credit Note PDF Generator is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.004977/call, status unknown (last checked 2026-09-14).

Generates a professional A4 credit note PDF with negative-line support, totals, and refund slip for accounting corrections against original invoices

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-credit-note
- Price: $0.004977/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/credit-note-pdf-generator-2c5aa8c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bsORT_Evrrw5TV-YtSgk2

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 credit-note-pdf-generator-2c5aa8c9 -d '<json body>'
```

Example prompt: Can you generate a credit note PDF for a refund of $150 against invoice INV-2024-0042, issued to Acme Corp, with two negative line items: a $100 refund on consulting services and a $50 refund on travel expenses?

## When to prefer this

Choose this endpoint when you need a formally formatted, printable A4 credit note PDF with negative-line item support and a refund slip — particularly for accounting workflows, accounts payable corrections, or customer-facing refund documentation. Prefer this over plain invoice generators when the document must represent a credit or negative amount against an existing invoice. It requires no account or API key, only a per-call USDC micropayment.

## Known failure modes

- Malformed or missing request JSON body returns an error response
- Invalid or incomplete credit note fields (e.g. missing recipient or line items) may produce a malformed document
- Payment failure via x402/USDC prevents execution
- Network timeout from the Cloudflare Workers relay
- Unsupported currency or locale formats may not render correctly

## How this service works

Credit note PDF for refunds and corrections against an original invoice — real A4 accounting document with negative-line support and totals; credit note and refund slip API. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-credit-note","request":"<input>"}.

## Output

A rendered A4-format PDF credit note document containing negative line items, subtotals, tax adjustments, grand total credit amount, and a refund slip — suitable for formal accounting records and sending to customers as documentation of a credit or refund.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/credit-note-pdf-generator-2c5aa8c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
