Northwind Logistics · Engineering guides · Start here

The order journeyv1.0

Pay for the order

Send order #4711 through the payment service and watch the card authorised.

Time 5 minutes
You need Order #4711 placed

1Pay#

Shell
curl -X POST localhost:8082/orders/4711/pay
text
{"order": 4711, "status": "paid", "attempts": 1, "elapsed_ms": 212}

2Read the payment record#

Shell
curl -s localhost:8082/orders/4711/payment | jq '{status, attempts, key}'

The key is the order id. The bank uses it to recognise the same request if it arrives twice; the next part of the guide depends on it. See A declined card.

Edit this page

Questions about this guide go to #order-journey on chat. The lab runs on your laptop and never touches production.