Payment Information

Utilize the Payment Information endpoint to retrieve detailed information about a specific payment using its track_id. After generating an invoice, you will receive a track_id, which serves as a reference for requesting payment details.

get
Path parameters
track_idstringRequired

Unique identifier for the payment session.

Header parameters
merchant_api_keystringRequired

Your Merchant API Key for authentication and authorization.

Content-TypestringRequiredDefault: application/json
Responses
200

Successful operation

application/json
get
import requests
import json

track_id = 'TRACK_ID'
url = f'https://api.oxapay.com/v1/payment/{track_id}'

headers = {
    'merchant_api_key': 'YOUR_MERCHANT_API_KEY',
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
result = response.json()
print(result)
{
  "data": {
    "track_id": "168931368",
    "type": "invoice",
    "amount": 15,
    "currency": "USD",
    "status": "paid",
    "mixed_payment": false,
    "fee_paid_by_payer": 0,
    "under_paid_coverage": 21.5,
    "lifetime": 60,
    "callback_url": "https://example.com/callback",
    "return_url": "https://example.com/success",
    "email": "[email protected]",
    "order_id": "ORD-12345",
    "description": "Order #12345",
    "thanks_message": "Thanks Message",
    "expired_at": 1728121075,
    "date": 1728117475,
    "txs": [
      {
        "tx_hash": "0x2DehmnxMDFMhS3KHXCPpGSx41NeLBjH34q5vjN1oGbUDFFAMC9rG3",
        "amount": 0.00613418,
        "currency": "ETH",
        "network": "Ethereum Network",
        "address": "HEHCVjnxD8cQrFwfo4k9WXJXErpmK9Ym1nRaEiJJ8DP4",
        "status": "confirmed",
        "confirmations": 11,
        "auto_convert": {
          "processed": true,
          "amount": 14.73130872,
          "currency": "USDT"
        },
        "auto_withdrawal": {
          "processed": false
        },
        "date": 1728117736
      }
    ]
  },
  "message": "Operation completed successfully!",
  "error": {},
  "status": 200,
  "version": "1.0.0"
}

Last updated