POST ?action=send_payment_instructions

Sends the payment instructions email to the customer for a pending_payment work order. Call this after create_work_order succeeds for manual payment methods. The email includes the payment method details, order total, and a confirmation URL for the customer to submit their transaction ID.

Request Parameters

work_order_id — integer — Required. Work order ID returned by create_work_order.

confirm_url — string — Required. URL the customer clicks to return and submit their transaction ID (e.g. WooCommerce order received page).

Response Fields

sent — boolean — Always true on success

reference_code — string — Work order reference code

Example

curl -X POST "https://YOUR_DOMAIN/api/api.php?action=send_payment_instructions" \
  -H "X-Panelr-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "work_order_id": 42,
  "confirm_url": "https://yourstore.com/checkout/order-received/123/"
}'