Skip to main content
Always confirm a payment’s outcome from the API — never trust a return URL alone. Retrieve the payment intent and act on its status.
curl https://api.orqex.com/v1/payment/intents/TRX123 \
  -H "Authorization: Bearer sk_live_xxx"

Response

id
string
Public payment id (e.g. TRX123).
status
string
pending, completed, failed, expired, refunded or partially_refunded.
amount
object
active_attempt
object
The in-progress attempt, including its status and next_action.

Act on the status

# Poll until a final status, or react to the webhook (recommended)
curl https://api.orqex.com/v1/payment/intents/TRX123 \
  -H "Authorization: Bearer sk_live_xxx" | jq '.data.status'
The reliable signal is the webhook: Orqex calls your webhook_url on every status change, so you don’t have to poll.

List payments

curl "https://api.orqex.com/v1/payment/intents?status=completed&per_page=50" \
  -H "Authorization: Bearer sk_live_xxx"