# BudgetService
This service allows you to search for a budget based on BudgetId, BudgetYear, Project and DepartmentId. BudgetYear is required.
BudgetService (opens new window)
BudgetService WSDL (opens new window)
# Guides
# Retrieve Budgets
To retrieve budgets you need to use the GetBudgets (opens new window) method.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetBudgets xmlns="http://24sevenOffice.com/webservices">
<searchParams>
<BudgetId>int</BudgetId>
<BudgetYear>int</BudgetYear>
<Project>boolean</Project>
<DepartmentId>int</DepartmentId>
</searchParams>
</GetBudgets>
</soap:Body>
</soap:Envelope>
# Example of response
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetBudgetsResponse xmlns="http://24sevenOffice.com/webservices">
<GetBudgetsResult>
<Budget>
<BudgetId>int</BudgetId>
<ProjectId>int</ProjectId>
<BudgetName>string</BudgetName>
<Project>boolean</Project>
<DateReg>dateTime</DateReg>
<Balance>decimal</Balance>
<DefaultBudget>boolean</DefaultBudget>
<BudgetYear>int</BudgetYear>
<DepartmentId>int</DepartmentId>
<Accounts>
<Account xsi:nil="true" />
<Account xsi:nil="true" />
</Accounts>
</Budget>
</GetBudgetsResult>
</GetBudgetsResponse>
</soap:Body>
</soap:Envelope>
# Methods
Method | Input type | Input Name | Return type |
---|---|---|---|
GetBudgets (opens new window) | BudgetSearchParameters | searchParams | Budget[] |