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

# Getting Started

> Create an entity, verify identity, and connect credit cards — the foundational 3-step flow for every commerce integration.

Every commerce integration begins the same way: represent your customer, verify their identity, and discover their credit cards. This 3-step flow is the shared foundation for [Wallet Onboarding](/guides/use-cases/commerce/wallet-onboarding), [Preauth Signals](/guides/use-cases/commerce/preauth-signals), and [Wallet Intelligence](/guides/use-cases/commerce/wallet-intelligence).

<Steps>
  <Step title="Create an Entity">
    Every end user maps to an [Entity](/guides/entities/overview) in Method. Create one with the user's full name and phone number, and provide additional identity information such as date of birth, email address, or SSN when available to improve match rates. This is the foundational object that verification, card discovery, and all downstream products attach to.

    ```bash theme={null}
    curl https://production.methodfi.com/entities \
      -X POST \
      -H "Method-Version: 2026-03-30" \
      -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
      -H "Content-Type: application/json" \
      -d '{
        "type": "individual",
        "individual": {
          "first_name": "Emily",
          "last_name": "Park",
          "phone": "+13105550789",
          "email": "emily.park@email.com",
          "dob": "1995-11-08"
        },
        "address": {
          "line1": "789 Sunset Blvd",
          "line2": null,
          "city": "Los Angeles",
          "state": "CA",
          "zip": "90028"
        }
      }'
    ```

    ```json response.data theme={null}
    {
      "id": "ent_BzirqpLEm3BW7",
      "type": "individual",
      "individual": {
        "first_name": "Emily",
        "last_name": "Park",
        "phone": "+13105550789",
        "dob": "1995-11-08",
        "email": "emily.park@email.com",
        "ssn_4": null,
        "ssn": null
      },
      "error": null,
      "address": {
        "line1": "789 Sunset Blvd",
        "line2": null,
        "city": "Los Angeles",
        "state": "CA",
        "zip": "90028"
      },
      "status": "incomplete",
      "verification": {
        "identity": {
          "verified": false,
          "matched": false,
          "latest_verification_session": null,
          "methods": [
            "element",
            "kba"
          ]
        },
        "phone": {
          "verified": false,
          "latest_verification_session": null,
          "methods": [
            "sms",
            "sna",
            "byo_sms"
          ]
        }
      },
      "connect": null,
      "credit_score": null,
      "products": [
        "identity"
      ],
      "restricted_products": [
        "connect",
        "credit_score",
        "attribute"
      ],
      "subscriptions": [],
      "available_subscriptions": [
        "connect",
        "credit_score"
      ],
      "restricted_subscriptions": [],
      "metadata": null,
      "created_at": "2025-12-10T14:22:31.024Z",
      "updated_at": "2025-12-10T14:22:31.024Z"
    }
    ```

    The Entity is created in `incomplete` status. Before you can discover Emily's credit cards, you need to verify her identity.
  </Step>

  <Step title="Verify Identity">
    Method requires phone verification before card discovery. Verify the customer's phone number using either **Method OTP** (Method sends and verifies the one-time passcode) or **Bring Your Own OTP** (you verify the phone number yourself and provide the verification result to Method). The example below initiates a Method-sent SMS verification session, which sends a one-time code to Emily's phone number on record.

    ```bash theme={null}
    curl https://production.methodfi.com/entities/ent_BzirqpLEm3BW7/verification_sessions \
      -X POST \
      -H "Method-Version: 2026-03-30" \
      -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
      -H "Content-Type: application/json" \
      -d '{
        "type": "phone",
        "method": "sms",
        "sms": {}
      }'
    ```

    ```json response.data theme={null}
    {
      "id": "evf_nKLp7WzQdR4mF",
      "entity_id": "ent_BzirqpLEm3BW7",
      "status": "in_progress",
      "type": "phone",
      "method": "sms",
      "sms": {},
      "error": null,
      "created_at": "2025-12-10T14:23:12.271Z",
      "updated_at": "2025-12-10T14:23:12.271Z"
    }
    ```

    Submit the code from the most recent SMS to complete phone verification:

    ```bash theme={null}
    curl https://production.methodfi.com/entities/ent_BzirqpLEm3BW7/verification_sessions/evf_nKLp7WzQdR4mF \
      -X PUT \
      -H "Method-Version: 2026-03-30" \
      -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
      -H "Content-Type: application/json" \
      -d '{
        "type": "phone",
        "method": "sms",
        "sms": {
          "sms_code": "123456"
        }
      }'
    ```

    Phone verification alone does not activate the Entity. Create an identity verification session next. This example uses KBA:

    ```bash theme={null}
    curl https://production.methodfi.com/entities/ent_BzirqpLEm3BW7/verification_sessions \
      -X POST \
      -H "Method-Version: 2026-03-30" \
      -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
      -H "Content-Type: application/json" \
      -d '{
        "type": "identity",
        "method": "kba",
        "kba": {}
      }'
    ```

    Present the returned questions to the customer, then submit one answer for each question:

    ```bash theme={null}
    curl https://production.methodfi.com/entities/ent_BzirqpLEm3BW7/verification_sessions/evf_Rm7kLnXw4PjTq \
      -X PUT \
      -H "Method-Version: 2026-03-30" \
      -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
      -H "Content-Type: application/json" \
      -d '{
        "type": "identity",
        "method": "kba",
        "kba": {
          "answers": [
            { "question_id": "qtn_aaa", "answer_id": "ans_bbb" },
            { "question_id": "qtn_ccc", "answer_id": "ans_ddd" }
          ]
        }
      }'
    ```

    After both sessions are verified, the Entity status updates to `active` and Connect becomes available.

    <Note>
      For a complete overview of all verification methods (SMS, SNA, BYO-SMS, KBA), see the [Identity Verification](/guides/identity-verification/overview) guide.
    </Note>
  </Step>

  <Step title="Connect Credit Cards">
    With verification complete, call Connect to discover Emily's credit cards via a soft-pull credit report. This has no impact on the user's credit score.

    For commerce use cases, the key discovery is **credit cards**: these are the accounts you'll use for wallet onboarding, preauth signals, and wallet intelligence.

    ```bash theme={null}
    curl https://production.methodfi.com/entities/ent_BzirqpLEm3BW7/connect \
      -X POST \
      -H "Method-Version: 2026-03-30" \
      -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
    ```

    ```json response.data theme={null}
    {
      "id": "cxn_7hTmRvXkYpN3w",
      "entity_id": "ent_BzirqpLEm3BW7",
      "status": "completed",
      "accounts": [
        "acc_LxwEqNicr66yP",
        "acc_4m9amk4KFiaQX",
        "acc_XtKTpHLGhD9Qn",
        "acc_GAzrD99cUqGEN"
      ],
      "requested_products": [],
      "requested_subscriptions": [],
      "error": null,
      "created_at": "2025-12-10T14:24:45.645Z",
      "updated_at": "2025-12-10T14:24:45.645Z"
    }
    ```

    Method discovered 4 credit card accounts for Emily:

    | Account ID | Card |
    | - | - |
    | `acc_LxwEqNicr66yP` | Chase Sapphire Preferred (Visa) |
    | `acc_4m9amk4KFiaQX` | Amex Gold (Amex) |
    | `acc_XtKTpHLGhD9Qn` | Citi Double Cash (Mastercard) |
    | `acc_GAzrD99cUqGEN` | Capital One Venture X (Visa) |

    These accounts are now ready for every Commerce use case.
  </Step>
</Steps>

## What's Next

<CardGroup cols={2}>
  <Card title="Wallet Onboarding" icon="wallet" href="/guides/use-cases/commerce/wallet-onboarding">
    Enrich cards with brand art and retrieve payment credentials to render a complete wallet.
  </Card>

  <Card title="Preauth Signals" icon="signal" href="/guides/use-cases/commerce/preauth-signals">
    Evaluate payment readiness before authorization and optimize payment retries.
  </Card>

  <Card title="Wallet Intelligence" icon="lightbulb" href="/guides/use-cases/commerce/wallet-intelligence">
    Retrieve wallet-level insights to personalize customer experiences.
  </Card>
</CardGroup>


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