Create a new invoice for the organization
This endpoint generates an invoice. If the sendEmailOption parameter is omitted or is set to sendNow, the invoice will be emailed immediately to the customer identified by the customerId.
If you do not provide an invoiceNumber parameter in the body, the system will attempt to generate one based on the last invoice sent to this customer.
When
creditCardEnabledis set totruein the request body, the API validates that a Stripe account is connected to your organization's Mercury account and performs basic checks to ensure the Stripe account can accept card payments. If these checks fail, the invoice creation request will fail with a400response. However, intermittent Stripe errors may still cause credit card payments to fail.
