Application Load

IOrderCreateResponse

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IOrderCreateResponse

Created order and payment link, or error details for restoring checkout.

src/lib/interfaces/orionplace/orders/IOrderActions.ts
TypeScript
export interface IOrderCreateResponse {
  // Field/general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message or null.
  success_message: string | null;
  // On success, `page_data` contains `order_id` and payment-link fields. On
  // error it can contain recovery details alongside `form_errors`; do not treat
  // that object as a created order.
  page_data: IOrderCreated | IOrderCreateFailure | null;
}