Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Bearer Token necessary to use API

Scopes

public.order:write
Bearer
public.order:write
OAuth2

Order (Write)

Path Parameters

order_id
string
required

The ID of the order

Pattern: ^order_

Query Parameters

expand
string[]

This endpoint supports expandable responses. For more, see the documentation page.

fields
string[]

Returns only the listed fields, such as id,status,site.name. Identifiers and constant fields such as object are always returned. A field inside an expandable association also needs it in expand, unless the collapsed association returns it, such as site.id. For more, see the documentation page.

Body

application/json

Update an order

billing_period
enum<string>

How often the order is billed. Changing it doesn't update line item prices, so update them for the new billing period.

Available options:
monthly,
weekly,
every_four_weeks,
every_three_months,
every_six_months,
yearly
payment_method
enum<string>

The payment method type for the order.

Available options:
card,
bacs_debit,
sepa_debit,
au_becs_debit,
us_bank_account
purchase_order_number
string

The purchase order number associated with the order.

starts_at
string

Start date and time (ISO 8601 date-time), or now to start the order immediately after finalization.

emails
object
deprecated

Configure email notifications for the order. Deprecated, use the email_notifications field.

email_notifications
object

Configure email notifications for the order.

contact
object

Contact the order is for. Give id for an existing contact, or contact details to create a new one. Without id, a new contact replaces the order's current contact.

coupon
object | null

Coupon to apply to the order. Set to null to remove it.

contract_template
object | null

Contract template to use for the order's contract. Set to null to remove it.

line_items
object[]

Replaces the order's line items. Items with an id are updated, items without one are added, and existing items you leave out are removed. Send an empty array to remove all line items. Leave this property out to keep the line items unchanged.

Update a line item

metadata
object | null

Set of key-value pairs for storing additional information on the order. Learn more about metadata.

Response

order successfully updated

Single Order

order
object
required

Order

meta
object
required