---
title: SDK quickstart
description: Install the generated SDKs for TypeScript, Python, and Go and create a merchant with an onboarding link.
---

# SDK quickstart

The Vortex Payments SDKs are generated from the same OpenAPI contract as the [API reference](/payments/docs/reference). Pick a language and make your first merchant + onboarding-link call in a few lines.

The examples below use `2026-09`, the current public surface. New dated surfaces ship as new SDK entries; existing ones never change under you.

## TypeScript

Install from the public npm registry:

```bash
pnpm add @vortex-api/vortex
```

```ts title="app.ts"
import {
  createVortex,
  createMerchantAccount,
  createMerchantOnboardingLink,
} from "@vortex-api/vortex/2026-09";

// vp_test_ key = sandbox; vp_live_ key = production.
const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });

const { data: merchant, error: merchantError } = await createMerchantAccount({
  client: vortex,
  body: {
    environment: "sandbox",
    externalMerchantRef: "my-first-merchant",
    displayName: "My First Merchant",
    legalEntityType: "CORPORATION",
    merchantMode: "processing",
    country: "USA",
    defaultCurrency: "USD",
  },
});
if (merchantError) throw new Error(JSON.stringify(merchantError));

const merchantId = merchant.data.id as string;
console.log(merchantId); // ma_...

const { data: link, error: linkError } = await createMerchantOnboardingLink({
  client: vortex,
  path: { merchantAccountId: merchantId },
  body: {
    environment: "sandbox",
  },
});
if (linkError) throw new Error(JSON.stringify(linkError));

console.log(link.data.hostedMerchantOnboardingUrl);
```

## Python

Install from PyPI:

```bash
pip install vortex-sdk
```

```py title="app.py"
import os
import vortex

# vp_test_ key = sandbox; vp_live_ key = production.
# Point at the sandbox host while you build and test.
configuration = vortex.Configuration(
    host="https://api.sandbox.vortex.nyc"
)
configuration.access_token = os.environ["VORTEX_API_KEY"]

client = vortex.ApiClient(configuration)
api = vortex.PaymentsReadinessApi(client)
merchant = api.create_merchant_account(
    vortex.MerchantAccountCreateRequest(
        environment="sandbox",
        external_merchant_ref="my-first-merchant",
        display_name="My First Merchant",
        legal_entity_type="CORPORATION",
        merchant_mode="processing",
        country="USA",
        default_currency="USD",
    )
)

merchant_id = merchant.data["id"]
print(merchant_id)  # ma_...

link = api.create_merchant_onboarding_link(
    merchant_id,
    vortex.MerchantOnboardingLinkRequest(
        environment="sandbox",
        created_by_ref="operator:my-user-id",
    ),
)

print(link.data["hostedMerchantOnboardingUrl"])
```

## Go

Install the module:

```bash
go get github.com/vortexnyc/vortex-go
```

```go title="main.go"
package main

import (
	"context"
	"fmt"
	"os"

	vortex "github.com/vortexnyc/vortex-go"
)

func main() {
	cfg := vortex.NewConfiguration()
	// vp_test_ key = sandbox; vp_live_ key = production.
	// Point at the sandbox host while you build and test.
	cfg.Host = "api.sandbox.vortex.nyc"
	cfg.Scheme = "https"
	cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("VORTEX_API_KEY"))

	client := vortex.NewAPIClient(cfg)
	ctx := context.Background()

	req := vortex.NewMerchantAccountCreateRequest(
		"sandbox",
		"My First Merchant",
		"CORPORATION",
		"USA",
		"processing",
		"USD",
	)
	req.ExternalMerchantRef = vortex.PtrString("my-first-merchant")

	merchant, _, err := client.PaymentsReadinessAPI.CreateMerchantAccount(ctx).
		MerchantAccountCreateRequest(*req).
		Execute()
	if err != nil {
		panic(err)
	}

	merchantId := merchant.Data["id"].(string)
	fmt.Println(merchantId) // ma_...

	linkReq := vortex.NewMerchantOnboardingLinkRequest(
		"sandbox",
		"operator:my-user-id",
	)
	link, _, err := client.PaymentsReadinessAPI.CreateMerchantOnboardingLink(ctx, merchantId).
		MerchantOnboardingLinkRequest(*linkReq).
		Execute()
	if err != nil {
		panic(err)
	}

	fmt.Println(link.Data["hostedMerchantOnboardingUrl"])
}
```

## What the SDK handles for you

- **Auto-retry** on `408`/`429`/`5xx` and network failures.
- **Idempotency** on mutating calls — the client generates a constant `Idempotency-Key` across retries.
- **Typed errors** with `requestId`, `status`, `code`, and `docsUrl`.
- **Environment on the key** — there is no `environment` constructor option to misconfigure. The request body still includes `environment`, and the API rejects a mismatch.

## Where next

**[Quickstart](/payments/docs/guides/quickstart)**

Sign up, create an organization, create a merchant, and onboard.

**[Merchant onboarding](/payments/docs/guides/merchant-onboarding)**

The complete underwriting data model and requirement lifecycle.

**[API reference](/payments/docs/reference)**

Every operation with request/response schemas and code samples.
