Skip to content

Create an order form

POST
/order-forms
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/api/v1/order-forms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "agreementText": "example", "allowMultipleServices": true, "captureLeads": true, "description": "example", "introText": "example", "name": "example", "requiresAgreement": true, "requiresPayment": true, "serviceSelectionStyle": "OPTIONS", "showCouponField": true, "slug": "example", "successRedirectUrl": "https://example.com", "thankYouText": "example", "type": "ORDER" }'

Creates an order form. type is a capability discriminator and cannot be changed after creation; the response reports what it permits under capabilities, and a requiresPayment/requiresAgreement the type forbids is refused (422). slug must be unique within the workspace. Requires the invoices.manage permission.

Media typeapplication/json
object
agreementText
string | null
allowMultipleServices

Let one submission buy several services, which must share a billing cycle; defaults to false.

boolean
captureLeads

INTAKE forms only: open a deal in the sales pipeline for every submission; defaults to false.

boolean
description
string | null
introText
string | null
name
required
string
>= 1 characters <= 200 characters
requiresAgreement
boolean
requiresPayment
boolean
serviceSelectionStyle

How the public form paints its services; defaults to OPTIONS.

string
Allowed values: OPTIONS DROPDOWN
showCouponField

Offer the coupon box on the public form; defaults to true.

boolean
slug
required
string
>= 1 characters <= 200 characters
successRedirectUrl
Any of:
string format: uri
thankYouText
string | null
type
required
string
Allowed values: ORDER INTAKE SUBSCRIPTION SERVICE_INTAKE

The created order form.

Media typeapplication/json
object
data
required

A workspace order form, without its fields or services.

object
agreementText
required
string | null
allowMultipleServices
required

Let one submission buy several services. They must share a billing cycle: all one-time, or the same recurring interval and count.

boolean
archivedAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
capabilities
required

What the form’s type permits; every field is derived from type alone.

object
allowsAgreement
required
boolean
allowsPayment
required
boolean
allowsServices
required
boolean
hasPublicPage
required

False for SERVICE_INTAKE, the only type with no public page to publish.

boolean
captureLeads
required

INTAKE forms only: every submission opens a deal in the sales pipeline, attributed to the Order Form lead source.

boolean
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
description
required
string | null
id
required
string
introText
required
string | null
isPublished
required
boolean
name
required
string
requiresAgreement
required
boolean
requiresPayment
required
boolean
serviceSelectionStyle
required

How the public form paints its services: OPTIONS is a card each, DROPDOWN a picker.

string
Allowed values: OPTIONS DROPDOWN
showCouponField
required

Offer the coupon box on the public form.

boolean
slug
required
string
successRedirectUrl
required
string | null
thankYouText
required
string | null
type
required

Capability discriminator, immutable after creation. INTAKE captures a lead and SERVICE_INTAKE is answered after a purchase; see capabilities.

string
Allowed values: ORDER INTAKE SUBSCRIPTION SERVICE_INTAKE
updatedAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/

Example

{
"data": {
"serviceSelectionStyle": "OPTIONS",
"type": "ORDER"
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Conflict.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Invalid input.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.