refund_payment
Mark a payment refunded: pass payment_id, and optionally amount (up to the payment amount; the whole payment otherwise) and reason. It records the refund in Last Price, and answers 400 when the payment is already refunded. Needs a claimed Last Price credential with billing write scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | How much to refund. Defaults to the whole payment. | |
| reason | No | Why it was refunded. | |
| payment_id | Yes | The payment: its id, as list_payments shows it. |