Docs

Add Line Item Group

POST /orders/{orderId}/groups

POST/orders/{orderId}/groups

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.

Adds a new line item group to an order. Groups organise line items and can optionally carry their own delivery schedule and address, overriding the order-level delivery details.

Path Parameters

FieldTypeRequiredDescription
orderIdGuidRequiredThe ID of the order. Replace `{{orderId}}` in the URL.

Request Body

FieldTypeRequiredDescription
namestringRequiredGroup display name.
notesstringOptionalGroup-level notes.
isDeliveryboolRequiredWhether this group has its own delivery details.
startDateTimeDateTimeRequiredGroup start date/time (ISO 8601).
endDateTimeDateTimeRequiredGroup end date/time (ISO 8601).
deliveryInformationDeliveryOptionalGroup-level delivery address. Required when `isDelivery` is `true`. Pass `null` otherwise.
deliveryInformation.namestringOptionalDelivery contact name.
deliveryInformation.companystringOptionalCompany name.
deliveryInformation.emailstringOptionalEmail.
deliveryInformation.phonestringOptionalPhone.
deliveryInformation.addressstringOptionalStreet address.
deliveryInformation.citystringOptionalCity.
deliveryInformation.statestringOptionalState/province.
deliveryInformation.countrystringOptionalCountry.
deliveryInformation.postalCodestringOptionalPostal/ZIP code.

Response

Returns 201 Created with an empty body on success.