money-billPayment

🧠 Overview

The payment mutation is used to initiate a payment transaction. It returns a unique transaction ID, a payment link, and the custodian wallet addresses where the customer should send funds. This is typically the first step in processing a customer payment via your API.


🔗 Endpoint

URL: https://argonpay.onrender.com/graphql Method: POST Content-Type: application/json


🧾 Mutation Structure

mutation Payment($apiKey: String!, $amount: Float!) {
  payment(apiKey: $apiKey, amount: $amount) {
    code
    message
    transactionId
    paymentLink
    custodian {
      bep20
      solana
      usdtTon
      ton
    }
  }
}

📥 Parameters

Name
Type
Required
Description

apiKey

String

✅

Your issued API key

amount

Float

✅

Payment amount in USDT (used as fiat base unit)


✅ Successful Response


🚫 Error Codes

Code
Description

200

Transaction created successfully

401

Invalid API key

404

No custodian account found for this API key

500

Server error while creating the transaction


🧪 Code Examples

Python Example


JavaScript Example

Last updated