Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
approval_id | string | Yes | The approval request ID. |
decision | string | Yes | approved or denied. |
action | string | Yes | The original action type from the approval prompt: card_details or transaction. |
resource_id | string | Yes | For card_details, the card ID. For transaction, the approval ID. |
Returns
A message describing the outcome, with astatus of denied, card_details, card_created, or unknown_action. If the decision is denied, no action is taken. If approved with action: "card_details" (where resource_id is the card ID), it fetches and returns the full card details, with the PAN and CVV appearing only in the text. If approved with action: "transaction" (where resource_id is the approval ID), it creates the card and returns its ID, last 4 digits, expiry, balance, and status.