The getInvoiceSummaryForOrderID
function can:-
get the details of the invoice for an order ID
If successful it will return an Invoice object showing the financials on the order which includes:-
Content > ID
theInvoiceID
you will need to pay the invoiceContent > NetAmount
the calculated net value of the orderContent > VATAmount
the calculated VAT against the orderContent > Amount
the total value of the invoiceContent > AmountPaid
the value paid against the invoice
Tips and Recommendations when using this function
Pass in the
OrderID
returned from theSubmitOrder
function as theContent
for the functionLikely only to return the first invoice that it finds, so you may find issues trying to get the invoice you need via the API if for some reason there is more than one invoice against an order.
If the
InvoiceID
returned is 0, then no Invoice was found against the customer, this is typical for orders placed against a Trade customerWhile this function does look like it could return a
ProformaID
, there are no functions available to pay Proformas via the API and it doesn't look to be populated given it was designed to return invoice details.
Endpoints
All requests for this function need to go to the following endpoint:
LIVE: https://wcfccpservicesbase.cloudcommercepro.com/CCPApiOrderService.svc?wsdl