Receive Parts Against PO

This API receives parts against existing purchase orders using packing-slip information.

User security

  • Purchase Order > Processing > Receive Parts Against PO
FieldDescription
WebMethodGJM25ULJ – required
Optionscan checks for errors without receiving parts; update receives parts against purchase orders.
CompanyCoderequired
APSubledgerCoderequired
DateOfRecordOptional; defaults to the current system date.
AuditNumberReturned result (read-only).
attachmentReturned audit report as a base64-encoded PDF (read-only).
errorsFoundReturned result; should be 0 (read-only).

Errors are returned in the errors node in the same format used by other Jonas API functions.

BatchHeader

FieldDescription
PurchaseOrderNumberrequired
PackingSlipNumberOptional; depends on the setting in the PO Profile.
WarehouseCodeOptional default warehouse for the line items; defaults to the value from the purchase order.
DateReceivedOptional default receipt date for the line items; defaults to the current system date.
PackingSlipAttachmentOptional base64-encoded file; applies only when using PackingSlipNumber. DIGIO is required.

PackingSlipAttachment

FieldDescription
nameFilename
contentBase64-encoded file content

BatchDetail

FieldDescription
ItemNumberrequired
WarehouseCodeOptional; defaults to the value from BatchHeader.
DateReceivedOptional; defaults to the value from BatchHeader.
QuantityReceivedOptional; defaults to the outstanding quantity from the purchase order.
FreightAmountOptional.

PARTS_SerializedInventory

Include this node when receiving serialized parts.

FieldDescription
SerialNumberRequired for serialized parts.
ArrivedOnDateOptional; defaults to the DateReceived value in BatchDetail.
CostAmountOptional; defaults to the value from the purchase order.
CommentsOptional.
ReservedForCustomerJobWOOptional; defaults to the allocation from the purchase order.

Optional nodes can be omitted from the JSON.

Scan example

Use Option: "scan" to check the receipt for errors. To post the receipt, use Option: "update". Replace the packing-slip attachment content with the base64-encoded file.

{
  "WebMethod": "GJM25ULJ",
  "Option": "scan",
  "CompanyCode": "ZX",
  "APSubledgerCode": "AP",
  "DateOfRecord": "2017-10-31",
  "BatchHeader": [{
    "PurchaseOrderNumber": "000006",
    "PackingSlipNumber": "000000000015",
    "WarehouseCode": "MAIN",
    "DateReceived": "2017-10-31",
    "PackingSlipAttachment": {
      "name": "packingSlip15.pdf",
      "content": "JVBERi0xLjQNCjEgMCBvYmoNCjw8DQov...(base64 encoded file)"
    },
    "BatchDetail": [{
      "ItemNumber": "0001",
      "WarehouseCode": "MAIN",
      "DateReceived": "2017-10-31",
      "QuantityReceived": "9",
      "FreightAmount": "0.125",
      "PARTS_SerializedInventory": [{
        "SerialNumber": "12345",
        "ArrivedOnDate": "2017-10-31",
        "CostAmount": "0.125",
        "Comments": "optional",
        "ReservedForCustomerJobWO": ""
      }]
    }]
  }]
}