Skip to content

Create commitment

POST
/v1/plans/{plan_code}/commitments

Add a commitment to a plan.

plan_code
required
Plan Code
string
CommitmentCreateAPI
object
commitment_type
Commitment Type
string
default: minimum_commitment <= 50 characters
amount_cents
required
Any of:
number
invoice_display_name
Any of:
string
<= 255 characters

Successful Response

CommitmentResponse
object
id
required
Id
string format: uuid
plan_id
required
Plan Id
string format: uuid
commitment_type
required
Commitment Type
string
amount_cents
required
Amount Cents
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
invoice_display_name
Any of:
string
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time

Unauthorized

Plan not found

Validation error