> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.navipartner.com/apis/api-reference/ota-channel-manager/service-order/create-order/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.navipartner.com/_mcp/server. # Create Order POST https://api.npretail.app/{tenant}/{environment}/{company}/channelManager Content-Type: application/json Create 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`. Reference: https://docs.navipartner.com/apis/api-reference/ota-channel-manager/service-order/create-order ## Authentication - `x-np-api-key` header (required) — API Key authentication via header ## Request ### Path parameters - `tenant` (string, required) — Your Entra Tenant ID. [More details.](/paths#1-tenant) - `environment` (string, required) — Your Business Central Environment. [More details.](/paths#2-environment) - `company` (string, required) — Your Business Central Company. [More details.](/paths#3-company) ### Query parameters - `sync` (boolean, optional) — 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. ### Body (application/json) This endpoint expects a CreateOrderRequest. - `partnerId` (UUID, required) — Globally unique identifier of the OTA Channel Manager partner that originated the order. The partner must exist and be active in the OTA Channel Manager Partner Setup; otherwise the order is rejected. - `sellToOrderReference` (string, required) — The partner's own reference for the order. Unique per partner; combined with `partnerId` it identifies the order end-to-end. Maximum 50 characters. - `items` (list of OrderItemRequest, required) - `sellToEmail` (string, optional) — Email address of the customer the order is sold to. Stored on the order and on each issued wallet for the partner's own use; the OTA Channel Manager does not send anything to this address. Maximum 100 characters. Can be overridden per item. - `sellToName` (string, optional) — Name of the customer the order is sold to. Maximum 100 characters. Can be overridden per item. - `sellToLanguage` (string, optional) — Language code (uppercased) for the customer the order is sold to. Used to localize the `description` fields on items and assets via Item Translation. Must be a valid Business Central language code. Maximum 10 characters. Can be overridden per item. - `paymentReference` (string, optional) — Reference to the partner-side payment transaction. May be supplied at order creation, or later via `confirmOrder`. Required to move an order from Draft to Issued. Maximum 50 characters. ## Response ### 201 - `orderId` (UUID, required) — Globally unique identifier of an OTA Channel Manager order, assigned when the order is accepted. - `status` (enum, required) — Lifecycle state of an OTA Channel Manager order. The terminal states are `Issued`, `Draft`, `Cancelled`, and `Error`. The non-terminal states (`Submitted`, `Scheduled`, `Processing`) belong to the asynchronous issuance pipeline: - `Submitted` — async order is queued for background processing. - `Scheduled` — order has been picked up for processing. - `Processing` — ticket and coupon issuance is running. - `Draft` — assets are issued but no `paymentReference` was supplied. Call `confirmOrder` to release the order to `Issued`. - `Issued` — all assets have been issued, coupons have been posted, and the wallet manifest is available at `manifestUrl`. - `Cancelled` — order has been cancelled. Wallets are destroyed but the order row is retained for audit. - `Error` — issuance failed. Inspect `statusMessage` for details. The order can be replaced (`replaceOrder`) to retry, or deleted (`deleteOrder`) to remove it. - Allowed values: `Submitted`, `Scheduled`, `Processing`, `Draft`, `Issued`, `Cancelled`, `Error` - `statusMessage` (string, required) — Human-readable detail about the current `status`, set by the OTA Channel Manager. Populated for `Error`; empty otherwise. - `partnerId` (UUID, required) — Globally unique identifier of the OTA Channel Manager partner that originated the order. The partner must exist and be active in the OTA Channel Manager Partner Setup; otherwise the order is rejected. - `sellToOrderReference` (string, required) — The partner's own reference for the order. Unique per partner; combined with `partnerId` it identifies the order end-to-end. Maximum 50 characters. - `buyFromOrderReference` (string, required) — The OTA Channel Manager's own document number for the order, used as a stable identifier for partner-side reconciliation. Maximum 20 characters. - `receivedAt` (datetime, required) — UTC timestamp recorded when the OTA Channel Manager accepted the order. ISO 8601. - `items` (list of OrderItemResponse, required) - `sellToEmail` (string, optional) — Email address of the customer the order is sold to. Stored on the order and on each issued wallet for the partner's own use; the OTA Channel Manager does not send anything to this address. Maximum 100 characters. Can be overridden per item. - `sellToName` (string, optional) — Name of the customer the order is sold to. Maximum 100 characters. Can be overridden per item. - `sellToLanguage` (string, optional) — Language code (uppercased) for the customer the order is sold to. Used to localize the `description` fields on items and assets via Item Translation. Must be a valid Business Central language code. Maximum 10 characters. Can be overridden per item. - `paymentReference` (string, optional) — Reference to the partner-side payment transaction. May be supplied at order creation, or later via `confirmOrder`. Required to move an order from Draft to Issued. Maximum 50 characters. - `jobId` (string, optional) — Background job identifier assigned by the OTA Channel Manager when ticket issuance has been performed for an order. Empty until issuance has begun. - `manifestUrl` (string, optional) — URL of the printable wallet manifest, populated once asset issuance has completed. ## Types ### OrderItemRequest An item line in an OTA Channel Manager order. At minimum, supply `itemNumber`, `visitDate`, and `visitTime`. Per-line `sellToEmail`, `sellToName`, and `sellToLanguage` override the order-level header values for that line's wallets only. - `itemNumber` (string, required) — Business Central item number that identifies the product being sold. Must exist as an Item record. A package item (one with an Item Add-On) expands into multiple component admissions, optionally with coupons; a non-package item is a single ticket item. - `visitDate` (date, required) — Date of the visit. Format `YYYY-MM-DD`. Must not be in the past relative to the local time at the admission. - `visitTime` (string, required) — Time of the visit on `visitDate`. Format `HH:mm:ss` (24-hour, local park time). - `quantity` (integer, optional) — Number of admissions to issue for this line. Must be `>= 1`. For a group ticket, the quantity is the group size and a single wallet is issued. For an individual ticket, each unit is issued as its own wallet. - `sellToName` (string, optional) — Name of the customer the order is sold to. Maximum 100 characters. Can be overridden per item. - `sellToEmail` (string, optional) — Email address of the customer the order is sold to. Stored on the order and on each issued wallet for the partner's own use; the OTA Channel Manager does not send anything to this address. Maximum 100 characters. Can be overridden per item. - `sellToLanguage` (string, optional) — Language code (uppercased) for the customer the order is sold to. Used to localize the `description` fields on items and assets via Item Translation. Must be a valid Business Central language code. Maximum 10 characters. Can be overridden per item. - `wallet` (WalletBlockRequest, optional) — Optional per-line wallet customization. All array properties, when supplied, must have a length equal to the line's expected wallet count: `quantity` for individual tickets, or `1` for group tickets. `componentSchedule` is only valid for package items (lines where the underlying item has an Item Add-On). It overrides each component's visit date/time independently from the line-level `visitDate`/`visitTime`. ### OrderItemResponse One item line on an OTA Channel Manager order, as returned by the API. `componentSchedule` is included only for package lines. `description` is the item description translated to the line's `sellToLanguage`. - `lineNo` (integer, required) — Server-assigned ordinal of a line within the order, incrementing by 100000. Echoed back in responses for diagnostics; partners do not supply it on input. - `itemNumber` (string, required) — Business Central item number that identifies the product being sold. Must exist as an Item record. A package item (one with an Item Add-On) expands into multiple component admissions, optionally with coupons; a non-package item is a single ticket item. - `description` (string, required) — Item description, translated to the line's `sellToLanguage` via Item Translation when available; otherwise the default item description. Returned by the server. - `isPackage` (boolean, required) — `true` if the line item is configured with an Item Add-On (i.e., a package item with multiple components). Returned by the server; not supplied on input. - `quantity` (integer, required) — Number of admissions to issue for this line. Must be `>= 1`. For a group ticket, the quantity is the group size and a single wallet is issued. For an individual ticket, each unit is issued as its own wallet. - `visitDate` (date, required) — Date of the visit. Format `YYYY-MM-DD`. Must not be in the past relative to the local time at the admission. - `visitTime` (string, required) — Time of the visit on `visitDate`. Format `HH:mm:ss` (24-hour, local park time). - `wallets` (list of WalletResponse, required) - `sellToName` (string, optional) — Name of the customer the order is sold to. Maximum 100 characters. Can be overridden per item. - `sellToEmail` (string, optional) — Email address of the customer the order is sold to. Stored on the order and on each issued wallet for the partner's own use; the OTA Channel Manager does not send anything to this address. Maximum 100 characters. Can be overridden per item. - `sellToLanguage` (string, optional) — Language code (uppercased) for the customer the order is sold to. Used to localize the `description` fields on items and assets via Item Translation. Must be a valid Business Central language code. Maximum 10 characters. Can be overridden per item. - `componentSchedule` (list of ComponentScheduleEntryResponse, optional) ### WalletBlockRequest Optional per-line wallet customization. All array properties, when supplied, must have a length equal to the line's expected wallet count: `quantity` for individual tickets, or `1` for group tickets. `componentSchedule` is only valid for package items (lines where the underlying item has an Item Add-On). It overrides each component's visit date/time independently from the line-level `visitDate`/`visitTime`. - `names` (list of string, optional) - `externalReferenceNumbers` (list of string, optional) - `componentSchedule` (list of ComponentScheduleEntryRequest, optional) ### WalletResponse One wallet attached to an order line. `walletId` and `walletReferenceNumber` are populated once the wallet has been issued. `assets` lists the tickets and coupons currently inside the wallet (assets that have been superseded by a later replacement are omitted). - `seqNo` (integer, required) — Sequence number of a wallet inside its order line, starting at 1. For individual tickets, the number of wallets equals the line's `quantity`; for group tickets it is always 1. - `assets` (list of AssetResponse, required) - `walletId` (UUID, optional) — Globally unique identifier of the issued wallet. Populated once assets have been issued. - `walletReferenceNumber` (string, optional) — The visual reference number of the issued wallet. - `externalReferenceNumber` (string, optional) — Optional partner-side reference number written onto an issued wallet. When supplying `wallet.externalReferenceNumbers`, the array length must match the line's expected wallet count. - `name` (string, optional) — Optional human-readable label for an issued wallet (e.g. the holder's name). When supplying `wallet.names`, the array length must match the line's expected wallet count. - `issuedAt` (datetime, optional) — UTC timestamp when the wallet was issued. ISO 8601. - `unitPriceExclVat` (double, optional) — Unit price of the wallet, excluding VAT, in `currencyCode`. - `unitPriceInclVat` (double, optional) — Unit price of the wallet, including VAT, in `currencyCode`. - `currencyCode` (string, optional) — ISO 4217 currency code of the issued wallet. - `manifestUrl` (string, optional) — URL of the printable wallet manifest, populated once asset issuance has completed. ### ComponentScheduleEntryResponse A component's visit date/time as scheduled, echoed back inside a package line. - `itemNumber` (string, required) — Business Central item number that identifies the product being sold. Must exist as an Item record. A package item (one with an Item Add-On) expands into multiple component admissions, optionally with coupons; a non-package item is a single ticket item. - `visitDate` (date, required) — Date of the visit. Format `YYYY-MM-DD`. Must not be in the past relative to the local time at the admission. - `visitTime` (string, required) — Time of the visit on `visitDate`. Format `HH:mm:ss` (24-hour, local park time). ### ComponentScheduleEntryRequest One entry in a package's `wallet.componentSchedule`, pinning a single package component to a specific visit date and time. The `itemNumber` must be a component of the parent package item. - `itemNumber` (string, required) — Business Central item number that identifies the product being sold. Must exist as an Item record. A package item (one with an Item Add-On) expands into multiple component admissions, optionally with coupons; a non-package item is a single ticket item. - `visitDate` (date, required) — Date of the visit. Format `YYYY-MM-DD`. Must not be in the past relative to the local time at the admission. - `visitTime` (string, required) — Time of the visit on `visitDate`. Format `HH:mm:ss` (24-hour, local park time). ### AssetResponse One issued asset inside a wallet. The OTA Channel Manager issues two asset types: - `ticket` — an admission ticket. `referenceNumber` is the external ticket number, `itemNumber` is the ticket item, and `description` is the (translated) ticket item description. - `coupon` — a discount coupon, issued alongside the tickets of a package whose component item has a `WalletCouponSetup` configured. `referenceNumber` is the coupon reference number, `itemNumber` is the coupon's trigger item, and `description` is the (translated) trigger item description. - `id` (UUID, required) — Identifier of the asset line within the wallet — independent of the asset type. - `type` (enum, required) — Type of the asset. `ticket` is an admission ticket; `coupon` is a discount coupon issued alongside a package's tickets when the package's components have a `WalletCouponSetup` configured. - Allowed values: `ticket`, `coupon` - `assetId` (UUID, required) — Globally unique identifier of an asset (ticket or coupon) inside a wallet. - `referenceNumber` (string, required) — External reference number printed on the asset — the external ticket number for tickets, or the coupon reference number for coupons. - `itemNumber` (string, required) — Business Central item number that identifies the product being sold. Must exist as an Item record. A package item (one with an Item Add-On) expands into multiple component admissions, optionally with coupons; a non-package item is a single ticket item. - `description` (string, required) — Item description, translated to the line's `sellToLanguage` via Item Translation when available; otherwise the default item description. Returned by the server. ## Examples **Request** ```json { "partnerId": "21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e", "sellToOrderReference": "PARTNER-ORDER-2026-00042", "items": [ { "itemNumber": "31001", "visitDate": "2026-06-01", "visitTime": "10:30:00", "quantity": 2, "wallet": { "names": [ "Jane Doe", "John Doe" ], "externalReferenceNumbers": [ "JD-2026-001", "JOHN-2026-001" ] } } ], "sellToEmail": "guest@example.com", "sellToName": "Jane Doe", "sellToLanguage": "ENU", "paymentReference": "PAY-987654" } ``` **Response** ```json { "orderId": "9c6b2f4e-2b71-4d23-9d6a-a3b4c5d6e7f8", "status": "Submitted", "statusMessage": "", "partnerId": "21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e", "sellToOrderReference": "PARTNER-ORDER-2026-00042", "buyFromOrderReference": "CM-20260515093000-A1B2", "receivedAt": "2026-05-15T09:30:00Z", "items": [ { "lineNo": 100000, "itemNumber": "31001", "description": "Castle Admission", "isPackage": false, "quantity": 1, "visitDate": "2026-06-01", "visitTime": "10:30:00", "wallets": [ { "seqNo": 1, "assets": [ { "id": "2c3a84c7-059f-41d3-8033-0d94e08d4b13", "type": "ticket", "assetId": "3d4b95d8-16e0-42e4-9b2a-1d95f08d5c14", "referenceNumber": "ATF-BIL010665L-3", "itemNumber": "31001", "description": "Castle Admission" } ], "walletId": "5a1c2b3d-4e5f-6071-8293-a4b5c6d7e8f9", "walletReferenceNumber": "141234529930210327", "externalReferenceNumber": "JD-2026-001", "name": "Jane Doe", "issuedAt": "2026-05-15T09:30:05Z", "unitPriceExclVat": 80, "unitPriceInclVat": 100, "currencyCode": "DKK", "manifestUrl": "https://manifests.npretail.app/wallets/manifest?mid=9c6b2f4e-2b71-4d23-9d6a-a3b4c5d6e7f8" } ], "sellToName": "Jane Doe", "sellToEmail": "guest@example.com", "sellToLanguage": "ENU" } ], "sellToEmail": "guest@example.com", "sellToName": "Jane Doe", "sellToLanguage": "ENU", "paymentReference": "PAY-987654" } ``` **SDK Code** ```python Submit an order for an individual ticket import requests url = "https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./channelManager" payload = { "partnerId": "21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e", "sellToOrderReference": "PARTNER-ORDER-2026-00042", "items": [ { "itemNumber": "31001", "visitDate": "2026-06-01", "visitTime": "10:30:00", "quantity": 2, "wallet": { "names": ["Jane Doe", "John Doe"], "externalReferenceNumbers": ["JD-2026-001", "JOHN-2026-001"] } } ], "sellToEmail": "guest@example.com", "sellToName": "Jane Doe", "sellToLanguage": "ENU", "paymentReference": "PAY-987654" } headers = { "x-np-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Submit an order for an individual ticket const url = 'https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./channelManager'; const options = { method: 'POST', headers: {'x-np-api-key': '', 'Content-Type': 'application/json'}, body: '{"partnerId":"21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e","sellToOrderReference":"PARTNER-ORDER-2026-00042","items":[{"itemNumber":"31001","visitDate":"2026-06-01","visitTime":"10:30:00","quantity":2,"wallet":{"names":["Jane Doe","John Doe"],"externalReferenceNumbers":["JD-2026-001","JOHN-2026-001"]}}],"sellToEmail":"guest@example.com","sellToName":"Jane Doe","sellToLanguage":"ENU","paymentReference":"PAY-987654"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Submit an order for an individual ticket package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./channelManager" payload := strings.NewReader("{\n \"partnerId\": \"21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e\",\n \"sellToOrderReference\": \"PARTNER-ORDER-2026-00042\",\n \"items\": [\n {\n \"itemNumber\": \"31001\",\n \"visitDate\": \"2026-06-01\",\n \"visitTime\": \"10:30:00\",\n \"quantity\": 2,\n \"wallet\": {\n \"names\": [\n \"Jane Doe\",\n \"John Doe\"\n ],\n \"externalReferenceNumbers\": [\n \"JD-2026-001\",\n \"JOHN-2026-001\"\n ]\n }\n }\n ],\n \"sellToEmail\": \"guest@example.com\",\n \"sellToName\": \"Jane Doe\",\n \"sellToLanguage\": \"ENU\",\n \"paymentReference\": \"PAY-987654\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-np-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Submit an order for an individual ticket require 'uri' require 'net/http' url = URI("https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./channelManager") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-np-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"partnerId\": \"21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e\",\n \"sellToOrderReference\": \"PARTNER-ORDER-2026-00042\",\n \"items\": [\n {\n \"itemNumber\": \"31001\",\n \"visitDate\": \"2026-06-01\",\n \"visitTime\": \"10:30:00\",\n \"quantity\": 2,\n \"wallet\": {\n \"names\": [\n \"Jane Doe\",\n \"John Doe\"\n ],\n \"externalReferenceNumbers\": [\n \"JD-2026-001\",\n \"JOHN-2026-001\"\n ]\n }\n }\n ],\n \"sellToEmail\": \"guest@example.com\",\n \"sellToName\": \"Jane Doe\",\n \"sellToLanguage\": \"ENU\",\n \"paymentReference\": \"PAY-987654\"\n}" response = http.request(request) puts response.read_body ``` ```java Submit an order for an individual ticket import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./channelManager") .header("x-np-api-key", "") .header("Content-Type", "application/json") .body("{\n \"partnerId\": \"21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e\",\n \"sellToOrderReference\": \"PARTNER-ORDER-2026-00042\",\n \"items\": [\n {\n \"itemNumber\": \"31001\",\n \"visitDate\": \"2026-06-01\",\n \"visitTime\": \"10:30:00\",\n \"quantity\": 2,\n \"wallet\": {\n \"names\": [\n \"Jane Doe\",\n \"John Doe\"\n ],\n \"externalReferenceNumbers\": [\n \"JD-2026-001\",\n \"JOHN-2026-001\"\n ]\n }\n }\n ],\n \"sellToEmail\": \"guest@example.com\",\n \"sellToName\": \"Jane Doe\",\n \"sellToLanguage\": \"ENU\",\n \"paymentReference\": \"PAY-987654\"\n}") .asString(); ``` ```php Submit an order for an individual ticket request('POST', 'https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./channelManager', [ 'body' => '{ "partnerId": "21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e", "sellToOrderReference": "PARTNER-ORDER-2026-00042", "items": [ { "itemNumber": "31001", "visitDate": "2026-06-01", "visitTime": "10:30:00", "quantity": 2, "wallet": { "names": [ "Jane Doe", "John Doe" ], "externalReferenceNumbers": [ "JD-2026-001", "JOHN-2026-001" ] } } ], "sellToEmail": "guest@example.com", "sellToName": "Jane Doe", "sellToLanguage": "ENU", "paymentReference": "PAY-987654" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-np-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Submit an order for an individual ticket using RestSharp; var client = new RestClient("https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./channelManager"); var request = new RestRequest(Method.POST); request.AddHeader("x-np-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"partnerId\": \"21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e\",\n \"sellToOrderReference\": \"PARTNER-ORDER-2026-00042\",\n \"items\": [\n {\n \"itemNumber\": \"31001\",\n \"visitDate\": \"2026-06-01\",\n \"visitTime\": \"10:30:00\",\n \"quantity\": 2,\n \"wallet\": {\n \"names\": [\n \"Jane Doe\",\n \"John Doe\"\n ],\n \"externalReferenceNumbers\": [\n \"JD-2026-001\",\n \"JOHN-2026-001\"\n ]\n }\n }\n ],\n \"sellToEmail\": \"guest@example.com\",\n \"sellToName\": \"Jane Doe\",\n \"sellToLanguage\": \"ENU\",\n \"paymentReference\": \"PAY-987654\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Submit an order for an individual ticket import Foundation let headers = [ "x-np-api-key": "", "Content-Type": "application/json" ] let parameters = [ "partnerId": "21e8c1d2-3f4a-4c5b-9e6d-7f8a9b0c1d2e", "sellToOrderReference": "PARTNER-ORDER-2026-00042", "items": [ [ "itemNumber": "31001", "visitDate": "2026-06-01", "visitTime": "10:30:00", "quantity": 2, "wallet": [ "names": ["Jane Doe", "John Doe"], "externalReferenceNumbers": ["JD-2026-001", "JOHN-2026-001"] ] ] ], "sellToEmail": "guest@example.com", "sellToName": "Jane Doe", "sellToLanguage": "ENU", "paymentReference": "PAY-987654" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./channelManager")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` > Documentation for NaviPartner's NP Retail, NP Attractions, NP Hospitality, NP Store Assistant and Entria products, plus their REST APIs, built on Microsoft Dynamics 365 Business Central.