Thank you @Duilio Tacconi.
This blog is very helpful.
i have one more query, when i saw the source code of "Sales Order" API page. there is below procedure available to post the sales order.
procedure ShipAndInvoice(var ActionContext: WebServiceActionContext)
var
SalesHeader: Record "Sales Header";
SalesInvoiceHeader: Record "Sales Invoice Header";
SalesInvoiceAggregator: Codeunit "Sales Invoice Aggregator";
begin
GetOrder(SalesHeader);
PostWithShipAndInvoice(SalesHeader, SalesInvoiceHeader);
SetActionResponse(ActionContext, Page::"APIV1 - Sales Invoices", SalesInvoiceAggregator.GetSalesInvoiceHeaderId(SalesInvoiceHeader));
end;
I am confused, how i can call this to post the sales shipment and invoice using the API.
Regards,
Sunil Kumar