Create an invoice

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 creditCardEnabled is set to true in 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 a 400 response. However, intermittent Stripe errors may still cause credit card payments to fail.

Language
Credentials
Click Try It! to start a request and see the response here!