The BT Wholesale Product Order REST API (based on TMF622 standards) allows you to place, amend, and track orders for Wholesale Ethernet products.
Unlike the quoting process, service provisioning is an asynchronous operation. The API uses a single unified REST POST method to accept orders across all supported Ethernet topologies. Upon submission, it returns an immediate synchronous acknowledgment, and the actual fulfillment progress is communicated back to your system via webhook notifications.
Before structuring the specific product payloads for your orders, you must understand the common prerequisites, header requirements, and the fundamental rules for building a composite order payload.
Step 1: Complete prerequisites
Your requirements depend on whether you are connecting to an existing circuit or building a brand-new site.
| For new physical installations | For logical-only orders (in the case of an existing Etherway service) |
|---|---|
|
|
Step 2: Construct the request headers
Every POST request to the ordering endpoint requires standard mandatory HTTP headers:
|
Mandatory header parameter |
Description |
Example value |
|---|---|---|
| APIGW-Tracking-Header | A unique reference you generate to track the transaction end-to-end. The recommended format is a UUID. | 96bb97fa-b941-46bb-8c4e-86c616c28a13 |
| Authorization | The OAuth access token, prefixed with 'Bearer '. | Bearer <access_token> |
| Content-Type | The only supported format for the request body is JSON. | application/json |
| productFamily | Represents the product family for this API gateway. | ethernet |
Step 3: Understand the payload structure
Before building specific payloads, you must understand the rules used by this API.
3.1 The common envelope
Every request uses a root "envelope" containing your tracking ID (externalId), the billingAccount, and the KCI Contact (the person who receives status updates).
| Property | Value | Description |
|---|---|---|
| externalId | "QS-ELAN-001" | Your reference for this specific network expansion. |
| billingAccount.id | "0455821113" | The account paying for the E-LAN monthly service. |
| relatedParty | KciContact | The person to notify when the node is "Live." |
3.2 The sibling rule (nesting)
In this API, maintenance plans and site logistics are not "characteristics" of a product; they are child items. They are placed in a nested orderItem array that sits as a sibling to the product object.
3.3 Relationship types
Because Ethernet is a composite service (a virtual path running over a physical cable), you must tell the API how these components connect. There are two distinct ways to create this link based on whether the cable is new or already exists.
|
Relationship type (@type) |
When to use it |
Logic |
|---|---|---|
|
btOrderItemRelationship |
New physical builds |
Points to another id defined inside the same JSON payload (e.g., ITEM-1). Use this when ordering a new Etherway and Etherflow together. |
|
btServiceRelationship |
Add to existing access |
Points to a Service ID already active in the BT network (e.g., ETHA12345678). Use this for Scenarios 1-4. If you use btServiceRelationship for a new site, the order will fail because the orchestrator is looking for an existing circuit that doesn't exist yet. |
3.4: Functional mandatory checklist
To ensure your order passes initial validation, verify that your characteristics include these "functional mandatories" based on your product choice. Check the Mandatory rows in the characteristic table of your product:
Step 4: Quick start guides
Scenario 1: Ordering new physical access (Etherway)
This scenario is used to request the installation of a new physical infrastructure at a customer site (identified with a NAD Key).
Example payload snippet
- Root: Etherway order envelope
-
The top-level product order containing billing information and the primary KciContact for status notifications.
{ "externalId": "QS-ETHWAY-NEW-001", "submittedDate": "2024-05-01T10:00:00.000Z", "billingAccount": { "id": "0455821113" }, "relatedParty": [ { "role": "KciContact",
"@referredType": "individualParty", "givenName": "John", "familyName": "Doe", "contactMedium": [{ "type": "Email", "medium": { "emailAddress": "john.doe@example.com" } }] } ], "@baseType": "productOrder",
"@type": "btProductOrder", "orderItem": [- OrderItem [0]: Primary Etherway service
-
The main physical access circuit providing the 100Mbit/s interface at the customer site.
{ "id": "ITEM-1", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem", "requiredByDate": "2024-06-15T00:00:00.000Z", "billingAccount": { "id": "0455821113" },- Relationship: Network
-
Specifies the network node this Etherway connects to.
"productOrderItemRelationship": [ { "id": "ETHN00555342", "relationshipType": "reliesOn",
"@baseType": "OrderItemRelationship",
"@type": "btServiceRelationship", "btType": "Network" } ],
- Product: Installation address & site details
-
Physical location details including room, floor, and the local site manager contact.
"product": { "id": "Etherway",
"productSpecification": { "id": "Etherway" }, "place": [{ "id": "A90000101148", "role": "installationAddress", "@referredType": "CustomerSite" }], "btSiteDetails": { "Room": "Server Room 1", "floor": "Basement", "CompanyName": "Mellone Financials" }, "relatedParty": [{ "role": "ServiceContact",
"@referredType": "individualParty", "givenName": "John", "familyName": "Site-Manager", "contactMedium": [{ "type": "TelephoneNumber", "medium": { "number": "07700900123" } }] }],
- Characteristics: bandwidth & interface
-
Technical specifications for the circuit and handoff equipment.
"characteristic": [ { "@baseType": "productCharacteristic", "@type": "btProductCharacteristic", "name": "Bandwidth", "value": "100Mbit/s" }, { "@baseType": "productCharacteristic", "@type": "btProductCharacteristic", "name": "InterfaceType", "value": "100BaseT" }, { "@baseType": "productCharacteristic", "@type": "btProductCharacteristic", "name": "NTEModelType", "value": "Cabinet" }, { "@baseType": "productCharacteristic", "@type": "btProductCharacteristic", "name": "PowerSupplyBEnd", "value": "240v AC" } ] },
- Nested children: Site readiness, visit, and SLA
-
Child items handling the site survey, readiness confirmation, and maintenance agreement.
"orderItem": [ { "id": "SITE-DETAILS-1", ..., "product": { "id": "Etherway Site Details", ... } }, { "id": "SITE-VISIT-1", ..., "product": { "id": "Etherway Site Visit", ... } }, { "id": "SLA-1", ..., "product": { "id": "Maintenance Category 3", ... } } ]
}
] }
Scenario 2: Adding Etherflow Internet to an existing physical access
It creates a logical Internet flow on top of an existing cable.
- Relationship: Uses FromNode and Network.
- Discriminator: Must use @type: "btServiceRelationship".
Example payload snippet
- Root: Internet order envelope
-
The outer shell containing global metadata, billing, and the primary contact (KCI).
{ "externalId": "QS-INT-001", "submittedDate": "2024-05-01T10:00:00.000Z", "billingAccount": { "id": "0455821113" }, "relatedParty": [ { "role": "KciContact", "@referredType": "individualParty", "givenName": "John", "familyName": "Doe", "contactMedium": [ { "type": "Email", "medium": { "emailAddress": "john.doe@example.com" } } ] } ], "@baseType": "productOrder", "@type": "btProductOrder", "orderItem": [- OrderItem: The Etherflow virtual path
-
The main line item defining the virtual internet path and its mandatory dependencies (Physical Access and Network Gateway).
{ "id": "ITEM-1", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem", "requiredByDate": "2024-06-01T00:00:00.000Z", "billingAccount": { "id": "0455821113" }, "productOrderItemRelationship": [ { "id": "ETHA12345678", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btServiceRelationship", "btType": "FromNode" }, { "id": "ETHN00555342", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btServiceRelationship", "btType": "Network" } ], "product": { "id": "Etherflow - Internet", "productSpecification": { "id": "Etherflow - Internet" }, "@baseType": "product", "@type": "btProduct", "characteristic": [ { "@baseType": "productCharacteristic", "@type": "btProductCharacteristic", "name": "Bandwidth", "value": "100Mbit/s" }, { "@baseType": "productCharacteristic", "@type": "btProductCharacteristic", "name": "Contention", "value": "Premium" } ] },- Nested Child: IP Address Assignment
-
A required sub-item to define the IP addressing for the circuit.
"orderItem": [ { "id": "IP-ITEM-1", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem", "requiredByDate": "2024-06-01T00:00:00.000Z", "billingAccount": { "id": "0455821113" }, "product": { "id": "Etherflow BT IPV4 Address", "productSpecification": { "id": "Etherflow BT IPV4 Address" }, "@baseType": "product", "@type": "btProduct", "characteristic": [ { "@baseType": "productCharacteristic", "@type": "btProductCharacteristic", "name": "NumberofusableIPaddressesrequested", "value": "8" } ] } },
- Nested Child: Maintenance SLA
-
Ensures the service is covered by a 24/7 repair agreement.
{ "id": "SLA-1", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem", "product": { "id": "Maintenance Category 3", "productSpecification": { "id": "Maintenance Category 3" }, "@baseType": "product", "@type": "btProduct" } } ]
}
] }
Scenario 3: Adding an Etherflow Dynamic node to an E-LAN
Connects an existing circuit to an E-LAN "mesh" network.
Requires FromNode, ToNode, and Network.
Example payload snippet
- Root: E-LAN order envelope
-
The standard TMF622 header. For this Quick Start, we include the global KciContact and essential type discriminators.
{ "externalId": "QS-ELAN-MIN-001", "submittedDate": "2024-05-01T10:00:00.000Z", "billingAccount": { "id": "0455815535" }, "relatedParty": [ { "role": "KciContact", "@referredType": "individualParty", "@baseType": "relatedParty", "givenName": "John", "familyName": "Doe", "contactMedium": [{ "type": "Email", "medium": { "emailAddress": "john.doe@example.com" } }] } ], "@baseType": "productOrder", "@type": "btProductOrder", "orderItem": [- OrderItem: The E-LAN node (Etherflow Dynamic)
-
This block represents the logical "on-ramp" connecting a specific site to your E-LAN mesh.
{ "id": "ITEM-1", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem", "requiredByDate": "2024-06-01T00:00:00.000Z", "billingAccount": { "id": "0455815535" },- Relationships: The three hooks
-
E-LAN requires three hooks: FromNode (physical access), Network (E-LAN hub), and ToNode (logical target).
"productOrderItemRelationship": [ { "id": "ETHA15532717", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btServiceRelationship", "btType": "FromNode" }, { "id": "ETHN00100938", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btServiceRelationship", "btType": "Network" }, { "id": "ETHE15736490", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btServiceRelationship", "btType": "ToNode" } ],
- Product: Node configuration (bandwidth & QoS)
-
"product": { "id": "Etherflow Dynamic", "productSpecification": { "id": "Etherflow Dynamic" }, "@baseType": "product", "@type": "btProduct", "characteristic": [ { "name": "Bandwidth", "value": "50Mbit/s", "@baseType": "productCharacteristic", "@type": "btProductCharacteristic" }, { "name": "QoS", "value": "Multi-CoS", "@baseType": "productCharacteristic", "@type": "btProductCharacteristic" } ] },
- Nested child: Maintenance SLA
-
"orderItem": [ { "id": "SLA-1", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem",
"requiredByDate": "2022-07-01T09:00:00.534Z",
"billingAccount": { "id": "0455815535" }, "product": { "id": "Maintenance Category 3", "productSpecification": { "id": "Maintenance Category 3" }, "@baseType": "product", "@type": "btProduct" } } ]
}
] }
Scenario 4: Adding an Etherflow Connected E-Line path
Creates a dedicated virtual path between two existing physical sites.
Requires FromNode (Site A) and ToNode (Site B).
Example payload snippet
- Root: E-Line order envelope
-
The global envelope containing billing and KciContact for order status updates.
{ "externalId": "QS-ELINE-MIN-001", "submittedDate": "2024-05-01T10:00:00.000Z", "billingAccount": { "id": "0455821113" }, "relatedParty": [ { "role": "KciContact", "@referredType": "individualParty", "@baseType": "relatedParty", "givenName": "John", "familyName": "Doe", "contactMedium": [{ "type": "Email", "medium": { "emailAddress": "john.doe@example.com" } }] } ], "@baseType": "productOrder", "@type": "btProductOrder", "orderItem": [- OrderItem [0]: The parent E-Line service (Etherflow Connected)
-
The primary line item. It links your physical endpoints (FromNode and ToNode) into a point-to-point service.
{ "id": "ITEM-1", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem", "requiredByDate": "2024-06-01T00:00:00.000Z", "billingAccount": { "id": "0455821113" },- Relationships: Site A, Site B, and Network
-
E-Line requires both endpoints (FromNode and ToNode) and the Network hub ID.
"productOrderItemRelationship": [ { "id": "ETHA00577119", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btServiceRelationship", "btType": "FromNode" }, { "id": "ETHA00575585", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btServiceRelationship", "btType": "ToNode" }, { "id": "ETHN00555342", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btServiceRelationship", "btType": "Network" } ],
- Product: Virtual path settings
-
"product": { "id": "Etherflow - Connected", "productSpecification": { "id": "Etherflow - Connected" }, "@baseType": "product", "@type": "btProduct", "characteristic": [ { "name": "Bandwidth", "value": "100Mbit/s", "@baseType": "productCharacteristic", "@type": "btProductCharacteristic" }, { "name": "Contention", "value": "Standard", "@baseType": "productCharacteristic", "@type": "btProductCharacteristic" } ] },
- Nested child: Maintenance SLA
-
Provides the 24/7 repair agreement for the parent circuit.
"orderItem": [ { "id": "SLA-1", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem",
"requiredByDate": "2022-06-24T10:42:08.534Z",
"billingAccount": { "id": "0455821113" }, "product": { "id": "Maintenance Category 3", "productSpecification": { "id": "Maintenance Category 3" }, "@baseType": "product", "@type": "btProduct" } } ]
}
] }
Scenario 5: Ordering Etherway and Etherflow Connected services for a new E-Line
Example payload snippet
- Root: Full E-Line Solution (Two sites + logic)
-
An all-in-one payload containing two new physical Etherway access points and the logical Etherflow service linking them. The root carries the billing account and the KciContact for status notifications.
{ "externalId": "E7W001_29042022_1128", "submittedDate": "2024-05-01T10:00:00.000Z", "billingAccount": { "id": "0455821113" }, "relatedParty": [ { "role": "KciContact", "@referredType": "individualParty", "title": "Ms.", "givenName": "Jane", "familyName": "Smith", "contactMedium": [{ "type": "Email", "medium": { "emailAddress": "jane.smith@example.com" } }] } ], "@baseType": "productOrder", "@type": "btProductOrder", "orderItem": [- OrderItem [0]: Site A - Physical access (FromNode)
-
The first physical endpoint for the service, located on the 6th floor.
{ "id": "SITE-A", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem", "requiredByDate": "2024-06-15T00:00:00.000Z", "billingAccount": { "id": "0455821113" }, "product": { "id": "Etherway", "productSpecification": { "id": "Etherway" }, "@baseType": "product", "@type": "btProduct", "place": [{ "id": "A90000101148", "role": "installationAddress", "@referredType": "CustomerSite" }], "btSiteDetails": { "Room": "3", "floor": "6" }, "characteristic": [ /* Etherway characteristics */ ] }, "orderItem": [ /* Nested Site Details/Visits */ ] },
- OrderItem [1]: Site B - Physical access (ToNode)
-
The second physical endpoint, located in the Ground Floor Server Room.
{ "id": "SITE-B", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem", "requiredByDate": "2024-06-15T00:00:00.000Z", "billingAccount": { "id": "0455821113" }, "product": { "id": "Etherway", "productSpecification": { "id": "Etherway" }, "@baseType": "product", "@type": "btProduct", "place": [{ "id": "A90000298663", "role": "installationAddress", "@referredType": "CustomerSite" }], "btSiteDetails": { "Room": "Server Room", "floor": "Ground" }, "characteristic": [ /* Etherway characteristics */ ] }, "orderItem": [ /* Nested Site Details/Visits */ ] },
- OrderItem [2]: The E-Line - Logical connection
-
The "glue" item. It uses btOrderItemRelationship to link SITE-A and SITE-B (defined above) as the From/To nodes, and btServiceRelationship to point to the existing network.
{ "id": "ELINE-LOGIC-ITEM", "action": "add", "@baseType": "productOrderItem", "@type": "btProductOrderItem", "requiredByDate": "2024-06-15T00:00:00.000Z", "billingAccount": { "id": "0455821113" }, "productOrderItemRelationship": [ { "id": "SITE-A", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btOrderItemRelationship", "btType": "FromNode" }, { "id": "SITE-B", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btOrderItemRelationship", "btType": "ToNode" }, { "id": "ETHN00555342", "relationshipType": "reliesOn", "@baseType": "OrderItemRelationship", "@type": "btServiceRelationship", "btType": "Network" } ], "product": { "id": "Etherflow - Connected", "productSpecification": { "id": "Etherflow - Connected" }, "@baseType": "product", "@type": "btProduct", "characteristic": [ /* Etherflow Connected characteristics */ ] }, "orderItem": [ /* Nested maintenance item */ ] }
] }
Step 5: Send the request
Once your product-specific JSON payload is built, send it in the body of a POST request to the unified endpoint: /productOrder.
For sandbox testing, use:
POST https://api-sandbox.wholesale.bt.com/v1/productOrderingManagement/productOrderIn the production environment, use:
POST https://api.wholesale.bt.com/v1/productOrderingManagement/productOrder
- Synchronous response: You will receive a 200 OK with the message {"message": "Process Initiated"}.
- Tracking: The response doesn't include an order ID. Keep your externalId. The BT order ID (productOrder.id) arrives in the order-creation notification, and you need it for the tracking endpoints.
- Sandbox tracking headers:
- Any APIGW-Tracking-Header value (for example PASS01) simulates a successful response.
- Use E00101 to simulate a 500 Internal Error
- Use E02301 to simulate a 400 error (code 23, missing externalId).
Step 6: Listen for notifications
Because physical Ethernet provisioning requires network routing checks, site surveys, and civil engineering, the actual order processing happens asynchronously. Your system must be configured to listen for webhook notifications (such as ProductOrderStateChangeEvent).
These webhooks will inform you as the order transitions through states like acknowledged, inProgress, and finally, completed.
See more details: Order lifecycle and notifications
Common API-specific errors & Troubleshooting
If the request is unsuccessful, the API will return a synchronous error response. For issues specific to this API, the service will return a 4xx status with a specific code and message, which you can find in the table below.
|
Code |
Message |
Description |
|---|---|---|
| 01 |
Internal Error / Internal Service Error
|
BT error code.
|
| 05 |
The service is temporarily unavailable
|
Please try again later.
|
| 21 | Missing body | This resource requires a body to be provided in the request. |
| 22 |
Invalid body / The posted body is not well-formed and thus cannot be parsed. / There is problem in processing request as modify/deletion with more than one orderItem is not valid.
|
The body of the request does not conform to a standard and cannot be parsed. |
| 23 |
Missing body field / There is problem in processing request as mandatory data <parameter> is missing in request. Please retry request with mandatory data
|
The indicated parameter is missing from the body of the request.
|
| 24 |
Invalid body field / There is problem in processing request as submittedDate can't be past or future date. Please retry request with valid date.
|
The indicated parameter in the body of the request is not recognised.
|
| 25 |
Missing header: <parameter> / Missing header
|
The indicated parameter is missing from the request header.
|
| 26 |
Invalid header value / Missing header : <parameter> / APIGW Tracking header contain invalid values.
|
The indicated parameter in the request header is not recognised.
|
| 29 |
A general bad request error where we don't want to be any more specific.
|
A general bad request error where we don't want to be any more specific.
|
| 40 |
Missing credentials
|
The Authorization parameter is missing.
|
| 41 |
Invalid credentials
|
The Authorization parameter is not valid. |
| 42 | Expired credentials | Renew the access token using the OAuth API and try again. |
| 50 |
Access denied
|
The client application is not authorised to call this resource. |
| 53 |
Too many requests
|
The client application has made too many requests in a short time; please try again later.
|
| 60 |
Resource not found
|
The requested URI or resource does not exist.
|
| 61 |
Method not allowed
|
The requested method is not supported by this resource.
|
| 68 |
Unsupported Media Type
|
The format of the posted body is not supported by the endpoint.
|
| 69 |
Gateway Timeout
|
System timed out talking to downstream system.
|
For details on common HTTP, OAuth, and OpenID Connect error codes and their solutions, see the Troubleshooting guide.
Next steps
Now that you understand the ordering prerequisites, standard request headers, and the composite parent/child logic, you are ready to build your product-specific JSON payloads.
- Order lifecycle and notifications: Learn how to use the GET /productOrder and GET /orderMilestones endpoints to track your inflight services.
- Amending and cancelling orders : Learn how to PATCH an inflight order or terminate a service.
- Monitoring order process updates: Learn how to implement a callback listener to manage the lifecycle of Ethernet orders