Skip to content

Create subscription

POST/revenue/subscriptions

Creates a new subscription record for a customer, linking it to a contract and price book. Subscription creation does not automatically generate billing schedules — use the /billing-schedules endpoint to create schedule entries as needed.

Request

Request body

Content type application/json (required).

FieldTypeRequiredDescription
namestringYes

Max length: 255

statusstringNo

One of: "trial", "active", "paused", "cancelled", "expired" · Default: "active"

contract_idintegerNo
price_book_idintegerNo
customer_idintegerNo
start_datestring (date)No
end_datestring (date), nullableNo
monthly_valuenumber (float)No
currencystringNo

Default: "USD" · Max length: 3

seatsintegerNo

Example

{
  "name": "Acme Corp — Enterprise Plan",
  "status": "active",
  "contract_id": 12,
  "price_book_id": 3,
  "customer_id": 88,
  "start_date": "2026-01-01",
  "end_date": "2026-12-31",
  "monthly_value": 4000.0,
  "currency": "USD",
  "seats": 50
}

Responses

201 Subscription created

Content type application/json, object · RevenueSubscriptionV1.

FieldTypeRequiredDescription
idintegerNo
namestringNo

Descriptive name for the subscription.

statusstringNo

One of: "trial", "active", "paused", "cancelled", "expired"

contract_idinteger, nullableNo

ID of the governing revenue contract.

price_book_idinteger, nullableNo

ID of the price book used to price this subscription.

customer_idinteger, nullableNo
start_datestring (date)No
end_datestring (date), nullableNo
monthly_valuenumber (float)No

Monthly recurring revenue value of this subscription.

currencystringNo

Max length: 3

seatsinteger, nullableNo

Number of licensed seats (if seat-based pricing).

next_billing_datestring (date), nullableNo
created_atstring (date-time)No

422 Validation failed — check contract_id, price_book_id, or date range

Example request

curl -X POST "https://{tenant}.faciotech.net/api/v1/revenue/subscriptions" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"name": "Acme Corp — Enterprise Plan", "status": "active", "contract_id": 12, "price_book_id": 3, "customer_id": 88, "start_date": "2026-01-01", "end_date": "2026-12-31", "monthly_value": 4000.0, "currency": "USD", "seats": 50}'
Loading