Create an invoice

Create a new invoice for the organization

Body Params
boolean
required

Whether or not the invoice can be paid via ACH debit.

ccEmails
array of objects
required

Emails to be CCed on invoice notifications/reminders.

ccEmails*
boolean
required

Whether or not the invoice can be paid via credit card. Requires Stripe to be setup for the Mercury account.

uuid
required

Id of the customer the invoice was sent to.

uuid
required

The Mercury account where invoice payments will be deposited. Use the /api/v1/accounts endpoint to list your accounts and find the corresponding id. Only checking and savings accounts are supported.

date
required

The due date the invoice should be paid by. YYYY-MM-DD

string | null

Internal note for the invoice, visible by users in the organization but not visible to payers.

date
required

The date of the invoice, set by the invoice creator and likely to be context specific to the type of transaction. For example, it could be a date a service was performed. YYYY-MM-DD

string | null

The payer facing invoice number/identifier.

lineItems
array of objects
required

The line items for the invoice

lineItems*
string | null

Memo for the payer of the invoice.

string | null

Purchase order number for the invoice, if applicable.

string | null
enum

Rules for emailing the new invoice to payers. Can be "DontSend" to skip sending or "SendNow" to send immediately. If omitted, defaults to sending immediately.

Allowed:
date | null

The end date for the service period this invoice covers, if applicable. YYYY-MM-DD

date | null

The start date for the service period this invoice covers, if applicable. YYYY-MM-DD

boolean
required

Whether or not the invoice payment instructions will show the real account and routing number for the destination account or use virtual account numbers instead. Virtual accounts are safer and are preferred in most cases.

Responses

400

Invalid body

Language
Credentials
Bearer
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json