Chilkat Online Tools

lianja / Fatture in Cloud API v2 - API Reference / Modify Issued Document

Back to Collection Items

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loHttp = createobject("CkHttp")

// Use this online tool to generate code from sample JSON: Generate Code to Create JSON

// The following JSON is sent in the request body.

// {
//   "data": {
//     "id": "<integer>",
//     "entity": {
//       "name": "<string>",
//       "id": "<integer>",
//       "code": "<string>",
//       "type": null,
//       "first_name": "<string>",
//       "last_name": "<string>",
//       "contact_person": "<string>",
//       "vat_number": "<string>",
//       "tax_code": "<string>",
//       "address_street": "<string>",
//       "address_postal_code": "<string>",
//       "address_city": "<string>",
//       "address_province": "<string>",
//       "address_extra": "<string>",
//       "country": "Italia",
//       "country_iso": "<string>",
//       "email": "<string>",
//       "certified_email": "<string>",
//       "phone": "<string>",
//       "fax": "<string>",
//       "notes": "<string>",
//       "default_payment_terms": "<integer>",
//       "default_vat": {
//         "value": "<number>",
//         "id": "<integer>",
//         "description": "<string>",
//         "notes": "<string>",
//         "e_invoice": "<boolean>",
//         "ei_type": "<string>",
//         "ei_description": "<string>",
//         "editable": true,
//         "is_disabled": "<boolean>"
//       },
//       "default_payment_terms_type": "standard",
//       "default_payment_method": {
//         "name": "<string>",
//         "id": "<integer>",
//         "type": "standard",
//         "is_default": "<boolean>",
//         "default_payment_account": {
//           "name": "<string>",
//           "id": "<integer>",
//           "type": "standard",
//           "iban": "<string>",
//           "sia": "<string>",
//           "cuc": "<string>",
//           "virtual": "<boolean>"
//         },
//         "details": [
//           {
//             "title": "<string>",
//             "description": "<string>"
//           },
//           {
//             "title": "<string>",
//             "description": "<string>"
//           }
//         ],
//         "bank_iban": "<string>",
//         "bank_name": "<string>",
//         "bank_beneficiary": "<string>",
//         "ei_payment_method": "<string>"
//       },
//       "bank_name": "<string>",
//       "bank_iban": "<string>",
//       "bank_swift_code": "<string>",
//       "shipping_address": "<string>",
//       "e_invoice": false,
//       "ei_code": "<string>",
//       "has_intent_declaration": "<boolean>",
//       "intent_declaration_protocol_number": "<string>",
//       "intent_declaration_protocol_date": "<date>",
//       "created_at": "<string>",
//       "updated_at": "<string>"
//     },
//     "type": "invoice",
//     "number": "<integer>",
//     "numeration": "<string>",
//     "date": "<date>",
//     "year": "<integer>",
//     "currency": {
//       "id": "<string>",
//       "symbol": "<string>",
//       "exchange_rate": "<string>",
//       "html_symbol": "<string>"
//     },
//     "language": {
//       "code": "<string>",
//       "name": "<string>"
//     },
//     "subject": "<string>",
//     "visible_subject": "<string>",
//     "rc_center": "<string>",
//     "notes": "<string>",
//     "rivalsa": "<number>",
//     "cassa": "<number>",
//     "amount_cassa": "<number>",
//     "cassa_taxable": "<number>",
//     "amount_cassa_taxable": "<number>",
//     "cassa2": "<number>",
//     "amount_cassa2": "<number>",
//     "cassa2_taxable": "<number>",
//     "amount_cassa2_taxable": "<number>",
//     "global_cassa_taxable": "<number>",
//     "amount_global_cassa_taxable": "<number>",
//     "withholding_tax": "<number>",
//     "withholding_tax_taxable": "<number>",
//     "other_withholding_tax": "<number>",
//     "stamp_duty": "<number>",
//     "payment_method": {
//       "name": "<string>",
//       "id": "<integer>",
//       "type": "standard",
//       "is_default": "<boolean>",
//       "default_payment_account": {
//         "name": "<string>",
//         "id": "<integer>",
//         "type": "standard",
//         "iban": "<string>",
//         "sia": "<string>",
//         "cuc": "<string>",
//         "virtual": "<boolean>"
//       },
//       "details": [
//         {
//           "title": "<string>",
//           "description": "<string>"
//         },
//         {
//           "title": "<string>",
//           "description": "<string>"
//         }
//       ],
//       "bank_iban": "<string>",
//       "bank_name": "<string>",
//       "bank_beneficiary": "<string>",
//       "ei_payment_method": "<string>"
//     },
//     "use_split_payment": false,
//     "use_gross_prices": false,
//     "e_invoice": false,
//     "ei_data": {
//       "vat_kind": null,
//       "original_document_type": "ordine",
//       "od_number": "<string>",
//       "od_date": "<date>",
//       "cig": "<string>",
//       "cup": "<string>",
//       "payment_method": "<string>",
//       "bank_name": "<string>",
//       "bank_iban": "<string>",
//       "bank_beneficiary": "<string>",
//       "invoice_number": "<string>",
//       "invoice_date": "<date>"
//     },
//     "ei_cassa_type": "<string>",
//     "ei_cassa2_type": "<string>",
//     "ei_withholding_tax_causal": "<string>",
//     "ei_other_withholding_tax_type": "<string>",
//     "ei_other_withholding_tax_causal": "<string>",
//     "items_list": [
//       {
//         "id": "<integer>",
//         "product_id": "<integer>",
//         "code": "<string>",
//         "name": "<string>",
//         "category": "<string>",
//         "description": "<string>",
//         "qty": "<number>",
//         "measure": "<string>",
//         "net_price": "<number>",
//         "gross_price": "<number>",
//         "vat": {
//           "id": "<integer>",
//           "value": "<number>",
//           "description": "<string>",
//           "notes": "<string>",
//           "e_invoice": "<boolean>",
//           "ei_type": "<string>",
//           "ei_description": "<string>",
//           "editable": "<boolean>",
//           "is_disabled": "<boolean>"
//         },
//         "not_taxable": "<boolean>",
//         "apply_withholding_taxes": "<boolean>",
//         "discount": "<number>",
//         "discount_highlight": "<boolean>",
//         "in_dn": "<boolean>",
//         "stock": "<boolean>",
//         "ei_raw": {}
//       },
//       {
//         "id": "<integer>",
//         "product_id": "<integer>",
//         "code": "<string>",
//         "name": "<string>",
//         "category": "<string>",
//         "description": "<string>",
//         "qty": "<number>",
//         "measure": "<string>",
//         "net_price": "<number>",
//         "gross_price": "<number>",
//         "vat": {
//           "id": "<integer>",
//           "value": "<number>",
//           "description": "<string>",
//           "notes": "<string>",
//           "e_invoice": "<boolean>",
//           "ei_type": "<string>",
//           "ei_description": "<string>",
//           "editable": "<boolean>",
//           "is_disabled": "<boolean>"
//         },
//         "not_taxable": "<boolean>",
//         "apply_withholding_taxes": "<boolean>",
//         "discount": "<number>",
//         "discount_highlight": "<boolean>",
//         "in_dn": "<boolean>",
//         "stock": "<boolean>",
//         "ei_raw": {}
//       }
//     ],
//     "payments_list": [
//       {
//         "id": "<integer>",
//         "due_date": "<date>",
//         "amount": "<number>",
//         "status": "not_paid",
//         "payment_account": {
//           "id": "<integer>",
//           "name": "<string>",
//           "type": "standard",
//           "iban": "<string>",
//           "sia": "<string>",
//           "cuc": "<string>",
//           "virtual": "<boolean>"
//         },
//         "paid_date": "<date>",
//         "ei_raw": {},
//         "payment_terms": {
//           "days": "<integer>",
//           "type": "standard"
//         }
//       },
//       {
//         "id": "<integer>",
//         "due_date": "<date>",
//         "amount": "<number>",
//         "status": "not_paid",
//         "payment_account": {
//           "id": "<integer>",
//           "name": "<string>",
//           "type": "standard",
//           "iban": "<string>",
//           "sia": "<string>",
//           "cuc": "<string>",
//           "virtual": "<boolean>"
//         },
//         "paid_date": "<date>",
//         "ei_raw": {},
//         "payment_terms": {
//           "days": "<integer>",
//           "type": "standard"
//         }
//       }
//     ],
//     "template": {
//       "id": "<integer>",
//       "name": "<string>",
//       "type": "<string>"
//     },
//     "delivery_note_template": {
//       "id": "<integer>",
//       "name": "<string>",
//       "type": "<string>"
//     },
//     "acc_inv_template": {
//       "id": "<integer>",
//       "name": "<string>",
//       "type": "<string>"
//     },
//     "h_margins": "<integer>",
//     "v_margins": "<integer>",
//     "show_payments": "<boolean>",
//     "show_payment_method": "<boolean>",
//     "show_totals": "all",
//     "show_paypal_button": false,
//     "show_notification_button": false,
//     "show_tspay_button": "<boolean>",
//     "delivery_note": "<boolean>",
//     "accompanying_invoice": false,
//     "dn_number": "<integer>",
//     "dn_date": "<date>",
//     "dn_ai_packages_number": "<string>",
//     "dn_ai_weight": "<string>",
//     "dn_ai_causal": "<string>",
//     "dn_ai_destination": "<string>",
//     "dn_ai_transporter": "<string>",
//     "dn_ai_notes": "<string>",
//     "is_marked": "<boolean>",
//     "amount_net": "<number>",
//     "amount_vat": "<number>",
//     "amount_gross": "<number>",
//     "amount_due_discount": "<number>",
//     "amount_rivalsa": "<number>",
//     "amount_rivalsa_taxable": "<number>",
//     "amount_withholding_tax": "<number>",
//     "amount_withholding_tax_taxable": "<number>",
//     "amount_other_withholding_tax": "<number>",
//     "amount_other_withholding_tax_taxable": "<number>",
//     "amount_enasarco_taxable": "<number>",
//     "extra_data": {
//       "show_sofort_button": "<boolean>",
//       "multifatture_sent": "<integer>",
//       "ts_communication": "<boolean>",
//       "ts_flag_tipo_spesa": "<number>",
//       "ts_pagamento_tracciato": "<boolean>",
//       "ts_tipo_spesa": "<string>",
//       "ts_opposizione": "<boolean>",
//       "ts_status": "<integer>",
//       "ts_file_id": "<string>",
//       "ts_sent_date": "<date>",
//       "ts_full_amount": "<boolean>",
//       "imported_by": "<string>"
//     },
//     "seen_date": "<date>",
//     "next_due_date": "<date>",
//     "url": "<string>",
//     "dn_url": "<string>",
//     "ai_url": "<string>",
//     "attachment_url": "<string>",
//     "attachment_token": "<string>",
//     "ei_raw": {},
//     "ei_status": "missing",
//     "created_at": "<string>",
//     "updated_at": "<string>"
//   },
//   "options": {
//     "fix_payments": "<boolean>",
//     "create_from": [
//       "<string>",
//       "<string>"
//     ],
//     "transform": "<boolean>",
//     "keep_copy": "<boolean>",
//     "join_type": "<string>"
//   }
// }

loJson = createobject("CkJsonObject")
loJson.UpdateString("data.id","<integer>")
loJson.UpdateString("data.entity.name","<string>")
loJson.UpdateString("data.entity.id","<integer>")
loJson.UpdateString("data.entity.code","<string>")
loJson.UpdateNull("data.entity.type")
loJson.UpdateString("data.entity.first_name","<string>")
loJson.UpdateString("data.entity.last_name","<string>")
loJson.UpdateString("data.entity.contact_person","<string>")
loJson.UpdateString("data.entity.vat_number","<string>")
loJson.UpdateString("data.entity.tax_code","<string>")
loJson.UpdateString("data.entity.address_street","<string>")
loJson.UpdateString("data.entity.address_postal_code","<string>")
loJson.UpdateString("data.entity.address_city","<string>")
loJson.UpdateString("data.entity.address_province","<string>")
loJson.UpdateString("data.entity.address_extra","<string>")
loJson.UpdateString("data.entity.country","Italia")
loJson.UpdateString("data.entity.country_iso","<string>")
loJson.UpdateString("data.entity.email","<string>")
loJson.UpdateString("data.entity.certified_email","<string>")
loJson.UpdateString("data.entity.phone","<string>")
loJson.UpdateString("data.entity.fax","<string>")
loJson.UpdateString("data.entity.notes","<string>")
loJson.UpdateString("data.entity.default_payment_terms","<integer>")
loJson.UpdateString("data.entity.default_vat.value","<number>")
loJson.UpdateString("data.entity.default_vat.id","<integer>")
loJson.UpdateString("data.entity.default_vat.description","<string>")
loJson.UpdateString("data.entity.default_vat.notes","<string>")
loJson.UpdateString("data.entity.default_vat.e_invoice","<boolean>")
loJson.UpdateString("data.entity.default_vat.ei_type","<string>")
loJson.UpdateString("data.entity.default_vat.ei_description","<string>")
loJson.UpdateBool("data.entity.default_vat.editable",.T.)
loJson.UpdateString("data.entity.default_vat.is_disabled","<boolean>")
loJson.UpdateString("data.entity.default_payment_terms_type","standard")
loJson.UpdateString("data.entity.default_payment_method.name","<string>")
loJson.UpdateString("data.entity.default_payment_method.id","<integer>")
loJson.UpdateString("data.entity.default_payment_method.type","standard")
loJson.UpdateString("data.entity.default_payment_method.is_default","<boolean>")
loJson.UpdateString("data.entity.default_payment_method.default_payment_account.name","<string>")
loJson.UpdateString("data.entity.default_payment_method.default_payment_account.id","<integer>")
loJson.UpdateString("data.entity.default_payment_method.default_payment_account.type","standard")
loJson.UpdateString("data.entity.default_payment_method.default_payment_account.iban","<string>")
loJson.UpdateString("data.entity.default_payment_method.default_payment_account.sia","<string>")
loJson.UpdateString("data.entity.default_payment_method.default_payment_account.cuc","<string>")
loJson.UpdateString("data.entity.default_payment_method.default_payment_account.virtual","<boolean>")
loJson.UpdateString("data.entity.default_payment_method.details[0].title","<string>")
loJson.UpdateString("data.entity.default_payment_method.details[0].description","<string>")
loJson.UpdateString("data.entity.default_payment_method.details[1].title","<string>")
loJson.UpdateString("data.entity.default_payment_method.details[1].description","<string>")
loJson.UpdateString("data.entity.default_payment_method.bank_iban","<string>")
loJson.UpdateString("data.entity.default_payment_method.bank_name","<string>")
loJson.UpdateString("data.entity.default_payment_method.bank_beneficiary","<string>")
loJson.UpdateString("data.entity.default_payment_method.ei_payment_method","<string>")
loJson.UpdateString("data.entity.bank_name","<string>")
loJson.UpdateString("data.entity.bank_iban","<string>")
loJson.UpdateString("data.entity.bank_swift_code","<string>")
loJson.UpdateString("data.entity.shipping_address","<string>")
loJson.UpdateBool("data.entity.e_invoice",.F.)
loJson.UpdateString("data.entity.ei_code","<string>")
loJson.UpdateString("data.entity.has_intent_declaration","<boolean>")
loJson.UpdateString("data.entity.intent_declaration_protocol_number","<string>")
loJson.UpdateString("data.entity.intent_declaration_protocol_date","<date>")
loJson.UpdateString("data.entity.created_at","<string>")
loJson.UpdateString("data.entity.updated_at","<string>")
loJson.UpdateString("data.type","invoice")
loJson.UpdateString("data.number","<integer>")
loJson.UpdateString("data.numeration","<string>")
loJson.UpdateString("data.date","<date>")
loJson.UpdateString("data.year","<integer>")
loJson.UpdateString("data.currency.id","<string>")
loJson.UpdateString("data.currency.symbol","<string>")
loJson.UpdateString("data.currency.exchange_rate","<string>")
loJson.UpdateString("data.currency.html_symbol","<string>")
loJson.UpdateString("data.language.code","<string>")
loJson.UpdateString("data.language.name","<string>")
loJson.UpdateString("data.subject","<string>")
loJson.UpdateString("data.visible_subject","<string>")
loJson.UpdateString("data.rc_center","<string>")
loJson.UpdateString("data.notes","<string>")
loJson.UpdateString("data.rivalsa","<number>")
loJson.UpdateString("data.cassa","<number>")
loJson.UpdateString("data.amount_cassa","<number>")
loJson.UpdateString("data.cassa_taxable","<number>")
loJson.UpdateString("data.amount_cassa_taxable","<number>")
loJson.UpdateString("data.cassa2","<number>")
loJson.UpdateString("data.amount_cassa2","<number>")
loJson.UpdateString("data.cassa2_taxable","<number>")
loJson.UpdateString("data.amount_cassa2_taxable","<number>")
loJson.UpdateString("data.global_cassa_taxable","<number>")
loJson.UpdateString("data.amount_global_cassa_taxable","<number>")
loJson.UpdateString("data.withholding_tax","<number>")
loJson.UpdateString("data.withholding_tax_taxable","<number>")
loJson.UpdateString("data.other_withholding_tax","<number>")
loJson.UpdateString("data.stamp_duty","<number>")
loJson.UpdateString("data.payment_method.name","<string>")
loJson.UpdateString("data.payment_method.id","<integer>")
loJson.UpdateString("data.payment_method.type","standard")
loJson.UpdateString("data.payment_method.is_default","<boolean>")
loJson.UpdateString("data.payment_method.default_payment_account.name","<string>")
loJson.UpdateString("data.payment_method.default_payment_account.id","<integer>")
loJson.UpdateString("data.payment_method.default_payment_account.type","standard")
loJson.UpdateString("data.payment_method.default_payment_account.iban","<string>")
loJson.UpdateString("data.payment_method.default_payment_account.sia","<string>")
loJson.UpdateString("data.payment_method.default_payment_account.cuc","<string>")
loJson.UpdateString("data.payment_method.default_payment_account.virtual","<boolean>")
loJson.UpdateString("data.payment_method.details[0].title","<string>")
loJson.UpdateString("data.payment_method.details[0].description","<string>")
loJson.UpdateString("data.payment_method.details[1].title","<string>")
loJson.UpdateString("data.payment_method.details[1].description","<string>")
loJson.UpdateString("data.payment_method.bank_iban","<string>")
loJson.UpdateString("data.payment_method.bank_name","<string>")
loJson.UpdateString("data.payment_method.bank_beneficiary","<string>")
loJson.UpdateString("data.payment_method.ei_payment_method","<string>")
loJson.UpdateBool("data.use_split_payment",.F.)
loJson.UpdateBool("data.use_gross_prices",.F.)
loJson.UpdateBool("data.e_invoice",.F.)
loJson.UpdateNull("data.ei_data.vat_kind")
loJson.UpdateString("data.ei_data.original_document_type","ordine")
loJson.UpdateString("data.ei_data.od_number","<string>")
loJson.UpdateString("data.ei_data.od_date","<date>")
loJson.UpdateString("data.ei_data.cig","<string>")
loJson.UpdateString("data.ei_data.cup","<string>")
loJson.UpdateString("data.ei_data.payment_method","<string>")
loJson.UpdateString("data.ei_data.bank_name","<string>")
loJson.UpdateString("data.ei_data.bank_iban","<string>")
loJson.UpdateString("data.ei_data.bank_beneficiary","<string>")
loJson.UpdateString("data.ei_data.invoice_number","<string>")
loJson.UpdateString("data.ei_data.invoice_date","<date>")
loJson.UpdateString("data.ei_cassa_type","<string>")
loJson.UpdateString("data.ei_cassa2_type","<string>")
loJson.UpdateString("data.ei_withholding_tax_causal","<string>")
loJson.UpdateString("data.ei_other_withholding_tax_type","<string>")
loJson.UpdateString("data.ei_other_withholding_tax_causal","<string>")
loJson.UpdateString("data.items_list[0].id","<integer>")
loJson.UpdateString("data.items_list[0].product_id","<integer>")
loJson.UpdateString("data.items_list[0].code","<string>")
loJson.UpdateString("data.items_list[0].name","<string>")
loJson.UpdateString("data.items_list[0].category","<string>")
loJson.UpdateString("data.items_list[0].description","<string>")
loJson.UpdateString("data.items_list[0].qty","<number>")
loJson.UpdateString("data.items_list[0].measure","<string>")
loJson.UpdateString("data.items_list[0].net_price","<number>")
loJson.UpdateString("data.items_list[0].gross_price","<number>")
loJson.UpdateString("data.items_list[0].vat.id","<integer>")
loJson.UpdateString("data.items_list[0].vat.value","<number>")
loJson.UpdateString("data.items_list[0].vat.description","<string>")
loJson.UpdateString("data.items_list[0].vat.notes","<string>")
loJson.UpdateString("data.items_list[0].vat.e_invoice","<boolean>")
loJson.UpdateString("data.items_list[0].vat.ei_type","<string>")
loJson.UpdateString("data.items_list[0].vat.ei_description","<string>")
loJson.UpdateString("data.items_list[0].vat.editable","<boolean>")
loJson.UpdateString("data.items_list[0].vat.is_disabled","<boolean>")
loJson.UpdateString("data.items_list[0].not_taxable","<boolean>")
loJson.UpdateString("data.items_list[0].apply_withholding_taxes","<boolean>")
loJson.UpdateString("data.items_list[0].discount","<number>")
loJson.UpdateString("data.items_list[0].discount_highlight","<boolean>")
loJson.UpdateString("data.items_list[0].in_dn","<boolean>")
loJson.UpdateString("data.items_list[0].stock","<boolean>")
loJson.UpdateNewObject("data.items_list[0].ei_raw")
loJson.UpdateString("data.items_list[1].id","<integer>")
loJson.UpdateString("data.items_list[1].product_id","<integer>")
loJson.UpdateString("data.items_list[1].code","<string>")
loJson.UpdateString("data.items_list[1].name","<string>")
loJson.UpdateString("data.items_list[1].category","<string>")
loJson.UpdateString("data.items_list[1].description","<string>")
loJson.UpdateString("data.items_list[1].qty","<number>")
loJson.UpdateString("data.items_list[1].measure","<string>")
loJson.UpdateString("data.items_list[1].net_price","<number>")
loJson.UpdateString("data.items_list[1].gross_price","<number>")
loJson.UpdateString("data.items_list[1].vat.id","<integer>")
loJson.UpdateString("data.items_list[1].vat.value","<number>")
loJson.UpdateString("data.items_list[1].vat.description","<string>")
loJson.UpdateString("data.items_list[1].vat.notes","<string>")
loJson.UpdateString("data.items_list[1].vat.e_invoice","<boolean>")
loJson.UpdateString("data.items_list[1].vat.ei_type","<string>")
loJson.UpdateString("data.items_list[1].vat.ei_description","<string>")
loJson.UpdateString("data.items_list[1].vat.editable","<boolean>")
loJson.UpdateString("data.items_list[1].vat.is_disabled","<boolean>")
loJson.UpdateString("data.items_list[1].not_taxable","<boolean>")
loJson.UpdateString("data.items_list[1].apply_withholding_taxes","<boolean>")
loJson.UpdateString("data.items_list[1].discount","<number>")
loJson.UpdateString("data.items_list[1].discount_highlight","<boolean>")
loJson.UpdateString("data.items_list[1].in_dn","<boolean>")
loJson.UpdateString("data.items_list[1].stock","<boolean>")
loJson.UpdateNewObject("data.items_list[1].ei_raw")
loJson.UpdateString("data.payments_list[0].id","<integer>")
loJson.UpdateString("data.payments_list[0].due_date","<date>")
loJson.UpdateString("data.payments_list[0].amount","<number>")
loJson.UpdateString("data.payments_list[0].status","not_paid")
loJson.UpdateString("data.payments_list[0].payment_account.id","<integer>")
loJson.UpdateString("data.payments_list[0].payment_account.name","<string>")
loJson.UpdateString("data.payments_list[0].payment_account.type","standard")
loJson.UpdateString("data.payments_list[0].payment_account.iban","<string>")
loJson.UpdateString("data.payments_list[0].payment_account.sia","<string>")
loJson.UpdateString("data.payments_list[0].payment_account.cuc","<string>")
loJson.UpdateString("data.payments_list[0].payment_account.virtual","<boolean>")
loJson.UpdateString("data.payments_list[0].paid_date","<date>")
loJson.UpdateNewObject("data.payments_list[0].ei_raw")
loJson.UpdateString("data.payments_list[0].payment_terms.days","<integer>")
loJson.UpdateString("data.payments_list[0].payment_terms.type","standard")
loJson.UpdateString("data.payments_list[1].id","<integer>")
loJson.UpdateString("data.payments_list[1].due_date","<date>")
loJson.UpdateString("data.payments_list[1].amount","<number>")
loJson.UpdateString("data.payments_list[1].status","not_paid")
loJson.UpdateString("data.payments_list[1].payment_account.id","<integer>")
loJson.UpdateString("data.payments_list[1].payment_account.name","<string>")
loJson.UpdateString("data.payments_list[1].payment_account.type","standard")
loJson.UpdateString("data.payments_list[1].payment_account.iban","<string>")
loJson.UpdateString("data.payments_list[1].payment_account.sia","<string>")
loJson.UpdateString("data.payments_list[1].payment_account.cuc","<string>")
loJson.UpdateString("data.payments_list[1].payment_account.virtual","<boolean>")
loJson.UpdateString("data.payments_list[1].paid_date","<date>")
loJson.UpdateNewObject("data.payments_list[1].ei_raw")
loJson.UpdateString("data.payments_list[1].payment_terms.days","<integer>")
loJson.UpdateString("data.payments_list[1].payment_terms.type","standard")
loJson.UpdateString("data.template.id","<integer>")
loJson.UpdateString("data.template.name","<string>")
loJson.UpdateString("data.template.type","<string>")
loJson.UpdateString("data.delivery_note_template.id","<integer>")
loJson.UpdateString("data.delivery_note_template.name","<string>")
loJson.UpdateString("data.delivery_note_template.type","<string>")
loJson.UpdateString("data.acc_inv_template.id","<integer>")
loJson.UpdateString("data.acc_inv_template.name","<string>")
loJson.UpdateString("data.acc_inv_template.type","<string>")
loJson.UpdateString("data.h_margins","<integer>")
loJson.UpdateString("data.v_margins","<integer>")
loJson.UpdateString("data.show_payments","<boolean>")
loJson.UpdateString("data.show_payment_method","<boolean>")
loJson.UpdateString("data.show_totals","all")
loJson.UpdateBool("data.show_paypal_button",.F.)
loJson.UpdateBool("data.show_notification_button",.F.)
loJson.UpdateString("data.show_tspay_button","<boolean>")
loJson.UpdateString("data.delivery_note","<boolean>")
loJson.UpdateBool("data.accompanying_invoice",.F.)
loJson.UpdateString("data.dn_number","<integer>")
loJson.UpdateString("data.dn_date","<date>")
loJson.UpdateString("data.dn_ai_packages_number","<string>")
loJson.UpdateString("data.dn_ai_weight","<string>")
loJson.UpdateString("data.dn_ai_causal","<string>")
loJson.UpdateString("data.dn_ai_destination","<string>")
loJson.UpdateString("data.dn_ai_transporter","<string>")
loJson.UpdateString("data.dn_ai_notes","<string>")
loJson.UpdateString("data.is_marked","<boolean>")
loJson.UpdateString("data.amount_net","<number>")
loJson.UpdateString("data.amount_vat","<number>")
loJson.UpdateString("data.amount_gross","<number>")
loJson.UpdateString("data.amount_due_discount","<number>")
loJson.UpdateString("data.amount_rivalsa","<number>")
loJson.UpdateString("data.amount_rivalsa_taxable","<number>")
loJson.UpdateString("data.amount_withholding_tax","<number>")
loJson.UpdateString("data.amount_withholding_tax_taxable","<number>")
loJson.UpdateString("data.amount_other_withholding_tax","<number>")
loJson.UpdateString("data.amount_other_withholding_tax_taxable","<number>")
loJson.UpdateString("data.amount_enasarco_taxable","<number>")
loJson.UpdateString("data.extra_data.show_sofort_button","<boolean>")
loJson.UpdateString("data.extra_data.multifatture_sent","<integer>")
loJson.UpdateString("data.extra_data.ts_communication","<boolean>")
loJson.UpdateString("data.extra_data.ts_flag_tipo_spesa","<number>")
loJson.UpdateString("data.extra_data.ts_pagamento_tracciato","<boolean>")
loJson.UpdateString("data.extra_data.ts_tipo_spesa","<string>")
loJson.UpdateString("data.extra_data.ts_opposizione","<boolean>")
loJson.UpdateString("data.extra_data.ts_status","<integer>")
loJson.UpdateString("data.extra_data.ts_file_id","<string>")
loJson.UpdateString("data.extra_data.ts_sent_date","<date>")
loJson.UpdateString("data.extra_data.ts_full_amount","<boolean>")
loJson.UpdateString("data.extra_data.imported_by","<string>")
loJson.UpdateString("data.seen_date","<date>")
loJson.UpdateString("data.next_due_date","<date>")
loJson.UpdateString("data.url","<string>")
loJson.UpdateString("data.dn_url","<string>")
loJson.UpdateString("data.ai_url","<string>")
loJson.UpdateString("data.attachment_url","<string>")
loJson.UpdateString("data.attachment_token","<string>")
loJson.UpdateNewObject("data.ei_raw")
loJson.UpdateString("data.ei_status","missing")
loJson.UpdateString("data.created_at","<string>")
loJson.UpdateString("data.updated_at","<string>")
loJson.UpdateString("options.fix_payments","<boolean>")
loJson.UpdateString("options.create_from[0]","<string>")
loJson.UpdateString("options.create_from[1]","<string>")
loJson.UpdateString("options.transform","<boolean>")
loJson.UpdateString("options.keep_copy","<boolean>")
loJson.UpdateString("options.join_type","<string>")

loHttp.SetRequestHeader("Content-Type","application/json")
// Adds the "Authorization: Bearer <access_token>" header.
loHttp.AuthToken = "<access_token>"
loHttp.SetRequestHeader("Accept","application/json")

loSbRequestBody = createobject("CkStringBuilder")
loJson.EmitSb(loSbRequestBody)

loResp = loHttp.PTextSb("PUT","https://api-v2.fattureincloud.it/c/:company_id/issued_documents/:document_id",loSbRequestBody,"utf-8","application/json",.F.,.F.)
if (loHttp.LastMethodSuccess = .F.) then
    ? loHttp.LastErrorText
    release loHttp
    release loJson
    release loSbRequestBody
    return
endif

loSbResponseBody = createobject("CkStringBuilder")
loResp.GetBodySb(loSbResponseBody)

loJResp = createobject("CkJsonObject")
loJResp.LoadSb(loSbResponseBody)
loJResp.EmitCompact = .F.

? "Response Body:"
? loJResp.Emit()

lnRespStatusCode = loResp.StatusCode
? "Response Status Code = " + str(lnRespStatusCode)
if (lnRespStatusCode >= 400) then
    ? "Response Header:"
    ? loResp.Header
    ? "Failed."
    release loResp
    release loHttp
    release loJson
    release loSbRequestBody
    release loSbResponseBody
    release loJResp
    return
endif

release loResp

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "data": {
//     "id": "<integer>",
//     "entity": {
//       "id": "<integer>",
//       "code": "<string>",
//       "name": "<string>",
//       "type": null,
//       "first_name": "<string>",
//       "last_name": "<string>",
//       "contact_person": "<string>",
//       "vat_number": "<string>",
//       "tax_code": "<string>",
//       "address_street": "<string>",
//       "address_postal_code": "<string>",
//       "address_city": "<string>",
//       "address_province": "<string>",
//       "address_extra": "<string>",
//       "country": "<string>",
//       "country_iso": "<string>",
//       "email": "<string>",
//       "certified_email": "<string>",
//       "phone": "<string>",
//       "fax": "<string>",
//       "notes": "<string>",
//       "default_payment_terms": "<integer>",
//       "default_vat": {
//         "id": "<integer>",
//         "value": "<number>",
//         "description": "<string>",
//         "notes": "<string>",
//         "e_invoice": "<boolean>",
//         "ei_type": "<string>",
//         "ei_description": "<string>",
//         "editable": "<boolean>",
//         "is_disabled": "<boolean>"
//       },
//       "default_payment_terms_type": "standard",
//       "default_payment_method": {
//         "id": "<integer>",
//         "name": "<string>",
//         "type": "standard",
//         "is_default": "<boolean>",
//         "default_payment_account": {
//           "id": "<integer>",
//           "name": "<string>",
//           "type": "standard",
//           "iban": "<string>",
//           "sia": "<string>",
//           "cuc": "<string>",
//           "virtual": "<boolean>"
//         },
//         "details": [
//           {
//             "title": "<string>",
//             "description": "<string>"
//           },
//           {
//             "title": "<string>",
//             "description": "<string>"
//           }
//         ],
//         "bank_iban": "<string>",
//         "bank_name": "<string>",
//         "bank_beneficiary": "<string>",
//         "ei_payment_method": "<string>"
//       },
//       "bank_name": "<string>",
//       "bank_iban": "<string>",
//       "bank_swift_code": "<string>",
//       "shipping_address": "<string>",
//       "e_invoice": "<boolean>",
//       "ei_code": "<string>",
//       "has_intent_declaration": "<boolean>",
//       "intent_declaration_protocol_number": "<string>",
//       "intent_declaration_protocol_date": "<date>",
//       "created_at": "<string>",
//       "updated_at": "<string>"
//     },
//     "type": "invoice",
//     "number": "<integer>",
//     "numeration": "<string>",
//     "date": "<date>",
//     "year": "<integer>",
//     "currency": {
//       "id": "<string>",
//       "symbol": "<string>",
//       "exchange_rate": "<string>",
//       "html_symbol": "<string>"
//     },
//     "language": {
//       "code": "<string>",
//       "name": "<string>"
//     },
//     "subject": "<string>",
//     "visible_subject": "<string>",
//     "rc_center": "<string>",
//     "notes": "<string>",
//     "rivalsa": "<number>",
//     "cassa": "<number>",
//     "amount_cassa": "<number>",
//     "cassa_taxable": "<number>",
//     "amount_cassa_taxable": "<number>",
//     "cassa2": "<number>",
//     "amount_cassa2": "<number>",
//     "cassa2_taxable": "<number>",
//     "amount_cassa2_taxable": "<number>",
//     "global_cassa_taxable": "<number>",
//     "amount_global_cassa_taxable": "<number>",
//     "withholding_tax": "<number>",
//     "withholding_tax_taxable": "<number>",
//     "other_withholding_tax": "<number>",
//     "stamp_duty": "<number>",
//     "payment_method": {
//       "id": "<integer>",
//       "name": "<string>",
//       "type": "standard",
//       "is_default": "<boolean>",
//       "default_payment_account": {
//         "id": "<integer>",
//         "name": "<string>",
//         "type": "standard",
//         "iban": "<string>",
//         "sia": "<string>",
//         "cuc": "<string>",
//         "virtual": "<boolean>"
//       },
//       "details": [
//         {
//           "title": "<string>",
//           "description": "<string>"
//         },
//         {
//           "title": "<string>",
//           "description": "<string>"
//         }
//       ],
//       "bank_iban": "<string>",
//       "bank_name": "<string>",
//       "bank_beneficiary": "<string>",
//       "ei_payment_method": "<string>"
//     },
//     "use_split_payment": "<boolean>",
//     "use_gross_prices": "<boolean>",
//     "e_invoice": "<boolean>",
//     "ei_data": {
//       "vat_kind": null,
//       "original_document_type": "ordine",
//       "od_number": "<string>",
//       "od_date": "<date>",
//       "cig": "<string>",
//       "cup": "<string>",
//       "payment_method": "<string>",
//       "bank_name": "<string>",
//       "bank_iban": "<string>",
//       "bank_beneficiary": "<string>",
//       "invoice_number": "<string>",
//       "invoice_date": "<date>"
//     },
//     "ei_cassa_type": "<string>",
//     "ei_cassa2_type": "<string>",
//     "ei_withholding_tax_causal": "<string>",
//     "ei_other_withholding_tax_type": "<string>",
//     "ei_other_withholding_tax_causal": "<string>",
//     "items_list": [
//       {
//         "id": "<integer>",
//         "product_id": "<integer>",
//         "code": "<string>",
//         "name": "<string>",
//         "category": "<string>",
//         "description": "<string>",
//         "qty": "<number>",
//         "measure": "<string>",
//         "net_price": "<number>",
//         "gross_price": "<number>",
//         "vat": {
//           "id": "<integer>",
//           "value": "<number>",
//           "description": "<string>",
//           "notes": "<string>",
//           "e_invoice": "<boolean>",
//           "ei_type": "<string>",
//           "ei_description": "<string>",
//           "editable": "<boolean>",
//           "is_disabled": "<boolean>"
//         },
//         "not_taxable": "<boolean>",
//         "apply_withholding_taxes": "<boolean>",
//         "discount": "<number>",
//         "discount_highlight": "<boolean>",
//         "in_dn": "<boolean>",
//         "stock": "<boolean>",
//         "ei_raw": {}
//       },
//       {
//         "id": "<integer>",
//         "product_id": "<integer>",
//         "code": "<string>",
//         "name": "<string>",
//         "category": "<string>",
//         "description": "<string>",
//         "qty": "<number>",
//         "measure": "<string>",
//         "net_price": "<number>",
//         "gross_price": "<number>",
//         "vat": {
//           "id": "<integer>",
//           "value": "<number>",
//           "description": "<string>",
//           "notes": "<string>",
//           "e_invoice": "<boolean>",
//           "ei_type": "<string>",
//           "ei_description": "<string>",
//           "editable": "<boolean>",
//           "is_disabled": "<boolean>"
//         },
//         "not_taxable": "<boolean>",
//         "apply_withholding_taxes": "<boolean>",
//         "discount": "<number>",
//         "discount_highlight": "<boolean>",
//         "in_dn": "<boolean>",
//         "stock": "<boolean>",
//         "ei_raw": {}
//       }
//     ],
//     "payments_list": [
//       {
//         "id": "<integer>",
//         "due_date": "<date>",
//         "amount": "<number>",
//         "status": "not_paid",
//         "payment_account": {
//           "id": "<integer>",
//           "name": "<string>",
//           "type": "standard",
//           "iban": "<string>",
//           "sia": "<string>",
//           "cuc": "<string>",
//           "virtual": "<boolean>"
//         },
//         "paid_date": "<date>",
//         "ei_raw": {},
//         "payment_terms": {
//           "days": "<integer>",
//           "type": "standard"
//         }
//       },
//       {
//         "id": "<integer>",
//         "due_date": "<date>",
//         "amount": "<number>",
//         "status": "not_paid",
//         "payment_account": {
//           "id": "<integer>",
//           "name": "<string>",
//           "type": "standard",
//           "iban": "<string>",
//           "sia": "<string>",
//           "cuc": "<string>",
//           "virtual": "<boolean>"
//         },
//         "paid_date": "<date>",
//         "ei_raw": {},
//         "payment_terms": {
//           "days": "<integer>",
//           "type": "standard"
//         }
//       }
//     ],
//     "template": {
//       "id": "<integer>",
//       "name": "<string>",
//       "type": "<string>"
//     },
//     "delivery_note_template": {
//       "id": "<integer>",
//       "name": "<string>",
//       "type": "<string>"
//     },
//     "acc_inv_template": {
//       "id": "<integer>",
//       "name": "<string>",
//       "type": "<string>"
//     },
//     "h_margins": "<integer>",
//     "v_margins": "<integer>",
//     "show_payments": "<boolean>",
//     "show_payment_method": "<boolean>",
//     "show_totals": "all",
//     "show_paypal_button": "<boolean>",
//     "show_notification_button": "<boolean>",
//     "show_tspay_button": "<boolean>",
//     "delivery_note": "<boolean>",
//     "accompanying_invoice": "<boolean>",
//     "dn_number": "<integer>",
//     "dn_date": "<date>",
//     "dn_ai_packages_number": "<string>",
//     "dn_ai_weight": "<string>",
//     "dn_ai_causal": "<string>",
//     "dn_ai_destination": "<string>",
//     "dn_ai_transporter": "<string>",
//     "dn_ai_notes": "<string>",
//     "is_marked": "<boolean>",
//     "amount_net": "<number>",
//     "amount_vat": "<number>",
//     "amount_gross": "<number>",
//     "amount_due_discount": "<number>",
//     "amount_rivalsa": "<number>",
//     "amount_rivalsa_taxable": "<number>",
//     "amount_withholding_tax": "<number>",
//     "amount_withholding_tax_taxable": "<number>",
//     "amount_other_withholding_tax": "<number>",
//     "amount_other_withholding_tax_taxable": "<number>",
//     "amount_enasarco_taxable": "<number>",
//     "extra_data": {
//       "show_sofort_button": "<boolean>",
//       "multifatture_sent": "<integer>",
//       "ts_communication": "<boolean>",
//       "ts_flag_tipo_spesa": "<number>",
//       "ts_pagamento_tracciato": "<boolean>",
//       "ts_tipo_spesa": "<string>",
//       "ts_opposizione": "<boolean>",
//       "ts_status": "<integer>",
//       "ts_file_id": "<string>",
//       "ts_sent_date": "<date>",
//       "ts_full_amount": "<boolean>",
//       "imported_by": "<string>"
//     },
//     "seen_date": "<date>",
//     "next_due_date": "<date>",
//     "url": "<string>",
//     "dn_url": "<string>",
//     "ai_url": "<string>",
//     "attachment_url": "<string>",
//     "attachment_token": "<string>",
//     "ei_raw": {},
//     "ei_status": "processing",
//     "created_at": "<string>",
//     "updated_at": "<string>"
//   }
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

lcId = loJResp.StringOf("data.id")
lcEntityId = loJResp.StringOf("data.entity.id")
lcCode = loJResp.StringOf("data.entity.code")
lcName = loJResp.StringOf("data.entity.name")
lcV_Type = loJResp.StringOf("data.entity.type")
lcFirst_name = loJResp.StringOf("data.entity.first_name")
lcLast_name = loJResp.StringOf("data.entity.last_name")
lcContact_person = loJResp.StringOf("data.entity.contact_person")
lcVat_number = loJResp.StringOf("data.entity.vat_number")
lcTax_code = loJResp.StringOf("data.entity.tax_code")
lcAddress_street = loJResp.StringOf("data.entity.address_street")
lcAddress_postal_code = loJResp.StringOf("data.entity.address_postal_code")
lcAddress_city = loJResp.StringOf("data.entity.address_city")
lcAddress_province = loJResp.StringOf("data.entity.address_province")
lcAddress_extra = loJResp.StringOf("data.entity.address_extra")
lcCountry = loJResp.StringOf("data.entity.country")
lcCountry_iso = loJResp.StringOf("data.entity.country_iso")
lcV_Email = loJResp.StringOf("data.entity.email")
lcCertified_email = loJResp.StringOf("data.entity.certified_email")
lcPhone = loJResp.StringOf("data.entity.phone")
lcFax = loJResp.StringOf("data.entity.fax")
lcNotes = loJResp.StringOf("data.entity.notes")
lcDefault_payment_terms = loJResp.StringOf("data.entity.default_payment_terms")
lcDefault_vatId = loJResp.StringOf("data.entity.default_vat.id")
lcValue = loJResp.StringOf("data.entity.default_vat.value")
lcDescription = loJResp.StringOf("data.entity.default_vat.description")
lcDefault_vatNotes = loJResp.StringOf("data.entity.default_vat.notes")
lcE_invoice = loJResp.StringOf("data.entity.default_vat.e_invoice")
lcEi_type = loJResp.StringOf("data.entity.default_vat.ei_type")
lcEi_description = loJResp.StringOf("data.entity.default_vat.ei_description")
lcEditable = loJResp.StringOf("data.entity.default_vat.editable")
lcIs_disabled = loJResp.StringOf("data.entity.default_vat.is_disabled")
lcDefault_payment_terms_type = loJResp.StringOf("data.entity.default_payment_terms_type")
lcDefault_payment_methodId = loJResp.StringOf("data.entity.default_payment_method.id")
lcDefault_payment_methodName = loJResp.StringOf("data.entity.default_payment_method.name")
lcDefault_payment_methodType = loJResp.StringOf("data.entity.default_payment_method.type")
lcIs_default = loJResp.StringOf("data.entity.default_payment_method.is_default")
lcDefault_payment_accountId = loJResp.StringOf("data.entity.default_payment_method.default_payment_account.id")
lcDefault_payment_accountName = loJResp.StringOf("data.entity.default_payment_method.default_payment_account.name")
lcDefault_payment_accountType = loJResp.StringOf("data.entity.default_payment_method.default_payment_account.type")
lcIban = loJResp.StringOf("data.entity.default_payment_method.default_payment_account.iban")
lcSia = loJResp.StringOf("data.entity.default_payment_method.default_payment_account.sia")
lcCuc = loJResp.StringOf("data.entity.default_payment_method.default_payment_account.cuc")
lcV_Virtual = loJResp.StringOf("data.entity.default_payment_method.default_payment_account.virtual")
lcBank_iban = loJResp.StringOf("data.entity.default_payment_method.bank_iban")
lcBank_name = loJResp.StringOf("data.entity.default_payment_method.bank_name")
lcBank_beneficiary = loJResp.StringOf("data.entity.default_payment_method.bank_beneficiary")
lcEi_payment_method = loJResp.StringOf("data.entity.default_payment_method.ei_payment_method")
lcEntityBank_name = loJResp.StringOf("data.entity.bank_name")
lcEntityBank_iban = loJResp.StringOf("data.entity.bank_iban")
lcBank_swift_code = loJResp.StringOf("data.entity.bank_swift_code")
lcShipping_address = loJResp.StringOf("data.entity.shipping_address")
lcEntityE_invoice = loJResp.StringOf("data.entity.e_invoice")
lcEi_code = loJResp.StringOf("data.entity.ei_code")
lcHas_intent_declaration = loJResp.StringOf("data.entity.has_intent_declaration")
lcIntent_declaration_protocol_number = loJResp.StringOf("data.entity.intent_declaration_protocol_number")
lcIntent_declaration_protocol_date = loJResp.StringOf("data.entity.intent_declaration_protocol_date")
lcCreated_at = loJResp.StringOf("data.entity.created_at")
lcUpdated_at = loJResp.StringOf("data.entity.updated_at")
lcDataType = loJResp.StringOf("data.type")
lcV_Number = loJResp.StringOf("data.number")
lcNumeration = loJResp.StringOf("data.numeration")
lcDate = loJResp.StringOf("data.date")
lcYear = loJResp.StringOf("data.year")
lcCurrencyId = loJResp.StringOf("data.currency.id")
lcSymbol = loJResp.StringOf("data.currency.symbol")
lcExchange_rate = loJResp.StringOf("data.currency.exchange_rate")
lcHtml_symbol = loJResp.StringOf("data.currency.html_symbol")
lcLanguageCode = loJResp.StringOf("data.language.code")
lcLanguageName = loJResp.StringOf("data.language.name")
lcSubject = loJResp.StringOf("data.subject")
lcVisible_subject = loJResp.StringOf("data.visible_subject")
lcRc_center = loJResp.StringOf("data.rc_center")
lcDataNotes = loJResp.StringOf("data.notes")
lcRivalsa = loJResp.StringOf("data.rivalsa")
lcCassa = loJResp.StringOf("data.cassa")
lcAmount_cassa = loJResp.StringOf("data.amount_cassa")
lcCassa_taxable = loJResp.StringOf("data.cassa_taxable")
lcAmount_cassa_taxable = loJResp.StringOf("data.amount_cassa_taxable")
lcCassa2 = loJResp.StringOf("data.cassa2")
lcAmount_cassa2 = loJResp.StringOf("data.amount_cassa2")
lcCassa2_taxable = loJResp.StringOf("data.cassa2_taxable")
lcAmount_cassa2_taxable = loJResp.StringOf("data.amount_cassa2_taxable")
lcGlobal_cassa_taxable = loJResp.StringOf("data.global_cassa_taxable")
lcAmount_global_cassa_taxable = loJResp.StringOf("data.amount_global_cassa_taxable")
lcWithholding_tax = loJResp.StringOf("data.withholding_tax")
lcWithholding_tax_taxable = loJResp.StringOf("data.withholding_tax_taxable")
lcOther_withholding_tax = loJResp.StringOf("data.other_withholding_tax")
lcStamp_duty = loJResp.StringOf("data.stamp_duty")
lcPayment_methodId = loJResp.StringOf("data.payment_method.id")
lcPayment_methodName = loJResp.StringOf("data.payment_method.name")
lcPayment_methodType = loJResp.StringOf("data.payment_method.type")
lcPayment_methodIs_default = loJResp.StringOf("data.payment_method.is_default")
lcDefault_payment_accountId = loJResp.StringOf("data.payment_method.default_payment_account.id")
lcDefault_payment_accountName = loJResp.StringOf("data.payment_method.default_payment_account.name")
lcDefault_payment_accountType = loJResp.StringOf("data.payment_method.default_payment_account.type")
lcDefault_payment_accountIban = loJResp.StringOf("data.payment_method.default_payment_account.iban")
lcDefault_payment_accountSia = loJResp.StringOf("data.payment_method.default_payment_account.sia")
lcDefault_payment_accountCuc = loJResp.StringOf("data.payment_method.default_payment_account.cuc")
lcDefault_payment_accountVirtual = loJResp.StringOf("data.payment_method.default_payment_account.virtual")
lcPayment_methodBank_iban = loJResp.StringOf("data.payment_method.bank_iban")
lcPayment_methodBank_name = loJResp.StringOf("data.payment_method.bank_name")
lcPayment_methodBank_beneficiary = loJResp.StringOf("data.payment_method.bank_beneficiary")
lcPayment_methodEi_payment_method = loJResp.StringOf("data.payment_method.ei_payment_method")
lcUse_split_payment = loJResp.StringOf("data.use_split_payment")
lcUse_gross_prices = loJResp.StringOf("data.use_gross_prices")
lcDataE_invoice = loJResp.StringOf("data.e_invoice")
lcVat_kind = loJResp.StringOf("data.ei_data.vat_kind")
lcOriginal_document_type = loJResp.StringOf("data.ei_data.original_document_type")
lcOd_number = loJResp.StringOf("data.ei_data.od_number")
lcOd_date = loJResp.StringOf("data.ei_data.od_date")
lcCig = loJResp.StringOf("data.ei_data.cig")
lcCup = loJResp.StringOf("data.ei_data.cup")
lcPayment_method = loJResp.StringOf("data.ei_data.payment_method")
lcEi_dataBank_name = loJResp.StringOf("data.ei_data.bank_name")
lcEi_dataBank_iban = loJResp.StringOf("data.ei_data.bank_iban")
lcEi_dataBank_beneficiary = loJResp.StringOf("data.ei_data.bank_beneficiary")
lcInvoice_number = loJResp.StringOf("data.ei_data.invoice_number")
lcInvoice_date = loJResp.StringOf("data.ei_data.invoice_date")
lcEi_cassa_type = loJResp.StringOf("data.ei_cassa_type")
lcEi_cassa2_type = loJResp.StringOf("data.ei_cassa2_type")
lcEi_withholding_tax_causal = loJResp.StringOf("data.ei_withholding_tax_causal")
lcEi_other_withholding_tax_type = loJResp.StringOf("data.ei_other_withholding_tax_type")
lcEi_other_withholding_tax_causal = loJResp.StringOf("data.ei_other_withholding_tax_causal")
lcTemplateId = loJResp.StringOf("data.template.id")
lcTemplateName = loJResp.StringOf("data.template.name")
lcTemplateType = loJResp.StringOf("data.template.type")
lcDelivery_note_templateId = loJResp.StringOf("data.delivery_note_template.id")
lcDelivery_note_templateName = loJResp.StringOf("data.delivery_note_template.name")
lcDelivery_note_templateType = loJResp.StringOf("data.delivery_note_template.type")
lcAcc_inv_templateId = loJResp.StringOf("data.acc_inv_template.id")
lcAcc_inv_templateName = loJResp.StringOf("data.acc_inv_template.name")
lcAcc_inv_templateType = loJResp.StringOf("data.acc_inv_template.type")
lcH_margins = loJResp.StringOf("data.h_margins")
lcV_margins = loJResp.StringOf("data.v_margins")
lcShow_payments = loJResp.StringOf("data.show_payments")
lcShow_payment_method = loJResp.StringOf("data.show_payment_method")
lcShow_totals = loJResp.StringOf("data.show_totals")
lcShow_paypal_button = loJResp.StringOf("data.show_paypal_button")
lcShow_notification_button = loJResp.StringOf("data.show_notification_button")
lcShow_tspay_button = loJResp.StringOf("data.show_tspay_button")
lcDelivery_note = loJResp.StringOf("data.delivery_note")
lcAccompanying_invoice = loJResp.StringOf("data.accompanying_invoice")
lcDn_number = loJResp.StringOf("data.dn_number")
lcDn_date = loJResp.StringOf("data.dn_date")
lcDn_ai_packages_number = loJResp.StringOf("data.dn_ai_packages_number")
lcDn_ai_weight = loJResp.StringOf("data.dn_ai_weight")
lcDn_ai_causal = loJResp.StringOf("data.dn_ai_causal")
lcDn_ai_destination = loJResp.StringOf("data.dn_ai_destination")
lcDn_ai_transporter = loJResp.StringOf("data.dn_ai_transporter")
lcDn_ai_notes = loJResp.StringOf("data.dn_ai_notes")
lcIs_marked = loJResp.StringOf("data.is_marked")
lcAmount_net = loJResp.StringOf("data.amount_net")
lcAmount_vat = loJResp.StringOf("data.amount_vat")
lcAmount_gross = loJResp.StringOf("data.amount_gross")
lcAmount_due_discount = loJResp.StringOf("data.amount_due_discount")
lcAmount_rivalsa = loJResp.StringOf("data.amount_rivalsa")
lcAmount_rivalsa_taxable = loJResp.StringOf("data.amount_rivalsa_taxable")
lcAmount_withholding_tax = loJResp.StringOf("data.amount_withholding_tax")
lcAmount_withholding_tax_taxable = loJResp.StringOf("data.amount_withholding_tax_taxable")
lcAmount_other_withholding_tax = loJResp.StringOf("data.amount_other_withholding_tax")
lcAmount_other_withholding_tax_taxable = loJResp.StringOf("data.amount_other_withholding_tax_taxable")
lcAmount_enasarco_taxable = loJResp.StringOf("data.amount_enasarco_taxable")
lcShow_sofort_button = loJResp.StringOf("data.extra_data.show_sofort_button")
lcMultifatture_sent = loJResp.StringOf("data.extra_data.multifatture_sent")
lcTs_communication = loJResp.StringOf("data.extra_data.ts_communication")
lcTs_flag_tipo_spesa = loJResp.StringOf("data.extra_data.ts_flag_tipo_spesa")
lcTs_pagamento_tracciato = loJResp.StringOf("data.extra_data.ts_pagamento_tracciato")
lcTs_tipo_spesa = loJResp.StringOf("data.extra_data.ts_tipo_spesa")
lcTs_opposizione = loJResp.StringOf("data.extra_data.ts_opposizione")
lcTs_status = loJResp.StringOf("data.extra_data.ts_status")
lcTs_file_id = loJResp.StringOf("data.extra_data.ts_file_id")
lcTs_sent_date = loJResp.StringOf("data.extra_data.ts_sent_date")
lcTs_full_amount = loJResp.StringOf("data.extra_data.ts_full_amount")
lcImported_by = loJResp.StringOf("data.extra_data.imported_by")
lcSeen_date = loJResp.StringOf("data.seen_date")
lcNext_due_date = loJResp.StringOf("data.next_due_date")
lcV_Url = loJResp.StringOf("data.url")
lcDn_url = loJResp.StringOf("data.dn_url")
lcAi_url = loJResp.StringOf("data.ai_url")
lcAttachment_url = loJResp.StringOf("data.attachment_url")
lcAttachment_token = loJResp.StringOf("data.attachment_token")
lcEi_status = loJResp.StringOf("data.ei_status")
lcDataCreated_at = loJResp.StringOf("data.created_at")
lcDataUpdated_at = loJResp.StringOf("data.updated_at")
i = 0
lnCount_i = loJResp.SizeOfArray("data.entity.default_payment_method.details")
do while i < lnCount_i
    loJResp.I = i
    lcTitle = loJResp.StringOf("data.entity.default_payment_method.details[i].title")
    lcDescription = loJResp.StringOf("data.entity.default_payment_method.details[i].description")
    i = i + 1
enddo
i = 0
lnCount_i = loJResp.SizeOfArray("data.payment_method.details")
do while i < lnCount_i
    loJResp.I = i
    lcTitle = loJResp.StringOf("data.payment_method.details[i].title")
    lcDescription = loJResp.StringOf("data.payment_method.details[i].description")
    i = i + 1
enddo
i = 0
lnCount_i = loJResp.SizeOfArray("data.items_list")
do while i < lnCount_i
    loJResp.I = i
    lcId = loJResp.StringOf("data.items_list[i].id")
    lcProduct_id = loJResp.StringOf("data.items_list[i].product_id")
    lcCode = loJResp.StringOf("data.items_list[i].code")
    lcName = loJResp.StringOf("data.items_list[i].name")
    lcCategory = loJResp.StringOf("data.items_list[i].category")
    lcDescription = loJResp.StringOf("data.items_list[i].description")
    lcQty = loJResp.StringOf("data.items_list[i].qty")
    lcMeasure = loJResp.StringOf("data.items_list[i].measure")
    lcNet_price = loJResp.StringOf("data.items_list[i].net_price")
    lcGross_price = loJResp.StringOf("data.items_list[i].gross_price")
    lcVatId = loJResp.StringOf("data.items_list[i].vat.id")
    lcVatValue = loJResp.StringOf("data.items_list[i].vat.value")
    lcVatDescription = loJResp.StringOf("data.items_list[i].vat.description")
    lcVatNotes = loJResp.StringOf("data.items_list[i].vat.notes")
    lcVatE_invoice = loJResp.StringOf("data.items_list[i].vat.e_invoice")
    lcVatEi_type = loJResp.StringOf("data.items_list[i].vat.ei_type")
    lcVatEi_description = loJResp.StringOf("data.items_list[i].vat.ei_description")
    lcVatEditable = loJResp.StringOf("data.items_list[i].vat.editable")
    lcVatIs_disabled = loJResp.StringOf("data.items_list[i].vat.is_disabled")
    lcNot_taxable = loJResp.StringOf("data.items_list[i].not_taxable")
    lcApply_withholding_taxes = loJResp.StringOf("data.items_list[i].apply_withholding_taxes")
    lcDiscount = loJResp.StringOf("data.items_list[i].discount")
    lcDiscount_highlight = loJResp.StringOf("data.items_list[i].discount_highlight")
    lcIn_dn = loJResp.StringOf("data.items_list[i].in_dn")
    lcStock = loJResp.StringOf("data.items_list[i].stock")
    i = i + 1
enddo
i = 0
lnCount_i = loJResp.SizeOfArray("data.payments_list")
do while i < lnCount_i
    loJResp.I = i
    lcId = loJResp.StringOf("data.payments_list[i].id")
    lcDue_date = loJResp.StringOf("data.payments_list[i].due_date")
    lcAmount = loJResp.StringOf("data.payments_list[i].amount")
    lcStatus = loJResp.StringOf("data.payments_list[i].status")
    lcPayment_accountId = loJResp.StringOf("data.payments_list[i].payment_account.id")
    lcPayment_accountName = loJResp.StringOf("data.payments_list[i].payment_account.name")
    lcPayment_accountType = loJResp.StringOf("data.payments_list[i].payment_account.type")
    lcPayment_accountIban = loJResp.StringOf("data.payments_list[i].payment_account.iban")
    lcPayment_accountSia = loJResp.StringOf("data.payments_list[i].payment_account.sia")
    lcPayment_accountCuc = loJResp.StringOf("data.payments_list[i].payment_account.cuc")
    lcPayment_accountVirtual = loJResp.StringOf("data.payments_list[i].payment_account.virtual")
    lcPaid_date = loJResp.StringOf("data.payments_list[i].paid_date")
    lcDays = loJResp.StringOf("data.payments_list[i].payment_terms.days")
    lcPayment_termsType = loJResp.StringOf("data.payments_list[i].payment_terms.type")
    i = i + 1
enddo


release loHttp
release loJson
release loSbRequestBody
release loSbResponseBody
release loJResp

Curl Command

curl -X PUT
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '{
  "data": {
    "id": "<integer>",
    "entity": {
      "name": "<string>",
      "id": "<integer>",
      "code": "<string>",
      "type": null,
      "first_name": "<string>",
      "last_name": "<string>",
      "contact_person": "<string>",
      "vat_number": "<string>",
      "tax_code": "<string>",
      "address_street": "<string>",
      "address_postal_code": "<string>",
      "address_city": "<string>",
      "address_province": "<string>",
      "address_extra": "<string>",
      "country": "Italia",
      "country_iso": "<string>",
      "email": "<string>",
      "certified_email": "<string>",
      "phone": "<string>",
      "fax": "<string>",
      "notes": "<string>",
      "default_payment_terms": "<integer>",
      "default_vat": {
        "value": "<number>",
        "id": "<integer>",
        "description": "<string>",
        "notes": "<string>",
        "e_invoice": "<boolean>",
        "ei_type": "<string>",
        "ei_description": "<string>",
        "editable": true,
        "is_disabled": "<boolean>"
      },
      "default_payment_terms_type": "standard",
      "default_payment_method": {
        "name": "<string>",
        "id": "<integer>",
        "type": "standard",
        "is_default": "<boolean>",
        "default_payment_account": {
          "name": "<string>",
          "id": "<integer>",
          "type": "standard",
          "iban": "<string>",
          "sia": "<string>",
          "cuc": "<string>",
          "virtual": "<boolean>"
        },
        "details": [
          {
            "title": "<string>",
            "description": "<string>"
          },
          {
            "title": "<string>",
            "description": "<string>"
          }
        ],
        "bank_iban": "<string>",
        "bank_name": "<string>",
        "bank_beneficiary": "<string>",
        "ei_payment_method": "<string>"
      },
      "bank_name": "<string>",
      "bank_iban": "<string>",
      "bank_swift_code": "<string>",
      "shipping_address": "<string>",
      "e_invoice": false,
      "ei_code": "<string>",
      "has_intent_declaration": "<boolean>",
      "intent_declaration_protocol_number": "<string>",
      "intent_declaration_protocol_date": "<date>",
      "created_at": "<string>",
      "updated_at": "<string>"
    },
    "type": "invoice",
    "number": "<integer>",
    "numeration": "<string>",
    "date": "<date>",
    "year": "<integer>",
    "currency": {
      "id": "<string>",
      "symbol": "<string>",
      "exchange_rate": "<string>",
      "html_symbol": "<string>"
    },
    "language": {
      "code": "<string>",
      "name": "<string>"
    },
    "subject": "<string>",
    "visible_subject": "<string>",
    "rc_center": "<string>",
    "notes": "<string>",
    "rivalsa": "<number>",
    "cassa": "<number>",
    "amount_cassa": "<number>",
    "cassa_taxable": "<number>",
    "amount_cassa_taxable": "<number>",
    "cassa2": "<number>",
    "amount_cassa2": "<number>",
    "cassa2_taxable": "<number>",
    "amount_cassa2_taxable": "<number>",
    "global_cassa_taxable": "<number>",
    "amount_global_cassa_taxable": "<number>",
    "withholding_tax": "<number>",
    "withholding_tax_taxable": "<number>",
    "other_withholding_tax": "<number>",
    "stamp_duty": "<number>",
    "payment_method": {
      "name": "<string>",
      "id": "<integer>",
      "type": "standard",
      "is_default": "<boolean>",
      "default_payment_account": {
        "name": "<string>",
        "id": "<integer>",
        "type": "standard",
        "iban": "<string>",
        "sia": "<string>",
        "cuc": "<string>",
        "virtual": "<boolean>"
      },
      "details": [
        {
          "title": "<string>",
          "description": "<string>"
        },
        {
          "title": "<string>",
          "description": "<string>"
        }
      ],
      "bank_iban": "<string>",
      "bank_name": "<string>",
      "bank_beneficiary": "<string>",
      "ei_payment_method": "<string>"
    },
    "use_split_payment": false,
    "use_gross_prices": false,
    "e_invoice": false,
    "ei_data": {
      "vat_kind": null,
      "original_document_type": "ordine",
      "od_number": "<string>",
      "od_date": "<date>",
      "cig": "<string>",
      "cup": "<string>",
      "payment_method": "<string>",
      "bank_name": "<string>",
      "bank_iban": "<string>",
      "bank_beneficiary": "<string>",
      "invoice_number": "<string>",
      "invoice_date": "<date>"
    },
    "ei_cassa_type": "<string>",
    "ei_cassa2_type": "<string>",
    "ei_withholding_tax_causal": "<string>",
    "ei_other_withholding_tax_type": "<string>",
    "ei_other_withholding_tax_causal": "<string>",
    "items_list": [
      {
        "id": "<integer>",
        "product_id": "<integer>",
        "code": "<string>",
        "name": "<string>",
        "category": "<string>",
        "description": "<string>",
        "qty": "<number>",
        "measure": "<string>",
        "net_price": "<number>",
        "gross_price": "<number>",
        "vat": {
          "id": "<integer>",
          "value": "<number>",
          "description": "<string>",
          "notes": "<string>",
          "e_invoice": "<boolean>",
          "ei_type": "<string>",
          "ei_description": "<string>",
          "editable": "<boolean>",
          "is_disabled": "<boolean>"
        },
        "not_taxable": "<boolean>",
        "apply_withholding_taxes": "<boolean>",
        "discount": "<number>",
        "discount_highlight": "<boolean>",
        "in_dn": "<boolean>",
        "stock": "<boolean>",
        "ei_raw": {}
      },
      {
        "id": "<integer>",
        "product_id": "<integer>",
        "code": "<string>",
        "name": "<string>",
        "category": "<string>",
        "description": "<string>",
        "qty": "<number>",
        "measure": "<string>",
        "net_price": "<number>",
        "gross_price": "<number>",
        "vat": {
          "id": "<integer>",
          "value": "<number>",
          "description": "<string>",
          "notes": "<string>",
          "e_invoice": "<boolean>",
          "ei_type": "<string>",
          "ei_description": "<string>",
          "editable": "<boolean>",
          "is_disabled": "<boolean>"
        },
        "not_taxable": "<boolean>",
        "apply_withholding_taxes": "<boolean>",
        "discount": "<number>",
        "discount_highlight": "<boolean>",
        "in_dn": "<boolean>",
        "stock": "<boolean>",
        "ei_raw": {}
      }
    ],
    "payments_list": [
      {
        "id": "<integer>",
        "due_date": "<date>",
        "amount": "<number>",
        "status": "not_paid",
        "payment_account": {
          "id": "<integer>",
          "name": "<string>",
          "type": "standard",
          "iban": "<string>",
          "sia": "<string>",
          "cuc": "<string>",
          "virtual": "<boolean>"
        },
        "paid_date": "<date>",
        "ei_raw": {},
        "payment_terms": {
          "days": "<integer>",
          "type": "standard"
        }
      },
      {
        "id": "<integer>",
        "due_date": "<date>",
        "amount": "<number>",
        "status": "not_paid",
        "payment_account": {
          "id": "<integer>",
          "name": "<string>",
          "type": "standard",
          "iban": "<string>",
          "sia": "<string>",
          "cuc": "<string>",
          "virtual": "<boolean>"
        },
        "paid_date": "<date>",
        "ei_raw": {},
        "payment_terms": {
          "days": "<integer>",
          "type": "standard"
        }
      }
    ],
    "template": {
      "id": "<integer>",
      "name": "<string>",
      "type": "<string>"
    },
    "delivery_note_template": {
      "id": "<integer>",
      "name": "<string>",
      "type": "<string>"
    },
    "acc_inv_template": {
      "id": "<integer>",
      "name": "<string>",
      "type": "<string>"
    },
    "h_margins": "<integer>",
    "v_margins": "<integer>",
    "show_payments": "<boolean>",
    "show_payment_method": "<boolean>",
    "show_totals": "all",
    "show_paypal_button": false,
    "show_notification_button": false,
    "show_tspay_button": "<boolean>",
    "delivery_note": "<boolean>",
    "accompanying_invoice": false,
    "dn_number": "<integer>",
    "dn_date": "<date>",
    "dn_ai_packages_number": "<string>",
    "dn_ai_weight": "<string>",
    "dn_ai_causal": "<string>",
    "dn_ai_destination": "<string>",
    "dn_ai_transporter": "<string>",
    "dn_ai_notes": "<string>",
    "is_marked": "<boolean>",
    "amount_net": "<number>",
    "amount_vat": "<number>",
    "amount_gross": "<number>",
    "amount_due_discount": "<number>",
    "amount_rivalsa": "<number>",
    "amount_rivalsa_taxable": "<number>",
    "amount_withholding_tax": "<number>",
    "amount_withholding_tax_taxable": "<number>",
    "amount_other_withholding_tax": "<number>",
    "amount_other_withholding_tax_taxable": "<number>",
    "amount_enasarco_taxable": "<number>",
    "extra_data": {
      "show_sofort_button": "<boolean>",
      "multifatture_sent": "<integer>",
      "ts_communication": "<boolean>",
      "ts_flag_tipo_spesa": "<number>",
      "ts_pagamento_tracciato": "<boolean>",
      "ts_tipo_spesa": "<string>",
      "ts_opposizione": "<boolean>",
      "ts_status": "<integer>",
      "ts_file_id": "<string>",
      "ts_sent_date": "<date>",
      "ts_full_amount": "<boolean>",
      "imported_by": "<string>"
    },
    "seen_date": "<date>",
    "next_due_date": "<date>",
    "url": "<string>",
    "dn_url": "<string>",
    "ai_url": "<string>",
    "attachment_url": "<string>",
    "attachment_token": "<string>",
    "ei_raw": {},
    "ei_status": "missing",
    "created_at": "<string>",
    "updated_at": "<string>"
  },
  "options": {
    "fix_payments": "<boolean>",
    "create_from": [
      "<string>",
      "<string>"
    ],
    "transform": "<boolean>",
    "keep_copy": "<boolean>",
    "join_type": "<string>"
  }
}'
https://api-v2.fattureincloud.it/c/:company_id/issued_documents/:document_id

Postman Collection Item JSON

{
  "name": "Modify Issued Document",
  "request": {
    "auth": {
      "type": "oauth2",
      "oauth2": [
        {
          "key": "scope",
          "value": "entity.clients:r entity.clients:a entity.suppliers:r entity.suppliers:a products:r products:a issued_documents.invoices:r issued_documents.credit_notes:r issued_documents.receipts:r issued_documents.orders:r issued_documents.quotes:r issued_documents.proformas:r issued_documents.delivery_notes:r issued_documents.work_reports:r issued_documents.supplier_orders:r issued_documents.self_invoices:r issued_documents.invoices:a issued_documents.credit_notes:a issued_documents.receipts:a issued_documents.orders:a issued_documents.quotes:a issued_documents.proformas:a issued_documents.delivery_notes:a issued_documents.work_reports:a issued_documents.supplier_orders:a issued_documents.self_invoices:a received_documents:r received_documents:a stock:r stock:a receipts:r receipts:a taxes:r taxes:a archive:r archive:a cashbook:r cashbook:a settings:r settings:a situation:r",
          "type": "string"
        },
        {
          "key": "redirect_uri",
          "value": "https://api-v2.fattureincloud.it/oauth/token",
          "type": "string"
        },
        {
          "key": "accessTokenUrl",
          "value": "https://api-v2.fattureincloud.it/oauth/token",
          "type": "string"
        },
        {
          "key": "authUrl",
          "value": "https://api-v2.fattureincloud.it/oauth/authorize",
          "type": "string"
        },
        {
          "key": "grant_type",
          "value": "authorization_code",
          "type": "string"
        }
      ]
    },
    "method": "PUT",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"data\": {\n    \"id\": \"<integer>\",\n    \"entity\": {\n      \"name\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"code\": \"<string>\",\n      \"type\": null,\n      \"first_name\": \"<string>\",\n      \"last_name\": \"<string>\",\n      \"contact_person\": \"<string>\",\n      \"vat_number\": \"<string>\",\n      \"tax_code\": \"<string>\",\n      \"address_street\": \"<string>\",\n      \"address_postal_code\": \"<string>\",\n      \"address_city\": \"<string>\",\n      \"address_province\": \"<string>\",\n      \"address_extra\": \"<string>\",\n      \"country\": \"Italia\",\n      \"country_iso\": \"<string>\",\n      \"email\": \"<string>\",\n      \"certified_email\": \"<string>\",\n      \"phone\": \"<string>\",\n      \"fax\": \"<string>\",\n      \"notes\": \"<string>\",\n      \"default_payment_terms\": \"<integer>\",\n      \"default_vat\": {\n        \"value\": \"<number>\",\n        \"id\": \"<integer>\",\n        \"description\": \"<string>\",\n        \"notes\": \"<string>\",\n        \"e_invoice\": \"<boolean>\",\n        \"ei_type\": \"<string>\",\n        \"ei_description\": \"<string>\",\n        \"editable\": true,\n        \"is_disabled\": \"<boolean>\"\n      },\n      \"default_payment_terms_type\": \"standard\",\n      \"default_payment_method\": {\n        \"name\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"type\": \"standard\",\n        \"is_default\": \"<boolean>\",\n        \"default_payment_account\": {\n          \"name\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"details\": [\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          },\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          }\n        ],\n        \"bank_iban\": \"<string>\",\n        \"bank_name\": \"<string>\",\n        \"bank_beneficiary\": \"<string>\",\n        \"ei_payment_method\": \"<string>\"\n      },\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_swift_code\": \"<string>\",\n      \"shipping_address\": \"<string>\",\n      \"e_invoice\": false,\n      \"ei_code\": \"<string>\",\n      \"has_intent_declaration\": \"<boolean>\",\n      \"intent_declaration_protocol_number\": \"<string>\",\n      \"intent_declaration_protocol_date\": \"<date>\",\n      \"created_at\": \"<string>\",\n      \"updated_at\": \"<string>\"\n    },\n    \"type\": \"invoice\",\n    \"number\": \"<integer>\",\n    \"numeration\": \"<string>\",\n    \"date\": \"<date>\",\n    \"year\": \"<integer>\",\n    \"currency\": {\n      \"id\": \"<string>\",\n      \"symbol\": \"<string>\",\n      \"exchange_rate\": \"<string>\",\n      \"html_symbol\": \"<string>\"\n    },\n    \"language\": {\n      \"code\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    \"subject\": \"<string>\",\n    \"visible_subject\": \"<string>\",\n    \"rc_center\": \"<string>\",\n    \"notes\": \"<string>\",\n    \"rivalsa\": \"<number>\",\n    \"cassa\": \"<number>\",\n    \"amount_cassa\": \"<number>\",\n    \"cassa_taxable\": \"<number>\",\n    \"amount_cassa_taxable\": \"<number>\",\n    \"cassa2\": \"<number>\",\n    \"amount_cassa2\": \"<number>\",\n    \"cassa2_taxable\": \"<number>\",\n    \"amount_cassa2_taxable\": \"<number>\",\n    \"global_cassa_taxable\": \"<number>\",\n    \"amount_global_cassa_taxable\": \"<number>\",\n    \"withholding_tax\": \"<number>\",\n    \"withholding_tax_taxable\": \"<number>\",\n    \"other_withholding_tax\": \"<number>\",\n    \"stamp_duty\": \"<number>\",\n    \"payment_method\": {\n      \"name\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"type\": \"standard\",\n      \"is_default\": \"<boolean>\",\n      \"default_payment_account\": {\n        \"name\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"type\": \"standard\",\n        \"iban\": \"<string>\",\n        \"sia\": \"<string>\",\n        \"cuc\": \"<string>\",\n        \"virtual\": \"<boolean>\"\n      },\n      \"details\": [\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        },\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        }\n      ],\n      \"bank_iban\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"ei_payment_method\": \"<string>\"\n    },\n    \"use_split_payment\": false,\n    \"use_gross_prices\": false,\n    \"e_invoice\": false,\n    \"ei_data\": {\n      \"vat_kind\": null,\n      \"original_document_type\": \"ordine\",\n      \"od_number\": \"<string>\",\n      \"od_date\": \"<date>\",\n      \"cig\": \"<string>\",\n      \"cup\": \"<string>\",\n      \"payment_method\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"invoice_number\": \"<string>\",\n      \"invoice_date\": \"<date>\"\n    },\n    \"ei_cassa_type\": \"<string>\",\n    \"ei_cassa2_type\": \"<string>\",\n    \"ei_withholding_tax_causal\": \"<string>\",\n    \"ei_other_withholding_tax_type\": \"<string>\",\n    \"ei_other_withholding_tax_causal\": \"<string>\",\n    \"items_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      },\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      }\n    ],\n    \"payments_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      },\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      }\n    ],\n    \"template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"delivery_note_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"acc_inv_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"h_margins\": \"<integer>\",\n    \"v_margins\": \"<integer>\",\n    \"show_payments\": \"<boolean>\",\n    \"show_payment_method\": \"<boolean>\",\n    \"show_totals\": \"all\",\n    \"show_paypal_button\": false,\n    \"show_notification_button\": false,\n    \"show_tspay_button\": \"<boolean>\",\n    \"delivery_note\": \"<boolean>\",\n    \"accompanying_invoice\": false,\n    \"dn_number\": \"<integer>\",\n    \"dn_date\": \"<date>\",\n    \"dn_ai_packages_number\": \"<string>\",\n    \"dn_ai_weight\": \"<string>\",\n    \"dn_ai_causal\": \"<string>\",\n    \"dn_ai_destination\": \"<string>\",\n    \"dn_ai_transporter\": \"<string>\",\n    \"dn_ai_notes\": \"<string>\",\n    \"is_marked\": \"<boolean>\",\n    \"amount_net\": \"<number>\",\n    \"amount_vat\": \"<number>\",\n    \"amount_gross\": \"<number>\",\n    \"amount_due_discount\": \"<number>\",\n    \"amount_rivalsa\": \"<number>\",\n    \"amount_rivalsa_taxable\": \"<number>\",\n    \"amount_withholding_tax\": \"<number>\",\n    \"amount_withholding_tax_taxable\": \"<number>\",\n    \"amount_other_withholding_tax\": \"<number>\",\n    \"amount_other_withholding_tax_taxable\": \"<number>\",\n    \"amount_enasarco_taxable\": \"<number>\",\n    \"extra_data\": {\n      \"show_sofort_button\": \"<boolean>\",\n      \"multifatture_sent\": \"<integer>\",\n      \"ts_communication\": \"<boolean>\",\n      \"ts_flag_tipo_spesa\": \"<number>\",\n      \"ts_pagamento_tracciato\": \"<boolean>\",\n      \"ts_tipo_spesa\": \"<string>\",\n      \"ts_opposizione\": \"<boolean>\",\n      \"ts_status\": \"<integer>\",\n      \"ts_file_id\": \"<string>\",\n      \"ts_sent_date\": \"<date>\",\n      \"ts_full_amount\": \"<boolean>\",\n      \"imported_by\": \"<string>\"\n    },\n    \"seen_date\": \"<date>\",\n    \"next_due_date\": \"<date>\",\n    \"url\": \"<string>\",\n    \"dn_url\": \"<string>\",\n    \"ai_url\": \"<string>\",\n    \"attachment_url\": \"<string>\",\n    \"attachment_token\": \"<string>\",\n    \"ei_raw\": {},\n    \"ei_status\": \"missing\",\n    \"created_at\": \"<string>\",\n    \"updated_at\": \"<string>\"\n  },\n  \"options\": {\n    \"fix_payments\": \"<boolean>\",\n    \"create_from\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"transform\": \"<boolean>\",\n    \"keep_copy\": \"<boolean>\",\n    \"join_type\": \"<string>\"\n  }\n}",
      "options": {
        "raw": {
          "headerFamily": "json",
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/c/:company_id/issued_documents/:document_id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "c",
        ":company_id",
        "issued_documents",
        ":document_id"
      ],
      "variable": [
        {
          "key": "company_id",
          "value": "<integer>"
        },
        {
          "key": "document_id",
          "value": "<integer>"
        }
      ]
    },
    "description": "Modifies the specified document."
  },
  "response": [
    {
      "name": "Document edited",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"data\": {\n    \"id\": \"<integer>\",\n    \"entity\": {\n      \"name\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"code\": \"<string>\",\n      \"type\": null,\n      \"first_name\": \"<string>\",\n      \"last_name\": \"<string>\",\n      \"contact_person\": \"<string>\",\n      \"vat_number\": \"<string>\",\n      \"tax_code\": \"<string>\",\n      \"address_street\": \"<string>\",\n      \"address_postal_code\": \"<string>\",\n      \"address_city\": \"<string>\",\n      \"address_province\": \"<string>\",\n      \"address_extra\": \"<string>\",\n      \"country\": \"Italia\",\n      \"country_iso\": \"<string>\",\n      \"email\": \"<string>\",\n      \"certified_email\": \"<string>\",\n      \"phone\": \"<string>\",\n      \"fax\": \"<string>\",\n      \"notes\": \"<string>\",\n      \"default_payment_terms\": \"<integer>\",\n      \"default_vat\": {\n        \"value\": \"<number>\",\n        \"id\": \"<integer>\",\n        \"description\": \"<string>\",\n        \"notes\": \"<string>\",\n        \"e_invoice\": \"<boolean>\",\n        \"ei_type\": \"<string>\",\n        \"ei_description\": \"<string>\",\n        \"editable\": true,\n        \"is_disabled\": \"<boolean>\"\n      },\n      \"default_payment_terms_type\": \"standard\",\n      \"default_payment_method\": {\n        \"name\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"type\": \"standard\",\n        \"is_default\": \"<boolean>\",\n        \"default_payment_account\": {\n          \"name\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"details\": [\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          },\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          }\n        ],\n        \"bank_iban\": \"<string>\",\n        \"bank_name\": \"<string>\",\n        \"bank_beneficiary\": \"<string>\",\n        \"ei_payment_method\": \"<string>\"\n      },\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_swift_code\": \"<string>\",\n      \"shipping_address\": \"<string>\",\n      \"e_invoice\": false,\n      \"ei_code\": \"<string>\",\n      \"has_intent_declaration\": \"<boolean>\",\n      \"intent_declaration_protocol_number\": \"<string>\",\n      \"intent_declaration_protocol_date\": \"<date>\",\n      \"created_at\": \"<string>\",\n      \"updated_at\": \"<string>\"\n    },\n    \"type\": \"invoice\",\n    \"number\": \"<integer>\",\n    \"numeration\": \"<string>\",\n    \"date\": \"<date>\",\n    \"year\": \"<integer>\",\n    \"currency\": {\n      \"id\": \"<string>\",\n      \"symbol\": \"<string>\",\n      \"exchange_rate\": \"<string>\",\n      \"html_symbol\": \"<string>\"\n    },\n    \"language\": {\n      \"code\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    \"subject\": \"<string>\",\n    \"visible_subject\": \"<string>\",\n    \"rc_center\": \"<string>\",\n    \"notes\": \"<string>\",\n    \"rivalsa\": \"<number>\",\n    \"cassa\": \"<number>\",\n    \"amount_cassa\": \"<number>\",\n    \"cassa_taxable\": \"<number>\",\n    \"amount_cassa_taxable\": \"<number>\",\n    \"cassa2\": \"<number>\",\n    \"amount_cassa2\": \"<number>\",\n    \"cassa2_taxable\": \"<number>\",\n    \"amount_cassa2_taxable\": \"<number>\",\n    \"global_cassa_taxable\": \"<number>\",\n    \"amount_global_cassa_taxable\": \"<number>\",\n    \"withholding_tax\": \"<number>\",\n    \"withholding_tax_taxable\": \"<number>\",\n    \"other_withholding_tax\": \"<number>\",\n    \"stamp_duty\": \"<number>\",\n    \"payment_method\": {\n      \"name\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"type\": \"standard\",\n      \"is_default\": \"<boolean>\",\n      \"default_payment_account\": {\n        \"name\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"type\": \"standard\",\n        \"iban\": \"<string>\",\n        \"sia\": \"<string>\",\n        \"cuc\": \"<string>\",\n        \"virtual\": \"<boolean>\"\n      },\n      \"details\": [\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        },\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        }\n      ],\n      \"bank_iban\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"ei_payment_method\": \"<string>\"\n    },\n    \"use_split_payment\": false,\n    \"use_gross_prices\": false,\n    \"e_invoice\": false,\n    \"ei_data\": {\n      \"vat_kind\": null,\n      \"original_document_type\": \"ordine\",\n      \"od_number\": \"<string>\",\n      \"od_date\": \"<date>\",\n      \"cig\": \"<string>\",\n      \"cup\": \"<string>\",\n      \"payment_method\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"invoice_number\": \"<string>\",\n      \"invoice_date\": \"<date>\"\n    },\n    \"ei_cassa_type\": \"<string>\",\n    \"ei_cassa2_type\": \"<string>\",\n    \"ei_withholding_tax_causal\": \"<string>\",\n    \"ei_other_withholding_tax_type\": \"<string>\",\n    \"ei_other_withholding_tax_causal\": \"<string>\",\n    \"items_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      },\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      }\n    ],\n    \"payments_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      },\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      }\n    ],\n    \"template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"delivery_note_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"acc_inv_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"h_margins\": \"<integer>\",\n    \"v_margins\": \"<integer>\",\n    \"show_payments\": \"<boolean>\",\n    \"show_payment_method\": \"<boolean>\",\n    \"show_totals\": \"all\",\n    \"show_paypal_button\": false,\n    \"show_notification_button\": false,\n    \"show_tspay_button\": \"<boolean>\",\n    \"delivery_note\": \"<boolean>\",\n    \"accompanying_invoice\": false,\n    \"dn_number\": \"<integer>\",\n    \"dn_date\": \"<date>\",\n    \"dn_ai_packages_number\": \"<string>\",\n    \"dn_ai_weight\": \"<string>\",\n    \"dn_ai_causal\": \"<string>\",\n    \"dn_ai_destination\": \"<string>\",\n    \"dn_ai_transporter\": \"<string>\",\n    \"dn_ai_notes\": \"<string>\",\n    \"is_marked\": \"<boolean>\",\n    \"amount_net\": \"<number>\",\n    \"amount_vat\": \"<number>\",\n    \"amount_gross\": \"<number>\",\n    \"amount_due_discount\": \"<number>\",\n    \"amount_rivalsa\": \"<number>\",\n    \"amount_rivalsa_taxable\": \"<number>\",\n    \"amount_withholding_tax\": \"<number>\",\n    \"amount_withholding_tax_taxable\": \"<number>\",\n    \"amount_other_withholding_tax\": \"<number>\",\n    \"amount_other_withholding_tax_taxable\": \"<number>\",\n    \"amount_enasarco_taxable\": \"<number>\",\n    \"extra_data\": {\n      \"show_sofort_button\": \"<boolean>\",\n      \"multifatture_sent\": \"<integer>\",\n      \"ts_communication\": \"<boolean>\",\n      \"ts_flag_tipo_spesa\": \"<number>\",\n      \"ts_pagamento_tracciato\": \"<boolean>\",\n      \"ts_tipo_spesa\": \"<string>\",\n      \"ts_opposizione\": \"<boolean>\",\n      \"ts_status\": \"<integer>\",\n      \"ts_file_id\": \"<string>\",\n      \"ts_sent_date\": \"<date>\",\n      \"ts_full_amount\": \"<boolean>\",\n      \"imported_by\": \"<string>\"\n    },\n    \"seen_date\": \"<date>\",\n    \"next_due_date\": \"<date>\",\n    \"url\": \"<string>\",\n    \"dn_url\": \"<string>\",\n    \"ai_url\": \"<string>\",\n    \"attachment_url\": \"<string>\",\n    \"attachment_token\": \"<string>\",\n    \"ei_raw\": {},\n    \"ei_status\": \"missing\",\n    \"created_at\": \"<string>\",\n    \"updated_at\": \"<string>\"\n  },\n  \"options\": {\n    \"fix_payments\": \"<boolean>\",\n    \"create_from\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"transform\": \"<boolean>\",\n    \"keep_copy\": \"<boolean>\",\n    \"join_type\": \"<string>\"\n  }\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/c/:company_id/issued_documents/:document_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "c",
            ":company_id",
            "issued_documents",
            ":document_id"
          ],
          "variable": [
            {
              "key": "company_id"
            },
            {
              "key": "document_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"data\": {\n    \"id\": \"<integer>\",\n    \"entity\": {\n      \"id\": \"<integer>\",\n      \"code\": \"<string>\",\n      \"name\": \"<string>\",\n      \"type\": null,\n      \"first_name\": \"<string>\",\n      \"last_name\": \"<string>\",\n      \"contact_person\": \"<string>\",\n      \"vat_number\": \"<string>\",\n      \"tax_code\": \"<string>\",\n      \"address_street\": \"<string>\",\n      \"address_postal_code\": \"<string>\",\n      \"address_city\": \"<string>\",\n      \"address_province\": \"<string>\",\n      \"address_extra\": \"<string>\",\n      \"country\": \"<string>\",\n      \"country_iso\": \"<string>\",\n      \"email\": \"<string>\",\n      \"certified_email\": \"<string>\",\n      \"phone\": \"<string>\",\n      \"fax\": \"<string>\",\n      \"notes\": \"<string>\",\n      \"default_payment_terms\": \"<integer>\",\n      \"default_vat\": {\n        \"id\": \"<integer>\",\n        \"value\": \"<number>\",\n        \"description\": \"<string>\",\n        \"notes\": \"<string>\",\n        \"e_invoice\": \"<boolean>\",\n        \"ei_type\": \"<string>\",\n        \"ei_description\": \"<string>\",\n        \"editable\": \"<boolean>\",\n        \"is_disabled\": \"<boolean>\"\n      },\n      \"default_payment_terms_type\": \"standard\",\n      \"default_payment_method\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\",\n        \"type\": \"standard\",\n        \"is_default\": \"<boolean>\",\n        \"default_payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"details\": [\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          },\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          }\n        ],\n        \"bank_iban\": \"<string>\",\n        \"bank_name\": \"<string>\",\n        \"bank_beneficiary\": \"<string>\",\n        \"ei_payment_method\": \"<string>\"\n      },\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_swift_code\": \"<string>\",\n      \"shipping_address\": \"<string>\",\n      \"e_invoice\": \"<boolean>\",\n      \"ei_code\": \"<string>\",\n      \"has_intent_declaration\": \"<boolean>\",\n      \"intent_declaration_protocol_number\": \"<string>\",\n      \"intent_declaration_protocol_date\": \"<date>\",\n      \"created_at\": \"<string>\",\n      \"updated_at\": \"<string>\"\n    },\n    \"type\": \"invoice\",\n    \"number\": \"<integer>\",\n    \"numeration\": \"<string>\",\n    \"date\": \"<date>\",\n    \"year\": \"<integer>\",\n    \"currency\": {\n      \"id\": \"<string>\",\n      \"symbol\": \"<string>\",\n      \"exchange_rate\": \"<string>\",\n      \"html_symbol\": \"<string>\"\n    },\n    \"language\": {\n      \"code\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    \"subject\": \"<string>\",\n    \"visible_subject\": \"<string>\",\n    \"rc_center\": \"<string>\",\n    \"notes\": \"<string>\",\n    \"rivalsa\": \"<number>\",\n    \"cassa\": \"<number>\",\n    \"amount_cassa\": \"<number>\",\n    \"cassa_taxable\": \"<number>\",\n    \"amount_cassa_taxable\": \"<number>\",\n    \"cassa2\": \"<number>\",\n    \"amount_cassa2\": \"<number>\",\n    \"cassa2_taxable\": \"<number>\",\n    \"amount_cassa2_taxable\": \"<number>\",\n    \"global_cassa_taxable\": \"<number>\",\n    \"amount_global_cassa_taxable\": \"<number>\",\n    \"withholding_tax\": \"<number>\",\n    \"withholding_tax_taxable\": \"<number>\",\n    \"other_withholding_tax\": \"<number>\",\n    \"stamp_duty\": \"<number>\",\n    \"payment_method\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"standard\",\n      \"is_default\": \"<boolean>\",\n      \"default_payment_account\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\",\n        \"type\": \"standard\",\n        \"iban\": \"<string>\",\n        \"sia\": \"<string>\",\n        \"cuc\": \"<string>\",\n        \"virtual\": \"<boolean>\"\n      },\n      \"details\": [\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        },\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        }\n      ],\n      \"bank_iban\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"ei_payment_method\": \"<string>\"\n    },\n    \"use_split_payment\": \"<boolean>\",\n    \"use_gross_prices\": \"<boolean>\",\n    \"e_invoice\": \"<boolean>\",\n    \"ei_data\": {\n      \"vat_kind\": null,\n      \"original_document_type\": \"ordine\",\n      \"od_number\": \"<string>\",\n      \"od_date\": \"<date>\",\n      \"cig\": \"<string>\",\n      \"cup\": \"<string>\",\n      \"payment_method\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"invoice_number\": \"<string>\",\n      \"invoice_date\": \"<date>\"\n    },\n    \"ei_cassa_type\": \"<string>\",\n    \"ei_cassa2_type\": \"<string>\",\n    \"ei_withholding_tax_causal\": \"<string>\",\n    \"ei_other_withholding_tax_type\": \"<string>\",\n    \"ei_other_withholding_tax_causal\": \"<string>\",\n    \"items_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      },\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      }\n    ],\n    \"payments_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      },\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      }\n    ],\n    \"template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"delivery_note_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"acc_inv_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"h_margins\": \"<integer>\",\n    \"v_margins\": \"<integer>\",\n    \"show_payments\": \"<boolean>\",\n    \"show_payment_method\": \"<boolean>\",\n    \"show_totals\": \"all\",\n    \"show_paypal_button\": \"<boolean>\",\n    \"show_notification_button\": \"<boolean>\",\n    \"show_tspay_button\": \"<boolean>\",\n    \"delivery_note\": \"<boolean>\",\n    \"accompanying_invoice\": \"<boolean>\",\n    \"dn_number\": \"<integer>\",\n    \"dn_date\": \"<date>\",\n    \"dn_ai_packages_number\": \"<string>\",\n    \"dn_ai_weight\": \"<string>\",\n    \"dn_ai_causal\": \"<string>\",\n    \"dn_ai_destination\": \"<string>\",\n    \"dn_ai_transporter\": \"<string>\",\n    \"dn_ai_notes\": \"<string>\",\n    \"is_marked\": \"<boolean>\",\n    \"amount_net\": \"<number>\",\n    \"amount_vat\": \"<number>\",\n    \"amount_gross\": \"<number>\",\n    \"amount_due_discount\": \"<number>\",\n    \"amount_rivalsa\": \"<number>\",\n    \"amount_rivalsa_taxable\": \"<number>\",\n    \"amount_withholding_tax\": \"<number>\",\n    \"amount_withholding_tax_taxable\": \"<number>\",\n    \"amount_other_withholding_tax\": \"<number>\",\n    \"amount_other_withholding_tax_taxable\": \"<number>\",\n    \"amount_enasarco_taxable\": \"<number>\",\n    \"extra_data\": {\n      \"show_sofort_button\": \"<boolean>\",\n      \"multifatture_sent\": \"<integer>\",\n      \"ts_communication\": \"<boolean>\",\n      \"ts_flag_tipo_spesa\": \"<number>\",\n      \"ts_pagamento_tracciato\": \"<boolean>\",\n      \"ts_tipo_spesa\": \"<string>\",\n      \"ts_opposizione\": \"<boolean>\",\n      \"ts_status\": \"<integer>\",\n      \"ts_file_id\": \"<string>\",\n      \"ts_sent_date\": \"<date>\",\n      \"ts_full_amount\": \"<boolean>\",\n      \"imported_by\": \"<string>\"\n    },\n    \"seen_date\": \"<date>\",\n    \"next_due_date\": \"<date>\",\n    \"url\": \"<string>\",\n    \"dn_url\": \"<string>\",\n    \"ai_url\": \"<string>\",\n    \"attachment_url\": \"<string>\",\n    \"attachment_token\": \"<string>\",\n    \"ei_raw\": {},\n    \"ei_status\": \"processing\",\n    \"created_at\": \"<string>\",\n    \"updated_at\": \"<string>\"\n  }\n}"
    },
    {
      "name": "Unauthorized",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"data\": {\n    \"id\": \"<integer>\",\n    \"entity\": {\n      \"name\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"code\": \"<string>\",\n      \"type\": null,\n      \"first_name\": \"<string>\",\n      \"last_name\": \"<string>\",\n      \"contact_person\": \"<string>\",\n      \"vat_number\": \"<string>\",\n      \"tax_code\": \"<string>\",\n      \"address_street\": \"<string>\",\n      \"address_postal_code\": \"<string>\",\n      \"address_city\": \"<string>\",\n      \"address_province\": \"<string>\",\n      \"address_extra\": \"<string>\",\n      \"country\": \"Italia\",\n      \"country_iso\": \"<string>\",\n      \"email\": \"<string>\",\n      \"certified_email\": \"<string>\",\n      \"phone\": \"<string>\",\n      \"fax\": \"<string>\",\n      \"notes\": \"<string>\",\n      \"default_payment_terms\": \"<integer>\",\n      \"default_vat\": {\n        \"value\": \"<number>\",\n        \"id\": \"<integer>\",\n        \"description\": \"<string>\",\n        \"notes\": \"<string>\",\n        \"e_invoice\": \"<boolean>\",\n        \"ei_type\": \"<string>\",\n        \"ei_description\": \"<string>\",\n        \"editable\": true,\n        \"is_disabled\": \"<boolean>\"\n      },\n      \"default_payment_terms_type\": \"standard\",\n      \"default_payment_method\": {\n        \"name\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"type\": \"standard\",\n        \"is_default\": \"<boolean>\",\n        \"default_payment_account\": {\n          \"name\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"details\": [\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          },\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          }\n        ],\n        \"bank_iban\": \"<string>\",\n        \"bank_name\": \"<string>\",\n        \"bank_beneficiary\": \"<string>\",\n        \"ei_payment_method\": \"<string>\"\n      },\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_swift_code\": \"<string>\",\n      \"shipping_address\": \"<string>\",\n      \"e_invoice\": false,\n      \"ei_code\": \"<string>\",\n      \"has_intent_declaration\": \"<boolean>\",\n      \"intent_declaration_protocol_number\": \"<string>\",\n      \"intent_declaration_protocol_date\": \"<date>\",\n      \"created_at\": \"<string>\",\n      \"updated_at\": \"<string>\"\n    },\n    \"type\": \"invoice\",\n    \"number\": \"<integer>\",\n    \"numeration\": \"<string>\",\n    \"date\": \"<date>\",\n    \"year\": \"<integer>\",\n    \"currency\": {\n      \"id\": \"<string>\",\n      \"symbol\": \"<string>\",\n      \"exchange_rate\": \"<string>\",\n      \"html_symbol\": \"<string>\"\n    },\n    \"language\": {\n      \"code\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    \"subject\": \"<string>\",\n    \"visible_subject\": \"<string>\",\n    \"rc_center\": \"<string>\",\n    \"notes\": \"<string>\",\n    \"rivalsa\": \"<number>\",\n    \"cassa\": \"<number>\",\n    \"amount_cassa\": \"<number>\",\n    \"cassa_taxable\": \"<number>\",\n    \"amount_cassa_taxable\": \"<number>\",\n    \"cassa2\": \"<number>\",\n    \"amount_cassa2\": \"<number>\",\n    \"cassa2_taxable\": \"<number>\",\n    \"amount_cassa2_taxable\": \"<number>\",\n    \"global_cassa_taxable\": \"<number>\",\n    \"amount_global_cassa_taxable\": \"<number>\",\n    \"withholding_tax\": \"<number>\",\n    \"withholding_tax_taxable\": \"<number>\",\n    \"other_withholding_tax\": \"<number>\",\n    \"stamp_duty\": \"<number>\",\n    \"payment_method\": {\n      \"name\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"type\": \"standard\",\n      \"is_default\": \"<boolean>\",\n      \"default_payment_account\": {\n        \"name\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"type\": \"standard\",\n        \"iban\": \"<string>\",\n        \"sia\": \"<string>\",\n        \"cuc\": \"<string>\",\n        \"virtual\": \"<boolean>\"\n      },\n      \"details\": [\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        },\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        }\n      ],\n      \"bank_iban\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"ei_payment_method\": \"<string>\"\n    },\n    \"use_split_payment\": false,\n    \"use_gross_prices\": false,\n    \"e_invoice\": false,\n    \"ei_data\": {\n      \"vat_kind\": null,\n      \"original_document_type\": \"ordine\",\n      \"od_number\": \"<string>\",\n      \"od_date\": \"<date>\",\n      \"cig\": \"<string>\",\n      \"cup\": \"<string>\",\n      \"payment_method\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"invoice_number\": \"<string>\",\n      \"invoice_date\": \"<date>\"\n    },\n    \"ei_cassa_type\": \"<string>\",\n    \"ei_cassa2_type\": \"<string>\",\n    \"ei_withholding_tax_causal\": \"<string>\",\n    \"ei_other_withholding_tax_type\": \"<string>\",\n    \"ei_other_withholding_tax_causal\": \"<string>\",\n    \"items_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      },\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      }\n    ],\n    \"payments_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      },\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      }\n    ],\n    \"template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"delivery_note_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"acc_inv_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"h_margins\": \"<integer>\",\n    \"v_margins\": \"<integer>\",\n    \"show_payments\": \"<boolean>\",\n    \"show_payment_method\": \"<boolean>\",\n    \"show_totals\": \"all\",\n    \"show_paypal_button\": false,\n    \"show_notification_button\": false,\n    \"show_tspay_button\": \"<boolean>\",\n    \"delivery_note\": \"<boolean>\",\n    \"accompanying_invoice\": false,\n    \"dn_number\": \"<integer>\",\n    \"dn_date\": \"<date>\",\n    \"dn_ai_packages_number\": \"<string>\",\n    \"dn_ai_weight\": \"<string>\",\n    \"dn_ai_causal\": \"<string>\",\n    \"dn_ai_destination\": \"<string>\",\n    \"dn_ai_transporter\": \"<string>\",\n    \"dn_ai_notes\": \"<string>\",\n    \"is_marked\": \"<boolean>\",\n    \"amount_net\": \"<number>\",\n    \"amount_vat\": \"<number>\",\n    \"amount_gross\": \"<number>\",\n    \"amount_due_discount\": \"<number>\",\n    \"amount_rivalsa\": \"<number>\",\n    \"amount_rivalsa_taxable\": \"<number>\",\n    \"amount_withholding_tax\": \"<number>\",\n    \"amount_withholding_tax_taxable\": \"<number>\",\n    \"amount_other_withholding_tax\": \"<number>\",\n    \"amount_other_withholding_tax_taxable\": \"<number>\",\n    \"amount_enasarco_taxable\": \"<number>\",\n    \"extra_data\": {\n      \"show_sofort_button\": \"<boolean>\",\n      \"multifatture_sent\": \"<integer>\",\n      \"ts_communication\": \"<boolean>\",\n      \"ts_flag_tipo_spesa\": \"<number>\",\n      \"ts_pagamento_tracciato\": \"<boolean>\",\n      \"ts_tipo_spesa\": \"<string>\",\n      \"ts_opposizione\": \"<boolean>\",\n      \"ts_status\": \"<integer>\",\n      \"ts_file_id\": \"<string>\",\n      \"ts_sent_date\": \"<date>\",\n      \"ts_full_amount\": \"<boolean>\",\n      \"imported_by\": \"<string>\"\n    },\n    \"seen_date\": \"<date>\",\n    \"next_due_date\": \"<date>\",\n    \"url\": \"<string>\",\n    \"dn_url\": \"<string>\",\n    \"ai_url\": \"<string>\",\n    \"attachment_url\": \"<string>\",\n    \"attachment_token\": \"<string>\",\n    \"ei_raw\": {},\n    \"ei_status\": \"missing\",\n    \"created_at\": \"<string>\",\n    \"updated_at\": \"<string>\"\n  },\n  \"options\": {\n    \"fix_payments\": \"<boolean>\",\n    \"create_from\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"transform\": \"<boolean>\",\n    \"keep_copy\": \"<boolean>\",\n    \"join_type\": \"<string>\"\n  }\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/c/:company_id/issued_documents/:document_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "c",
            ":company_id",
            "issued_documents",
            ":document_id"
          ],
          "variable": [
            {
              "key": "company_id"
            },
            {
              "key": "document_id"
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Not Found",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"data\": {\n    \"id\": \"<integer>\",\n    \"entity\": {\n      \"name\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"code\": \"<string>\",\n      \"type\": null,\n      \"first_name\": \"<string>\",\n      \"last_name\": \"<string>\",\n      \"contact_person\": \"<string>\",\n      \"vat_number\": \"<string>\",\n      \"tax_code\": \"<string>\",\n      \"address_street\": \"<string>\",\n      \"address_postal_code\": \"<string>\",\n      \"address_city\": \"<string>\",\n      \"address_province\": \"<string>\",\n      \"address_extra\": \"<string>\",\n      \"country\": \"Italia\",\n      \"country_iso\": \"<string>\",\n      \"email\": \"<string>\",\n      \"certified_email\": \"<string>\",\n      \"phone\": \"<string>\",\n      \"fax\": \"<string>\",\n      \"notes\": \"<string>\",\n      \"default_payment_terms\": \"<integer>\",\n      \"default_vat\": {\n        \"value\": \"<number>\",\n        \"id\": \"<integer>\",\n        \"description\": \"<string>\",\n        \"notes\": \"<string>\",\n        \"e_invoice\": \"<boolean>\",\n        \"ei_type\": \"<string>\",\n        \"ei_description\": \"<string>\",\n        \"editable\": true,\n        \"is_disabled\": \"<boolean>\"\n      },\n      \"default_payment_terms_type\": \"standard\",\n      \"default_payment_method\": {\n        \"name\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"type\": \"standard\",\n        \"is_default\": \"<boolean>\",\n        \"default_payment_account\": {\n          \"name\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"details\": [\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          },\n          {\n            \"title\": \"<string>\",\n            \"description\": \"<string>\"\n          }\n        ],\n        \"bank_iban\": \"<string>\",\n        \"bank_name\": \"<string>\",\n        \"bank_beneficiary\": \"<string>\",\n        \"ei_payment_method\": \"<string>\"\n      },\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_swift_code\": \"<string>\",\n      \"shipping_address\": \"<string>\",\n      \"e_invoice\": false,\n      \"ei_code\": \"<string>\",\n      \"has_intent_declaration\": \"<boolean>\",\n      \"intent_declaration_protocol_number\": \"<string>\",\n      \"intent_declaration_protocol_date\": \"<date>\",\n      \"created_at\": \"<string>\",\n      \"updated_at\": \"<string>\"\n    },\n    \"type\": \"invoice\",\n    \"number\": \"<integer>\",\n    \"numeration\": \"<string>\",\n    \"date\": \"<date>\",\n    \"year\": \"<integer>\",\n    \"currency\": {\n      \"id\": \"<string>\",\n      \"symbol\": \"<string>\",\n      \"exchange_rate\": \"<string>\",\n      \"html_symbol\": \"<string>\"\n    },\n    \"language\": {\n      \"code\": \"<string>\",\n      \"name\": \"<string>\"\n    },\n    \"subject\": \"<string>\",\n    \"visible_subject\": \"<string>\",\n    \"rc_center\": \"<string>\",\n    \"notes\": \"<string>\",\n    \"rivalsa\": \"<number>\",\n    \"cassa\": \"<number>\",\n    \"amount_cassa\": \"<number>\",\n    \"cassa_taxable\": \"<number>\",\n    \"amount_cassa_taxable\": \"<number>\",\n    \"cassa2\": \"<number>\",\n    \"amount_cassa2\": \"<number>\",\n    \"cassa2_taxable\": \"<number>\",\n    \"amount_cassa2_taxable\": \"<number>\",\n    \"global_cassa_taxable\": \"<number>\",\n    \"amount_global_cassa_taxable\": \"<number>\",\n    \"withholding_tax\": \"<number>\",\n    \"withholding_tax_taxable\": \"<number>\",\n    \"other_withholding_tax\": \"<number>\",\n    \"stamp_duty\": \"<number>\",\n    \"payment_method\": {\n      \"name\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"type\": \"standard\",\n      \"is_default\": \"<boolean>\",\n      \"default_payment_account\": {\n        \"name\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"type\": \"standard\",\n        \"iban\": \"<string>\",\n        \"sia\": \"<string>\",\n        \"cuc\": \"<string>\",\n        \"virtual\": \"<boolean>\"\n      },\n      \"details\": [\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        },\n        {\n          \"title\": \"<string>\",\n          \"description\": \"<string>\"\n        }\n      ],\n      \"bank_iban\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"ei_payment_method\": \"<string>\"\n    },\n    \"use_split_payment\": false,\n    \"use_gross_prices\": false,\n    \"e_invoice\": false,\n    \"ei_data\": {\n      \"vat_kind\": null,\n      \"original_document_type\": \"ordine\",\n      \"od_number\": \"<string>\",\n      \"od_date\": \"<date>\",\n      \"cig\": \"<string>\",\n      \"cup\": \"<string>\",\n      \"payment_method\": \"<string>\",\n      \"bank_name\": \"<string>\",\n      \"bank_iban\": \"<string>\",\n      \"bank_beneficiary\": \"<string>\",\n      \"invoice_number\": \"<string>\",\n      \"invoice_date\": \"<date>\"\n    },\n    \"ei_cassa_type\": \"<string>\",\n    \"ei_cassa2_type\": \"<string>\",\n    \"ei_withholding_tax_causal\": \"<string>\",\n    \"ei_other_withholding_tax_type\": \"<string>\",\n    \"ei_other_withholding_tax_causal\": \"<string>\",\n    \"items_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      },\n      {\n        \"id\": \"<integer>\",\n        \"product_id\": \"<integer>\",\n        \"code\": \"<string>\",\n        \"name\": \"<string>\",\n        \"category\": \"<string>\",\n        \"description\": \"<string>\",\n        \"qty\": \"<number>\",\n        \"measure\": \"<string>\",\n        \"net_price\": \"<number>\",\n        \"gross_price\": \"<number>\",\n        \"vat\": {\n          \"id\": \"<integer>\",\n          \"value\": \"<number>\",\n          \"description\": \"<string>\",\n          \"notes\": \"<string>\",\n          \"e_invoice\": \"<boolean>\",\n          \"ei_type\": \"<string>\",\n          \"ei_description\": \"<string>\",\n          \"editable\": \"<boolean>\",\n          \"is_disabled\": \"<boolean>\"\n        },\n        \"not_taxable\": \"<boolean>\",\n        \"apply_withholding_taxes\": \"<boolean>\",\n        \"discount\": \"<number>\",\n        \"discount_highlight\": \"<boolean>\",\n        \"in_dn\": \"<boolean>\",\n        \"stock\": \"<boolean>\",\n        \"ei_raw\": {}\n      }\n    ],\n    \"payments_list\": [\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      },\n      {\n        \"id\": \"<integer>\",\n        \"due_date\": \"<date>\",\n        \"amount\": \"<number>\",\n        \"status\": \"not_paid\",\n        \"payment_account\": {\n          \"id\": \"<integer>\",\n          \"name\": \"<string>\",\n          \"type\": \"standard\",\n          \"iban\": \"<string>\",\n          \"sia\": \"<string>\",\n          \"cuc\": \"<string>\",\n          \"virtual\": \"<boolean>\"\n        },\n        \"paid_date\": \"<date>\",\n        \"ei_raw\": {},\n        \"payment_terms\": {\n          \"days\": \"<integer>\",\n          \"type\": \"standard\"\n        }\n      }\n    ],\n    \"template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"delivery_note_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"acc_inv_template\": {\n      \"id\": \"<integer>\",\n      \"name\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    \"h_margins\": \"<integer>\",\n    \"v_margins\": \"<integer>\",\n    \"show_payments\": \"<boolean>\",\n    \"show_payment_method\": \"<boolean>\",\n    \"show_totals\": \"all\",\n    \"show_paypal_button\": false,\n    \"show_notification_button\": false,\n    \"show_tspay_button\": \"<boolean>\",\n    \"delivery_note\": \"<boolean>\",\n    \"accompanying_invoice\": false,\n    \"dn_number\": \"<integer>\",\n    \"dn_date\": \"<date>\",\n    \"dn_ai_packages_number\": \"<string>\",\n    \"dn_ai_weight\": \"<string>\",\n    \"dn_ai_causal\": \"<string>\",\n    \"dn_ai_destination\": \"<string>\",\n    \"dn_ai_transporter\": \"<string>\",\n    \"dn_ai_notes\": \"<string>\",\n    \"is_marked\": \"<boolean>\",\n    \"amount_net\": \"<number>\",\n    \"amount_vat\": \"<number>\",\n    \"amount_gross\": \"<number>\",\n    \"amount_due_discount\": \"<number>\",\n    \"amount_rivalsa\": \"<number>\",\n    \"amount_rivalsa_taxable\": \"<number>\",\n    \"amount_withholding_tax\": \"<number>\",\n    \"amount_withholding_tax_taxable\": \"<number>\",\n    \"amount_other_withholding_tax\": \"<number>\",\n    \"amount_other_withholding_tax_taxable\": \"<number>\",\n    \"amount_enasarco_taxable\": \"<number>\",\n    \"extra_data\": {\n      \"show_sofort_button\": \"<boolean>\",\n      \"multifatture_sent\": \"<integer>\",\n      \"ts_communication\": \"<boolean>\",\n      \"ts_flag_tipo_spesa\": \"<number>\",\n      \"ts_pagamento_tracciato\": \"<boolean>\",\n      \"ts_tipo_spesa\": \"<string>\",\n      \"ts_opposizione\": \"<boolean>\",\n      \"ts_status\": \"<integer>\",\n      \"ts_file_id\": \"<string>\",\n      \"ts_sent_date\": \"<date>\",\n      \"ts_full_amount\": \"<boolean>\",\n      \"imported_by\": \"<string>\"\n    },\n    \"seen_date\": \"<date>\",\n    \"next_due_date\": \"<date>\",\n    \"url\": \"<string>\",\n    \"dn_url\": \"<string>\",\n    \"ai_url\": \"<string>\",\n    \"attachment_url\": \"<string>\",\n    \"attachment_token\": \"<string>\",\n    \"ei_raw\": {},\n    \"ei_status\": \"missing\",\n    \"created_at\": \"<string>\",\n    \"updated_at\": \"<string>\"\n  },\n  \"options\": {\n    \"fix_payments\": \"<boolean>\",\n    \"create_from\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"transform\": \"<boolean>\",\n    \"keep_copy\": \"<boolean>\",\n    \"join_type\": \"<string>\"\n  }\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/c/:company_id/issued_documents/:document_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "c",
            ":company_id",
            "issued_documents",
            ":document_id"
          ],
          "variable": [
            {
              "key": "company_id"
            },
            {
              "key": "document_id"
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}