Skip to content

Reorder a service on an order form

POST
/order-forms/{id}/services/{serviceId}/move
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/api/v1/order-forms/example/services/example/move \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "direction": "up" }'

Moves the offered service one step earlier or later; a move past either end is a no-op. Requires the invoices.manage permission.

id
required

Order form identifier (CUID2).

string
>= 1 characters

Order form identifier (CUID2).

serviceId
required

Offered service identifier (CUID2).

string
>= 1 characters

Offered service identifier (CUID2).

Media typeapplication/json
object
direction
required

up moves the service earlier on the form, down later.

string
Allowed values: up down

The order form with its services.

Media typeapplication/json
object
data
required

A single order form with its builder fields and the services it offers.

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
fields
required
Array<object>

A single builder field on an order form. SECTION and CALENDLY take no answer; SECRET is answered into encrypted storage and never read back through the API; SIGNATURE is answered as a PNG data URL with the name it was typed under.

object
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))$/
helpText
required
string | null
id
required
string
isRequired
required
boolean
key
required
string
label
required
string
options
required

Shape is field-type dependent: the choice list for SELECT/MULTI_SELECT, { body } sanitized HTML for SECTION, and { calendlyUrl } for CALENDLY.

Any of:
position
required
integer
>= -9007199254740991 <= 9007199254740991
type
required
string
Allowed values: TEXT NUMBER DATE CHECKBOX SELECT MULTI_SELECT URL EMAIL LONG_TEXT PHONE ADDRESS SECTION SECRET SIGNATURE OPTIN CALENDLY
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))$/
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
services
required
Array<object>

A catalog service an order form offers. Archived services and services without a choice stay listed but are not offered to buyers.

object
choices
required

What a buyer can pick; empty when the service sells nothing.

Array<object>

A price a buyer can pick for a service.

object
hours
required
number | null
label
required
string
price
required
number
pricePerHour
required

Price / hours rounded to cents; null without hours.

number | null
pricingOptionId
required

The pricing option bought; null for a single-price service.

string | null
currency
required
string
description
required
string | null
imageUrl
required
string | null
isActive
required

False when the service is archived.

boolean
isDefault
required

Preselected on the public form.

boolean
isRecurring
required
boolean
name
required
string
position
required
integer
>= -9007199254740991 <= 9007199254740991
recurringInterval
required
Any of:
string
Allowed values: WEEKLY MONTHLY QUARTERLY YEARLY
recurringIntervalCount
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
serviceId
required
string
showInPortal
required
boolean
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": {
"fields": [
{
"type": "TEXT"
}
],
"serviceSelectionStyle": "OPTIONS",
"services": [
{
"recurringInterval": "WEEKLY"
}
],
"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"
}
}

Not found.

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.