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

**curl**

```bash
curl "https://api.vortex.nyc/v1/quotes?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orderType":"one_off","customerId":"bcust_123","billingAccountId":"bacc_123","currency":"USD","lines":[{"priceId":"bprice_setup","quantity":1},{"priceId":"bprice_seats","quantity":10,"unitAmount":4900}],"terms":"Net 30"}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createBillingQuote({
  client: vortex,
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"orderType":"one_off","customerId":"bcust_123","billingAccountId":"bacc_123","currency":"USD","lines":[{"priceId":"bprice_setup","quantity":1},{"priceId":"bprice_seats","quantity":10,"unitAmount":4900}],"terms":"Net 30"},
});
```

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `orderType` (string, required)
- `customerId` (string, required)
- `billingAccountId` (string, required)
- `currency` (string, required)
- `lines` (object[], required)
- `quoteId` (string | null)
- `subscriptionId` (string | null)
- `couponIds` (string[] | null)
- `terms` (string | null)
- `metadata` (object | null)
- `idempotencyKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "orderType": "one_off",
  "customerId": "string",
  "billingAccountId": "string",
  "currency": "string",
  "lines": [
    {
      "priceId": "string",
      "quantity": 0,
      "unitAmount": 0,
      "description": "string"
    }
  ],
  "quoteId": "string",
  "subscriptionId": "string",
  "couponIds": [
    "string"
  ],
  "terms": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "idempotencyKey": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "quote": {
      "quoteId": "string",
      "number": "string",
      "orderType": "one_off",
      "customerId": "string",
      "billingAccountId": "string",
      "merchantAccountId": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "createdAt": "string",
      "updatedAt": "string",
      "subscriptionId": "string",
      "currentVersionId": "string",
      "amendsOrderId": "string",
      "amendsQuoteVersionId": "string"
    },
    "versions": [
      {
        "quoteVersionId": "string",
        "quoteId": "string",
        "version": 0,
        "status": "draft",
        "currency": "string",
        "billingItems": {
          "lines": [
            {
              "lineId": "string",
              "priceId": "string",
              "payload": {
                "priceId": "string",
                "quantity": 0,
                "productId": "string",
                "productName": "string",
                "priceType": "string",
                "unitAmount": 0,
                "description": "string"
              },
              "overrides": {
                "quantity": 0,
                "unitAmount": 0,
                "description": "string",
                "invoiceDisplayName": "string"
              }
            }
          ],
          "couponIds": [
            "string"
          ]
        },
        "subtotal": 0,
        "total": 0,
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "createdAt": "string",
        "updatedAt": "string",
        "voidReason": "manual",
        "terms": "string",
        "approvedAt": "string",
        "voidedAt": "string"
      }
    ],
    "currentVersion": {
      "quoteVersionId": "string",
      "quoteId": "string",
      "version": 0,
      "status": "draft",
      "currency": "string",
      "billingItems": {
        "lines": [
          {
            "lineId": "string",
            "priceId": "string",
            "payload": {
              "priceId": "string",
              "quantity": 0,
              "productId": "string",
              "productName": "string",
              "priceType": "string",
              "unitAmount": 0,
              "description": "string"
            },
            "overrides": {
              "quantity": 0,
              "unitAmount": 0,
              "description": "string",
              "invoiceDisplayName": "string"
            }
          }
        ],
        "couponIds": [
          "string"
        ]
      },
      "subtotal": 0,
      "total": 0,
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "createdAt": "string",
      "updatedAt": "string",
      "voidReason": "manual",
      "terms": "string",
      "approvedAt": "string",
      "voidedAt": "string"
    }
  },
  "requestId": "string"
}
```
