This site requires javascript to be enabled.

Results for

xxx

Undo approve refund

POST https://{domainname}/v1/{merchantId}/refunds/{refundId}/cancelapproval

Refunds

The refund API allows you to manipulate refunds that have been created on a payment. Funds will be refunded to either the card or wallet that was originally charged or to a bank account if a direct refund is not possible

Request

This API undoes the approval of the refund. Successful execution of this API puts back the status of a refund resource to PENDING_APPROVAL.

To execute this REST service refund resource must be at status REFUND_REQUESTED

Request example

SDK: Node.js

This scenario you will probably use the most

  • const sdkResponse = await client.v1.refunds.cancelapproval("merchantId", "refundId");
    // sdkResponse has the following properties:
    // - status: the HTTP status code
    // - body: the response body
    // - isSuccess: true if the call was successful,
    //              or false if the Worldline Global Collect platform returned an error response
    

Responses

Please find below an overview of the possible responses.

Response 204 - No content

For every successful cancellation of the approval of the refund request a HTTP 204 response is returned.