> ## 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.

# Digitalize Card

> Fetches required payload for Card Digitalization SDK for a specific card.



## OpenAPI

````yaml openapi.json put /cards/digitalize/{id}
openapi: 3.1.0
info:
  title: Sudo API
  version: '1.0'
servers:
  - url: https://api.sandbox.sudo.cards
    description: Sandbox
security:
  - sec0: []
paths:
  /cards/digitalize/{id}:
    put:
      summary: Digitalize Card
      description: >-
        Fetches required payload for Card Digitalization SDK for a specific
        card.
      operationId: digitalize-card
      parameters:
        - name: id
          in: path
          description: The `_id` of the card to fetch.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Card digitalization initiated successfully.
          headers:
            X-Powered-By:
              schema:
                type: string
              example: Express
            Access-Control-Allow-Origin:
              schema:
                type: string
              example: '*'
            X-RateLimit-Limit:
              schema:
                type: integer
              example: '250000'
            X-RateLimit-Remaining:
              schema:
                type: integer
              example: '249999'
            X-RateLimit-Reset:
              schema:
                type: integer
              example: '0'
            Content-Type:
              schema:
                type: string
              example: application/json; charset=utf-8
            ETag:
              schema:
                type: string
              example: W/"2dd-sfRBgLV2BqnKnzwqFCi2UGdBgUQ"
            Connection:
              schema:
                type: string
              example: keep-alive
            Keep-Alive:
              schema:
                type: string
              example: timeout=5
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: HTTP status code returned by the API.
                  message:
                    type: string
                    description: Human-readable description of the result.
                  data:
                    type: object
                    description: Response payload.
                    properties:
                      status:
                        type: string
                        description: Current status of the object.
                      card:
                        type: string
                        description: >-
                          Associated card — an id, or a summary object on nested
                          resources.
              example:
                statusCode: 200
                message: Card digitalization initiated successfully.
                data:
                  status: pending
                  card: 6418eb71a37e405064694518
        '400':
          description: Validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                statusCode: 400
                message: Invalid card id.
                data: null
        '401':
          description: Authentication failed — missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                statusCode: 401
                message: >-
                  Unauthorized. Provide a valid API key in the Authorization
                  header.
                data: null
      deprecated: false
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - statusCode
        - message
      properties:
        statusCode:
          type: integer
          description: HTTP status code for the failed request.
        message:
          type: string
          description: Human-readable description of the error.
        data:
          type: 'null'
          description: No response payload is returned for an error.
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: Authorization
      x-bearer-format: bearer
      x-default: '{{APIKey}}'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.