# Send an investor to the Investor Portal

This guide creates an Investor Portal link for one investor and one scheme, and hands it to the investor. Read [Investor Portal](/capital-markets/investor-portal) first for how the parent business and its funds fit together.

## Before you start

- The Investor Portal is enabled for your AMC. Contact Glomo support to set it up.
- You have the API key of the **parent business**, not of a fund's business. See [Get started](/get-started).
- The scheme belongs to one of the funds under your parent business.


## 1. Create the link on your server

```curl
curl -X POST 'https://api.glomopay.com/api/v1/investor-journey' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "investor@example.com",
    "pan": "ABCPD1234E",
    "scheme_no": "HGEMR"
  }'
```

| Field  | Required  | Notes  |
|  --- | --- | --- |
| `email` | Yes | The investor's email. Surrounding spaces are removed and the address is lower-cased. |
| `pan` | Yes | The investor's PAN. The fourth letter must be `P`. Surrounding spaces are removed. |
| `scheme_no` | Yes | A scheme of one of the funds under your parent business. |


The response:

```json
{
  "url": "https://investors.example-amc.com#payload=..."
}
```

## 2. Send the investor to the link

Redirect the investor to the `url`, or send it to them. Pass it on unchanged: the investor's details travel encrypted in the part after `#`.

The link is for the one investor you named. Create a new link for each investor.

## 3. The investor opens the link

- **A new investor** starts the fund's journey with the email, PAN and scheme you sent, and completes KYC, payment and the purchase.
- **An investor who has completed KYC with the fund** signs in with a one-time password (OTP) sent to the email the fund has on record, and lands in the portal.


See [What the investor sees](/capital-markets/investor-portal#what-the-investor-sees).

## Errors

| Status  | Message  | What to do  |
|  --- | --- | --- |
| 400 | `Validation failed: Pan is not a valid PAN number` | Send a valid individual PAN. An invalid email returns a `Validation failed` message too. |
| 400 | `Scheme not found` | The `scheme_no` matches no scheme of a fund under your parent business. Check the scheme number. |
| 400 | `Investor portal is not configured for this merchant` | The Investor Portal is not set up for your AMC. Contact Glomo support. |
| 401 | `Access restricted to platform businesses only` | You used a fund's API keys. Use the parent business's API keys. |
| 401 | `Missing token` | Send your JWT in the `Authorization` header. |


## Next

- [Create investor journey](/api-reference/openapi/investor_journey/createinvestorjourney) (API reference)
- [Investor Portal](/capital-markets/investor-portal)