Look up an order by order number and cancel every eligible item in a single conversation. A service agent describes the goal in natural language. The AI client checks eligibility, submits the cancellation, and confirms the result without opening the Order Management console.
Required Editions
| View supported editions. |
Canceling order items is a high-volume servicing task. To do it by hand, you navigate the order, check each line item's remaining quantity, and submit a change order. The agent does that work through the Order Management APIs. The person doing the job stays in a single conversation and keeps oversight of every change.
Scenario
Northern Trail Outfitters runs a high-volume support desk. Priya, a service agent, takes a call from a customer who wants to cancel two items on order 00035107 before they ship. The console path is to open the order, read each line item's quantity available to cancel, and select a reason, then submit a change order. That navigation takes several minutes per call. Instead, Priya asks the AI client to pull up the order and cancel the eligible items. In under a minute, the agent confirms the order, cancels the items that Order Management hasn't allocated or fulfilled, and reports the refunded amount. Priya handles more calls with fewer misfires, and every cancellation follows the same eligibility checks.
Requirements
Complete the shared setup in AI Agent Use Cases for Order Management.
This use case also needs:
- Active orders with items that are still eligible to cancel—not yet allocated or fulfilled.
- The Order Management Agent or Order Management Operations Manager permission set. If your org doesn't include Omnichannel Inventory, use Order Management: Agent without Omnichannel Inventory or Order Management: Operations Manager without Omnichannel Inventory.
- Order numbers that match between your storefront and Order Management.
The order-servicing functionality comes from the Salesforce Order Management APIs (Generally Available), which read the order summary and submit the item cancellation. This use case is recommended for service agents who are comfortable with order servicing. It assumes familiarity with order status, allocation, and fulfillment.
Agentic Tips
- Describe your goal in your own words. For example:
- "Find the last five orders."
- "Pull up order 00035107 and cancel the items that are still eligible."
- "Cancel the backordered items on order 00035107."
- "Which items on this order can I still cancel? Go ahead and cancel them."
- Include the order number, the items to cancel, a cancellation reason, and whether to cancel shipping.
- Have the agent find the order and report which items are eligible before it acts. You confirm the items, and then the agent submits the cancellation and rereads the order to verify the result.
- Approve the cancellation. Review the eligible-items list and confirm it before the agent submits.
- Avoid pasting credentials into a prompt. The agent acts as your authenticated user through the connected org.
Find and Cancel Eligible Order Items
Find an order by order number and cancel every eligible item.
Required Editions
- Confirm that your AI client is connected to your Order Management org as an authenticated user with permission to read orders and submit cancellations.
-
Ask the agent to find the order by order number.
The agent returns the order number, status, account, order total, order date, and the number of line items.
-
Ask the agent to cancel items.
The agent checks each line item's quantity available to cancel and tells you which items are eligible.
- Choose the items and a cancellation reason, and decide whether to cancel shipping.
-
Review the request and confirm it.
The agent submits all eligible items in a single cancellation.
- Let the agent reread the order to confirm the result.
The agent reports that the cancellation was submitted and shows the updated order status. A change order is created, the order totals are updated, and the status of each canceled item reflects the remaining ordered quantity. If payment was already captured for the canceled items, the excess funds are refunded. The agent reports the outcome for each item and doesn't treat a partial failure as a clean success.