Order Complete
Allowed from draft, failed and payment_declined (Try again uses a new Idempotency-Key); refused with 409 in any other state. Signing (FR-020): the server records the terms version, typed name, signature image and method, time and client IP. Saves the agreement evidence and the job in one transaction, publishes to Service Bus, and returns. The worker creates the customer, then takes the payment as the last step; if payment fails, the new customer is undone and nothing is charged. Success ends in awaiting_appointment.
Authentication
Random token from createSignup or the resume link. Stored hashed; expires.
Path parameters
Headers
One key per user attempt; retries reuse it and get the original result.
Request
Response
Accepted; poll status
awaiting_appointment: account and payment done, show the appointment step. payment_declined: back to the card step. slot_unavailable: back to the appointment step. complete: show the confirmation page.
Shown on the confirmation and failure screens, e.g. MX-8I64MVE.
Masked email, e.g. j***@gmail.com.