txn_meta_set
Add or replace transaction annotations by company and transaction ID or reference, passing string key-value metadata; each change returns an undo receipt.
Instructions
Add or replace transaction annotations. Send values as an object of strings, e.g. {"status":"pending"}. Provide company and exactly one of id or reference. Reserved keys: correlate, reverses, reversed_by, proposal_id, applies_to, beankeeper_source. applies_to is set only when posting a payment and points at the charge it paid (its reference or txn:); a tag shared by payment and invoice links nothing. To link a posted payment, use document_allocate for typed invoices and bills, otherwise txn_link with kind payment. A change returns an undo receipt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| values | Yes | Send values as an object of string values, e.g. {"status":"pending"}, or as a legacy array, e.g. ["status=pending"]. Reserved keys: correlate, reverses, reversed_by, proposal_id, applies_to, beankeeper_source. | |
| company | Yes | ||
| reference | No |