Command line
The payware command runs any API operation from a terminal. It is one file with no dependencies, generated from the same OpenAPI file as this reference, and needs Node 20 or later (or Bun).
curl -fsSL https://payware.dev/cli/install.sh | sh
export PAYWARE_API_KEY=sk_test_...
payware ops payment-link
payware create-payment-link --data '{"kind":"payment","amount":5000,"currency":"RON","description":"Consulting hour"}'
payware retrieve-payment --id pay_123
payware api GET /v1/account
The first line puts a payware launcher in ~/.local/bin and the command in ~/.payware (PAYWARE_BIN and PAYWARE_HOME change both). Read the script first at https://payware.dev/cli/install.sh if you prefer. Without the installer, download https://payware.dev/cli/payware.mjs and run it with node payware.mjs.
- Every operation is a command named after the operation in kebab case (
list-payment-links,cancel-payment-link).opslists them, with an optional filter. - Path and query parameters are flags with the parameter's name (
--id,--limit,--starting_after). A body is passed with--data '<json>',--data @file.jsonor--data -for standard input. - The key is read from
PAYWARE_API_KEYonly, never from a flag, and is never printed. A live key (sk_live_) is refused unless you add--live. Use an agent key when an agent runs the command. - Every change sends an
Idempotency-Key: a random one, or the one you give with--idempotency-key. Reuse a key only to retry the same request. - The response is printed as JSON. A non-2xx response prints
HTTP <status>to standard error and exits with 1; a usage error exits with 2. PAYWARE_API_URLpoints the command at another address (https only, orhttp://localhostwhile developing).
The command never takes a card number: cards are entered on a page NETOPIA Payments hosts.
WebMCP
Pages of this website register two read-only tools with browsers that support WebMCP: payware_connection_info (the API, MCP, OpenAPI, skill and CLI addresses and the rules to follow) and payware_docs_search (where to read about a topic). They take no key and start no payment.