Get User Operational Structures
This API retrieves the Match operational structures for the specified user.
Path parameters
-
userName
string Required Username of the user.
GET
/users/{userName}/operational-structures
curl \
--request GET 'https://localhost:8080/users/testuser1/operational-structures' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": 1,
"name": "Accounts payable",
"hierarchy": "Balance Sheet->Liabilities->Current Liabilities->Accounts Payable"
},
{
"id": 2,
"name": "Accounts Receivable",
"hierarchy": "Balance Sheet->Assets->Current Assets->Accounts Receivable"
},
{
"id": 3,
"name": "Deposits",
"hierarchy": "Balance Sheet->Assets->Other Assets->Deposits"
}
],
"totalRecords": 3
}
Response examples (401)
{
"code": "900901",
"message": "Invalid Credentials",
"description": "Access failure for API: /api/admin/v1.1.0, version: v1.1.0 status: (900901) - Invalid Credentials. Make sure you have provided the correct security credentials"
}
Response examples (404)
{
"error": "User not found for specified id or username.",
"status": 404
}