Skip to navigation

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

Path parameters

signupIdstringRequired

Headers

Idempotency-KeystringRequiredformat: "uuid"

One key per user attempt; retries reuse it and get the original result.

CF-Turnstile-ResponsestringRequired
Token from the Turnstile widget.

Request

This endpoint expects an object.
quoteIdstringRequired<=255 characters
paymentTokenstringRequired<=4096 characters
Token from the Payrix iframe. Card data never reaches the API.
agreementobjectRequired

Response

Accepted; poll status

stateenum

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.

stepslist of objects
referencestringformat: "^MX-[A-Z0-9]{7}$"

Shown on the confirmation and failure screens, e.g. MX-8I64MVE.

accountNumberstringOptional<=255 characters
FieldRoutes customer ID. Present when state is complete.
confirmationSentTostringOptional<=255 characters

Masked email, e.g. j***@gmail.com.

errorobjectOptional
confirmationobjectOptional
Everything the confirmation page shows. Present only when state is complete.

Errors

404
Not Found Error
409
Conflict Error
410
Gone Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error