Expire a charge
Manually expires a pending charge.
POSThttps://api.omise.co/charges/:id/expire
Force a pending charge to expire immediately. This is useful for canceling charges that are awaiting customer action (e.g., redirect-based payments or bank transfers).
Only charges in `pending` status can be expired. Authorized, captured, or already expired charges cannot be expired.
Parameters
idstringrequired
The charge ID to expire