1. Generate Transaction

api.coin-xpress.com/<api_key>/<float:wantAmount>

Method: GET

This endpoint initiates a transaction by generating custom payment link and It will return a transaction link and should be provided to customer to make the payment.

URL Parameters:

Response:


{
"transaction_link": "https://coin-xpress.com/transaction/{transaction-id}"
}

2. Transaction Status

api.coin-xpress.com/status/<transaction_id>

Method: GET

This endpoint allows the user to check the status of a specific transaction using the transaction ID. The status includes whether the transaction is pending, successful, or failed.

URL Parameters:

Response:

{
"transaction_id": "12345",
"status": "success/fail/waiting",
"amount": "0.5 AVAX"
}

3. Webhook Integration

Method: POST

The webhook endpoint is set in the dashboard/wallet section. After each transaction is processed, a webhook with the transaction status will be sent to the provided URL.

Endpoint Example:



"yourdomain/webhook"

Webhook URL: The URL where the webhook will send the transaction status data.