Pending Requests View
The requests menu view allows users to view the current pending requests.


Accessing the Pending Requests View
Section titled “Accessing the Pending Requests View” curl --request POST \ --url https://api.staging.pipevest.com/v1/ussd/process \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <access-token>' \ --header 'x-client-id: <client-id>' \ --data '{"sessionId": "<session-id>", "choice": "2"}'Example Response
{ "message": "USSD request processed successfully", "data": { "sessionId": "ussd_2231df057f1f8f5269f0a268249ac104", "currentState": "PENDING_REQUESTS", "menu": { "state": "PENDING_REQUESTS", "text": "Pending Requests:\n\nSelect a request to view details:\n\n", "options": [ { "key": "1", "label": "SELL: AAPL - ZK281.51", "nextState": "PENDING_REQUEST_DETAILS", "data": { "orderId": "cmhnivxqq0009s60162e8kj64", "orderType": "SELL", "symbol": "AAPL", "amount": 281.51, "status": "PENDING", "createdAt": "2025-11-06T14:29:15.027Z" } }, { "key": "2", "label": "BUY: TSLA - ZK562.00", "nextState": "PENDING_REQUEST_DETAILS", "data": { "orderId": "cmhniqac40007s601oc2xei0v", "orderType": "BUY", "symbol": "TSLA", "amount": 562, "status": "PENDING", "createdAt": "2025-11-06T14:24:51.412Z" } }, { "key": "0", "label": "Back to Portfolio", "nextState": "MY_PORTFOLIO" } ], "isEndState": false }, "ussdText": "Pending Requests:\n\nSelect a request to view details:\n\n\n\n1. SELL: AAPL - ZK281.51\n2. BUY: TSLA - ZK562.00\n0. Back to Portfolio", "expiresAt": "2025-11-10T14:56:05.356Z" }}Pending Requests: Select a request to view details: 1. SELL: AAPL - ZK281.51 2. BUY: TSLA - ZK562.00 0. Back to Portfolio
Paging requests view
Section titled “Paging requests view” curl --request POST \ --url https://api.staging.pipevest.com/v1/ussd/process \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <access-token>' \ --header 'x-client-id: <client-id>' \ --data '{"sessionId": "<session-id>", "choice": "5"}'Individual request view
Section titled “Individual request view” curl --request POST \ --url https://api.staging.pipevest.com/v1/ussd/process \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <access-token>' \ --header 'x-client-id: <client-id>' \ --data '{"sessionId": "<session-id>", "choice": "1"}'Example Response
{ "message": "USSD request processed successfully", "data": { "sessionId": "ussd_2231df057f1f8f5269f0a268249ac104", "currentState": "PENDING_REQUEST_DETAILS", "menu": { "state": "PENDING_REQUEST_DETAILS", "text": "Order Request Details:\n\nType: SELL\nStock: AAPL\nAmount: ZK281.51\nStatus: PENDING\nCreated: 11/6/2025, 2:29:15 PM\n", "options": [ { "key": "1", "label": "Cancel Order", "nextState": "CANCEL_REQUEST_CONFIRMATION" }, { "key": "0", "label": "Back", "nextState": "PENDING_REQUESTS" } ], "isEndState": false }, "ussdText": "Order Request Details:\n\nType: SELL\nStock: AAPL\nAmount: ZK281.51\nStatus: PENDING\nCreated: 11/6/2025, 2:29:15 PM\n\n\n1. Cancel Order\n0. Back", "expiresAt": "2025-11-10T14:56:05.356Z" }}Order Request Details: Type: SELL Stock: AAPL Amount: ZK281.51 Status: PENDING Created: 11/6/2025, 2:29:15 PM 1. Cancel Order 0. Back
Requests View Example
Section titled “Requests View Example”USSD Requests View
Check out an example of the ussd requests view