Vendor retrieval
Info about Vendors
STAGING_URL: https://switch-api-staging.herokuapp.com
LIVE_URL: https://switchapi.azurewebsites.net
Get Vendors
GET
https://switch-api-staging.herokuapp.com/vendor
This endpoint allows you to get the list of vendors.
Headers
Name
Type
Description
auth_token
string
The format for auth_token is Bearer token_string
{
"message": "Vendor retrieved successfully",
"data": {
"id": 7,
"email": "example@gmail.com",
"name": "TinCan",
"category": "loan",
"is_verified": true
}
}
Vendor categories
GET
https://switch-api-staging.herokuapp.com/vendor/categories
This endpoint returns the list of vendor categories
Headers
Name
Type
Description
auth_token
string
The format for auth_token is Bearer token_string
{
"message": "Vendor categories retrieved successfully",
"data": [
[
"Investment",
"investment"
],
[
"Loan",
"loan"
],
[
"Insurance",
"insurance"
]
]
}
Get Vendor List
GET
https://switch-api-staging.herokuapp.com/vendor/list
Headers
Name
Type
Description
auth_token
string
The format for auth_token is Bearer token_string
{
"message": "Vendor retrieved successfully",
"data": [
{
"id": null,
"name": "TinCan",
"switch_id": "SWITCH-100107"
},
{
"id": null,
"name": "Slack",
"switch_id": "SWITCH-100101"
},
{
"id": null,
"name": "Slack+1",
"switch_id": "SWITCH-100102"
},
{
"id": null,
"name": "MTN",
"switch_id": "SWITCH-100103"
}
]
}
Last updated
Was this helpful?