Fuse5 Get Accounts
Version | Date | Created / Updated | Notes |
---|---|---|---|
v1.0 | 03.04.2025 | Bogomil | First publish |
v1.1 | 05.06.2025 | Bogomil | Store only unique records |
Get Accounts
We want to introduce a new button in Fuse5 Connector called “Get Account” which once clicked to trigger the request.
We want to introduce toast messages for successful start of the process or error when there is a missing info and the process cannot start for example missing API Key or URL. A toast notification is a user interface element that typically appears as a small popup with text, an image, or a button. They are suitable for conveying information that doesn't demand much user attention. These messages can be absorbed quickly without disrupting the user's workflow (Hint: we have toast messages implemented on the bulk request label functionality)
API Docs : https://greenteam.fuse5live.com/f5apidoc/standalone/#api-Account-Get_All_Accounts
API Call : account/all
Sample Request:
{
"authenticate":{
"apikey":"API KEY"
},
"services":[{
"call":"account/all",
"params": null,
"identifier":{
"offset":"0",
"limit":"20",
"sort_order":"desc"
}
}]
}
Sample Response:
{
"authenticate": {
"apikey" : "API KEY",
"status" : "success"
},
"services": [
{
"request": {
"call": "account/all",
"params": null,
"identifier":{
"offset":"0",
"limit":"20",
"sort_column":"created_date",
"sort_order":"desc",
"search_keyword":"account_name"
}
},
"response": {
"status": true,
"msg": {
"M003": "Data retrieved successfully"
},
"data": {
"total": 1,
"rows": [
{
"account_id": "6929731",
"account_name": "habibi",
"account_number": "ACC6085",
"primary_email": "text@text.com",
"default_location": "Easter Island"
}
]
}
}
}
]
}
From the response we want to store the account_number
and account_name
as an enumeration for Channel Fuse5 Connector > Fuse5 Account Number. We want to display the name of the account with prefix of the Fuse5 Connector > Name and send the number.
When we click on the button we want to delete all existing accounts for the specific connector and store the new ones.
<v1.1>Please note we want to add only the unique account_numbers
</v1.1>
Sample Error Response:
{
"authenticate": {
"apikey": null,
"status": "failed",
"error": {
"code": "E101",
"message": "JSON Error: Syntax error, malformed JSON"
}
}
}
We do not want to store the errors for the Get accounts but to return them in the log.