Skip to main content

Documentación

Cancel Refund

Cancels the refund of a payment.

Nota

  • When the payment is created, refund_cancelation must be set to true.

  • The refund must have a status of Completed or Pending.

  • To activate this feature, contact Rapyd Client Support.

    • refund

    • The ID of the refund. String starting with refund_.

    • is_advice

    • Determines whether the cancellation is online or advice.

      • true - The cancellation is advice.

      • false - The cancellation is online.

      false

  • /v1/refunds

  • Cancel Refund

  • curl -X delete 'https://sandboxapi.rapyd.net/v1/refunds/refund_3677a8746636786eff448afd60ffde91' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
        "ewallets": [
            {
                "ewallet": "ewallet_8818c1e4c2185f4137822ea58f952e2a",
                "amount": 1.14
            }
        ],
        "is_advice": false
    }'
  • {
        "id": "refund_ba619571ef453fb66d39cc17b67e0084",
        "amount": 1.14,
        "payment": "payment_e13505a3b2802b54ee81829bdecbf74d",
        "currency": "ILS",
        "failure_reason": "",
        "failure_code": "",
        "metadata": {},
        "reason": "Direct Refund",
        "status": "Cancelled",
        "receipt_number": 0,
        "created_at": 1772361734,
        "updated_at": 1772361748,
        "merchant_ewallet": null,
        "merchant_reference_id": "39001004",
        "payment_created_at": 1772361733,
        "payment_method_type": "il_visa_shva_card",
        "ewallets": [
            {
                "ewallet": "ewallet_8818c1e4c2185f4137822ea58f952e2a",
                "amount": 1.14
            }
        ],
        "proportional_refund": true,
        "merchant_debited_amount": null,
        "merchant_debited_currency": null,
        "fx_rate": null,
        "fixed_side": null
    }