Update or edit existing purchase orders
End Point
'CreateOrUpdate' API end point is used to update/edit existing purchase orders.
POST
https://{tenant_name}.p4warehouse.com/api/PurchaseOrderApi/CreateOrUpdate
Headers
Request Body
{
"$id": "1",
"PurchaseOrderNumber": "PO-0000033",
"PurchaseOrderStateEnum": 0,
"PurchaseOrderState": "Draft",
"Carrier": null,
"ReferenceNumber": "1234567890",
"Reference1": null,
"Reference2": null,
"Reference3": null,
"Container": null,
"Comments": null,
"CancelDate": null,
"RequiredDate": null,
"ReleaseDate": null,
"ReceivingStarted": null,
"ReceivingCompleted": null,
"CloseDate": null,
"UploadDate": null,
"UploadedSuceeded": null,
"UploadMessage": null,
"AppointmentNumber": null,
"AppointmentDate": null,
"ParentBackOrderId": null,
"ParentBackOrder": null,
"BackOrders": null,
"DockDoorId": null,
"DockDoor": null,
"WarehouseId": "1ab1f713-a451-4019-9e3c-25624374508c",
"Warehouse": null,
"ClientId": null,
"Client": null,
"VendorId": "a69a50b4-4116-4525-8d35-43be41822250",
"Vendor": null,
"IsWarehouseTransfer": false,
"WarehouseTransferPickTicketId": null,
"WarehouseTransferPickTicket": null,
"Lines": [],
"AssignedUserId": null,
"AssignedUser": null,
"Tag1": null,
"Tag2": null,
"Tag3": null,
"Tag4": null,
"Tag5": null,
"Info1": null,
"Info2": null,
"Info3": null,
"Info4": null,
"Info5": null,
"Info6": null,
"Info7": null,
"Info8": null,
"Info9": null,
"Info10": null,
"Id": "1f263997-ad5a-46d4-819e-52bc1b6834c5",
"DateCreated": "2023-08-18T16:29:46.343921+00:00",
"TypeName": "Pro4Soft.TenantData.Entities.Business.Purchasing.PurchaseOrder",
"TypeNameShort": "PurchaseOrder"
}
```
Available fields
"PurchaseOrderNumber": "0001",
"Carrier": null,
"ReferenceNumber": "123456789",
"Reference1": null,
"Reference2": null,
"Reference3": null,
"Container": null,
"Comments": null,
"CancelDate": null,
"RequiredDate": null,
"ReleaseDate": null,
"CloseDate": null,
"UploadDate": null,
"UploadedSuceeded": null,
"UploadMessage": null,
"AppointmentNumber": null,
"AppointmentDate": null,
"BackOrders": null,
"DockDoor": null,
"Warehouse": null,
"Client": null,
"Vendor": null,
"AssignedUser": null,
"Tag1": null,
"Tag2": null,
"Tag3": null,
"Tag4": null,
"Tag5": null,
"Info1": null,
"Info2": null,
"Info3": null,
"Info4": null,
"Info5": null,
"Info6": null,
"Info7": null,
"Info8": null,
"Info9": null,
"Info10": null,