API Documentation

Learn how to integrate CronPay API to create transactions and check their status.

Create Transaction

Create a new transaction by sending a POST request with your API key, currency, and amount.

Note: You can create an API key from the CronPay Developer Dashboard

ENDPOINT

POST https://gateway.cronpay.xyz/api/create-transaction

REQUEST

curl --location 'https://gateway.cronpay.xyz/api/create-transaction' \
--header 'Content-Type: application/json' \
--data '{
    "apikey": "cronpay_api_key",
    "currency": "INR",
    "amount": 100
  }'

PARAMETERS

ParameterTypeDescription
apikeystringYour CronPay API key
currencystringCurrency code (e.g., INR, USD)
amountnumberTransaction amount

RESPONSE

{
    "id": "16f0d91f-d790-4e5d-95b2-e46b118b29d1"
}

Returns a unique transaction ID that can be used to check the transaction status.

Get Transaction Status

Check the status of a transaction using the transaction ID returned from the create transaction endpoint.

Note: You can create an API key from the CronPay Developer Dashboard

ENDPOINT

POST https://gateway.cronpay.xyz/api/transaction-status

REQUEST

curl --location 'https://gateway.cronpay.xyz/api/transaction-status' \
--header 'Content-Type: application/json' \
--data '{
    "apikey": "cronpay_api_key",
    "transaction_id": "16f0d91f-d790-4e5d-95b2-e46b118b29d1"
  }'

PARAMETERS

ParameterTypeDescription
apikeystringYour CronPay API key
transaction_idstringThe transaction ID from create transaction

RESPONSE

{
    "id": "16f0d91f-d790-4e5d-95b2-e46b118b29d1",
    "status": "completed"
}

Status can be: completed, pending, or failed

Need Help?

Make sure to replace the API key in the examples with your actual API key from the Keys page.