Create and invoice an order
Use existing customer, product, and price IDs. Finalizing seals the order so its invoice can be sent, but it does not charge the customer.
Create and finalize an order for customer <CUSTOMER_ID> containing two units
of product <PRODUCT_ID> at price <PRICE_ID>. Do not execute payment. After
creation, send its invoice through the customer's available channels. Confirm
the order and delivery separately, then report the order ID, calculated total,
and channels that succeeded or failed.
The first confirmation covers create_order. The second covers send_order_invoice. Keeping them separate prevents a delivery failure from obscuring a successfully created order.
Sample response
Order created and invoice sent
The order result and delivery result remain distinct, so a channel failure cannot hide a successful order.
- Order
- WEB-1042 ord_example_1042
- Status
- Finalized
- Payment
- Not started
- Total
- GHS 700.00 2 products
Invoice delivery
| Channel | Result | Reference |
|---|---|---|
| Sent | chime_example_email | |
| SMS | Sent | chime_example_sms |
Illustrative values. The exact presentation depends on the MCP client.
Invoice delivery can partially succeed. The agent reports each channel's outcome instead of reducing the delivery attempt to one success or failure.