---
search:
  tags:
    - customers
    - PUT
seo:
  description: Reference for the PUT /v1/customers endpoint in the Vortex Payments API.
sidebar:
  label: PUT /v1/customers
  badge: PUT
title: PUT /v1/customers
type: openapi-operation
---
`PUT /v1/customers`

**curl**

```bash
curl "https://api.vortex.nyc/v1/customers?environment=sandbox&merchantAccountId=..." \
  -X PUT \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Acme Inc.","defaultCurrency":"USD","externalCustomerRef":"acme-org-1","email":"billing@example.com"}'
```

**TypeScript**

```ts
import { ensureCustomer, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await ensureCustomer({
  client: vortex,
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"name":"Acme Inc.","defaultCurrency":"USD","externalCustomerRef":"acme-org-1","email":"billing@example.com"},
});
```

**Request body** (`application/json`, required)

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `name` (string, required)
- `defaultCurrency` (string, required)
- `customerId` (string | null)
- `externalCustomerRef` (string | null)
- `email` (string | null)
- `metadata` (object | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "name": "string",
  "defaultCurrency": "string",
  "customerId": "string",
  "externalCustomerRef": "string",
  "email": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "customerId": "string",
    "name": "string",
    "defaultCurrency": "string",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "createdAt": "string",
    "externalCustomerRef": "string",
    "email": "string",
    "archivedAt": "string",
    "created": true
  },
  "requestId": "string"
}
```
