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

# Create Virtual Card

> Issue a virtual Visa/Mastercard for a customer who has completed onboarding

<ParamField header="Authorization" type="string" required>
  Bearer token: `Bearer YOUR_ACCESS_TOKEN`
</ParamField>

<ParamField path="yativoCardId" type="string" required>
  The customer's `yativo_card_id`.
</ParamField>

<Note>
  **Prerequisites before calling this endpoint:**

  1. KYC approved
  2. Source of funds questionnaire completed
  3. Phone number verified
  4. Card wallet ready (provisioned automatically after KYC approval)

  If any prerequisite is missing the API returns a descriptive error.
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST 'https://crypto-api.yativo.com/api/v1/yativo-card/customers/yativo_card_customer_8f9a..._1769031332068/cards/virtual' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '{}'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 Created theme={null}
  {
    "success": true,
    "message": "Virtual card created successfully",
    "data": {
      "yativo_card_id": "yativo_card_customer_8f9a..._1769031332068",
      "card_id": "b2dc97ab-03f9-49eb-c72f-95be13815278",
      "card_type": "virtual",
      "status": "active",
      "status_name": "Active",
      "activated_at": "2026-04-01T12:30:00.000Z",
      "total_cards": 1,
      "funding_wallet": {
        "address": "SoLFundingWalletAddressXXXXXXXXXXXXXX",
        "network": "solana",
        "asset": "USDC"
      }
    }
  }
  ```

  ```json 400 Prerequisites not met theme={null}
  {
    "success": false,
    "error_code": "SOURCE_OF_FUNDS_NOT_COMPLETED",
    "message": "Source of Funds must be completed before creating a card. Use GET /source-of-funds to get questions and POST /source-of-funds to submit answers."
  }
  ```
</ResponseExample>

After card creation, use [Get Secure Card View URL](/api-reference/cards/customer-secure-view) to display the card number and CVV securely in your UI.
