Every order moves through a predictable sequence of statuses as it progresses from creation to payment completion. Understanding these transitions helps you build accurate UI states and debug payment flows with confidence.
Status transitions
Orders and payments have separate state. Read both after every operation; do not infer one from the other.
Move the order forward
Create and finalize
Call Create an order. A draft order has no hosted
invoice. Set FinalizefinalizeFinalizefinalizefinalizefinalizefinalizefinalize to truetruetruetruetrueTruetruetrue to seal it and generate
the invoice, or finalize it later. Before payment starts, use Update an
order to replace mutable details.
Start payment
Call Pay for an order, or set
ExecutePaymentexecute_paymentExecutePaymentexecutePaymentexecute_paymentexecute_paymentexecute_paymentexecutePayment to truetruetruetruetrueTruetruetrue during creation. When confirmation is required, collect the OTP and call
Confirm a payment.
- Read
Payment.NextAction.Typeorder.payment.next_action.typePayment.NextAction.Typepayment.nextAction.typepayment.nextAction.typepayment.next_action.typepayment.next_action.typepayment.nextAction.typeto decide what the customer must do next. - Use
Payment.NextAction.ConfirmPayment.ExpiresAtorder.payment.next_action.confirm_payment.expires_atPayment.NextAction.ConfirmPayment.ExpiresAtpayment.nextAction.confirmPayment.expiresAtpayment.nextAction.confirmPayment.expiresAtpayment.next_action.confirm_payment.expires_atpayment.next_action.confirm_payment.expires_atpayment.nextAction.confirmPayment.expiresAtfor the OTP countdown. - After confirmation, wait for provider authorization and continue polling Look up an order.
- Fulfill only when
Statusorder.statusStatusstatusstatusstatusstatusstatusisInttegro.OrderStatus.Paid"paid""paid""paid"'paid''paid'Inttegro::Order::Status::PAIDInttegro.OrderStatuses.Paid.
Complete fulfillment
After delivering the goods or service, call Complete an order. The order moves from
Inttegro.OrderStatus.Paid"paid""paid""paid"'paid''paid'Inttegro::Order::Status::PAIDInttegro.OrderStatuses.Paid to Inttegro.OrderStatus.Completed"completed""completed""completed"'completed''completed'Inttegro::Order::Status::COMPLETEDInttegro.OrderStatuses.Completed . Completion is terminal.
Handle other outcomes
- If
Payment.Statusorder.payment.statusPayment.Statuspayment.statuspayment.statuspayment.statuspayment.statuspayment.statusisInttegro.PaymentStatus.Failed"failed""failed""failed"'failed''failed'Inttegro::Payment::Status::FAILEDInttegro.PaymentStatuses.Failed, show the failure and let the customer retry. The order normally remainsInttegro.OrderStatus.RequiresPayment"requires_payment""requires_payment""requires_payment"'requires_payment''requires_payment'Inttegro::Order::Status::REQUIRES_PAYMENTInttegro.OrderStatuses.RequiresPayment. - A canceled order has
Statusorder.statusStatusstatusstatusstatusstatusstatusset toInttegro.OrderStatus.Canceled"canceled""canceled""canceled"'canceled''canceled'Inttegro::Order::Status::CANCELEDInttegro.OrderStatuses.Canceledand cannot restart payment. - An expired order has
Statusorder.statusStatusstatusstatusstatusstatusstatusset toInttegro.OrderStatus.Expired"expired""expired""expired"'expired''expired'Inttegro::Order::Status::EXPIREDInttegro.OrderStatuses.Expired. Create a new order instead of reviving stale prices or inventory decisions.
Related resources
- Orders API - Complete order endpoint documentation
- Accept a payment - Step-by-step payment guide with code examples
- Product: Orders - High-level overview of the Orders API