Panelr

Customer's Orders

GET ?action=get_work_orders

A customer's orders, newest first — what an account page lists, and where a pending payment is found again (its reference_code goes to get_work_order / submit_payment). Totals follow checkout's own order: subtotal, then the coupon, then the payment method's fee or discount. Never exposes admin notes or gateway tokens.

Request Parameters

FieldTypeRequiredDescription
customer_idintegerRequiredone of these twoThe customer
customer_emailstringRequiredone of these twoTheir address
statusstringOptionalpending, pending_payment, payment_submitted, completed, canceled or payment_failed
limitintegerOptionalDefault 50, max 200

Response Fields

FieldTypeDescription
[]arrayEach: work_order_id, reference_code, status (awaiting_webhook while a gateway is confirming), type, source, currency, items[] {product_id, name, price, qty, intent, activation_id, duration_months, connections, plugin_id, plugin_name, credits_paid}, snap_total, coupon {code, discount}, adjustment, order_total, amount_paid, balance_due, credits_paid, payment_method {id, name, processor}, activation_ids[] (the lines it produced), created_at, updated_at (UTC)