// You can find your project ID in the Overview tab of any Integration
// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);
// Get the top 50 supplier invoices
paragon.request("saps4hana", "/odata/sap/API_SUPPLIERINVOICE_PROCESS_SRV/A_SupplierInvoice?$top=50&$inlinecount=allpages", {
method: "GET"
});
// Release an invoice by ID
paragon.request("saps4hana", "/odata/sap/API_SUPPLIERINVOICE_PROCESS_SRV/Release?SupplierInvoice=<SupplierInvoiceID>&FiscalYear=2022&DiscountDaysHaveToBeShifted=true", {
method: "POST"
});
// Get a customer by ID
paragon.request("saps4hana", "/odata/sap/API_BUSINESS_PARTNER/A_Customer(%27<Customer ID>%27)", {
method: "GET"
});