Panelr

Get Work Order

GET ?action=get_work_order

Returns work order status and details for a customer-facing order status page. Authenticated by reference code plus either a confirmation token or customer email. Does not expose admin notes or internal fields.

Request Parameters

FieldTypeRequiredDescription
refstringRequiredWork order reference code
tokenstringOptional*Confirmation token from create_work_order
emailstringOptional*Customer email on the order

* At least one of token or email must be provided.

Response Fields

FieldTypeDescription
reference_codestringWork order reference code
statusstringpending, pending_payment, payment_submitted, processing (paid, being set up — lasts seconds), completed, canceled, payment_failed, or awaiting_webhook
typestringnew_activation, renewal, trial_upgrade, or new_trial
sourcestringOrigin source e.g. woocommerce or api
customer_emailstringCustomer email address
customer_namestring|nullCustomer full name
currencystringCurrency code e.g. USD
cartarrayCart items (removed and adjustment items excluded). Each item carries plugin_id, plugin_name, category_id and category_name — one order may span services.
selected_bouquetsarrayBouquet ids chosen on this order, empty when the customer took the defaults
snap_totalfloatSum of cart item prices before any coupon or adjustment
couponobject|nullThe coupon on this order — code and discount — or null
order_totalfloatFinal total after the coupon and the payment method's adjustment
prev_paidfloatAmount already paid toward this order
balance_duefloatRemaining balance due
has_partialsbooleanTrue if partial payments have been made and a balance remains
payment_historyarrayRecord of individual payments made against this order
adjustmentobject|nullPrice adjustment applied to the order — see Adjustment Object below
payment_methodobject|nullPayment method details — see Payment Method Object below
created_atstringOrder creation datetime UTC
updated_atstringOrder last updated datetime UTC

Adjustment Object

FieldTypeDescription
directionstringfee or discount
labelstring|nullDisplay label for the adjustment
amountfloatAdjustment amount

Payment Method Object

FieldTypeDescription
idintegerPayment method ID
namestringDisplay label, falls back to internal name
processorstring|nullProcessor identifier
modestringautomated or manual
is_automatedbooleanWhether this is a fully automated gateway
instructionsstring|nullPayment instructions for manual methods
configobjectProcessor-specific configuration — empty object if not set