Skip to main content

MGCLatticeSalesOrderPostingService.invoiceSalesOrder

Posts an invoice for a sales order using SalesFormLetter with DocumentStatus::Invoice. Without request lines an order with packing slips is invoiced for what was delivered and an order without packing slips for its ordered quantity (invoiceQuantity); with lines, only the selected lines and quantities. The invoice number comes from the number sequence and is returned as PostedDocumentId.

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

Parameters​

NameTypeOptionalDescription
_requestMGCLatticeSalesOrderInvoiceRequestContractNoThe request containing SalesOrderId, PostingDate, optional Lines, and standard header fields.

Returns​

MGCLatticeOrderOperationResponseContract

An MGCLatticeOrderOperationResponseContract indicating success or failure with details.

Security​

  • Requires privilege MGCLatticeAccountsReceivableServiceMaintain