---
title: "Create subscription"
method: POST
path: "/v1/payments/subscriptions"
tags: ["Payments"]
---

# Create subscription

`POST /v1/payments/subscriptions`

Creates a recurring-payment subscription record tied to a counterparty. The customer must still sign the Solana subscription authorization transaction.

## Headers

- `x-project-id` string — Selects the active project for this request. Required for session/dashboard callers. Ignored when authenticating with an API key, whose scope is fixed to the key's project.

## Request body

- object — Creates a pending SDP subscription record tied to a counterparty. Lifecycle, schedule, on-chain addresses, and authorization proof are server-owned and populated only by verified flows.
  - `planId` string, required — SDP subscription plan ID.
  - `counterpartyId` string, required — Counterparty being billed for the recurring payment.
  - `subscriberAddress` string, required — Customer wallet address that authorizes the subscription.

## Response `201`

Subscription created

- object — Standard success response envelope.
  - `data` object, required — Subscription response payload.
    - `subscription` object, required — Recurring payment subscription record.
      - `id` string, required — SDP subscription ID.
      - `organizationId` string, required — Organization identifier.
      - `projectId` string, required — Project identifier.
      - `planId` string, required — SDP subscription plan ID.
      - `counterpartyId` string, required — Counterparty ID.
      - `subscriberAddress` string, required — Base58-encoded Solana address.
      - `subscriberTokenAccount` string, nullable, required — Subscriber token account address.
      - `subscriptionPda` string, nullable, required — On-chain subscription PDA.
      - `subscriptionAuthorityAddress` string, nullable, required — On-chain subscription authority address.
      - `authorizationSignature` string, nullable, required — Customer authorization transaction signature.
      - `status` 'pending_authorization' | 'active' | 'paused' | 'canceling' | 'canceled' | 'expired', required — Subscription status.
      - `currentPeriodStartAt` string, date-time, nullable, required — ISO 8601 timestamp.
      - `nextCollectionDueAt` string, date-time, nullable, required — ISO 8601 timestamp.
      - `cancelAt` string, date-time, nullable, required — ISO 8601 timestamp.
      - `canceledAt` string, date-time, nullable, required — ISO 8601 timestamp.
      - `createdBy` string, nullable, required
      - `createdAt` string, date-time, required — ISO 8601 timestamp.
      - `updatedAt` string, date-time, required — ISO 8601 timestamp.
  - `meta` object, required — Response metadata.
    - `requestId` string, required — Request identifier for tracing.
    - `timestamp` string, date-time, required — ISO 8601 timestamp.

## Other responses

- `400` — Error
- `401` — Error
- `403` — Error
- `404` — Error
- `409` — Error
- `500` — Error

---

[API](https://skmtc.net/solana/apis/solana-developer-platform-api.md) · [All operations](https://skmtc.net/solana/apis/solana-developer-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solana/solana-developer-platform-api/revisions/672b1916ba61/schema)
