get https://api.vendy.money/transactions/channels
Endpoint to retrieve the channels supported by a given phone number.
Request:
Query Parameter | Type | Description |
---|---|---|
businessId | Integer | Unique identifier for business |
phoneNumber | String(Digits) | phone number with which to get channels |
Example request
curl --location 'https://api.vendy.money/transactions/channels?businessId=1&phoneNumber=2349050264876' \
--header 'Authorization: Bearer <token>'
Response:
Field | Type | Description |
---|---|---|
status | Boolean | States if request was successfully executed or not |
code | Integer | Internal code, success if 200 |
msg | String | A description of the status of the request |
data | JsonArray | Available payment methods for phone number |
Example response
{
"status": true,
"code": 200,
"msg": "Channels",
"data": [
{
"pay_wallet": true
},
{
"payment_card": true
}
]
}