Employee Budgets
Endpoints for Employee Budgets addon
Path parameters
BudgetIdstringRequired
ID of Budget
Body
anyOptional
Responses
200
Returns a success response indicating a successful update
application/json
anyOptional
put/budget/{id}
PUT /budget/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
200
Returns a success response indicating a successful update
No content
Path parameters
BudgetIdstringRequired
ID of Budget
Body
anyOptional
Responses
200
Returns a success response indicating a successful update
application/json
anyOptional
patch/budget/{id}
PATCH /budget/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
200
Returns a success response indicating a successful update
No content
Authorizations
sw-context-tokenstringRequired
Path parameters
budgetIdstringRequired
ID of the Budget
Responses
200
Returns a list of orders that use the specified budget
application/json
totalintegerRequired
Total number of orders
get/budget/{budgetId}/orders
GET /budget/{budgetId}/orders HTTP/1.1
sw-context-token: YOUR_API_KEY
Accept: */*
200
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
}Authorizations
sw-context-tokenstringRequired
Path parameters
budgetIdstringRequired
ID of the Budget
Body
anyOptional
Responses
200
Returns a list of orders that use the specified budget
application/json
totalintegerRequired
Total number of orders
post/budget/{budgetId}/orders
POST /budget/{budgetId}/orders HTTP/1.1
sw-context-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2
{}200
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?