Edit Expense Line

Allows the user to edit the Expense Line from the Work Order

Uri

PATCH api/dynaway/eam/v1.0/companies({{Company_ID}})/workOrders({{WorkOrder_ID}})/workOrderExpenseLines({{ExpenseLine_ID}})

Parameters

CompanyID
- ID of the Company.
WorkOrder_ID
- System ID of the Work Order.
ExpenseLine_ID
- System ID of the Expense Line.
No
- Number of the Expense . Can be added only when the chosen line has no expense number. Otherwise number can not be changed.
ExpenseID
- System ID of the expense given as string - GUID. Using Expense system ID - expense on the line can be changed if consumption is not registered for this line.
Description
- Maximum lenght: 100.
UnitOfMeasureID
- System ID of the UoM given as string - GUID. Use UoM ID or Code.
UnitOfMeasureCode
- Code of the UoM given as string. Use UoM ID or Code.
VendorID
- System ID of the Vendor given as string - GUID. Use Vendor ID or Code.
VendorCode
- Code of the Vendor given as string. Use Vendor ID or Code.
ExpectedUnitCostLCY
- Expected Unit Cost LCY given as decimal.
Quantity
- Quantity given as decimal.
QtyToConsume
- Quantity To Consume given as decimal.
If-Match
- Value: * Added to the header.

Form Data

Example: 
{
    "description": "Added from API",
    "quantity": 10,
    "qtyToConsume": 1,
    "expectedUnitCostLCY": 14
}

JSON Response

{
    "id": "c9b469f3-0382-ed11-9989-000d3a3adeb2",
    "documentId": "87629528-e855-ed11-8c36-000d3a8dc661",
    "sequence": 20000,
    "expenseId": "7a5a5562-5545-ed11-946f-000d3a8dced5",
    "no": "CONTRACTOR",
    "description": "Added from API",
    "unitOfMeasureId": "d39582a8-b643-ed11-946f-000d3a8dc661",
    "unitOfMeasureCode": "HOUR",
    "vendorId": "2ac2454a-5545-ed11-946f-000d3a8dced5",
    "vendorNo": "V00030",
    "expectedUnitCostLCY": 14,
    "quantity": 10,
    "qtyToConsume": 1,
    "qtyConsumed": 4,
    "startingDate": "2022-10-27",
    "startingTime": "01:00:00",
    "endingDate": "2022-10-27",
    "endingTime": "23:00:00"
}

Copyright Dynaway A/S

Privacy Policy