Payment Gateway APIs
Authenticate with your merchant email and API key. All requests use JSON over HTTPS.
https://logicloom.pro
Create Payment
Initiate a UPI pay-in and receive an intent URL.
Endpoint
https://logicloom.pro/api/payments/create
Headers
Content-Type
application/json
Request body
authEmail stringMerchant email
amount floatTransaction amount
mobileNumber stringCustomer's mobile number
custRefNum stringUnique reference number
custEmail stringCustomer's email
custName stringCustomer's name
apiKey stringAPI key for authorization
Example request
{
"authEmail": "[email protected]",
"amount": 11.0,
"mobileNumber": "9874561230",
"custRefNum": "REF1122334479688",
"custEmail": "[email protected]",
"custName": "Tester",
"apiKey": "YourAPIKeyFromLogicLoom"
}
Success response — 200
statuse.g. "success"
custRefNumUnique ID for the transaction
messageStatus update message
amountAmount
upiIntentUrlURL for UPI payment
{
"status": "success",
"custRefNum": "REF1122334479688",
"message": "Payment initiated successfully",
"amount": 11,
"upiIntentUrl": "pay://payment_url"
}
Initiate Payout
Fund transfer (payout) to a bank beneficiary.
Endpoint
https://logicloom.pro/api/merchant/initiate-fund-transfer
Headers
Content-Type
application/json
Authentication
Send credentials in the JSON body. apiKey must be present in the body (required by IP restriction middleware).
apiKey stringMerchant API key (required in body)
authEmail stringMerchant email
x-api-key / x-auth-email may also be sent, but apiKey must still be in the body for the IP middleware.
Request body
apiKey stringMerchant API key
authEmail stringMerchant email
custRefNum stringUnique merchant reference for this payout
amount numberPayout amount in INR — must be a JSON number, not a string
beneficiary objectBank beneficiary details (see nested fields below)
beneficiary object
name stringAccount holder name
accountNumber stringBank account number
ifscCode stringIFSC
bankName stringBank name
Business rules
- Merchant must have payout enabled (
payOutEnabled) - Amount must be within the merchant’s min/max payout limits
- Balance check uses dashboard payout wallet balance (
calculateMerchantStats→usableBalance) - Merchant IP whitelist applies when IP restriction is enabled
Example request
{
"apiKey": "YourAPIKeyFromLogicLoom",
"authEmail": "[email protected]",
"custRefNum": "POUTREF123456",
"amount": 500,
"beneficiary": {
"name": "John Doe",
"accountNumber": "157077599947",
"ifscCode": "INDB0002341",
"bankName": "INDUSIND Bank"
}
}
Error cases
| Case | Description |
|---|---|
| Missing auth | Missing apiKey or authEmail in body |
| Payout disabled | Merchant does not have payOutEnabled |
| Limit exceeded | Amount outside merchant min/max payout limits |
| Insufficient balance | Payout wallet usableBalance is too low |
| IP blocked | Request IP not on merchant whitelist (when IP restriction is enabled) |
| Invalid amount | amount sent as a string instead of a JSON number |
Check Status
Look up a pay-in by merchant reference or transaction ID.
Endpoint
https://logicloom.pro/api/merchant/check-status
Request body
custRefNum or transactionId.
authEmail stringMerchant email
apiKey stringAPI key for authorization
custRefNum optionalMerchant reference number
transactionId optionalGateway / internal transaction ID
Example — by custRefNum
{
"authEmail": "[email protected]",
"apiKey": "YourAPIKeyFromLogicLoom",
"custRefNum": "REF1122334479688"
}
Example — by transactionId
{
"authEmail": "[email protected]",
"apiKey": "YourAPIKeyFromLogicLoom",
"transactionId": "TXN9876543210"
}
Success response — 200
custRefNumMerchant reference
transactionIdTransaction ID
amountTransaction amount
statusCurrent pay-in status
{
"custRefNum": "REF1122334479688",
"transactionId": "TXN9876543210",
"amount": 11,
"status": "success"
}
Error responses
| HTTP | Message |
|---|---|
| 400 | authEmail and apiKey are required. |
| 400 | Provide custRefNum or transactionId. |
| 401 | Invalid Email or API key. |
| 404 | Transaction not found. |
| 500 | Failed to check transaction status |
Callback Notification
Posted to your configured callbackUrl after pay-in or payout completion.
Pay-in callback
custRefNumReference number
statussuccess or failed
amountTransaction amount
messageStatus message
dateISO 8601 timestamp
{
"custRefNum": "REF1122334479688",
"status": "success",
"amount": 101.00,
"message": "Success",
"date": "2024-11-08T09:19:03.431Z"
}
Payout callback
custRefNumMerchant payout reference
txnIdPayout transaction ID
statuse.g. Completed
amountPayout amount
utrNumberBank UTR number
messageStatus message
dateTimestamp
{
"custRefNum": "POUTREF123456",
"txnId": "HSBTPO...",
"status": "Completed",
"amount": 500,
"utrNumber": "...",
"message": "Payout Successful",
"date": "..."
}
Error Codes
Common Create Payment error codes.
| Code | Meaning |
|---|---|
INVALID_API_KEY |
API key is invalid |
INVALID_AMOUNT |
Invalid amount |
MISSING_PARAMETERS |
Required parameters are missing |
GENERAL_ERROR |
General error occurred |
LogicLoom Merchant API · Keep your API key secret