Skip to main content

MGCLatticePurchaseOrderPostingService.invoicePurchaseOrder

Posts an invoice for a purchase order using PurchFormLetter with DocumentStatus::Invoice, under the request's InvoiceId. An order with product receipts is invoiced from them; request lines must then name exactly the received, uninvoiced quantities. An order without receipts is invoiced for its ordered quantity, or - with request lines - for the selected lines and quantities. InvoiceId (the vendor's invoice number) is required; the posted invoice number is returned as PostedDocumentId.

  • HTTP method: POST
  • Route: /api/services/MGCLatticeAccountsPayableServiceGroup/MGCLatticePurchaseOrderPostingService/invoicePurchaseOrder
  • Service class: MGCLatticePurchaseOrderPostingService

Parameters​

NameTypeOptionalDescription
_requestMGCLatticePurchaseOrderInvoiceRequestContractNoThe request containing PurchaseOrderId, InvoiceId, PostingDate, optional Lines, and standard header fields.

Returns​

MGCLatticeOrderOperationResponseContract

An MGCLatticeOrderOperationResponseContract indicating success or failure with details.

Security​

  • Requires privilege MGCLatticeAccountsPayableServiceMaintain