- Creates a shareable link and appends local lifecycle row at ~/.money/payment-links.csv.
# SDK method (no HTTP endpoint)
# Use JavaScript snippet instead.
Example success response
{
"url": "https://example.local/receive?receiver=fast1rv8wsdd5pnkwt4u637g2yj4tpuyq26rzw8380rfhpnsnljz7v3tqv4njuq&amount=10&chain=fast",
"payment_id": "pay_...",
"chain": "fast",
"amount": "10"
}Example failure responses
Failure
{
"error": "Invalid address for chain fast: fast1...",
"code": "INVALID_ADDRESS"
}Recovery: Use a receiver address valid for the selected chain.
Failure
{
"error": "Amount must be a positive number",
"code": "INVALID_PARAMS"
}Recovery: Use decimal notation and a value greater than zero.
- Use `direction` and `chain` filters to narrow reconciliation views.
# SDK method (no HTTP endpoint)
# Use JavaScript snippet instead.
Example success response
{
"entries": []
}Example failure responses
Failure
{
"error": "limit must be a positive integer.",
"code": "INVALID_PARAMS"
}Recovery: Use a positive integer limit value.
Fetch Payment Markdown
HTTP endpointGEThttps://example.local/api/pay?receiver=fast1rv8wsdd5pnkwt4u637g2yj4tpuyq26rzw8380rfhpnsnljz7v3tqv4njuq&amount=10&chain=fast&token=SETUSDC&network=testnet&memo=intent%3Aabc
- Response includes YAML frontmatter with `type: payment_request` and `payment_id`.
curl -X GET 'https://example.local/api/pay?receiver=fast1rv8wsdd5pnkwt4u637g2yj4tpuyq26rzw8380rfhpnsnljz7v3tqv4njuq&amount=10&chain=fast&token=SETUSDC&network=testnet&memo=intent%3Aabc' \
-H 'Accept: text/markdown'
Example success response
{
"contentType": "text/markdown",
"snippet": "---\ntype: payment_request\nversion: \"2.0\"\n...\n---\n\n# Payment Request ..."
}Example failure responses
HTTP 400
{
"error": "Missing required param: receiver"
}Recovery: Provide full receiver/amount/chain params in the URL query.
HTTP 400
{
"error": "Unsupported chain: unknown-chain. Supported: fast, base, ..."
}Recovery: Use one of the supported chain names.