> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sudo.africa/llms.txt
> Use this file to discover all available pages before exploring further.

# Authorization Code

This webhook is triggered when an authorization code is generated for a card. The event type is `authorization.code`

The `data.object.code` field contains the authorization code, and `data.object` carries the card the code was issued for.

<CodeGroup>
  ```json json theme={null}
  {
      "environment": "production",
      "business": "xxxxxxxxxxxx",
      "data": {
          "object": {
              "code": "116234",
              "_id": "xxxxxxxxxxxxxxx",
              "business": {},
              "customer": {},
              "account": {},
              "fundingSource": {},
              "type": "virtual",
              "brand": "MasterCard",
              "currency": "USD",
              "maskedPan": "534786******1820",
              "last4": "1820",
              "expiryMonth": "04",
              "expiryYear": "28",
              "status": "active",
              "is2FAEnabled": true,
              "is2FAEnrolled": true,
              "disposable": false,
              "refundAccount": null,
              "isDeleted": false,
              "createdAt": "2024-05-20T13:02:58.146Z",
              "updatedAt": "2025-04-02T16:23:19.705Z",
              "__v": 0,
              "spendingControls": {
                  "channels": {
                      "atm": false,
                      "pos": true,
                      "web": true,
                      "mobile": true
                  },
                  "allowedCategories": [],
                  "blockedCategories": [],
                  "spendingLimits": []
              },
              "isDigitalized": false
          }
      },
      "type": "authorization.code",
      "pendingWebhook": true,
      "webhookArchived": false,
      "createdAt": ""
  }
  ```
</CodeGroup>
