Get transaction status

Retrieve specified transaction

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Retrieve the full details and current status of a specific transaction.

Example Request

curl https://api.neutron.me/api/v2/transaction/5e25d2f4-9bca-4b7a-a1ad-2cf056100cb6 \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example Response

{
  "txnId": "5e25d2f4-9bca-4b7a-a1ad-2cf056100cb6",
  "accountId": "ne01-abc123def456",
  "extRefId": "order-12345",
  "txnState": "completed",
  "sourceReq": {
    "ccy": "BTC",
    "method": "lightning",
    "amtRequested": 0.0001,
    "amtSettled": 0.0001,
    "neutronpayFees": 0,
    "networkFees": 0,
    "reqStatus": "2",
    "createAt": 1770342000000,
    "updatedAt": 1770342177000
  },
  "destReq": {
    "ccy": "BTC",
    "method": "neutronpay",
    "amtRequested": 0.0001,
    "amtSettled": 0.0001,
    "reqStatus": "2"
  },
  "fxRate": 1,
  "createdAt": 1770342000000
}

Key Response Fields

FieldDescription
txnStateCurrent state — see Transaction Status Types
amtRequestedAmount originally requested
amtSettledActual amount settled (populated after completion)
neutronpayFeesNeutron service fee charged
networkFeesNetwork/mining fee charged
reqStatusRequest status: "0" = pending, "2" = completed
fxRateExchange rate applied (1 for same-currency)
extRefIdYour reference ID (if provided at creation)

Polling for Status

If you're not using webhooks, you can poll this endpoint to track transaction progress:

async function waitForCompletion(txnId, token) {
  const finalStates = ['completed', 'failed', 'expired', 'rejected', 'error', 'usercanceled'];
  
  while (true) {
    const res = await fetch(`https://api.neutron.me/api/v2/transaction/${txnId}`, {
      headers: { 'Authorization': `Bearer ${token}` }
    });
    const txn = await res.json();
    
    if (finalStates.includes(txn.txnState)) {
      return txn;
    }
    
    await new Promise(r => setTimeout(r, 3000)); // Poll every 3 seconds
  }
}
📘

Webhooks are recommended over polling for production. See the Webhook Guide for setup.

Related

Path Params
string
required

The unique identifier of the transaction

Responses

401

Unauthorized - Invalid or missing authentication credentials

404

Not Found - The requested transaction does not exist

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json