# Card Payment Status Update
source: https://developer.mastercard.com/payment-acceptance-api/documentation/use-cases/card-payment-status-update/index.md

This section explains the card payment cancellation flow in Commercial Direct Payments (CDP), including how status updates are validated, communicated, and finalized based on the payment execution date.
Diagram cancel-reg

1. The Debtor Agent submits a cancellation request to the CDP using the **Update transaction status** PUT call.
   API Reference: `PUT /creditor-agents/{ica}/payment-acceptances/{instruction_identification}`

#### Scenario 1: When the requestedExecutionDate is today or in the future {#scenario-1-when-the-requestedexecutiondate-is-today-or-in-the-future}

2. CDP validates the cancellation request.
3. CDP sends an acknowledgment of the request to the Debtor Agent.
4. CDP sends the "CANCELLATION_REQUESTED" status to the Creditor Agent through a POST webhook call.
5. The Creditor Agent sends an acknowledgment to the CDP.
6. The Creditor Agent sends "CANCELLATION_ACCEPTED" or "CANCELLATION_REJECTED" status to the CDP through the **Update transaction status** PUT call.
7. CDP forwards the "CANCELLATION_ACCEPTED" or "CANCELLATION_REJECTED" status to the Debtor Agent.

#### Scenario 2: When the requestedExecutionDate is in the past {#scenario-2-when-the-requestedexecutiondate-is-in-the-past}

8. CDP validates the cancellation request.
9. CDP rejects the cancellation request and sends a "CANCELLATION_REJECTED" status to the Debtor Agent.
