API Referencev1.0
HomeLog inSign up
CARD PAYMENTS

Refund a card payment (mock only)

POSThttps://production.dutchapi.co/v1/card-payments/{id}/refund

Marks an eligible succeeded mock payment refunded. This does not initiate a network refund or move money.

🔒Send the project API key as a Bearer token and your Business ID with this call. Also requires an Idempotency-Key header.

AVAILABLE ON 25 DECEMBER 2026. Refund requests operate only on mock records in non-production mode; no real card transaction can be refunded by this foundation.

The /api/v1/card-payments/:id/refund compatibility prefix is also available.

Responses

{
  "id": "cp_mock_4c8f70a64b22458c8de92f3a",
  "status": "refunded",
  "refundReference": "rf_mock_a813dfc7",
  "refundedAt": "2026-10-28T12:30:00.000Z",
  "mode": "mock",
  "liveProcessing": false
}
{
  "error": "idempotency_key_required",
  "message": "Send an Idempotency-Key header."
}

Errors

StatuserrorMeaning
400idempotency_key_requiredSend an Idempotency-Key header.
403insufficient_scopeThis project key is not allowed to do that.
404card_payment_not_foundNo payment with that id belongs to this business.
409payment_not_refundableOnly a succeeded mock payment can be marked refunded.
503card_payments_not_availableMock refunds are disabled.
Updated 2026
Did this page help you?