Invoice Sent via API not including Stripe Payment Link
When we send an invoice from the CRM or Books manually, there is a checkbox towards the bottom under the "Payment Gateway" section of the invoice, with a checkbox for Stripe.
Our sales process is to present the customer with an estimate, when they accept it our automate is supposed to created a sales order, and then send an invoice to the customer so they can pay for it and we can fulfill the sales order.
When the invoice is sent via our custom functions in books, the payment gateway is not getting applied and the customers have no way to pay for the invoice.
How do we force this setting via API? This is how we are sending the invoices:
- info "invoiceBUildResp: " + invoiceDetails;
- invoiceID = invoiceDetails.get("invoice").get("invoice_id");
- info "invoiceID: " + invoiceID;
- sendInvoiceRes = invokeurl
- [
- url :"https://books.zoho.com/api/v3/invoices/" + invoiceID + "/email?organization_id=" + organizationID + "?contact_id=" + customerID
- type :POST
- connection:"zbooks"
- ];
- info "Send Email RESP: " + sendInvoiceRes;
- }