API Documentation

Comprehensive guide to integrating shivapayu's payout and status check APIs.

Create Payout Order

POST https://admin.shivapayu.com/api/payout/v1/createOrder
Parameters
Parameter Type Description Required
api_tokenstringAPI token for authentication.Yes
amountnumericPayout amount.Yes
transfer_modestringIMPS, NEFT, RTGSYes
externalTxnIdstringUnique transaction ID generated by client.No
payee_namestringBeneficiary full name.Yes
payee_accountnumericBeneficiary bank account number.Yes
payee_ifscstringBeneficiary bank IFSC.Yes
payee_ac_typestringsavings or currentYes
payee_bank_namestringBeneficiary bank name.Yes
Success Response
{
  "data": {
    "status": "success",
    "message": "Fund Transfer Successful",
    "amount": 1500,
    "txnStatusDesc": "success",
    "bank_ref_no": "9876543210",
    "externalTxnId": "ext_txn_123456",
    "payeeName": "Demo User",
    "payeeAccount": "123456789012",
    "payeeIfsc": "TEST0000123"
  },
  "status": 200
}
Failure Response (Duplicate ID)
{
  "status": "failure",
  "message": "The external txn id has already been taken."
}
Failure Response (Transaction Failed)
{
  "data": {
    "status": "failure",
    "message": "Payout failed and refunded",
    "amount": 100,
    "externalTxnId": "69886888311"
  },
  "status": 400
}

Callback (Merchant)

Callback is sent to the merchant's call_back_url after final transaction status.

Parameters
Parameter Type Description Required
typestringTransaction type (e.g. payout)Yes
externalTxnIdstringClient transaction IDYes
statusstringsuccess or failureYes
amountnumericTransaction amountYes
utrstringBank UTR / Reference numberYes
messagestringTransaction status messageYes
Callback Payload
{
  "type": "payout",
  "externalTxnId": "ext_txn_123456",
  "status": "success",
  "amount": 1500,
  "utr": "987654321098",
  "message": "Payout success"
}

Payout Status Check

This API allows merchants to manually check the current status of a payout using the externalTxnId. This is useful when callback is delayed or not received.

GET https://admin.shivapayu.com/api/payout/v1/status-check
Parameters
Parameter Type Description Required
api_tokenstringMerchant API token for authentication.Yes
typestringMust be status-checkYes
externalRefstringClient transaction ID (externalTxnId)Yes
Success Response
{
  "status": "SUCCESS",
  "txnStatus": "SUCCESS",
  "amount": 100,
  "utr": "600932368113",
  "externalRef": "122311",
  "message": "Transaction successful"
}
Pending Response
{
  "status": "PENDING",
  "txnStatus": "PENDING",
  "amount": 100,
  "externalRef": "122311",
  "message": "Transaction is under process"
}
Failure Response
{
  "status": "FAILED",
  "txnStatus": "FAILED",
  "message": "Transaction failed or not found"
}