Paygo

Paygo: order status

Poll order state: received → paying → paid → delegating → broadcasting → confirmed → completed. Failures after a confirmed payment are refunded on-chain in full; the refund txId appears in the response. Recommended polling interval: 2–3 s.

get/api/v1/paygo/order/{orderId}

Request

  • Base URL: https://powersun.vip
  • URL: https://powersun.vip/api/v1/paygo/order/{orderId}
  • Auth: API key in header X-API-Key

Path parameters

orderIdstring required

Response

Order state

orderIdstring
status'received' | 'paying' | 'paid' | 'delegating' | 'broadcasting' | 'confirmed' | 'completed' | 'failed'
paymentTxIdstring nullable
broadcastTxIdstring
refundPendingboolean

true when the order failed after the fee payment confirmed and the on-chain refund has not been sent yet (it is automatic — keep polling until refund is populated)

failureCode'payment_failed' | 'tx_expired' | 'resim_failed' | 'delegation_failed' | 'broadcast_failed' | 'onchain_revert' nullable
failureDescriptionstring nullable

Human-readable explanation of the failure, safe to show to end users: what happened, whether funds moved, and what to do next

errorMessagestring nullable

Raw technical detail for debugging/support

timestampsobject

Changes

No recorded changes to this operation across all 1 revision of this API.