Contract Line Templates API
POST/api/v1/contract-line-templates/{id}/create-contract-line
Product availabilityAlgaPSA

Create contract line from template

Creates a contract line from a template. The template id is taken from the path `{id}` (it takes precedence over any template_id in the body), and the rest of the body is validated with createPlanFromTemplateSchema. Authenticated and tenant-scoped via withApiKeyRouteAuth.

Path parameters

idstring <uuid>Required
Template UUID from plan_templates.template_id.

Request body

Content type: application/json · schema CreateContractLineFromTemplateBody

template_idstring <uuid>
Optional; the template id is taken from the path {id} and overrides this field when both are present.
contract_line_namestringRequired
min length 1 · max length 255
modify_ratesobject
percentage_changenumber
fixed_adjustmentnumber
override_servicesarray of object
itemsobject
service_idstring <uuid>Required
custom_ratenumber
≥ 0
quantitynumber
≥ 1

Response body

Success response 201 · schema ContractLineApiSuccess

successbooleanRequired
Enum: true
dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject
timestampstring <date-time>Required
versionstringRequired

Response codes

201
Contract line created from template.
400
Invalid request payload.
401
x-api-key missing/invalid.
500
Template application failure.