Create refund
numeral_create_refundRECORDS a refund against a transaction — this WRITES a live tax/compliance record (adjusts tax owed). Use type="full" to refund the whole transaction, or type="partial" with line_items (each keyed by reference_product_id) for a partial refund. Numeral: POST /tax/refunds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | "full" refunds the whole transaction; "partial" requires line_items. | |
| line_items | No | Required for type="partial": the line items to refund. | |
| transaction_id | Yes | The transaction id (tr_...) to refund. | |
| refund_processed_at | No | Unix timestamp (SECONDS) the refund was made. Defaults to now if omitted. |