The assets menu view allows users to review and interact with the assets that they currently own.

Accessing the Assets View

Make a GET request to /assets
  curl --request GET \
    --url https://api.staging.pipevest.com/v1/ussd/assets?customerId=123456
    --header 'Authorization: Bearer 123456' \
    --header 'Signature: sig1=:OTEyMjY4...A5NTNDMEQ=:' \
    --header 'Signature-Input: sig1=("Authorization" "X-Client-Id" "@method" "@target-uri" "@path" "@query");keyid="staging-pipevest-ed25519";created=1732893484;expires=1732893584' \
    --header 'X-Client-Id: 123456' \

Example Response

{
  "data": {
    "ussdMessage": "My assets:\n 1.Apple (APPL)\n 2.Tesla (TSLA)\n 3.Microsoft (MSFT)\n 4. Coco-cola (KO)\n 5. View More Assets\n 6.Back",
    "ussdOptions": [
      {
        "option": 1,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/assets?customerId=123456&assetId=123456",
        "requestType": "GET"
      },
      ...
      {
        "option": 5,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/assets?customerId=123456&page=2",
        "requestType": "GET"
      },
      {
        "option": 6,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/portfolio?customerId=123456",
        "requestType": "GET"
      }
    ]
  },
  "code": 200,
  "message": "Success"
}

Viewing individual asset

Paging assets view

  curl --request GET \
    --url https://api.staging.pipevest.com/v1/ussd/assets?customerId=123456&page=2
    ...

The response will be similar to the initial assets view

Query parameters

queryDefinitionRequired
customerIdThe unique customer identiferYes
pageThe current set of viewable requests. Default 1No

Assets View Example

USSD Assets View

Check out an example of the ussd assets view