Delete a refund
Removes a chargeback or record-only refund that was entered by mistake. Only works for a refund with is_chargeback or record_only set, on a gateway that belongs to your account; any other refund gets 422. No money moves: a refund that really sent money back cannot be deleted. The refund is removed from reports and the refund:deleted event fires. The payment and order go back to completed when nothing else refunds them, and what the refund took off an open cart or invoice, or out of the customer's balance, is put back.
Needs a secret or trusted token. Limited tokens get 403.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
refund_id*stringThe refund id.
The refund was deleted. No body.
curl -X DELETE 'https://api.comecero.com/api/v1/refunds/string'Update a refund POST
Changes your `comments` or `meta` on a refund. Amounts and status cannot be changed. No money moves and no event fires. Needs a secret or trusted token. Limited tokens get `403`.
List a refund's commissions GET
Lists the commissions recorded for one refund. A refund takes back the commission paid on the sale, so the totals are negative. Offset-based (`offset`, `limit`). `sort_by` takes `date_created` (default) or `date_modified`. Note that the paging URLs in the response point to `/payments/{refund_id}/commissions`; build the next page URL from `next_page_offset` instead. Needs a secret or trusted token that may read commissions. Limited tokens get `403`.