n4.cuwo.messages.checkoutbasket.CheckoutBasketOperation

The CheckoutBasketOperation message is used to trigger the checkout of a basket.

This operation is only available to KIOSK CUWOs!

The message has the following structure:

{
  "@type": "n4.cuwo.messages.checkoutbasket.CheckoutBasketOperation",
  "id": "...",
  "basket": {...},
  "customerInformation": {...},
  "preconfiguredPayments": [...],
  "preconfiguredPayouts": [...]
}

The various member provide the information necessary for the operation:

  • id - The ID of the operation. Will be used as part of the acknowledgement and result messages
  • basket - The basket to check out. Consists of items and may hold discounts.
  • customerInformation - Information about the customer.
  • preconfiguredPayments - Optional preconfigured payments
  • preconfiguredPayouts - Optional preconfigured payouts

If the operation is successful, an instance of CheckoutBasketResult is returned as part of the OperationFinished message.

CheckoutBasketResult has the following structure:

{
  "@type": "n4.cuwo.messages.checkoutbasket.CheckoutBasketResult",
  "invoiceNumber": "...",
  "invoiceData": {...}
}

The various member provide the result information for the operation:

  • invoiceNumber - The invoice number as a string.
  • invoiceData - The invoice data (amounts, taxes, security information, etc.) as an InvoiceData structure