comecerodocs

Delete a refund

DELETE
/refunds/{refund_id}

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.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

refund_id*string

The refund id.

Response Body

The refund was deleted. No body.

Example Request
curl -X DELETE 'https://api.comecero.com/api/v1/refunds/string'
Example Response
Empty