Expire a cobru
Cancel an unpaid cobru by marking it as expired.
Endpoint
POST /cobru/update_to_expired/
This endpoint comes from legacy Cobru documentation. Validate it in sandbox before exposing it to end users or automating cancellations.
When to use it
Use this endpoint when you need to close a payment link before the payer completes it. Legacy documentation says it only applies when the cobru is not already paid or expired.
Request example
{
"url": "xx17elpi"
}Response example
{
"result": "OK"
}Recommendations
- consult the cobru before expiring it to avoid closing already reconciled payments
- record who initiated the cancellation in your own system
- after expiring it, query the cobru again to reconcile your order state