Reference
API reference
Every endpoint of the HisarPay REST API, by group. The reference is generated from the OpenAPI definition.
Basics
- Base URL
https://hisarpay.com/v1- Authentication
Authorization: Bearer <API key>- Format
- JSON bodies, decimal amounts as strings
- Version
- 1.0.0 · OpenAPI 3.1
Invoices
Create, look up and cancel invoices, and simulate payments in test mode.
- POST/v1/invoicesCreate an invoice
- GET/v1/invoicesList invoices (newest first)
- GET/v1/invoices/by-order/{order_id}Get an invoice by your order id
- GET/v1/invoices/{id}Get an invoice with its payments
- POST/v1/invoices/{id}/cancelCancel a pending invoice with nothing received
- POST/v1/invoices/{id}/simulateSimulate a payment (test keys only)
Payment links
Reusable payment pages with QR codes: create, limit, pause and archive them.
Balances
Available, pending and held balance per coin, and the ledger entries behind them.
Withdrawals
Withdrawals from your balance to trusted saved addresses.
Webhooks and events
Manage endpoints, read the event history and resend events.
- GET/v1/webhook-endpointsList webhook endpoints
- POST/v1/webhook-endpointsAdd a webhook endpoint (the signing secret is returned once)
- GET/v1/webhook-endpoints/{id}Retrieve a webhook endpoint
- PATCH/v1/webhook-endpoints/{id}Update a webhook endpoint
- DELETE/v1/webhook-endpoints/{id}Delete a webhook endpoint
- POST/v1/webhook-endpoints/{id}/rotate-secretRotate the signing secret (old secret keeps signing for 24 h)
- GET/v1/eventsList events
- POST/v1/events/{id}/resendRe-deliver an event to all matching endpoints
Reports
CSV, Excel and PDF exports rendered in the background.
Reference data
Rates, coins and limits, processing status and chain lookups.
Objects
The objects the API returns, with every field. The endpoint pages link here.