Getting Started
Overview
The Channel Manager API issues tickets on behalf of an external sales channel from a single order
submission. Issuance runs synchronously inside the API call, so the response to createOrder already
contains the final order state, the issued wallets, the ticket numbers, and the manifestUrl — no
polling is required. The walk-through below shows the most common path followed by the operational
variants (deferred payment, replacement, cancellation, lookup).
1 - Submit the order
Send the full order in a single call. The combination of partnerId and sellToOrderReference
must be unique per partner. Supply paymentReference if payment has already been captured;
omit it if you intend to confirm payment in a second step.
The response is the final order state. With paymentReference supplied the order is
returned as Issued, including every wallet’s walletReferenceNumber, the individual ticket
numbers under assets, and the printable manifestUrl. Without paymentReference it is
returned as Draft. Capture the orderId — every subsequent call uses it.
If issuance fails, the call returns an error response and the order is left as Error with
statusMessage describing the problem. The recommended remediation is to fix the offending
input (e.g. an invalid component schedule) and replace the order — see step 3.
2 - Confirm payment after the fact (optional)
If you did not include paymentReference in createOrder, the order rests in Draft.
Release it for issuance with confirmOrder:
Confirming an order that is already Issued is a no-op.
3 - Replace an order's contents
Use replaceOrder to change a Draft or Error order. partnerId and
sellToOrderReference are immutable under PUT; all other header fields, plus the entire
items array, are replaced. Previously issued wallets are destroyed and re-issued from
the new payload.
4 - Cancel an order
DELETE /channelManager/:orderId tears down the order’s wallets and tickets. The order row
survives as Cancelled if it was previously Issued or Cancelled; it is
removed outright if it was Draft or Error.
5 - Look up orders by partner
Use listOrdersByPartner to fetch orders for one partner, optionally filtered by status,
sellToOrderReference, or a receivedAt window. The returned objects are compact
summaries; follow up with getOrder to inspect items and wallets.
