Skip to content

Payment History

Query merchant payment history. Requires API Key authentication.

REST API

bash
# Query by orderId
curl "https://gateway.dev.solonetwork.io/api/v1/merchant/payments?orderId=order-001" \
  -H "x-api-key: sk_xxxxx"

# Query by paymentId
curl "https://gateway.dev.solonetwork.io/api/v1/merchant/payments/0xabc123..." \
  -H "x-api-key: sk_xxxxx"

Response

json
{
  "success": true,
  "data": {
    "paymentId": "0xabc123...",
    "orderId": "order-001",
    "status": "PAID",
    "amount": "10500000000000000000",
    "tokenSymbol": "SUT",
    "tokenDecimals": 18,
    "txHash": "0xdef789...",
    "payerAddress": "0x1234...",
    "createdAt": "2024-01-26T12:30:00Z",
    "confirmedAt": "2024-01-26T12:35:42Z",
    "expiresAt": "2024-01-26T12:35:00Z"
  }
}

Response Fields

FieldTypeDescription
paymentIdstringUnique payment identifier (bytes32 hash)
orderIdstringMerchant order ID
statusstringCREATED, PAID, REFUND_SUBMITTED, REFUNDED, INVALID, EXPIRED, FAILED
amountstringAmount in wei
tokenSymbolstringToken symbol
tokenDecimalsnumberToken decimals
txHashstringOn-chain transaction hash (present after confirmation)
payerAddressstringPayer wallet address (present after confirmation)
confirmedAtstringPayment confirmation timestamp
expiresAtstringPayment expiry timestamp

Next Steps

Non-custodial Web3 payment infrastructure for ERC-20 checkout, sponsored gas, and wallet-to-wallet settlement.