Create Order
Changed onCreate a new OTA Channel Manager order.
The combination of partnerId and sellToOrderReference must be unique; resubmitting the same pair returns 400 Bad Request. Each items entry must reference an existing item — a package item expands into multiple component admissions (and, where configured, coupons), while a non-package item is a single ticket.
The endpoint is asynchronous: it accepts the order, persists it with status = Submitted, and returns immediately. The order is then processed in the background, transitioning through Scheduled → Processing → Issued | Draft | Error. Subscribe to the ota_cm_order_processed webhook to be notified when the order reaches a terminal state, or poll getOrder until status is one of Issued, Draft, or Error.
Request
- Base URLhttps://api.npretail.app
- AuthAPI key in header x-np-api-key
Path parameters
Your Entra Tenant ID. More details.
Your Business Central Environment. More details.
Your Business Central Company. More details.
Query parameters
When true (or 1), opt out of async processing and run ticket issuance synchronously inside the request. The response then carries the final order state (Issued, Draft, or Error) instead of Submitted.
Default behavior — and the recommended mode — is asynchronous. In async mode the order is processed in the background; subscribe to the ota_cm_order_processed webhook for completion notifications, or poll getOrder until the status reaches a terminal value.
Headers
Used for API versioning. More details.
Request body
Response
Response with status 201
Changes
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
the request's body type changed from no type to
object - breaking
for the
queryrequest parametersync, the type changed from no type toboolean - breaking
the response's body type changed from no type to
objectfor status - warning
deleted the
headerrequest parameterx-np-api-key - info
the endpoint scheme security
NPApiKeyAuthSchemewas added to the API - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
api operation id
create-orderremoved and replaced withchannelManager_serviceOrder_createOrder
- info