Edit pick ticket line
End Point
'CreateOrUpdate' API end point is used to edit existing pick ticket lines.
POST
https://{tenant_name}.p4warehouse.com/api/PickTicketLineApi/CreateOrUpdate
Headers
Name
Type
Description
ApiKey
String
System API key
Request Body
Name
Type
Description
"ProductId"*
String
Product Id assigned by the system
"Id"*
String
Line Id assigned by the system
"OrderedQuantity"*
Float
Quantity of the chosen product to add
"PickTicketId"*
String
Pick ticket Id assigned by the system
{
"$id": "1",
"LineNumber": 1,
"PickTicketId": "c98cf9ee-114e-4667-aead-ad943cfe4360",
"PickTicket": {
"$id": "2",
"PickTicketNumber": "PCK001",
"FreightTypeEnum": 1,
"FreightType": "SmallParcel",
"DockDoorId": null,
"DockDoor": null,
"PickTicketStateEnum": 0,
"PickTicketState": "Draft",
"CustomerId": "4cc9ebc2-4e8a-49a8-8f84-c9b191a01e97",
"Customer": null,
"PoNumber": null,
"IsWarehouseTransfer": false,
"ToWarehouseId": null,
"ToWarehouse": null,
"WarehouseTransferPurchaseOrders": null,
"ParentBackOrderId": null,
"ParentBackOrder": null,
"BackOrders": null,
"CountOnShip": false,
"SignOnShip": false,
"DriverId": null,
"VehicleId": null,
"SealNumber": null,
"ShipConfirmSignature": null,
"CountOnDelivery": false,
"SignOnDelivery": false,
"DeliveryConfirmSignature": null,
"QuotedTruckLoadShippingCost": null,
"ActualTruckLoadShippingCost": null,
"Carrier": "UPS",
"ShippingService": "GND",
"SmallParcelOptionsObject": {
"$id": "3",
"IsCountOnShip": false,
"IsSignOnShip": false,
"IsCountOnDelivery": false,
"IsSignOnDelivery": false,
"Carrier": null,
"Service": null,
"CarrierScac": null,
"FreightChargeTerms": 0,
"PaymentType": 0,
"CarrierAccountNumber": "",
"InternationTaxId": null,
"IsResidential": false,
"COD": false,
"SaturdayPickup": false,
"SaturdayDelivery": false,
"SignatureRequired": false,
"PrintReturnLabel": false,
"BillToName": null,
"BillToPhone": null,
"BillToAddress1": null,
"BillToAddress2": null,
"BillToCity": null,
"BillToStateProvince": null,
"BillToZipPostalCode": null,
"BillToCountry": null
},
"SmallParcelOptions": "{\"IsCountOnShip\":false,\"IsSignOnShip\":false,\"IsCountOnDelivery\":false,\"IsSignOnDelivery\":false,\"Carrier\":null,\"Service\":null,\"CarrierScac\":null,\"FreightChargeTerms\":\"Empty\",\"PaymentType\":\"Prepay\",\"CarrierAccountNumber\":\"\",\"InternationTaxId\":null,\"IsResidential\":false,\"COD\":false,\"SaturdayPickup\":false,\"SaturdayDelivery\":false,\"SignatureRequired\":false,\"PrintReturnLabel\":false,\"BillToName\":null,\"BillToPhone\":null,\"BillToAddress1\":null,\"BillToAddress2\":null,\"BillToCity\":null,\"BillToStateProvince\":null,\"BillToZipPostalCode\":null,\"BillToCountry\":null}",
"ReferenceNumber": "RF0120230824",
"Reference1": null,
"Reference2": null,
"Reference3": null,
"ShippingRuleCode": "RL-00004",
"ShipVia": null,
"AllocationSettings": null,
"GeoTimeStamp": null,
"CurrentLongitude": null,
"CurrentLatitude": null,
"ShipToGeoCodedAddress": null,
"ShipToLatitude": null,
"ShipToLongitude": null,
"ShipToEmail": "demo@email.com",
"ShipToAttnTo": "Roger Nadal",
"ShipToName": "R. Nadal",
"ShipToPhone": "123456789",
"ShipToAddress1": "3189 Park Drive Road",
"ShipToAddress2": "34",
"ShipToCity": "Aurora",
"ShipToStateProvince": "CO",
"ShipToZipPostal": "20134",
"ShipToCountry": "US",
"ShipToHash": "3189 Park Drive Road34AuroraCO20134US",
"BillToName": null,
"BillToPhone": null,
"BillToAddress1": null,
"BillToAddress2": null,
"BillToCity": null,
"BillToStateProvince": null,
"BillToZipPostal": null,
"BillToCountry": null,
"ShipFromGeoCodedAddress": null,
"ShipFromLatitude": null,
"ShipFromLongitude": null,
"AppointmentNumber": null,
"AppointmentDate": null,
"RouteNumber": null,
"Container": null,
"ShipFromName": "Demo P4B",
"ShipFromPhone": "708-519-0932",
"ShipFromAddress1": "3607 Hog Camp Road",
"ShipFromAddress2": "2",
"ShipFromCity": "Burr Ridge",
"ShipFromStateProvince": "IL",
"ShipFromZipPostal": "61257",
"ShipFromCountry": "US",
"WaveNumber": null,
"Comments": null,
"PickingInstructions": "Demo instructions",
"SystemMessage": null,
"IsHeldShort": null,
"IsPendingLetdown": null,
"IsPendingProduction": null,
"IsPendingPacksizeBreakdown": null,
"FirstPickBinId": null,
"FirstPickBin": null,
"CancelDate": null,
"RequiredDate": null,
"MustArriveDate": null,
"ReleasedToFloorDate": null,
"AllocatedDate": null,
"CartonizeDate": null,
"WavedDate": null,
"PickingStartedDate": null,
"PickingCompletedDate": null,
"ShipConfirmDate": null,
"ShippedDate": null,
"DeliveryConfirmDate": null,
"CloseDate": null,
"SuspendedDate": null,
"UploadDate": null,
"UploadedSuceeded": null,
"UploadMessage": null,
"WarehouseId": "1ab1f713-a451-4019-9e3c-25624374508c",
"Warehouse": null,
"ClientId": "91c64445-04d0-41da-a9ce-f05c0db7d4d4",
"Client": null,
"Lines": [
{
"$ref": "1"
}
],
"Totes": [],
"CartonizationDetails": [],
"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": "c98cf9ee-114e-4667-aead-ad943cfe4360",
"DateCreated": "2023-08-24T14:49:20.6857278+00:00",
"TypeName": "Pro4Soft.TenantData.Entities.Business.Fulfillment.PickTicket",
"TypeNameShort": "PickTicket"
},
"ProductId": "f8ee74b8-6868-40f0-b8fb-ecd2ee2d6940",
"Product": null,
"ProductBundleId": null,
"ProductBundle": null,
"Packsize": null,
"NumberOfPacks": null,
"LotNumber": null,
"Instructions": null,
"ReferenceNumber": null,
"Reference1": null,
"Reference2": null,
"Reference3": null,
"OrderedQuantity": 5.0,
"AllocatedQuantity": null,
"PendingProduction": null,
"PickedQuantity": null,
"ShippedQuantity": null,
"DeliveredQuantity": null,
"SalesPrice": null,
"ToteLines": [],
"InventoryReservations": [],
"InventoryPickShorts": [],
"ProductionOrders": [],
"Info1": null,
"Info2": null,
"Info3": null,
"Info4": null,
"Info5": null,
"Info6": null,
"Info7": null,
"Info8": null,
"Info9": null,
"Info10": null,
"Id": "0d3ef0c9-426a-46a9-96b1-3c8b85bbbf49",
"DateCreated": "2023-08-24T14:49:20.6897315+00:00",
"TypeName": "Pro4Soft.TenantData.Entities.Business.Fulfillment.PickTicketLine",
"TypeNameShort": "PickTicketLine"
}
PickTicketId is missing
ProductId is missing
Newly created lines are assigned with 'Id' number. Use this number to edit lines using API calls.
Notice: Product ID and 'SKU' are interchangeable when dealing with pick ticket lines.
JSON Example
Here is an example of a JSON payload to edit existing pick ticket line with a product and ordered quantity.
{
"Id": "0d3ef0c9-426a-46a9-96b1-3c8b85bbbf49",
"PickTicketId":"c98cf9ee-114e-4667-aead-ad943cfe4360",
"ProductId": "f8ee74b8-6868-40f0-b8fb-ecd2ee2d6940",
"OrderedQuantity": 5
}