Developer Q&A

Ask a Question
Back to All

ApStatusChangeCommand - {!{Vendor Invoice}!} is read-only and cannot be modified.

Hi,

We are trying to update the WorkOrder.WorkOrderCost.ApStatusId to Exported.

We are using the following code;

var command = new ApStatusChangeCommand
{
WorkOrderId = 15162,
VendorInvoiceStatusId = 5
};

var response = await service.ExecuteAsync(new ExecuteRequest(CorrigoNetOptionsFactory.CreateDefault(), command));

return true;


And we are receiving "{!{Vendor Invoice}!} is read-only and cannot be modified."

Can someone please assist?

Regards,

Jose