Update Sales Invoices by Id

Use this method to update sales invoices lists. See our HTTP GET documentation for complete queries method.

The following elements are returned in the update sales invoices lists methods response :

Body Request

Element Description
reason The reason why changes were made. String 170 characters.
status Status transaction, the status must be one of the following types: draft, deleted, submitted, approved, voided, finished.
number Reference number of sales invoices. String maximum 35 characters.

Body Response

Element Description
id Unique code for identifier sales invoices. String 36 characters.
status Status transaction, the status must be one of the following types: draft, deleted, submitted, approved, voided, finished.
date Transaction date. Date format YYYY-MM-DD.
time Transaction time. Time format hh:mm:ss.
number Reference number of sales deliveries. String maximum 35 characters.
description Description of sales deliveries. String maximum 75 characters.
customer* Element for customer.
customer.id Unique code for identifier customer. String 36 characters.
customer.code Customer code String maximum 255 characters.
customer.name Customer name String maximum 255 characters.
customer.classification* Element for customer classification.
customer.classification.id Unique code for identifier classification. String 36 characters.
customer.classification.name Classification name String maximum 255 characters.
billing_address* Billing Address data.
billing_address.complete_address Billing address complete String
billing_address.district Billing Address district String
billing_address.city Billing Address city String
billing_address.state Billing Address state String
billing_address.country Billing Address country String
billing_address.postal_code Billing Address postal code String
shipping_address* Shipping Address Data
shipping_address.complete_address Shipping Address complete String
shipping_address.district Shipping Address district String
shipping_address.city Shipping Address city String
shipping_address.state Shipping Address state String
shipping_address.country Shipping Address country String
shipping_address.postal_code Shipping Address postal code String
employees* Element for employees.
employees.id Unique code for identifier employees. String 36 characters.
employees.type* employees.type
employees.type.id Unique code for identifier employees type. String 36 characters.
employees.type.name employees type name. String 36 characters.
employees.contact* Element for Contact.
employees.contact.id Unique code for identifier contact. String 36 characters.
employees.contact.code Contact code String maximum 255 characters.
employees.contact.name Contact name String maximum 255 characters.
employees.contact.classification* contact classification.
employees.contact.classification.id Unique code for identifier classification. String 36 characters.
employees.contact.classification.name Contact classification name String maximum 255 characters.
term_of_payment* term_of_payment.
term_of_payment.base_date Base date period of credit transaction, for customer and vendor type. Integer.
term_of_payment.percentage Term of payment percentage of credit transaction, for customer and vendor type. Integer.
term_of_payment.due_date Due date period of credit transaction, for customer and vendor type. Integer.
term_of_payment.due_days Due days period of credit transaction, for customer and vendor type. Integer.
term_of_payment.late_charge_rate Credit transaction late charge Integer.
term_of_payment.discount_days Discount day, for customer and vendor type Integer.
term_of_payment.early_discount_rate Early discount, for customer and vendor type Integer.
parent_memo* The parent memo is filled with the invoice number you want to return in the credit / debit note column.
parent_memo.id Unique code for identifier parent_memo. String 36 characters.
parent_memo.status parent_memo status String maximum 3 characters.
parent_memo.date parent_memo date Date format YYYY-MM-DD.
parent_memo.time parent_memo time Time format hh:mm:ss.
parent_memo.number parent_memo number String maximum 255 characters.
currency* currency
currency.id Unique code for identifier currency. String 36 characters.
currency.code Currency code String maximum 3 characters.
currency.name Currency name String maximum 255 characters.
currency.symbol Currency symbol String maximum 255 characters.
exchange_rate Exchange rate number
department* Department of sales invoices.
Department.id Unique code for identifier customer. String 36 characters.
Department.code Customer code String maximum 255 characters.
Department.name Customer name String maximum 255 characters.
project* Project of sales invoices.
project.id Unique code for identifier project. String 36 characters.
project.code Project code String maximum 255 characters.
project.name Project name String maximum 255 characters.
warehouse* Warehouse of sales invoices.
warehouse.id Unique code for identifier department. String 36 characters.
warehouse.code Warehouse code String maximum 255 characters.
warehouse.name Warehouse name String maximum 255 characters.
document* Document of sales invoices.
document.date Document date. Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format). Automaticaly.
document.number Document number String.
tax_form* Tax form of sales invoices.
tax_form.number Document number String.
tax_form.date Document date. Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format). Automaticaly.
other_fields other_fields
other_fields.id Unique code for identifier other_fields. String 36 characters.
other_fields.key key words of other_fields. String 36 characters.
other_fields.type other_fields type. String 36 characters.
other_fields.value other_fields value. String 36 characters.
attachments* attachments.
attachments.id Unique code for identifier attachments. String 36 characters.
attachments.name Attachments name String.
attachments.extension Attachments extension JPG, PNG, PDF String.
attachments.url Attachments url String.
is_auto_delivery true for auto delivery Boolean.
line_amount_type tax_exclusive String.
line_items* line_items of sales invoices
line_items.id Unique code for identifier line_items. String 36 characters.
line_items.description line_items description Number
line_items.quantity line_items quantity Number
line_items.unit_price line_items unit_price Number
line_items.note line_items note Number
line_items.discount* Line items discount.
line_items.discount.rate Discount rate Number
line_items.discount.amount Discount amount Number
line_items product* line_items Product data.
line_items.product.id Unique code for identifier product. String 36 characters.
line_items.product.code Product code String maximum 255 characters.
line_items.product.name Product name String maximum 255 characters.
line_items.unit* line_items unit.
line_items.unit.id Unique code for identifier unit. String 36 characters.
line_items.unit.code Unit code String maximum 255 characters.
line_items.unit.name Unit name String maximum 255 characters.
line_items.account* line_items account data .
line_items.account.id Unique code for identifier account. String 36 characters.
line_items.account.code Account code String maximum 255 characters.
line_items.account.name Account name String maximum 255 characters.
line_items.account.alias_name Account alias name String maximum 255 characters.
line_items.departement* Departement data .
line_items.departement.id Unique code for identifier department. String 36 characters.
line_items.departement.code Departement code String maximum 255 characters.
line_items.departement.name Departement name String maximum 255 characters.
line_items.project* Project of sales invoices.
line_items.project.id Unique code for identifier project. String 36 characters.
line_items.project.code Project code String maximum 255 characters.
line_items.project.name Project name String maximum 255 characters.
line_items.warehouse* Warehouse data.
line_items.warehouse.id Unique code for identifier warehouse. String 36 characters.
line_items.warehouse.code Warehouse code String maximum 255 characters.
line_items.warehouse.name Warehouse code String maximum 255 characters.
line_items.order* Element for order.
line_items.order.id Unique code for identifier order.id. String 36 characters.
line_items.order.description order description String maximum 255 characters.
line_items.order.quantity order quantity Number maximum 255 characters.
line_items.order.unit_price order unit_price Number maximum 255 characters.
final_discount* Final discount of sales invoices.
final_discount.type Unique code for identifier department. String 36 characters.
final_discount.description Warehouse code String maximum 255 characters.
final_discount.rate Warehouse name String maximum 255 characters
final_discount.amount Warehouse name String maximum 255 characters
final_discount.account* account of final_discount
final_discount.account.id Unique code for identifier account. String 36 characters.
final_discount.account.code account code String maximum 255 characters
final_discount.account.name account name String maximum 255 characters.
orders* Element for orders.
orders.id Unique code for identifier orders.id. String 36 characters.
orders.date orders date Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format).
orders.number orders number Number maximum 255 characters.
orders.description orders description Number maximum 255 characters.
deliveries* deliveries data.
deliveries.id Unique code for identifier deliveries String 36 characters.
deliveries.date deliveries date Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format).
deliveries.number deliveries number Number maximum 255 characters.
deliveries.description deliveries description String maximum 255 characters.
others* Element for others.
others.id Unique code for identifier others.id. String 36 characters.
others.description others description String maximum 255 characters.
others.amount others number Number maximum 255 characters.
others.currency* Element for others currency.
others.currency.id Unique code for identifier currency String 36 characters.
others.currency.code currency code String 255 characters.
others.currency.name currency name String 255 characters.
others.currency.symbol currency symbol String 255 characters.
others.exchange_rate Exchange_rate Number.
others.account* Account data .
others.account.id Unique code for identifier account. String 36 characters.
others.account.code Account code String maximum 255 characters.
others.account.name Account name String maximum 255 characters.
prepayments* Element for prepayments.
prepayments.id Unique code for identifier others.id. String 36 characters.
prepayments.description prepayments description String 255 characters.
prepayments.amount others number Number maximum 255 characters.
prepayments.currency* prepayments currency String.
prepayments.currency.id Unique code for identifier prepayments currency String 36 characters.
prepayments.currency.code prepayments currency code String 255 characters.
prepayments.currency.name prepayments currency name String 255 characters.
prepayments.currency.symbol prepayments currency symbol String 255 characters.
prepayments.exchange_rate prepayments Exchange_rate Number.
prepayments.parent Element for prepayments parent .
prepayments.parent.id Unique code for identifier prepayments parent id. String 36 characters.
prepayments.parent.date prepayments parent date Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format).
prepayments.parent.number prepayments parent number String.
prepayments.parent.description prepayments parent description String maximum 255 characters.
prepayments.account* Element for prepayments account .
prepayments.account.id Unique code for identifier prepayments account String 36 characters.
prepayments.account.code prepayments account code String 255 characters.
prepayments.account.name prepayments account name String 255 characters.
payments* Element for payments.
payments.id Unique code for identifier others.id. String 36 characters.
payments.description payments description String 255 characters.
payments.payment_method* others number Number maximum 255 characters.
payments.payment_method.id Unique code for identifier payments method String 36 characters.
payments.payment_method.name Payment method name String 255 characters.
payments.is_cash true for payment is cash Boolean.
payments.account Payments account. String 36 characters.
payments.account.id Unique code for identifier prepayments account String 36 characters.
payments.account.code prepayments account code String 255 characters.
payments.account.name prepayments account name String 255 characters.
payments.amount payments amount. Number.
payments.amount_paid payments amount paid. Number.
total_amount total_amount Number.
receivable_payments* receivable_payments.
receivable_payments.id Unique code for identifier receivable_payments. String 36 characters.
receivable_payments.description Receivable payments description String 255 characters.
receivable_payments.number Receivable payments number Number.
receivable_payments.description Receivable payments description String 255 characters.
receivable_payments.amount Receivable payments amount Number.
total_receivable total receivable Number.
total_balance total balance Number.
created* Created.
created.user* Created User.
created.user.id User id String Automaticaly.
created.user.name User name String.
created.user.email User email String.
created.time Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format). Automaticaly.
update* Update.
update.user* Update user.
update.user.id User id String Automaticaly.
update.user.name User name String.
update.user.email User email String.
update.time Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format). Automaticaly.