Create payment
documentedRecord a new payment against this invoice.
POST /api/invs/{hash_key}/paymentsInvoicesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$subdomain}}.hiveage.com/api/invs/{{$hash_key}}/payments" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u "{{HIVEAGE_API_KEY}}:" \
-d '{"payment": {"amount": "{{$amount}}", "date": "{{$date}}", "payment_method": "{{$payment_method}}", "details": "{{$details}}"}}' \
# Sources: Hiveage API reference shows the payments resource under invoices: e.g., List All Payments (GET) at /api/invs/[invoice_hash_key]/payments and Retrieve/Update/Mark_as_realized patterns under /api/invs/[invoice_hash_key]/payments[/id]. See Hiveage API docs for payments endpoints.
# - List All Payments: GET https://[subdomain].hiveage.com/api/invs/[invoice_hash_key]/payments
# - Retrieve a Payment: GET https://[subdomain].hiveage.com/api/invs/[invoice_hash_key]/payments/10
# - Update a Payment: PUT https://[subdomain].hiveage.com/api/invs/[invoice_hash_key]/payments/10
# - Mark as Realized: POST https://[subdomain].hiveage.com/api/invs/[invoice_hash_key]/payments/[id]/mark_as_realized