GET /aged-wallets/status/:orderId
Fetch one order and check its payment. While the order is unpaid the
deposit address is read live; an unpaid order past its window is closed as
EXPIRED.
Use case
Poll after paying until eStatus becomes FULFILLED.
Path params
| Param | Required | Description |
|---|---|---|
orderId | yes | Aged-wallets order id. |
Response 200
The order object (same shape as in initialize). While
eStatus is PENDING_PAYMENT two extra fields are added:
{
"orderId": "665f1c2e9b1d4a0012345678",
"eStatus": "PENDING_PAYMENT",
"nTotalSOL": 0.1,
"sDepositAddress": "<deposit address>",
"nDepositSOL": 0.1,
"bPaymentDetected": true
}
(other order fields omitted here)
| Field | Description |
|---|---|
eStatus | PENDING_PAYMENT, PROCESSING, PAID, FULFILLED, EXPIRED, CANCELLED or FAILED. |
nDepositSOL | SOL currently on the deposit address (unpaid orders only). |
bPaymentDetected | true once the deposit covers nTotalSOL (unpaid orders only). |
aWallets | Wallet public keys; empty until FULFILLED. |
sError | Failure reason, if any. |
Errors
| Status | Meaning |
|---|---|
400 | orderId malformed. |
404 | Order not found or not yours. |
Example
curl -H "Authorization: Bearer $ACCESS" -H "x-user-id: $USER_ID" \
"$BASE_URL/aged-wallets/status/<orderId>"