Panelr

Submit Payment

POST ?action=submit_payment

Records a payment against a work order. Only valid for orders in pending_payment status. Moves the order to payment_submitted regardless of whether the payment is full or partial — admin reviews all payments and resets to pending_payment if a balance remains.

Authentication

Two auth modes are accepted — provide one:

FieldTypeRequiredDescription
confirmation_tokenstringOptional*Token returned by create_work_order
reference_codestringOptional*Work order reference code
customer_emailstringOptional*Required when using reference_code auth

Request Parameters

FieldTypeRequiredDescription
payment_transaction_idstringOptionalYour transaction or order ID
customer_notestringOptionalNote from the customer
amountfloatOptionalAmount being paid. When omitted, the order is moved to payment_submitted with no amount recorded. When provided, the amount is added to any previous payments and a payment history entry is created.

Response Fields

FieldTypeDescription
work_order_idintegerWork order ID
reference_codestringWork order reference code
statusstringAlways payment_submitted
fully_paidbooleanWhether total received meets or exceeds the order total
amount_paidfloatCumulative total paid — only present when amount was provided
balance_duefloatRemaining balance — only present when amount was provided