Skip to content

Create and invoice an order

Create a finalized order and send its invoice through available customer channels.

Use existing customer, product, and price IDs. Finalizing seals the order so its invoice can be sent, but it does not charge the customer.

Prompt

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.

Summary + delivery table
Order
WEB-1042
ord_example_1042
Status
Finalized
Payment
Not started
Total
GHS 700.00
2 products
Invoice delivery
ChannelResultReference
EmailSentchime_example_email
SMSSentchime_example_sms

Invoice delivery can partially succeed. The agent reports each channel’s outcome instead of reducing the delivery attempt to one success or failure.

Type to search…

↑↓ navigate↵ selectEsc close