Update Purchase Invoices

Use this method to update purchases 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.
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.
supplier* Element for supplier.
supplier.id Unique code for identifier supplier. String 36 characters.
supplier.code supplier code String maximum 255 characters.
supplier.name supplier name String maximum 255 characters.
supplier.classification* Element for supplier classification.
supplier.classification.id Unique code for identifier classification. String 36 characters.
supplier.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.

Body Response

Element Description
id Unique code for identifier purchases deliveries. 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 purchases deliveries. String maximum 35 characters.
description Description of purchases deliveries. String maximum 75 characters.
supplier* Element for supplier.
supplier.id Unique code for identifier supplier. String 36 characters.
supplier.code supplier code String maximum 255 characters.
supplier.name supplier name String maximum 255 characters.
supplier.classification* Element for supplier classification.
supplier.classification.id Unique code for identifier classification. String 36 characters.
supplier.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 supplier and vendor type. Integer.
term_of_payment.percentage Term of payment percentage of credit transaction, for supplier and vendor type. Integer.
term_of_payment.due_date Due date period of credit transaction, for supplier and vendor type. Integer.
term_of_payment.due_days Due days period of credit transaction, for supplier and vendor type. Integer.
term_of_payment.late_charge_rate Credit transaction late charge Integer.
term_of_payment.discount_days Discount day, for supplier and vendor type Integer.
term_of_payment.early_discount_rate Early discount, for supplier 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 purchases invoices.
Department.id Unique code for identifier supplier. String 36 characters.
Department.code supplier code String maximum 255 characters.
Department.name supplier name String maximum 255 characters.
project* Project of purchases 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 purchases 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 purchases 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 purchases 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 purchases 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 purchases 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 purchases 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.
subtotal_origin subtotal origin. Number.
subtotal subtotal. Number.
total_discount_origin total discount origin Number.
total_discount total discount. Number.
subtotal_before_tax_origin subtotal before tax origin. Number.
subtotal_before_tax subtotal before tax. Number.
total_tax_origin total tax origin. Number.
total_tax total tax. Number.
total_other_origin total other origin. Number.
total_other total other. Number.
total_cash_amount_origin total cash amount origin. Number.
total_cash_amount total cash amount. Number.
total_amount_origin total amount origin. Number.
total_amount total amount. Number.
total_payable_origin total payable origin. Number.
total_payable total payable. Number.
balance_origin balance origin. Number.
balance 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.
total_quantity total_quantity Number.
total_item total_item Number.