Skip to main content

MGCLatticeSalesOrderPostingService.cancelSalesPackingSlip

Cancels a posted sales packing slip the way Sales order > Packing slip journal > Cancel does: the standard packing slip posting runs as a cancellation (SalesFormLetter_PackingSlip started from the SalesFormLetter_PackingSlipCancel action, as Microsoft's test library does), which reverses the physical delivery, its inventory and its ledger postings and adds a version with zero quantities to the packing slip. The request names the sales order (or its external key) and optionally the packing slip; without one, the order's only packing slip that can be canceled is canceled.

  • HTTP method: POST
  • Route: /api/services/MGCLatticeAccountsReceivableServiceGroup/MGCLatticeSalesOrderPostingService/cancelSalesPackingSlip
  • Service class: MGCLatticeSalesOrderPostingService

Parameters​

NameTypeOptionalDescription
_requestMGCLatticeSalesPackingSlipCancelRequestContractNoThe request containing SalesOrderId (or SalesOrderIdExternalKey), optional PackingSlipId, and standard header fields.

Returns​

MGCLatticeOrderOperationResponseContract

An MGCLatticeOrderOperationResponseContract: DocumentId is the sales order and PostedDocumentId the canceled packing slip number.

Security​

  • Requires privilege MGCLatticeAccountsReceivablePackingSlipCancelMaintain