Skip to main content

Update a document

Update a document

Path Parameters
id string REQUIRED
Request Body REQUIRED
id integer
reference string
state string
type string
version integer
contact_address object
id integer
address string
zip_code string
region string
country string
contact_address_label string
date date-time
warehouse object
id integer
name string
address object
id integer
address string
zip_code string
region string
country string
stock_value string
last_inventory_date date-time
active boolean
reference string
is_default boolean
warehouse_source object
id integer
name string
address object
id integer
address string
zip_code string
region string
country string
stock_value string
last_inventory_date date-time
active boolean
reference string
is_default boolean
warehouse_destination object
id integer
name string
address object
id integer
address string
zip_code string
region string
country string
stock_value string
last_inventory_date date-time
active boolean
reference string
is_default boolean
global_discount string
global_discount_type integer
taxes object[]
id integer
name string
type integer
amount float
label string
tax_sign boolean
weight integer
tax_group integer
is_vat_tax boolean
is_product_tax_only boolean
country string
enabled boolean
belong_vat boolean
can_edit boolean
document_lines object[]
id integer
label string
product_label string
weight integer
vat float
discount float
product_description string
unit_price string
product object
id integer
name string REQUIRED
description string
unit_price string REQUIRED
last_value_price string
vat object
id integer
vat float
s_id integer
has_serial_number boolean
unit object
id integer
code string
name string
count_qty_fields integer
product_price_list (circular)[]
taxes object[]
id integer
name string
type integer
amount float
label string
tax_sign boolean
weight integer
tax_group integer
is_vat_tax boolean
is_product_tax_only boolean
country string
enabled boolean
belong_vat boolean
can_edit boolean
logistics_infos (circular)[]
internal_ref string
model string
s_id integer
reference string
is_publish boolean
product_inventories object[]
id integer
qty float
warehouse object
id integer
name string
address object
id integer
address string
zip_code string
region string
country string
stock_value string
last_inventory_date date-time
active boolean
reference string
is_default boolean
product_inventory_extras object[]
id integer
serial_number string
qty float
reserved_qte float
created_at date-time
updated_at date-time
created_at date-time
updated_at date-time
qty string
type string
taxes object[]
id integer
name string
type integer
amount float
label string
tax_sign boolean
weight integer
tax_group integer
is_vat_tax boolean
is_product_tax_only boolean
country string
enabled boolean
belong_vat boolean
can_edit boolean
unit object
id integer
code string
name string
count_qty_fields integer
is_description_show boolean
inventory_qty float
qty1 float
qty2 float
unit_label string
inventory object
id integer
qty float
warehouse object
id integer
name string
address object
id integer
address string
zip_code string
region string
country string
stock_value string
last_inventory_date date-time
active boolean
reference string
is_default boolean
product_inventory_extras object[]
id integer
serial_number string
qty float
reserved_qte float
created_at date-time
updated_at date-time
product_inventory_extras object[]
id integer
serial_number string
qty float
serial_number_description string
configurations string
currency string
exchange float
total_amount string
amount_to_pay string
contact object
id integer
name string
phone1 string
phone2 string
phone3 string
type integer
email string
contact_address (circular)[]
civility string
website string
registration string
trade_registration string
company_name string
reference string
enabled boolean
debt string
turnover string
debit string
credit string
balance string
s_id integer
carte_number string
contact_phones (circular)[]
has_document boolean
accounting_code object
id integer
name string
code string
type string
lft integer
rgt integer
root (circular)
parent (circular)
country string
products object[]
id integer
name string REQUIRED
description string
unit_price string REQUIRED
last_value_price string
vat object
id integer
vat float
s_id integer
has_serial_number boolean
unit object
id integer
code string
name string
count_qty_fields integer
product_price_list (circular)[]
taxes object[]
id integer
name string
type integer
amount float
label string
tax_sign boolean
weight integer
tax_group integer
is_vat_tax boolean
is_product_tax_only boolean
country string
enabled boolean
belong_vat boolean
can_edit boolean
logistics_infos (circular)[]
internal_ref string
model string
s_id integer
reference string
is_publish boolean
product_inventories object[]
id integer
qty float
warehouse object
id integer
name string
address object
id integer
address string
zip_code string
region string
country string
stock_value string
last_inventory_date date-time
active boolean
reference string
is_default boolean
product_inventory_extras object[]
id integer
serial_number string
qty float
reserved_qte float
created_at date-time
updated_at date-time
created_at date-time
updated_at date-time
taxes object[]
id integer
name string
type integer
amount float
label string
tax_sign boolean
weight integer
tax_group integer
is_vat_tax boolean
is_product_tax_only boolean
country string
enabled boolean
belong_vat boolean
can_edit boolean
vats object[]
id integer
vat float
s_id integer
contacts object
vendor string
account_statements (circular)[]
created_at date-time
updated_at date-time
notes string
id_doc_intergration string
ref_doc_intergration string
intergration string
default_amount_to_pay string
default_total_amount string
default_total_amount_ht string
project object
id integer
name string
enabled boolean
company_logo string
hidden_fields string[]
extra_fields object[]
id integer
name string
value string
position string
document (circular)
company_information string
commercial_sale object[]
id integer
payment_type boolean
channel (circular)
commercial (circular)
balance_sheets object[]
is_qr_code boolean
_qr_code string
attachments object[]
id integer
name string
original_file_name string
file_name string
context string
path string
created_at date-time
updated_at date-time
company (circular)
created_by (circular)
document (circular)
payment (circular)
attachment_meta (circular)
type string
company_setting (circular)
generate_with_pos boolean
reference_external string
created_at date-time
updated_at date-time
Responses
200

Returns the updated document

Schema OPTIONAL
id integer OPTIONAL
reference string OPTIONAL
state string OPTIONAL
type string OPTIONAL
version integer OPTIONAL
contact_address object OPTIONAL
id integer OPTIONAL
address string OPTIONAL
zip_code string OPTIONAL
region string OPTIONAL
country string OPTIONAL
contact_address_label string OPTIONAL
date date-time OPTIONAL
warehouse object OPTIONAL
id integer OPTIONAL
name string OPTIONAL
address object OPTIONAL
id integer OPTIONAL
address string OPTIONAL
zip_code string OPTIONAL
region string OPTIONAL
country string OPTIONAL
stock_value string OPTIONAL
last_inventory_date date-time OPTIONAL
active boolean OPTIONAL
reference string OPTIONAL
is_default boolean OPTIONAL
warehouse_source object OPTIONAL
id integer OPTIONAL
name string OPTIONAL
address object OPTIONAL
id integer OPTIONAL
address string OPTIONAL
zip_code string OPTIONAL
region string OPTIONAL
country string OPTIONAL
stock_value string OPTIONAL
last_inventory_date date-time OPTIONAL
active boolean OPTIONAL
reference string OPTIONAL
is_default boolean OPTIONAL
warehouse_destination object OPTIONAL
id integer OPTIONAL
name string OPTIONAL
address object OPTIONAL
id integer OPTIONAL
address string OPTIONAL
zip_code string OPTIONAL
region string OPTIONAL
country string OPTIONAL
stock_value string OPTIONAL
last_inventory_date date-time OPTIONAL
active boolean OPTIONAL
reference string OPTIONAL
is_default boolean OPTIONAL
global_discount string OPTIONAL
global_discount_type integer OPTIONAL
taxes object[] OPTIONAL
id integer OPTIONAL
name string OPTIONAL
type integer OPTIONAL
amount float OPTIONAL
label string OPTIONAL
tax_sign boolean OPTIONAL
weight integer OPTIONAL
tax_group integer OPTIONAL
is_vat_tax boolean OPTIONAL
is_product_tax_only boolean OPTIONAL
country string OPTIONAL
enabled boolean OPTIONAL
belong_vat boolean OPTIONAL
can_edit boolean OPTIONAL
document_lines object[] OPTIONAL
id integer OPTIONAL
label string OPTIONAL
product_label string OPTIONAL
weight integer OPTIONAL
vat float OPTIONAL
discount float OPTIONAL
product_description string OPTIONAL
unit_price string OPTIONAL
product object OPTIONAL
id integer OPTIONAL
name string
description string OPTIONAL
unit_price string
last_value_price string OPTIONAL
vat object OPTIONAL
id integer OPTIONAL
vat float OPTIONAL
s_id integer OPTIONAL
has_serial_number boolean OPTIONAL
unit object OPTIONAL
id integer OPTIONAL
code string OPTIONAL
name string OPTIONAL
count_qty_fields integer OPTIONAL
product_price_list (circular)[] OPTIONAL
taxes object[] OPTIONAL
id integer OPTIONAL
name string OPTIONAL
type integer OPTIONAL
amount float OPTIONAL
label string OPTIONAL
tax_sign boolean OPTIONAL
weight integer OPTIONAL
tax_group integer OPTIONAL
is_vat_tax boolean OPTIONAL
is_product_tax_only boolean OPTIONAL
country string OPTIONAL
enabled boolean OPTIONAL
belong_vat boolean OPTIONAL
can_edit boolean OPTIONAL
logistics_infos (circular)[] OPTIONAL
internal_ref string OPTIONAL
model string OPTIONAL
s_id integer OPTIONAL
reference string OPTIONAL
is_publish boolean OPTIONAL
product_inventories object[] OPTIONAL
id integer OPTIONAL
qty float OPTIONAL
warehouse object OPTIONAL
id integer OPTIONAL
name string OPTIONAL
address object OPTIONAL
id integer OPTIONAL
address string OPTIONAL
zip_code string OPTIONAL
region string OPTIONAL
country string OPTIONAL
stock_value string OPTIONAL
last_inventory_date date-time OPTIONAL
active boolean OPTIONAL
reference string OPTIONAL
is_default boolean OPTIONAL
product_inventory_extras object[] OPTIONAL
id integer OPTIONAL
serial_number string OPTIONAL
qty float OPTIONAL
reserved_qte float OPTIONAL
created_at date-time OPTIONAL
updated_at date-time OPTIONAL
created_at date-time OPTIONAL
updated_at date-time OPTIONAL
qty string OPTIONAL
type string OPTIONAL
taxes object[] OPTIONAL
id integer OPTIONAL
name string OPTIONAL
type integer OPTIONAL
amount float OPTIONAL
label string OPTIONAL
tax_sign boolean OPTIONAL
weight integer OPTIONAL
tax_group integer OPTIONAL
is_vat_tax boolean OPTIONAL
is_product_tax_only boolean OPTIONAL
country string OPTIONAL
enabled boolean OPTIONAL
belong_vat boolean OPTIONAL
can_edit boolean OPTIONAL
unit object OPTIONAL
id integer OPTIONAL
code string OPTIONAL
name string OPTIONAL
count_qty_fields integer OPTIONAL
is_description_show boolean OPTIONAL
inventory_qty float OPTIONAL
qty1 float OPTIONAL
qty2 float OPTIONAL
unit_label string OPTIONAL
inventory object OPTIONAL
id integer OPTIONAL
qty float OPTIONAL
warehouse object OPTIONAL
id integer OPTIONAL
name string OPTIONAL
address object OPTIONAL
id integer OPTIONAL
address string OPTIONAL
zip_code string OPTIONAL
region string OPTIONAL
country string OPTIONAL
stock_value string OPTIONAL
last_inventory_date date-time OPTIONAL
active boolean OPTIONAL
reference string OPTIONAL
is_default boolean OPTIONAL
product_inventory_extras object[] OPTIONAL
id integer OPTIONAL
serial_number string OPTIONAL
qty float OPTIONAL
reserved_qte float OPTIONAL
created_at date-time OPTIONAL
updated_at date-time OPTIONAL
product_inventory_extras object[] OPTIONAL
id integer OPTIONAL
serial_number string OPTIONAL
qty float OPTIONAL
serial_number_description string OPTIONAL
configurations string OPTIONAL
currency string OPTIONAL
exchange float OPTIONAL
total_amount string OPTIONAL
amount_to_pay string OPTIONAL
contact object OPTIONAL
id integer OPTIONAL
name string OPTIONAL
phone1 string OPTIONAL
phone2 string OPTIONAL
phone3 string OPTIONAL
type integer OPTIONAL
email string OPTIONAL
contact_address (circular)[] OPTIONAL
civility string OPTIONAL
website string OPTIONAL
registration string OPTIONAL
trade_registration string OPTIONAL
company_name string OPTIONAL
reference string OPTIONAL
enabled boolean OPTIONAL
debt string OPTIONAL
turnover string OPTIONAL
debit string OPTIONAL
credit string OPTIONAL
balance string OPTIONAL
s_id integer OPTIONAL
carte_number string OPTIONAL
contact_phones (circular)[] OPTIONAL
has_document boolean OPTIONAL
accounting_code object OPTIONAL
id integer OPTIONAL
name string OPTIONAL
code string OPTIONAL
type string OPTIONAL
lft integer OPTIONAL
rgt integer OPTIONAL
root (circular) OPTIONAL
parent (circular) OPTIONAL
country string OPTIONAL
products object[] OPTIONAL
id integer OPTIONAL
name string
description string OPTIONAL
unit_price string
last_value_price string OPTIONAL
vat object OPTIONAL
id integer OPTIONAL
vat float OPTIONAL
s_id integer OPTIONAL
has_serial_number boolean OPTIONAL
unit object OPTIONAL
id integer OPTIONAL
code string OPTIONAL
name string OPTIONAL
count_qty_fields integer OPTIONAL
product_price_list (circular)[] OPTIONAL
taxes object[] OPTIONAL
id integer OPTIONAL
name string OPTIONAL
type integer OPTIONAL
amount float OPTIONAL
label string OPTIONAL
tax_sign boolean OPTIONAL
weight integer OPTIONAL
tax_group integer OPTIONAL
is_vat_tax boolean OPTIONAL
is_product_tax_only boolean OPTIONAL
country string OPTIONAL
enabled boolean OPTIONAL
belong_vat boolean OPTIONAL
can_edit boolean OPTIONAL
logistics_infos (circular)[] OPTIONAL
internal_ref string OPTIONAL
model string OPTIONAL
s_id integer OPTIONAL
reference string OPTIONAL
is_publish boolean OPTIONAL
product_inventories object[] OPTIONAL
id integer OPTIONAL
qty float OPTIONAL
warehouse object OPTIONAL
id integer OPTIONAL
name string OPTIONAL
address object OPTIONAL
id integer OPTIONAL
address string OPTIONAL
zip_code string OPTIONAL
region string OPTIONAL
country string OPTIONAL
stock_value string OPTIONAL
last_inventory_date date-time OPTIONAL
active boolean OPTIONAL
reference string OPTIONAL
is_default boolean OPTIONAL
product_inventory_extras object[] OPTIONAL
id integer OPTIONAL
serial_number string OPTIONAL
qty float OPTIONAL
reserved_qte float OPTIONAL
created_at date-time OPTIONAL
updated_at date-time OPTIONAL
created_at date-time OPTIONAL
updated_at date-time OPTIONAL
taxes object[] OPTIONAL
id integer OPTIONAL
name string OPTIONAL
type integer OPTIONAL
amount float OPTIONAL
label string OPTIONAL
tax_sign boolean OPTIONAL
weight integer OPTIONAL
tax_group integer OPTIONAL
is_vat_tax boolean OPTIONAL
is_product_tax_only boolean OPTIONAL
country string OPTIONAL
enabled boolean OPTIONAL
belong_vat boolean OPTIONAL
can_edit boolean OPTIONAL
vats object[] OPTIONAL
id integer OPTIONAL
vat float OPTIONAL
s_id integer OPTIONAL
contacts object OPTIONAL
vendor string OPTIONAL
account_statements (circular)[] OPTIONAL
created_at date-time OPTIONAL
updated_at date-time OPTIONAL
notes string OPTIONAL
id_doc_intergration string OPTIONAL
ref_doc_intergration string OPTIONAL
intergration string OPTIONAL
default_amount_to_pay string OPTIONAL
default_total_amount string OPTIONAL
default_total_amount_ht string OPTIONAL
project object OPTIONAL
id integer OPTIONAL
name string OPTIONAL
enabled boolean OPTIONAL
company_logo string OPTIONAL
hidden_fields string[] OPTIONAL
extra_fields object[] OPTIONAL
id integer OPTIONAL
name string OPTIONAL
value string OPTIONAL
position string OPTIONAL
document (circular) OPTIONAL
company_information string OPTIONAL
commercial_sale object[] OPTIONAL
id integer OPTIONAL
payment_type boolean OPTIONAL
channel (circular) OPTIONAL
commercial (circular) OPTIONAL
balance_sheets object[] OPTIONAL
is_qr_code boolean OPTIONAL
_qr_code string OPTIONAL
attachments object[] OPTIONAL
id integer OPTIONAL
name string OPTIONAL
original_file_name string OPTIONAL
file_name string OPTIONAL
context string OPTIONAL
path string OPTIONAL
created_at date-time OPTIONAL
updated_at date-time OPTIONAL
company (circular) OPTIONAL
created_by (circular) OPTIONAL
document (circular) OPTIONAL
payment (circular) OPTIONAL
attachment_meta (circular) OPTIONAL
type string OPTIONAL
company_setting (circular) OPTIONAL
generate_with_pos boolean OPTIONAL
reference_external string OPTIONAL
created_at date-time OPTIONAL
updated_at date-time OPTIONAL
400

Document not valid