Add an invoice
Adds a payable or a receivable, checked by the rules of the console's invoice form, and recorded in the ledger as create_invoice with via: "api" and the key's id. It is added as the key's issuer's: if the agent holds it, the issuer cannot approve it, unless they are the workspace's only approver.
The agent decides a payable as one typed in, with every guardrail and the workspace's limits, usually within a minute. The API never approves or pays. A counterpartyId the workspace does not hold, including another workspace's, answers 400.
Request
- Base URL: https://www.vestiarion.xyz
- URL: https://www.vestiarion.xyz/api/v1/invoices
- Auth: HTTP bearer
Headers
Makes a retry safe: up to 255 printable ASCII characters, unique to the record being added, such as its id in your own system. A repeat with the same key and the same body within 24 hours gets the first answer back, with Idempotent-Replayed: true, and adds nothing. The same key with a different body answers 409.
Request body
Response
Created
Changes
No recorded changes to this operation across all 1 revision of this API.