GET
/
stocks
curl --request GET \
  --url https://api.pipevest.com/v1/ussd/stocks \
  --header 'Authorization: Bearer <token>' \
  --header 'Signature: <signature>' \
  --header 'Signature-Input: <signature-input>' \
  --header 'X-Client-Id: <x-client-id>'
{
  "data": {
    "ussdMessage": "Select Stock\\n 1.Apple (AAPL)\\n 2. Tesla (TSLA)\\n 3. Microsoft (MSFT)\\n 4. Nike (NKE) 5. Coca-Cola (KO) 6. View More Stocks 7. Search Stock Symbol 8. Back",
    "ussdOptions": [
      {
        "option": 1,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=AAPL",
        "requestType": "GET"
      },
      {
        "option": 2,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=TSLA",
        "requestType": "GET"
      },
      {
        "option": 3,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=MSFT",
        "requestType": "GET"
      },
      {
        "option": 4,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=NKE",
        "requestType": "GET"
      },
      {
        "option": 5,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=KO",
        "requestType": "GET"
      },
      {
        "option": 6,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&page=2",
        "requestType": "GET"
      },
      {
        "option": 7,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&searchMode=true",
        "requestType": "GET"
      },
      {
        "option": 8,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/home?customerId=123456",
        "requestType": "GET"
      }
    ]
  },
  "code": 200,
  "message": "Success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Signature
string
required

Base64 encoded signed hash of the http message request components.

Learn how signatures work

Example:

"sig1=:OTEyMjY4...A5NTNDMEQ=:"

Signature-Input
string
required

An ordered list of components that make up the signature base. It is used to recompute and verify the Signature

Learn how signatures work

Example:

"sig1=(\"Content-Type\" \"Content-Digest\" \"Content-Length\" \"Authorization\" \"X-Client-Id\" \"X-Idempotency-Key\" \"@method\" \"@target-uri\" \"@path\" \"@query\");keyid=\"staging-pipevest-ed25519\";created=1732893484;expires=1732893584"

X-Client-Id
string
required

Unique identifier assigned to the client

Example:

"client-id"

Query Parameters

customerId
integer
required

Unique customer identifier

Example:

123456

amount
integer

The total order request amount

Example:

100

inputMode
boolean

Set input mode

Example:

true

page
integer

The page offset for the items returned

Required range: x >= 0
Example:

0

searchMode
boolean

Set search mode

Example:

true

symbol
string

The symbol associated to an instrument

Example:

"AAPL"

Response

200
application/json

Stocks menu options and respective details

The response is of type object.

GET
/
stocks
curl --request GET \
  --url https://api.pipevest.com/v1/ussd/stocks \
  --header 'Authorization: Bearer <token>' \
  --header 'Signature: <signature>' \
  --header 'Signature-Input: <signature-input>' \
  --header 'X-Client-Id: <x-client-id>'
{
  "data": {
    "ussdMessage": "Select Stock\\n 1.Apple (AAPL)\\n 2. Tesla (TSLA)\\n 3. Microsoft (MSFT)\\n 4. Nike (NKE) 5. Coca-Cola (KO) 6. View More Stocks 7. Search Stock Symbol 8. Back",
    "ussdOptions": [
      {
        "option": 1,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=AAPL",
        "requestType": "GET"
      },
      {
        "option": 2,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=TSLA",
        "requestType": "GET"
      },
      {
        "option": 3,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=MSFT",
        "requestType": "GET"
      },
      {
        "option": 4,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=NKE",
        "requestType": "GET"
      },
      {
        "option": 5,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&symbol=KO",
        "requestType": "GET"
      },
      {
        "option": 6,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&page=2",
        "requestType": "GET"
      },
      {
        "option": 7,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/stocks?customerId=123456&searchMode=true",
        "requestType": "GET"
      },
      {
        "option": 8,
        "requestUrl": "https://api.staging.pipevest.com/v1/ussd/home?customerId=123456",
        "requestType": "GET"
      }
    ]
  },
  "code": 200,
  "message": "Success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Signature
string
required

Base64 encoded signed hash of the http message request components.

Learn how signatures work

Example:

"sig1=:OTEyMjY4...A5NTNDMEQ=:"

Signature-Input
string
required

An ordered list of components that make up the signature base. It is used to recompute and verify the Signature

Learn how signatures work

Example:

"sig1=(\"Content-Type\" \"Content-Digest\" \"Content-Length\" \"Authorization\" \"X-Client-Id\" \"X-Idempotency-Key\" \"@method\" \"@target-uri\" \"@path\" \"@query\");keyid=\"staging-pipevest-ed25519\";created=1732893484;expires=1732893584"

X-Client-Id
string
required

Unique identifier assigned to the client

Example:

"client-id"

Query Parameters

customerId
integer
required

Unique customer identifier

Example:

123456

amount
integer

The total order request amount

Example:

100

inputMode
boolean

Set input mode

Example:

true

page
integer

The page offset for the items returned

Required range: x >= 0
Example:

0

searchMode
boolean

Set search mode

Example:

true

symbol
string

The symbol associated to an instrument

Example:

"AAPL"

Response

200
application/json

Stocks menu options and respective details

The response is of type object.