Employee Budgets
Endpoints for Employee Budgets addon
Employee Budgets addon
This route is used to create a new Budget
Returns a success response indicating a successful update
POST /budget HTTP/1.1
Content-Type: application/json
Accept: */*
Returns a success response indicating a successful update
No content
ID of Budget
Returns a success response indicating a successful update
PUT /budget/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Returns a success response indicating a successful update
No content
ID of Budget
Returns a success response indicating a successful update
PATCH /budget/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Returns a success response indicating a successful update
No content
Get all orders that use the specified budget
ID of the Budget
Returns a list of orders that use the specified budget
Total number of orders
GET /budget/{budgetId}/orders HTTP/1.1
sw-context-token: YOUR_API_KEY
Accept: */*
Returns a list of orders that use the specified budget
{
"orders": [
{
"id": "text",
"orderNumber": "text",
"orderDate": "2026-01-01T00:00:00.000Z",
"stateMachineState": null,
"currency": null,
"totalPrice": 1,
"netPrice": 1,
"taxAmount": 1,
"billingAddress": null,
"orderCustomer": null,
"deliveries": [],
"transactions": [],
"lineItems": [],
"documents": [],
"budgetData": {
"budgetId": "text",
"budgetLineItems": [],
"budgetProductCount": 1,
"totalProductCount": 1,
"budgetValue": 1,
"totalOrderValue": 1,
"budgetUsagePercentage": 1,
"budgetProductRatio": "text"
}
}
],
"total": 1
}Get all orders that use the specified budget with search criteria
ID of the Budget
Returns a list of orders that use the specified budget
Total number of orders
POST /budget/{budgetId}/orders HTTP/1.1
sw-context-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2
{}Returns a list of orders that use the specified budget
{
"orders": [
{
"id": "text",
"orderNumber": "text",
"orderDate": "2026-01-01T00:00:00.000Z",
"stateMachineState": null,
"currency": null,
"totalPrice": 1,
"netPrice": 1,
"taxAmount": 1,
"billingAddress": null,
"orderCustomer": null,
"deliveries": [],
"transactions": [],
"lineItems": [],
"documents": [],
"budgetData": {
"budgetId": "text",
"budgetLineItems": [],
"budgetProductCount": 1,
"totalProductCount": 1,
"budgetValue": 1,
"totalOrderValue": 1,
"budgetUsagePercentage": 1,
"budgetProductRatio": "text"
}
}
],
"total": 1
}Last updated
Was this helpful?