Update invoice line item
Update invoice line item
Path parameters
invoiceId
Invoice ID
lineItemId
Invoice Line Item ID
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
description
category
Category of the line item.
serviceStartDate
serviceEndDate
metadata
glAccountId
ID of general ledger account associated with this line item.
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.
failureType
If the invoice failed to be paid, this field will be populated with the type of failure.
Allowed values:
fees
Fees associated with this invoice.
foreignId
The ID used to identify this invoice in your system. This ID must be unique within each creatorEntity in your system, e.g. two invoices with the same creatorEntity may not have the same foreign ID.
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
processedAt
Date when the invoice payment was processed.
serviceEndDate
serviceStartDate
settlementDate
Date of funds settlement.
shippingAmount
Shipping amount for this invoice.
taxAmount
Tax amount for this invoice.
transactions
Transactions associated with this invoice.
vendor
vendorCreditIds
The IDs of the vendor credits that are currently applied to this invoice.
vendorId