POST /orders (status: placed)processingsucceeded, order status updates to approvedfailed, order remains placed and can be retriedwriteOnly and never returned in responses. Card numbers and account numbers are masked when read.curl --location --request POST '/orders/123456/payment' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 49.99,
"currency": "GBP",
"source": {
"object": "card",
"name": "J. Doe",
"number": "4242424242424242",
"cvc": "123",
"expMonth": 12,
"expYear": 2025,
"addressLine1": "123 Fake Street",
"addressLine2": "4th Floor",
"addressCity": "London",
"addressCountry": "gb",
"addressPostCode": "N12 9XX"
}
}'{
"id": "2e3b4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7a",
"amount": 49.99,
"currency": "GBP",
"source": {
"object": "card",
"name": "J. Doe",
"number": "************4242",
"cvc": "123",
"expMonth": 12,
"expYear": 2025,
"addressCountry": "gb",
"addressPostCode": "N12 9XX"
},
"status": "succeeded",
"links": {
"order": "https://api.example.com/orders/1725ff48-ab45-4bb5-9d02-88745177dedb/payment"
}
}