Skip to main content
GET
/
payment
/
status
{
  "success": false,
  "error": {
    "status": 404,
    "code": "PAYMENT_NOT_FOUND",
    "message": "Payment not found"
  },
  "data": null
}
Get the current status and details of a payment.
paymentId
string
required
Payment ID to check status for
success
boolean
Indicates if the request was successful
data.id
string
Payment ID
data.status
string
Payment status (pending, completed, expired)
data.amountCrypto
string
Amount in cryptocurrency
data.crypto
string
Selected cryptocurrency
data.address
string
Cryptocurrency address
data.incomingTxHash
string
Transaction hash (if completed)
data.completedAt
string
Completion timestamp (if completed)

Example Request

curl -X GET "https://api.transaction.gg/payment/status?paymentId=pay_abc123def456"

Example Response

{
  "success": true,
  "data": {
    "id": "pay_abc123def456",
    "status": "completed",
    "amountCrypto": "0.00012345",
    "crypto": "BTC",
    "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "incomingTxHash": "abc123...",
    "completedAt": "2024-01-01T00:30:00Z",
    "customerId": "cus_V6n6SN2KnsIFCuQU",
    "orderId": "order_123",
    "metadata": {
      "description": "Premium subscription"
    }
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 404,
    "code": "PAYMENT_NOT_FOUND",
    "message": "Payment not found"
  },
  "data": null
}