WithdrawOrders

Create Withdraw Order

Data signature (required only if we enable it for your merchant):

If data signature validation is enabled for your merchant , you must compute data signature string and put in dataSignature field, the dataSignature sould generation by following procedure:

Base64(
    HMACSHA256(
        UTF8(
            "{orderId},{bankCode},{bankAccount},{amount:0.0000}"
        ),
        UTF8("{your merchant data signature key}")
    )
)

for example, if your reqeust data is

{
    "orderId": "001001010",
    "amount": 100.22,
    "notifyUrl": "https://domin.to.your.site/orderupdate/001001010",
    "bankAccount": "2222222222",
    "bankName": "ICICI Bank Ltd",
    "bankSubName": "Bangalore M G Road",
    "bankCode": "ICIC0000002",
    "bankAccountName": "Dayita Jha"
}

then the string you sould compute for signature is "001001010,ICIC0000002,2222222222,100.2200"

Order Process Notification:

If order complete and [NotifyUrl] have value, you can get auto notification

Media type: application/json; charset=utf-8

POST / {{NotifyUrl}}
{
   "systemOrderId": integer($int64),
   "orderId": string,
   "amount": number($double),
   "actualAmount": number($double),
   "status": OrderNotifyStatus integer($int32),
             Enum:
                  Success - 0
                  Failure - 1
   "orderStatus": WithdrawOrderStatus integer($int32),
             Enum:
                  Done           - 10
                  ManualDone     - 11
                  SettlementDone - 12
                  Reject         - 20
   "closeTime": 	string($date-time),
   "utrCode": string,
   "remark": string,
   "dataSignature": string
}
  • If don't get a successful status code (200), will automatically retry 3 times
  • DataSignature generation by following procedure
Base64(
    HMACSHA256(
        UTF8(
            "{orderId},,{amount:0.0000},{actualAmount:0.0000},{(int)status},{(int)orderStatus},{UnixTimeMilliseconds(closeTime)}"
        ),
        UTF8(
            "{your merchant data signature key}"
        )
    )
)

(note the double ,)

post/api/orders/withdraw

Request

  • Base URL: https://api.ju-pay.net (the document declares no server; this is the origin it was published from)
  • URL: https://api.ju-pay.net/api/orders/withdraw
  • Auth: HTTP bearer

Request body

orderIdstring required
amountnumber double
notifyUrlstring nullable
dataSignaturestring nullable
channelinteger nullable

Chennel (if not send, default use 1)

bankAccountstring required

Bank account or UPI vpa

bankNamestring nullable

If use bank account this column is required

bankSubNamestring nullable
bankCodestring nullable

If India, this column is IFSC Code

bankAccountNamestring required

Response

Success

successboolean
errorstring[] nullable

Changes

No recorded changes to this operation across all 1 revision of this API.