Create
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
amount
Total amount of invoice in major units. If the entered amount has more decimal places than the currency supports, trailing decimals will be truncated.
approvers
Set approvers for this invoice.
batchPayment
If true, this invoice will be paid as a batch payment. Batches are automatically determined by Mercoa based on the payment source, destination, and scheduled payment date.
creatorEntityId
ID of the entity who created this invoice template.
creatorUserId
User ID or Foreign ID of entity user who created this invoice.
currency
Currency code for the amount. Defaults to USD.
deductionDate
Initial date when funds are scheduled to be deducted from payer's account.
document
Base64-encoded string. Supported file types include PNG, JPG, WEBP, PDF, and all Microsoft Office formats (automatically converted to PDF). Max file size 10MB.
dueDate
Due date of invoice.
fees
If using a custom payment method, you can override the default fees for this invoice. If not provided, the default fees for the custom payment method will be used.
invoiceDate
Date the invoice was issued.
invoiceNumber
lineItems
metadata
Metadata associated with this invoice.
noteToSelf
Note to self or memo on invoice.
payerId
ID or foreign ID of the payer of this invoice.
paymentDestinationId
ID of payment destination for this invoice. If not provided, will attempt to use the default payment destination for the vendor when creating an invoice if a default payment destination exists for the vendor.
paymentDestinationOptions
Options for the payment destination. Depending on the payment destination, this may include things such as check delivery method.
paymentSchedule
If this is a recurring invoice, this will be the payment schedule for the invoice. If not provided, this will be a one-time invoice.
paymentSourceId
ID of payment source for this invoice. If not provided, will attempt to use the default payment source for the payer when creating an invoice if a default payment source exists for the payer.
serviceEndDate
serviceStartDate
shippingAmount
Shipping amount for this invoice.
status
taxAmount
Tax amount for this invoice.
vendorId
ID or foreign ID of the vendor of this invoice.
Response
This endpoint returns an object.
approvalPolicy
approvers
createdAt
hasDocuments
True if the invoice has documents attached.
hasSourceEmail
True if the invoice was created by an incoming email.
id
metadata
Metadata associated with this invoice.
paymentDestinationConfirmed
True if the payment destination has been confirmed by the vendor. False if the payment destination has been set (for example, a check to an address) but has not been confirmed by the vendor.
status
updatedAt
amount
Total amount of invoice in major units
batchPayment
If true, this invoice will be paid as a batch payment. Batches are automatically determined by Mercoa based on the payment source, destination, and scheduled payment date.
comments
creatorEntityId
The ID of the entity who created this invoice.
creatorUser
Entity user who created this invoice.
currency
Currency code for the amount. Defaults to USD.
deductionDate
Initial date when funds are scheduled to be deducted from payer's account. The actual deduction date may differ from this date, and will be reflected in the processedAt field.
dueDate
Due date of invoice.
fees
Fees associated with this invoice.
invoiceDate
Date the invoice was issued.
invoiceNumber
lineItems
netTerms
Net terms in days. Must be a positive number.
nextDeductionDate
For invoice templates, this is the date when the next recurring payment will be scheduled.
noteToSelf
ocrJobId
ID of the OCR job that processed this invoice.
payer
payerId
paymentDestination
paymentDestinationId
paymentDestinationOptions
paymentSchedule
If this is a recurring invoice, this will be the payment schedule for the invoice. If not provided, this will be a one-time invoice.
paymentSource
paymentSourceId
paymentTiming
serviceEndDate
serviceStartDate
shippingAmount
Shipping amount for this invoice.
taxAmount
Tax amount for this invoice.
vendor
vendorId