POST
/
payments
/
checkout
/
cancel
/
{id}
Cancel Checkout
curl --request POST \
  --url https://api.dompetx.com/v1/payments/checkout/cancel/{id} \
  --header 'X-DOMPAY-API-Key: <api-key>' \
  --header 'X-DOMPAY-Signature: <api-key>' \
  --header 'X-DOMPAY-Timestamp: <api-key>'

Overview

Cancel a pending payment checkout session.

Response Example

{
  "id": "dbd245ac-421d-4e79-ba1a-4a0f90d75dae",
  "status": "failed",
  "amount": 50000,
  "currency": "IDR",
  "type": "qr_dynamic"
}

Notes

  • Only pending checkout sessions can be cancelled
  • Cancelled sessions cannot be reactivated
  • Customer will be notified via webhook if configured

Authorizations

X-DOMPAY-API-Key
string
header
required
X-DOMPAY-Signature
string
header
required
X-DOMPAY-Timestamp
string
header
required

Path Parameters

id
string
required

Response

200

Checkout cancelled successfully