Create a subscription
Creates a new subscription linking a customer to a plan. Both must belong to the authenticated company.
Authentication
AuthorizationBearer
API key obtained from the Afternoon dashboard
Request
This endpoint expects an object.
customer_id
Customer ID
plan_code
Plan code
start_date
ISO 8601 subscription start date (defaults to now)
billing_anchor_day
Day of month for billing anchor (1-31, defaults to 1)
initial_status
Initial status of the subscription. Defaults to pending.
Allowed values:
Response
Subscription created
success
subscription
request_id
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error
