Docs

Add Line Item Group

POST /Orders/{orderId}/groups

POST/Orders/{orderId}/groups

Adds a group to the end of the order's groups, for organising lines. A group can carry its own start and end dates and, when isDelivery is true, its own delivery address that overrides the order's. Refused while the order is locked (declared Sent or Confirmed, or Ordered on an internal order, with no unsent revision); call Orders_MintOrderVersion first. Returns no body; the new group's id is on Orders_GetOrder.

Path Parameters

FieldTypeRequiredDescription
orderIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
notesstringOptional
isDeliverybooleanOptional
startDateTimedate-timeOptional
endDateTimedate-timeOptional
deliveryInformationAddLineItemGroupRequestDeliveryOptional

AddLineItemGroupRequestDelivery

FieldTypeDescription
namestring| null
companystring| null
emailstring| null
phonestring| null
addressstring| null
citystring| null
statestring| null
countrystring| null
postalCodestring| null