Look up an order

GET/transactions.php?order_id=ORDER-DEMO-001
Terminal
curl "https://circus-pay.com/api/transactions.php?order_id=ORDER-DEMO-001" \
  -H "Authorization: Bearer $CIRCUSPAY_SECRET_KEY"
Example · no finalized transaction
{
  "success": true,
  "orderId": "ORDER-DEMO-001",
  "status": "pending",
  "paid": false,
  "url": null
}

Interpret the result

When a transaction exists, the response contains transaction, including id, order_id, amount, currency and status. For this lookup, paid is true when the status is success.

ParameterDescription
successPayment succeeded. Also verify the reference, amount and currency.
pendingPayment not finalized. Do not trigger fulfilment.
failedAttempt failed.
refundedPayment refunded.

Other queries

Endpoints
GET /transactions.php?id=123
GET /transactions.php

Lookup by ID returns transaction. Listing returns transactions, limited to the latest 200 entries. The format varies with the query used.