Skip to content
myela

Which calendar day a charge lands on is a timezone question, so timezone is explicit and defaults to UTC rather than being guessed.

Create subscription

POST/v1/subscriptionsLink

Which calendar day a charge lands on is a timezone question, so timezone is explicit and defaults to UTC rather than being guessed.

SandboxSecret keysubscriptions.create

Request fields

Edit a field and the generated request updates immediately.

Request body
stringrequired

The customer that owns or receives this resource.

stringrequired

The plan used to create the subscription.

stringrequired

The reusable identifier of a stored payment method.

Optional fields2
stringoptional

The first billing date in YYYY-MM-DD format. Defaults to today.

YYYY-MM-DD

stringoptional

The IANA timezone used to decide the billing calendar day. Defaults to UTC.

IANA timezone

Response contract

The successful wire shape and errors an integration should branch on.

201

Subscription

application/json
idstringrequired
Unique subscription identifier.
object"subscription"required
Stable resource discriminator.
statusstringrequired
Current subscription state.
customerIdstringrequired
Subscribed customer.
planIdstringrequired
Subscribed plan.
paymentMethodIdstringrequired
Stored payment method.
nextBillingAtstring
Next scheduled billing timestamp.
createdAtstringrequired
ISO 8601 creation timestamp.
Example response
{
  "id": "sub_01JEXAMPLE",
  "object": "subscription",
  "status": "active",
  "customerId": "cus_01JEXAMPLE",
  "planId": "plan_01JEXAMPLE",
  "paymentMethodId": "pm_01JEXAMPLE",
  "nextBillingAt": "2026-09-01T13:00:00.000Z",
  "createdAt": "2026-08-10T20:49:51.653Z"
}
Error responses
401authentication_failed

The key is missing, malformed, revoked, or invalid for this environment.

403permission_denied

The key does not have subscriptions.create.

422invalid_request

One or more request fields are invalid.