Skip to main content
POST
This endpoint cancels a refund that is in pending or processing status. Once a refund is completed, it cannot be cancelled.

Authentication

This endpoint requires a valid API key with refunds:write permissions.

Path Parameters

string
required
The unique identifier of the refund to cancel

Request Body

string
Reason for cancellation
boolean
Whether to notify customer of cancellation

Response

Returns the cancelled refund object.