---
search:
  tags:
    - customers
    - POST
seo:
  description: >-
    Reference for the POST /v1/customers/{customerId}/billing-accounts endpoint
    in the Vortex Payments API.
sidebar:
  label: POST /v1/customers/{customerId}/billing-accounts
  badge: POST
title: POST /v1/customers/{customerId}/billing-accounts
type: openapi-operation
---
`POST /v1/customers/{customerId}/billing-accounts`

**curl**

```bash
curl "https://api.vortex.nyc/v1/customers/{customerId}/billing-accounts?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"invoiceDeliveryMode":"api_only","collectionMode":"manual","autoCollectionEnabled":false,"netTermsDays":30}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createBillingAccount({
  client: vortex,
  path: { customerId: "..." },
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"invoiceDeliveryMode":"api_only","collectionMode":"manual","autoCollectionEnabled":false,"netTermsDays":30},
});
```

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `customerId` (string | null)
- `invoiceDeliveryMode` (string, required)
- `collectionMode` (string, required)
- `autoCollectionEnabled` (boolean, required)
- `billingAccountId` (string | null)
- `customerProfileId` (string | null)
- `defaultPaymentMethodId` (string | null)
- `renewalTiming` (string | null)
- `netTermsDays` (number | null)
- `dunningCampaignId` (string | null)
- `metadata` (object | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "customerId": "string",
  "invoiceDeliveryMode": "email",
  "collectionMode": "manual",
  "autoCollectionEnabled": true,
  "billingAccountId": "string",
  "customerProfileId": "string",
  "defaultPaymentMethodId": "string",
  "renewalTiming": "advance",
  "netTermsDays": 0,
  "dunningCampaignId": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "billingAccountId": "string",
    "customerId": "string",
    "merchantAccountId": "string",
    "environment": "sandbox",
    "invoiceDeliveryMode": "email",
    "collectionMode": "manual",
    "autoCollectionEnabled": true,
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "createdAt": "string",
    "customerProfileId": "string",
    "defaultPaymentMethodId": "string",
    "renewalTiming": "advance",
    "netTermsDays": 0,
    "dunningCampaignId": "string",
    "archivedAt": "string"
  },
  "requestId": "string"
}
```
