Skip to content

Get a trade ​

http
GET /api/trades/:id

User (buyer, seller or admin)

Response 200 ​

All trade fields plus viewer-specific data:

json
{
  "id": "cmf3…",
  "status": "ESCROW_LOCKED",
  "xlmAmount": "100",
  "ngnRate": "520.5",
  "ngnAmount": "52050",
  "paymentMethod": "OPAY",
  "escrowPublicKey": "GA7L…XWZN",
  "escrowTxHash": "a4c1…",
  "releaseTxHash": null,
  "refundTxHash": null,
  "cancelReason": null,
  "paymentDeadline": "2026-09-13T15:22:00.000Z",
  "paidAt": null,
  "completedAt": null,
  "cancelledAt": null,
  "buyer": { "…": "…" },
  "seller": { "…": "…" },
  "order": { "id": "cmf1…", "type": "SELL", "terms": "Own-name accounts only", "userId": "cmf0x…" },

  "role": "BUYER",
  "actions": ["MARK_PAID", "CANCEL"],
  "paymentAccount": { "method": "OPAY", "bankName": null, "accountName": "Emeka Okafor", "accountNumber": "8031234567" },
  "secondsRemaining": 812,
  "links": {
    "escrow": "https://stellar.expert/explorer/testnet/tx/a4c1…",
    "release": null,
    "refund": null
  }
}
FieldNotes
roleBUYER, SELLER, or null for admins
actionsSubset of MARK_PAID, RELEASE, CANCEL the viewer may perform now
paymentAccountSeller's oldest account for paymentMethod, or null
secondsRemainingOnly non-zero in ESCROW_LOCKED
cancelReasonBUYER_CANCELLED, PAYMENT_TIMEOUT, ESCROW_FAILED

Errors ​

StatusCode
403FORBIDDEN
404NOT_FOUND

Nexlm is a peer-to-peer facilitator and never holds customer Naira.