Skip to main content

Product Order (Ethernet)

This tutorial explains how to manage your Ethernet orders after they have been submitted. Depending on whether you need to update specific details or stop the order entirely, you will use either a partial amendment or a full cancellation.


Scenario 1. Amending an in-flight order (PATCH)

Use the PATCH /productOrder/{orderId} endpoint to modify specific attributes of an order that is currently being processed. This is commonly used for updating administrative details or requested dates without restarting the provisioning process.

For sandbox testing, use: 

PATCH https://api-sandbox.wholesale.bt.com/v1/productOrderingManagement/productOrder/{orderId}

In the production environment, use:

PATCH https://api.wholesale.bt.com/v1/productOrderingManagement/productOrder/{orderId}

 

Key constraints

  • Single line-item rule: You can amend a single order item per request.
  • Cease orders: You cannot use PATCH to amend a "cease" (deletion) order for Etherway products.
  • Etherway SFGEA: Revisions to Etherway Superfast GEA (SFGEA) cease orders are not supported due to cascaded logic.

 

Amendable attributes

Commonly amended fields include:

  • Customer required date: Update the requiredByDate if site readiness changes.
  • Contact details: Update ServiceContact (Primary) or AlternativeServiceContact (secondary) information, such as names or phone numbers.
  • Site details: Room, floor, position, or health and safety hazards (HSHazards).
  • Technical specs: Bandwidth (specific transitions like 100M to 1G) or InterfaceType.

 

Example snippet: Updating a required date

PATCH /productOrder/1-4V2W6DF2

{
   "id": "1-4V2W6DF2",
   "externalId": "E7W001_AMEND_01",
   "orderItem": [
       {
           "btOrderItemId": "4-KAPTWVK",
           "action": "modify",
           "requiredByDate": "2024-08-15T00:00:00.534Z"
       }
   ]
}

 


Scenario 2. Full order cancellation (POST)

If you need to terminate an entire order before it is completed, use the POST /cancelProductOrder endpoint. Unlike an amendment, this action stops work on all items associated with the orderId.

For sandbox testing, use: 

POST https://api-sandbox.wholesale.bt.com/v1/productOrderingManagement/cancelProductOrder

In the production environment, use:

POST https://api.wholesale.bt.com/v1/productOrderingManagement/cancelProductOrder

 

Mandatory cancellation reasons

When submitting a cancellation, you must provide one of the following valid reasons:

  • Additional charge not accepted: The customer rejects Excess Construction Charges (ECC).
  • Change to customer requirement: The technical or business need has changed.
  • Delivery too long: The lead time exceeds the customer's threshold.
  • Placed in error/duplicate: The order was submitted twice or by mistake.
  • Alternative provider selected: The customer chose a different supplier.

 

Example snippet: Cancel product order

POST /cancelProductOrder

{
  "cancellationReason": "Change to customer requirement",
  "productOrder": {
      "id": "1-4V2W6DF2",
      "@referredType": "ProductOrder"
  },
  "@type": "CancelProductorder"
}

 


Comparing the two use cases

Feature Amendment (PATCH) Full Cancellation (POST)
Primary goal Change details (date, contact, speed) Stop the entire order
Endpoint /productOrder/{orderId} /cancelProductOrder
Scope Single line item Entire order
Response 200 OK 200 OK (Process Initiated)

 


Listen for notifications

In the BT Wholesale Ethernet API, both the PATCH /productOrder/{orderId} (amendments) and POST /cancelProductOrder (full cancellation) operations are handled asynchronously. While you receive a synchronous 200 OK acknowledgment immediately, the actual outcome is communicated later via notifications.

When you submit an amendment or a cancellation request, you should monitor the following:

  • Immediate response: You receive a message: 200 OK response.
  • Webhooks: Notifications (such as productOrderStatusNotification) are sent to the callback URL registered during your onboarding to confirm if the state has successfully transitioned to cancelled or if the amendment has been completed. See: Monitoring order progress updates.
  • Order tracker: You can also manually poll the GET /productOrder/{orderId} endpoint to see the current state of the order. See: Track progress via active endpoints.

 

Important constraint for amendments

While tracking asynchronously, remember that the API enforces a single order item rule. If you attempt to update more than one order item in a single PATCH request, the system will reject it synchronously with an error code 01 (Internal Error) or 22 (Invalid Body), stating that only one order item can be updated per request.

 

Sandbox tracking headers

Use specific headers in the sandbox to simulate different outcomes:

  • PASS01 (for PATCH): Simulates a successful amendment update.
  • Any non-error value (for cancellation): Simulates a successful "Process Initiated" response.

 


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 error 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.

 

Back to top