Create an invoice
Create a new invoice for the organization
Request body
Whether or not the invoice can be paid via ACH debit.
Emails to be CCed on invoice notifications/reminders.
Whether or not the invoice can be paid via credit card. Requires Stripe to be setup for the Mercury account.
ISO 4217 currency code for the invoice. Defaults to USD if not provided.
Id of the customer the invoice was sent to.
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.
The due date the invoice should be paid by. YYYY-MM-DD
Internal note for the invoice, visible by users in the organization but not visible to payers.
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
The payer facing invoice number/identifier.
Memo for the payer of the invoice.
Purchase order number for the invoice, if applicable.
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.
The end date for the service period this invoice covers, if applicable. YYYY-MM-DD
The start date for the service period this invoice covers, if applicable. YYYY-MM-DD
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.
Example request
{
"dueDate": "2016-07-22",
"invoiceDate": "2016-07-22",
"servicePeriodEndDate": "2016-07-22",
"servicePeriodStartDate": "2016-07-22"
}Response
Whether or not the invoice can be paid via ach debit.
The total amount of the invoice line items plus taxes.
The time when the invoice was canceled.
Emails to be CCed on invoice notifications/reminders.
The timestamp when the invoice was created.
Whether or not the invoice can be paid via credit card. Requires stripe to be setup for the Mercury account.
ISO 4217 currency code for the invoice (e.g. "USD", "EUR").
Id of the customer the invoice was sent to.
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.
The due date the invoice should be paid by.
The ID of the invoice.
Internal note for the invoice, visible by users in the mercury organization but not visible to payers.
The date of the invoice, set by the invoice creator and likely to be context specific to the type of transaction. i.e. it could be a date a service was performed, it does not need to be the date the invoice was created.
The payer facing invoice number/identifier.
Memo for the payer of the invoice.
Purchase order number for the invoice if applicable.
The end date for the service period this invoice covers, if applicable. YYYY-MM-DD
The start date for the service period this invoice covers, if applicable. YYYY-MM-DD
Public slug for an invoice. Used to construct the pay page URL as well as the URL to retrieve the PDF of the invoice.
The status of the invoice.
The timestamp when the invoice was updated.
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.
Example response
{
"canceledAt": "2016-07-22T00:00:00Z",
"createdAt": "2016-07-22T00:00:00Z",
"dueDate": "2016-07-22",
"invoiceDate": "2016-07-22",
"servicePeriodEndDate": "2016-07-22",
"servicePeriodStartDate": "2016-07-22",
"updatedAt": "2016-07-22T00:00:00Z"
}