MGCLatticeVendorInvoiceService.postPendingVendorInvoice
Posts a pending vendor invoice (Accounts payable > Invoices > Pending vendor invoices), with or without purchase order lines, the way the page's Post does (see postSavedInvoice), in one transaction: the invoice either posts completely or stays pending as it was.
- HTTP method:
POST - Route:
/api/services/MGCLatticeAccountsPayableServiceGroup/MGCLatticeVendorInvoiceService/postPendingVendorInvoice - Service class:
MGCLatticeVendorInvoiceService
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticePendingVendorInvoicePostRequestContract | No | The request: HeaderReference, or VendorAccount (or its external key) with InvoiceNumber, and the standard header fields. |
Returns
MGCLatticeOrderOperationResponseContract
An MGCLatticeOrderOperationResponseContract: DocumentId is the vendor's invoice number of the posted invoice, PostedDocumentId the voucher of the posted vendor invoice (VendInvoiceJour.LedgerVoucher).
Security
- Requires privilege
MGCLatticeAccountsPayableServiceMaintain