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

**curl**

```bash
curl "https://api.vortex.nyc/v1/entitlements/grant?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

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

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await grantBillingEntitlement({
  client: vortex,
  query: { environment: "...", merchantAccountId: "..." },
  body: {...},
});
```

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `customerId` (string, required)
- `billingAccountId` (string, required)
- `entitlementKey` (string, required)
- `source` (string, required)
- `sourceRef` (string, required)
- `entitlementId` (string | null)
- `metadata` (object | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "customerId": "string",
  "billingAccountId": "string",
  "entitlementKey": "string",
  "source": "subscription",
  "sourceRef": "string",
  "entitlementId": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "entitlementId": "string",
    "customerId": "string",
    "billingAccountId": "string",
    "entitlementKey": "string",
    "status": "active",
    "source": "subscription",
    "sourceRef": "string",
    "grantedAt": "string",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "revokedAt": "string",
    "reason": "string"
  },
  "requestId": "string"
}
```
