---
title: "Create a Square subscription"
method: POST
path: "/api/v3/admin/subscriptions/square"
tags: ["admin", "subscriptions"]
---

# Create a Square subscription

`POST /api/v3/admin/subscriptions/square`

## Request

- Base URL: `https://api.endless.health` (the document declares no server; this is the origin it was published from)
- URL: `https://api.endless.health/api/v3/admin/subscriptions/square`
- Auth: none declared

Create one subscription through the Square Subscriptions API.

## Request body

- AdminSquareSubscriptionCreateSchema
  - `customer_id` string, required
  - `card_id` string, nullable
  - `location_id` string, required
  - `plan_variation_id` string, required
  - `start_date` string, date, nullable
  - `source_name` string, nullable

## Response `200`

Successful Response

- AdminSquareSubscriptionCreateResponseSchema
  - `status` string, required
  - `message` string, required
  - `data` SquareCreatedSubscriptionSchema, required
    - `subscription_id` string, required
    - `customer_id` string, required
    - `location_id` string, required
    - `plan_variation_id` string, required
    - `start_date` string, nullable
    - `status` string, nullable
    - `source_name` string, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/endless/apis/eh-core-v3-api-prod.md) - [All operations](https://skmtc.dev/endless/apis/eh-core-v3-api-prod/llms.txt) - [OpenAPI document](https://skmtc.dev/endless/apis/eh-core-v3-api-prod/revisions/9046a1eb2d0c?raw)
