Mailionaire
Pax8-first setup + MCP reference
Recipe
Execute with an explicit idempotency key
Destructive execution is safe only when the caller owns a stable idempotency key and reuses it for the same order intent.
Steps
Follow this sequence
1Store the preview_id from a successful preview call.
2Generate an idempotency key tied to your request context, such as a ticket id or workflow run id.
3Call provision_execute once and reuse the same idempotency key if the client has to retry the same intended order.
Outcome
What good looks like
A retried request can reuse the same durable job/order instead of creating a second order.