Skip to content
innovorder
⌘K

Order lifecycle

Manage Orders

Summary Export

Export order summaries as PDF reports. Useful for daily/weekly operational reporting.

GET/orders/summary/{exportType}Export Order Summary PDF

Generates and downloads a PDF report for orders within the specified date range. The response is a binary PDF file.

Parameters

NameTypeRequiredDescription
exportTypestringYesReport type: production, delivery, clickAndCollect, or sitIn.
startDateISO dateYesStart date (ISO 8601).
endDateISO dateYesEnd date (ISO 8601).
deliveryAreaIDintegerNoOptional delivery area ID filter.

Response

json
Binary PDF file (Content-Type: application/pdf)

Cancel Order

Cancel a validated or paid order and generate a contra entry (credit note) for accounting purposes. Requires the CAN_CANCEL_ORDER_WITH_CONTRA_ENTRY access flag.

POST/v1/orders/{orderPosId}/cancel-with-contra-entryCancel Order with Contra Entry

Cancels an order and generates a contra entry. The cancellation reason is mandatory. If the reason is OTHER, a description must be provided.

Parameters

NameTypeRequiredDescription
orderPosIdstringYesThe POS order ID of the order to cancel.

Request Body

json
{
  "cancellationReason": "ORDERING_MISTAKE",
  "cancellationReasonDescription": "",
  "manualPaymentMethodCode": "Cash"
}
Request Body Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
cancellationReasonstring"ORDERING_MISTAKE"The cancellation reason value.
cancellationReasonDescriptionstring""The cancellation reason description value.
manualPaymentMethodCodestring"Cash"The manual payment method code value.

Response

json
{
  "status": 200,
  "code": "order_cancelled_with_contra_entry",
  "message": "Your order has been cancelled with contra entry.",
  "data": {
    "reportOrderContraEntryId": 456,
    "orderPosId": "1927055",
    "cancellationReason": "ORDERING_MISTAKE",
    "contraEntryOrderId": 1927099
  }
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"order_cancelled_with_contra_entry"Machine-readable application code for the result.
messagestring"Your order has been cancelled with contra entry."Human-readable result message. Do not use this value for program logic.
dataobject{…}Endpoint-specific response payload.
data.reportOrderContraEntryIdinteger456Identifier of the associated report order contra entry.
data.orderPosIdstring"1927055"Identifier of the associated order pos.
data.cancellationReasonstring"ORDERING_MISTAKE"The cancellation reason value.
data.contraEntryOrderIdinteger1927099Identifier of the associated contra entry order.

Cancellation Reasons

CANNOT_FULFILL_ORDER
ORDERING_MISTAKE
UNSATISFIED_CUSTOMER
CUSTOMER_NO_SHOW
CUSTOMER_LEAVES
LEARNING_MODE
TECHNICAL
OTHER

Manual Payment Options

Retrieve the list of available manual payment method codes for order cancellation with contra entry. Requires the CAN_CANCEL_ORDER_WITH_CONTRA_ENTRY access flag.

GET/v1/orders/payment-methods/manual-optionsGet Manual Payment Method Options

Returns available payment method codes that can be used when cancelling an order with a contra entry.

Parameters

NameTypeRequiredDescription
restaurantIdintegerYesThe restaurant ID.
channelIdintegerYesThe channel ID.
consumptionModeIdintegerYesThe consumption mode ID.

Response

json
{
  "status": 200,
  "code": "manual_payment_method_code_options_succeed",
  "data": [
    {
      "code": "Cash",
      "label": "Cash"
    },
    {
      "code": "CreditCard",
      "label": "Credit Card"
    },
    {
      "code": "LuncheonVoucher",
      "label": "Luncheon Voucher"
    }
  ]
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"manual_payment_method_code_options_succeed"Machine-readable application code for the result.
dataarray[…]Endpoint-specific response payload.
data[]object{…}Endpoint-specific response payload.
data[].codestring"Cash"Machine-readable application code for the result.
data[].labelstring"Cash"The label value.