Margin Pledge Page Redirect
This API is used to initiate a pledge request, which redirects the user to the CDSL/NSDL interface where the pledge can be approved.
🔗 Endpoint (Pledge Request Redirect)
https://demo.synapsewave.com/edis/newnetnet/PledgeRequest.aspx?type=1&UserId=NITWR21&GroupId=HO&Product=WAVE2&ManagerIP=172.25.104.113 &DealerCode=NXVZO&GroupCode=AAAAA&theme=L&SessionId=0x014519BF4DFB8DEC71FD4C5 - This URL should be opened in a browser pop-up window, with the following query parameters
🔍Query Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| type | integer | Yes | Static value to indicate pledge type (1 = Pledge initiation) | 1 |
| enct | string | Yes | Base64-encoded string of all required parameters | VXNlcklkPU5JVFdSMjEmR3JvdXBJZD1ITy... |
🔐Parameter – Base64 Encoded Query Fields
| Field | Type | Description | Example/ENUM |
|---|---|---|---|
| UserId | string | Unique identifier of the user in the trading system. | NITWR21 |
| GroupId | string | Identifier for the group or branch to which the user belongs. | HO |
| Product | string | Product identifier under which the pledge is being requested. | WAVE2 |
| ManagerIP | string | IP address of the manager or system initiating the pledge request. | 172.25.104.113 |
| DealerCode | string | Dealer or agent code handling the transaction. | NXVZO |
| GroupCode | string | Code representing the client's trading group. | AAAAA |
| theme | char | Theme or layout preference for the pledge page interface. | L (Light) |
| SessionId | string | Session identifier used to validate the user's current session state. | 0x014519BF4DFB8DEC71FD4C5EA91F8D |
🔁User Flow
- Prepare all required values listed above.
- Concatenate them as a query string.
- Encode the string in Base64 format.
- Call the redirect URL with
type=1and the encoded string asenct. - Open this URL in a pop-up browser window.
- The user will be redirected to the CDSL Pledge Authorization page.
- Upon completion, the browser will send a message back to the parent window for further processing.
🟢Success Response - 200 Ok
There is no direct JSON response from this redirect API.
After user completes the pledge action, the resulting status and data will be returned via a callback message to the parent window (i.e., your application should listen for it).
get
/PledgeRequest.aspx