Skip to main content
POST
/
payment
/
select-crypto
{
  "success": false,
  "error": {
    "status": 400,
    "code": "VALIDATION_INVALID",
    "message": "Invalid cryptocurrency code"
  },
  "data": null
}
Select the cryptocurrency for a payment request.
crypto
string
required
Cryptocurrency code (BTC, ETH, LTC, SOL)
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 for payment
data.expiresAt
string
Payment expiration timestamp
data.checkoutUrl
string
Checkout URL for customer

Example Request

curl -X POST https://api.transaction.gg/payment/select-crypto \
  -H "Content-Type: application/json" \
  -d '{
    "crypto": "BTC"
  }'

Example Response

{
  "success": true,
  "data": {
    "id": "pay_abc123def456",
    "status": "pending",
    "amountCrypto": "0.00012345",
    "crypto": "BTC",
    "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "expiresAt": "2024-01-01T01:00:00Z",
    "checkoutUrl": "https://checkout.transaction.gg/pay_abc123def456"
  }
}

Error Responses

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