Chilkat Online Tools

lianja / easybill REST API / Update 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.

// {
//   "address": {
//     "salutation": "<integer>",
//     "personal": "<boolean>",
//     "title": "<string>",
//     "first_name": "<string>",
//     "last_name": "<string>",
//     "suffix_1": "<string>",
//     "suffix_2": "<string>",
//     "company_name": "<string>",
//     "street": "<string>",
//     "zip_code": "<string>",
//     "city": "<string>",
//     "state": "<string>",
//     "country": "<string>"
//   },
//   "attachment_ids": [
//     "<integer>",
//     "<integer>"
//   ],
//   "label_address": {
//     "salutation": "<integer>",
//     "personal": "<boolean>",
//     "title": "<string>",
//     "first_name": "<string>",
//     "last_name": "<string>",
//     "suffix_1": "<string>",
//     "suffix_2": "<string>",
//     "company_name": "<string>",
//     "street": "<string>",
//     "zip_code": "<string>",
//     "city": "<string>",
//     "state": "<string>",
//     "country": "<string>"
//   },
//   "amount": "<integer>",
//   "amount_net": "<integer>",
//   "bank_debit_form": null,
//   "billing_country": "<string>",
//   "calc_vat_from": 0,
//   "cancel_id": "<long>",
//   "cash_allowance": null,
//   "cash_allowance_days": null,
//   "cash_allowance_text": null,
//   "contact_id": null,
//   "contact_label": "",
//   "contact_text": "",
//   "created_at": "<dateTime>",
//   "currency": "EUR",
//   "customer_id": null,
//   "customer_snapshot": {
//     "last_name": "<string>",
//     "company_name": "<string>",
//     "acquire_options": 2,
//     "additional_groups_ids": [
//       "<integer>",
//       "<integer>"
//     ],
//     "bank_account": "<string>",
//     "bank_account_owner": "<string>",
//     "bank_bic": "<string>",
//     "bank_code": "<string>",
//     "bank_iban": "<string>",
//     "bank_name": "<string>",
//     "birth_date": "<date>",
//     "cash_allowance": "<float>",
//     "cash_allowance_days": 7,
//     "cash_discount": "<float>",
//     "cash_discount_type": "AMOUNT",
//     "city": "<string>",
//     "state": "<string>",
//     "country": "<string>",
//     "created_at": "<date>",
//     "updated_at": "<string>",
//     "delivery_title": "<string>",
//     "delivery_city": "<string>",
//     "delivery_state": "<string>",
//     "delivery_company_name": "<string>",
//     "delivery_country": "<string>",
//     "delivery_first_name": "<string>",
//     "delivery_last_name": "<string>",
//     "delivery_personal": "<boolean>",
//     "delivery_salutation": 0,
//     "delivery_street": "<string>",
//     "delivery_suffix_1": "<string>",
//     "delivery_suffix_2": "<string>",
//     "delivery_zip_code": "<string>",
//     "display_name": "<string>",
//     "emails": [
//       "<string>",
//       "<string>"
//     ],
//     "fax": "<string>",
//     "first_name": "<string>",
//     "grace_period": "<integer>",
//     "due_in_days": "<integer>",
//     "group_id": "<integer>",
//     "id": "<long>",
//     "info_1": "<string>",
//     "info_2": "<string>",
//     "internet": "<string>",
//     "login_id": "<long>",
//     "mobile": "<string>",
//     "note": "<string>",
//     "number": "<string>",
//     "payment_options": 1,
//     "personal": false,
//     "phone_1": "<string>",
//     "phone_2": "<string>",
//     "postbox": "<string>",
//     "postbox_city": "<string>",
//     "postbox_state": "<string>",
//     "postbox_country": "<string>",
//     "postbox_zip_code": "<string>",
//     "sale_price_level": "SALEPRICE6",
//     "salutation": 0,
//     "sepa_agreement": "BASIC",
//     "sepa_agreement_date": "<date>",
//     "sepa_mandate_reference": "<string>",
//     "since_date": "<date>",
//     "street": "<string>",
//     "suffix_1": "<string>",
//     "suffix_2": "<string>",
//     "tax_number": "<string>",
//     "court": "<string>",
//     "court_registry_number": "<string>",
//     "tax_options": "nStbIm",
//     "title": "<string>",
//     "archived": "<boolean>",
//     "vat_identifier": "<string>",
//     "zip_code": "<string>",
//     "document_pdf_type": "default",
//     "buyer_reference": "<string>",
//     "foreign_supplier_number": "<string>"
//   },
//   "discount": null,
//   "discount_type": null,
//   "document_date": "<date>",
//   "due_date": "<date>",
//   "edited_at": "<dateTime>",
//   "external_id": null,
//   "replica_url": null,
//   "grace_period": "<integer>",
//   "due_in_days": "<integer>",
//   "id": "<long>",
//   "is_acceptable_on_public_domain": false,
//   "is_archive": false,
//   "is_draft": "<boolean>",
//   "is_replica": false,
//   "is_oss": false,
//   "item_notes": [
//     "<string>",
//     "<string>"
//   ],
//   "items": [
//     {
//       "number": null,
//       "description": null,
//       "document_note": "<string>",
//       "quantity": 1,
//       "quantity_str": "<string>",
//       "unit": null,
//       "type": "POSITION",
//       "position": "<integer>",
//       "single_price_net": null,
//       "single_price_gross": "<float>",
//       "vat_percent": 0,
//       "discount": null,
//       "discount_type": null,
//       "position_id": null,
//       "total_price_net": "<float>",
//       "total_price_gross": "<float>",
//       "total_vat": "<float>",
//       "serial_number_id": "<string>",
//       "serial_number": "<string>",
//       "booking_account": null,
//       "export_cost_1": null,
//       "export_cost_2": null,
//       "cost_price_net": null,
//       "cost_price_total": "<float>",
//       "cost_price_charge": "<float>",
//       "cost_price_charge_type": "PERCENT",
//       "itemType": "UNDEFINED",
//       "id": "<long>"
//     },
//     {
//       "number": null,
//       "description": null,
//       "document_note": "<string>",
//       "quantity": 1,
//       "quantity_str": "<string>",
//       "unit": null,
//       "type": "POSITION",
//       "position": "<integer>",
//       "single_price_net": null,
//       "single_price_gross": "<float>",
//       "vat_percent": 0,
//       "discount": null,
//       "discount_type": null,
//       "position_id": null,
//       "total_price_net": "<float>",
//       "total_price_gross": "<float>",
//       "total_vat": "<float>",
//       "serial_number_id": "<string>",
//       "serial_number": "<string>",
//       "booking_account": null,
//       "export_cost_1": null,
//       "export_cost_2": null,
//       "cost_price_net": null,
//       "cost_price_total": "<float>",
//       "cost_price_charge": "<float>",
//       "cost_price_charge_type": "PERCENT",
//       "itemType": "UNDEFINED",
//       "id": "<long>"
//     }
//   ],
//   "last_postbox_id": "<long>",
//   "login_id": "<long>",
//   "number": null,
//   "order_number": "",
//   "buyer_reference": "",
//   "paid_amount": "<integer>",
//   "paid_at": "<date>",
//   "pdf_pages": "<integer>",
//   "pdf_template": "<string>",
//   "project_id": null,
//   "recurring_options": {
//     "next_date": "<date>",
//     "frequency": "MONTHLY",
//     "frequency_special": null,
//     "interval": 1,
//     "end_date_or_count": null,
//     "status": "WAITING",
//     "as_draft": false,
//     "is_notify": false,
//     "send_as": null,
//     "is_sign": false,
//     "is_paid": false,
//     "paid_date_option": "created_date",
//     "is_sepa": false,
//     "sepa_local_instrument": null,
//     "sepa_sequence_type": null,
//     "sepa_reference": null,
//     "sepa_remittance_information": null,
//     "target_type": "INVOICE"
//   },
//   "ref_id": null,
//   "root_id": null,
//   "service_date": {
//     "type": "SERVICE",
//     "date": "<date>",
//     "date_from": "<date>",
//     "date_to": "<date>",
//     "text": null
//   },
//   "shipping_country": null,
//   "status": null,
//   "text": "<string>",
//   "text_prefix": "<string>",
//   "text_tax": null,
//   "title": null,
//   "type": "INVOICE",
//   "use_shipping_address": false,
//   "vat_country": null,
//   "vat_id": "",
//   "fulfillment_country": null,
//   "vat_option": null,
//   "file_format_config": [
//     {
//       "type": "xrechnung2_2_xml"
//     },
//     {
//       "type": "xrechnung3_0_xml"
//     }
//   ]
// }

loJson = createobject("CkJsonObject")
loJson.UpdateString("address.salutation","<integer>")
loJson.UpdateString("address.personal","<boolean>")
loJson.UpdateString("address.title","<string>")
loJson.UpdateString("address.first_name","<string>")
loJson.UpdateString("address.last_name","<string>")
loJson.UpdateString("address.suffix_1","<string>")
loJson.UpdateString("address.suffix_2","<string>")
loJson.UpdateString("address.company_name","<string>")
loJson.UpdateString("address.street","<string>")
loJson.UpdateString("address.zip_code","<string>")
loJson.UpdateString("address.city","<string>")
loJson.UpdateString("address.state","<string>")
loJson.UpdateString("address.country","<string>")
loJson.UpdateString("attachment_ids[0]","<integer>")
loJson.UpdateString("attachment_ids[1]","<integer>")
loJson.UpdateString("label_address.salutation","<integer>")
loJson.UpdateString("label_address.personal","<boolean>")
loJson.UpdateString("label_address.title","<string>")
loJson.UpdateString("label_address.first_name","<string>")
loJson.UpdateString("label_address.last_name","<string>")
loJson.UpdateString("label_address.suffix_1","<string>")
loJson.UpdateString("label_address.suffix_2","<string>")
loJson.UpdateString("label_address.company_name","<string>")
loJson.UpdateString("label_address.street","<string>")
loJson.UpdateString("label_address.zip_code","<string>")
loJson.UpdateString("label_address.city","<string>")
loJson.UpdateString("label_address.state","<string>")
loJson.UpdateString("label_address.country","<string>")
loJson.UpdateString("amount","<integer>")
loJson.UpdateString("amount_net","<integer>")
loJson.UpdateNull("bank_debit_form")
loJson.UpdateString("billing_country","<string>")
loJson.UpdateInt("calc_vat_from",0)
loJson.UpdateString("cancel_id","<long>")
loJson.UpdateNull("cash_allowance")
loJson.UpdateNull("cash_allowance_days")
loJson.UpdateNull("cash_allowance_text")
loJson.UpdateNull("contact_id")
loJson.UpdateString("contact_label","")
loJson.UpdateString("contact_text","")
loJson.UpdateString("created_at","<dateTime>")
loJson.UpdateString("currency","EUR")
loJson.UpdateNull("customer_id")
loJson.UpdateString("customer_snapshot.last_name","<string>")
loJson.UpdateString("customer_snapshot.company_name","<string>")
loJson.UpdateInt("customer_snapshot.acquire_options",2)
loJson.UpdateString("customer_snapshot.additional_groups_ids[0]","<integer>")
loJson.UpdateString("customer_snapshot.additional_groups_ids[1]","<integer>")
loJson.UpdateString("customer_snapshot.bank_account","<string>")
loJson.UpdateString("customer_snapshot.bank_account_owner","<string>")
loJson.UpdateString("customer_snapshot.bank_bic","<string>")
loJson.UpdateString("customer_snapshot.bank_code","<string>")
loJson.UpdateString("customer_snapshot.bank_iban","<string>")
loJson.UpdateString("customer_snapshot.bank_name","<string>")
loJson.UpdateString("customer_snapshot.birth_date","<date>")
loJson.UpdateString("customer_snapshot.cash_allowance","<float>")
loJson.UpdateInt("customer_snapshot.cash_allowance_days",7)
loJson.UpdateString("customer_snapshot.cash_discount","<float>")
loJson.UpdateString("customer_snapshot.cash_discount_type","AMOUNT")
loJson.UpdateString("customer_snapshot.city","<string>")
loJson.UpdateString("customer_snapshot.state","<string>")
loJson.UpdateString("customer_snapshot.country","<string>")
loJson.UpdateString("customer_snapshot.created_at","<date>")
loJson.UpdateString("customer_snapshot.updated_at","<string>")
loJson.UpdateString("customer_snapshot.delivery_title","<string>")
loJson.UpdateString("customer_snapshot.delivery_city","<string>")
loJson.UpdateString("customer_snapshot.delivery_state","<string>")
loJson.UpdateString("customer_snapshot.delivery_company_name","<string>")
loJson.UpdateString("customer_snapshot.delivery_country","<string>")
loJson.UpdateString("customer_snapshot.delivery_first_name","<string>")
loJson.UpdateString("customer_snapshot.delivery_last_name","<string>")
loJson.UpdateString("customer_snapshot.delivery_personal","<boolean>")
loJson.UpdateInt("customer_snapshot.delivery_salutation",0)
loJson.UpdateString("customer_snapshot.delivery_street","<string>")
loJson.UpdateString("customer_snapshot.delivery_suffix_1","<string>")
loJson.UpdateString("customer_snapshot.delivery_suffix_2","<string>")
loJson.UpdateString("customer_snapshot.delivery_zip_code","<string>")
loJson.UpdateString("customer_snapshot.display_name","<string>")
loJson.UpdateString("customer_snapshot.emails[0]","<string>")
loJson.UpdateString("customer_snapshot.emails[1]","<string>")
loJson.UpdateString("customer_snapshot.fax","<string>")
loJson.UpdateString("customer_snapshot.first_name","<string>")
loJson.UpdateString("customer_snapshot.grace_period","<integer>")
loJson.UpdateString("customer_snapshot.due_in_days","<integer>")
loJson.UpdateString("customer_snapshot.group_id","<integer>")
loJson.UpdateString("customer_snapshot.id","<long>")
loJson.UpdateString("customer_snapshot.info_1","<string>")
loJson.UpdateString("customer_snapshot.info_2","<string>")
loJson.UpdateString("customer_snapshot.internet","<string>")
loJson.UpdateString("customer_snapshot.login_id","<long>")
loJson.UpdateString("customer_snapshot.mobile","<string>")
loJson.UpdateString("customer_snapshot.note","<string>")
loJson.UpdateString("customer_snapshot.number","<string>")
loJson.UpdateInt("customer_snapshot.payment_options",1)
loJson.UpdateBool("customer_snapshot.personal",.F.)
loJson.UpdateString("customer_snapshot.phone_1","<string>")
loJson.UpdateString("customer_snapshot.phone_2","<string>")
loJson.UpdateString("customer_snapshot.postbox","<string>")
loJson.UpdateString("customer_snapshot.postbox_city","<string>")
loJson.UpdateString("customer_snapshot.postbox_state","<string>")
loJson.UpdateString("customer_snapshot.postbox_country","<string>")
loJson.UpdateString("customer_snapshot.postbox_zip_code","<string>")
loJson.UpdateString("customer_snapshot.sale_price_level","SALEPRICE6")
loJson.UpdateInt("customer_snapshot.salutation",0)
loJson.UpdateString("customer_snapshot.sepa_agreement","BASIC")
loJson.UpdateString("customer_snapshot.sepa_agreement_date","<date>")
loJson.UpdateString("customer_snapshot.sepa_mandate_reference","<string>")
loJson.UpdateString("customer_snapshot.since_date","<date>")
loJson.UpdateString("customer_snapshot.street","<string>")
loJson.UpdateString("customer_snapshot.suffix_1","<string>")
loJson.UpdateString("customer_snapshot.suffix_2","<string>")
loJson.UpdateString("customer_snapshot.tax_number","<string>")
loJson.UpdateString("customer_snapshot.court","<string>")
loJson.UpdateString("customer_snapshot.court_registry_number","<string>")
loJson.UpdateString("customer_snapshot.tax_options","nStbIm")
loJson.UpdateString("customer_snapshot.title","<string>")
loJson.UpdateString("customer_snapshot.archived","<boolean>")
loJson.UpdateString("customer_snapshot.vat_identifier","<string>")
loJson.UpdateString("customer_snapshot.zip_code","<string>")
loJson.UpdateString("customer_snapshot.document_pdf_type","default")
loJson.UpdateString("customer_snapshot.buyer_reference","<string>")
loJson.UpdateString("customer_snapshot.foreign_supplier_number","<string>")
loJson.UpdateNull("discount")
loJson.UpdateNull("discount_type")
loJson.UpdateString("document_date","<date>")
loJson.UpdateString("due_date","<date>")
loJson.UpdateString("edited_at","<dateTime>")
loJson.UpdateNull("external_id")
loJson.UpdateNull("replica_url")
loJson.UpdateString("grace_period","<integer>")
loJson.UpdateString("due_in_days","<integer>")
loJson.UpdateString("id","<long>")
loJson.UpdateBool("is_acceptable_on_public_domain",.F.)
loJson.UpdateBool("is_archive",.F.)
loJson.UpdateString("is_draft","<boolean>")
loJson.UpdateBool("is_replica",.F.)
loJson.UpdateBool("is_oss",.F.)
loJson.UpdateString("item_notes[0]","<string>")
loJson.UpdateString("item_notes[1]","<string>")
loJson.UpdateNull("items[0].number")
loJson.UpdateNull("items[0].description")
loJson.UpdateString("items[0].document_note","<string>")
loJson.UpdateInt("items[0].quantity",1)
loJson.UpdateString("items[0].quantity_str","<string>")
loJson.UpdateNull("items[0].unit")
loJson.UpdateString("items[0].type","POSITION")
loJson.UpdateString("items[0].position","<integer>")
loJson.UpdateNull("items[0].single_price_net")
loJson.UpdateString("items[0].single_price_gross","<float>")
loJson.UpdateInt("items[0].vat_percent",0)
loJson.UpdateNull("items[0].discount")
loJson.UpdateNull("items[0].discount_type")
loJson.UpdateNull("items[0].position_id")
loJson.UpdateString("items[0].total_price_net","<float>")
loJson.UpdateString("items[0].total_price_gross","<float>")
loJson.UpdateString("items[0].total_vat","<float>")
loJson.UpdateString("items[0].serial_number_id","<string>")
loJson.UpdateString("items[0].serial_number","<string>")
loJson.UpdateNull("items[0].booking_account")
loJson.UpdateNull("items[0].export_cost_1")
loJson.UpdateNull("items[0].export_cost_2")
loJson.UpdateNull("items[0].cost_price_net")
loJson.UpdateString("items[0].cost_price_total","<float>")
loJson.UpdateString("items[0].cost_price_charge","<float>")
loJson.UpdateString("items[0].cost_price_charge_type","PERCENT")
loJson.UpdateString("items[0].itemType","UNDEFINED")
loJson.UpdateString("items[0].id","<long>")
loJson.UpdateNull("items[1].number")
loJson.UpdateNull("items[1].description")
loJson.UpdateString("items[1].document_note","<string>")
loJson.UpdateInt("items[1].quantity",1)
loJson.UpdateString("items[1].quantity_str","<string>")
loJson.UpdateNull("items[1].unit")
loJson.UpdateString("items[1].type","POSITION")
loJson.UpdateString("items[1].position","<integer>")
loJson.UpdateNull("items[1].single_price_net")
loJson.UpdateString("items[1].single_price_gross","<float>")
loJson.UpdateInt("items[1].vat_percent",0)
loJson.UpdateNull("items[1].discount")
loJson.UpdateNull("items[1].discount_type")
loJson.UpdateNull("items[1].position_id")
loJson.UpdateString("items[1].total_price_net","<float>")
loJson.UpdateString("items[1].total_price_gross","<float>")
loJson.UpdateString("items[1].total_vat","<float>")
loJson.UpdateString("items[1].serial_number_id","<string>")
loJson.UpdateString("items[1].serial_number","<string>")
loJson.UpdateNull("items[1].booking_account")
loJson.UpdateNull("items[1].export_cost_1")
loJson.UpdateNull("items[1].export_cost_2")
loJson.UpdateNull("items[1].cost_price_net")
loJson.UpdateString("items[1].cost_price_total","<float>")
loJson.UpdateString("items[1].cost_price_charge","<float>")
loJson.UpdateString("items[1].cost_price_charge_type","PERCENT")
loJson.UpdateString("items[1].itemType","UNDEFINED")
loJson.UpdateString("items[1].id","<long>")
loJson.UpdateString("last_postbox_id","<long>")
loJson.UpdateString("login_id","<long>")
loJson.UpdateNull("number")
loJson.UpdateString("order_number","")
loJson.UpdateString("buyer_reference","")
loJson.UpdateString("paid_amount","<integer>")
loJson.UpdateString("paid_at","<date>")
loJson.UpdateString("pdf_pages","<integer>")
loJson.UpdateString("pdf_template","<string>")
loJson.UpdateNull("project_id")
loJson.UpdateString("recurring_options.next_date","<date>")
loJson.UpdateString("recurring_options.frequency","MONTHLY")
loJson.UpdateNull("recurring_options.frequency_special")
loJson.UpdateInt("recurring_options.interval",1)
loJson.UpdateNull("recurring_options.end_date_or_count")
loJson.UpdateString("recurring_options.status","WAITING")
loJson.UpdateBool("recurring_options.as_draft",.F.)
loJson.UpdateBool("recurring_options.is_notify",.F.)
loJson.UpdateNull("recurring_options.send_as")
loJson.UpdateBool("recurring_options.is_sign",.F.)
loJson.UpdateBool("recurring_options.is_paid",.F.)
loJson.UpdateString("recurring_options.paid_date_option","created_date")
loJson.UpdateBool("recurring_options.is_sepa",.F.)
loJson.UpdateNull("recurring_options.sepa_local_instrument")
loJson.UpdateNull("recurring_options.sepa_sequence_type")
loJson.UpdateNull("recurring_options.sepa_reference")
loJson.UpdateNull("recurring_options.sepa_remittance_information")
loJson.UpdateString("recurring_options.target_type","INVOICE")
loJson.UpdateNull("ref_id")
loJson.UpdateNull("root_id")
loJson.UpdateString("service_date.type","SERVICE")
loJson.UpdateString("service_date.date","<date>")
loJson.UpdateString("service_date.date_from","<date>")
loJson.UpdateString("service_date.date_to","<date>")
loJson.UpdateNull("service_date.text")
loJson.UpdateNull("shipping_country")
loJson.UpdateNull("status")
loJson.UpdateString("text","<string>")
loJson.UpdateString("text_prefix","<string>")
loJson.UpdateNull("text_tax")
loJson.UpdateNull("title")
loJson.UpdateString("type","INVOICE")
loJson.UpdateBool("use_shipping_address",.F.)
loJson.UpdateNull("vat_country")
loJson.UpdateString("vat_id","")
loJson.UpdateNull("fulfillment_country")
loJson.UpdateNull("vat_option")
loJson.UpdateString("file_format_config[0].type","xrechnung2_2_xml")
loJson.UpdateString("file_format_config[1].type","xrechnung3_0_xml")

loHttp.SetRequestHeader("Content-Type","application/json")
loHttp.SetRequestHeader("Authorization","{{apiKey}}")
loHttp.SetRequestHeader("Accept","application/json")

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

loResp = loHttp.PTextSb("PUT","https://api.easybill.de/rest/v1/documents/:id?refresh_customer_data=true&reason_for_change=<string>",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)

// {
//   "address": {
//     "salutation": "<integer>",
//     "personal": "<boolean>",
//     "title": "<string>",
//     "first_name": "<string>",
//     "last_name": "<string>",
//     "suffix_1": "<string>",
//     "suffix_2": "<string>",
//     "company_name": "<string>",
//     "street": "<string>",
//     "zip_code": "<string>",
//     "city": "<string>",
//     "state": "<string>",
//     "country": "<string>"
//   },
//   "attachment_ids": [
//     "<integer>",
//     "<integer>"
//   ],
//   "label_address": {
//     "salutation": "<integer>",
//     "personal": "<boolean>",
//     "title": "<string>",
//     "first_name": "<string>",
//     "last_name": "<string>",
//     "suffix_1": "<string>",
//     "suffix_2": "<string>",
//     "company_name": "<string>",
//     "street": "<string>",
//     "zip_code": "<string>",
//     "city": "<string>",
//     "state": "<string>",
//     "country": "<string>"
//   },
//   "amount": "<integer>",
//   "amount_net": "<integer>",
//   "bank_debit_form": null,
//   "billing_country": "<string>",
//   "calc_vat_from": 0,
//   "cancel_id": "<long>",
//   "cash_allowance": null,
//   "cash_allowance_days": null,
//   "cash_allowance_text": null,
//   "contact_id": null,
//   "contact_label": "",
//   "contact_text": "",
//   "created_at": "<dateTime>",
//   "currency": "EUR",
//   "customer_id": null,
//   "customer_snapshot": {
//     "last_name": "<string>",
//     "company_name": "<string>",
//     "acquire_options": 2,
//     "additional_groups_ids": [
//       "<integer>",
//       "<integer>"
//     ],
//     "bank_account": "<string>",
//     "bank_account_owner": "<string>",
//     "bank_bic": "<string>",
//     "bank_code": "<string>",
//     "bank_iban": "<string>",
//     "bank_name": "<string>",
//     "birth_date": "<date>",
//     "cash_allowance": "<float>",
//     "cash_allowance_days": 7,
//     "cash_discount": "<float>",
//     "cash_discount_type": "AMOUNT",
//     "city": "<string>",
//     "state": "<string>",
//     "country": "<string>",
//     "created_at": "<date>",
//     "updated_at": "<string>",
//     "delivery_title": "<string>",
//     "delivery_city": "<string>",
//     "delivery_state": "<string>",
//     "delivery_company_name": "<string>",
//     "delivery_country": "<string>",
//     "delivery_first_name": "<string>",
//     "delivery_last_name": "<string>",
//     "delivery_personal": "<boolean>",
//     "delivery_salutation": 0,
//     "delivery_street": "<string>",
//     "delivery_suffix_1": "<string>",
//     "delivery_suffix_2": "<string>",
//     "delivery_zip_code": "<string>",
//     "display_name": "<string>",
//     "emails": [
//       "<string>",
//       "<string>"
//     ],
//     "fax": "<string>",
//     "first_name": "<string>",
//     "grace_period": "<integer>",
//     "due_in_days": "<integer>",
//     "group_id": "<integer>",
//     "id": "<long>",
//     "info_1": "<string>",
//     "info_2": "<string>",
//     "internet": "<string>",
//     "login_id": "<long>",
//     "mobile": "<string>",
//     "note": "<string>",
//     "number": "<string>",
//     "payment_options": 1,
//     "personal": false,
//     "phone_1": "<string>",
//     "phone_2": "<string>",
//     "postbox": "<string>",
//     "postbox_city": "<string>",
//     "postbox_state": "<string>",
//     "postbox_country": "<string>",
//     "postbox_zip_code": "<string>",
//     "sale_price_level": "SALEPRICE6",
//     "salutation": 0,
//     "sepa_agreement": "BASIC",
//     "sepa_agreement_date": "<date>",
//     "sepa_mandate_reference": "<string>",
//     "since_date": "<date>",
//     "street": "<string>",
//     "suffix_1": "<string>",
//     "suffix_2": "<string>",
//     "tax_number": "<string>",
//     "court": "<string>",
//     "court_registry_number": "<string>",
//     "tax_options": "nStbIm",
//     "title": "<string>",
//     "archived": "<boolean>",
//     "vat_identifier": "<string>",
//     "zip_code": "<string>",
//     "document_pdf_type": "default",
//     "buyer_reference": "<string>",
//     "foreign_supplier_number": "<string>"
//   },
//   "discount": null,
//   "discount_type": null,
//   "document_date": "<date>",
//   "due_date": "<date>",
//   "edited_at": "<dateTime>",
//   "external_id": null,
//   "replica_url": null,
//   "grace_period": "<integer>",
//   "due_in_days": "<integer>",
//   "id": "<long>",
//   "is_acceptable_on_public_domain": false,
//   "is_archive": false,
//   "is_draft": "<boolean>",
//   "is_replica": false,
//   "is_oss": false,
//   "item_notes": [
//     "<string>",
//     "<string>"
//   ],
//   "items": [
//     {
//       "number": null,
//       "description": null,
//       "document_note": "<string>",
//       "quantity": 1,
//       "quantity_str": "<string>",
//       "unit": null,
//       "type": "POSITION",
//       "position": "<integer>",
//       "single_price_net": null,
//       "single_price_gross": "<float>",
//       "vat_percent": 0,
//       "discount": null,
//       "discount_type": null,
//       "position_id": null,
//       "total_price_net": "<float>",
//       "total_price_gross": "<float>",
//       "total_vat": "<float>",
//       "serial_number_id": "<string>",
//       "serial_number": "<string>",
//       "booking_account": null,
//       "export_cost_1": null,
//       "export_cost_2": null,
//       "cost_price_net": null,
//       "cost_price_total": "<float>",
//       "cost_price_charge": "<float>",
//       "cost_price_charge_type": "PERCENT",
//       "itemType": "UNDEFINED",
//       "id": "<long>"
//     },
//     {
//       "number": null,
//       "description": null,
//       "document_note": "<string>",
//       "quantity": 1,
//       "quantity_str": "<string>",
//       "unit": null,
//       "type": "POSITION",
//       "position": "<integer>",
//       "single_price_net": null,
//       "single_price_gross": "<float>",
//       "vat_percent": 0,
//       "discount": null,
//       "discount_type": null,
//       "position_id": null,
//       "total_price_net": "<float>",
//       "total_price_gross": "<float>",
//       "total_vat": "<float>",
//       "serial_number_id": "<string>",
//       "serial_number": "<string>",
//       "booking_account": null,
//       "export_cost_1": null,
//       "export_cost_2": null,
//       "cost_price_net": null,
//       "cost_price_total": "<float>",
//       "cost_price_charge": "<float>",
//       "cost_price_charge_type": "PERCENT",
//       "itemType": "UNDEFINED",
//       "id": "<long>"
//     }
//   ],
//   "last_postbox_id": "<long>",
//   "login_id": "<long>",
//   "number": null,
//   "order_number": "",
//   "buyer_reference": "",
//   "paid_amount": "<integer>",
//   "paid_at": "<date>",
//   "pdf_pages": "<integer>",
//   "pdf_template": "<string>",
//   "project_id": null,
//   "recurring_options": {
//     "next_date": "<date>",
//     "frequency": "MONTHLY",
//     "frequency_special": null,
//     "interval": 1,
//     "end_date_or_count": null,
//     "status": "WAITING",
//     "as_draft": false,
//     "is_notify": false,
//     "send_as": null,
//     "is_sign": false,
//     "is_paid": false,
//     "paid_date_option": "created_date",
//     "is_sepa": false,
//     "sepa_local_instrument": null,
//     "sepa_sequence_type": null,
//     "sepa_reference": null,
//     "sepa_remittance_information": null,
//     "target_type": "INVOICE"
//   },
//   "ref_id": null,
//   "root_id": null,
//   "service_date": {
//     "type": "SERVICE",
//     "date": "<date>",
//     "date_from": "<date>",
//     "date_to": "<date>",
//     "text": null
//   },
//   "shipping_country": null,
//   "status": null,
//   "text": "<string>",
//   "text_prefix": "<string>",
//   "text_tax": null,
//   "title": null,
//   "type": "INVOICE",
//   "use_shipping_address": false,
//   "vat_country": null,
//   "vat_id": "",
//   "fulfillment_country": null,
//   "vat_option": null,
//   "file_format_config": [
//     {
//       "type": "xrechnung2_2_xml"
//     },
//     {
//       "type": "xrechnung3_0_xml"
//     }
//   ]
// }

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

loDate_from = createobject("CkDtObj")
loDate_to = createobject("CkDtObj")

lcSalutation = loJResp.StringOf("address.salutation")
lcPersonal = loJResp.StringOf("address.personal")
lcTitle = loJResp.StringOf("address.title")
lcFirst_name = loJResp.StringOf("address.first_name")
lcLast_name = loJResp.StringOf("address.last_name")
lcSuffix_1 = loJResp.StringOf("address.suffix_1")
lcSuffix_2 = loJResp.StringOf("address.suffix_2")
lcCompany_name = loJResp.StringOf("address.company_name")
lcStreet = loJResp.StringOf("address.street")
lcZip_code = loJResp.StringOf("address.zip_code")
lcCity = loJResp.StringOf("address.city")
lcState = loJResp.StringOf("address.state")
lcCountry = loJResp.StringOf("address.country")
lcLabel_addressSalutation = loJResp.StringOf("label_address.salutation")
lcLabel_addressPersonal = loJResp.StringOf("label_address.personal")
lcLabel_addressTitle = loJResp.StringOf("label_address.title")
lcLabel_addressFirst_name = loJResp.StringOf("label_address.first_name")
lcLabel_addressLast_name = loJResp.StringOf("label_address.last_name")
lcLabel_addressSuffix_1 = loJResp.StringOf("label_address.suffix_1")
lcLabel_addressSuffix_2 = loJResp.StringOf("label_address.suffix_2")
lcLabel_addressCompany_name = loJResp.StringOf("label_address.company_name")
lcLabel_addressStreet = loJResp.StringOf("label_address.street")
lcLabel_addressZip_code = loJResp.StringOf("label_address.zip_code")
lcLabel_addressCity = loJResp.StringOf("label_address.city")
lcLabel_addressState = loJResp.StringOf("label_address.state")
lcLabel_addressCountry = loJResp.StringOf("label_address.country")
lcAmount = loJResp.StringOf("amount")
lcAmount_net = loJResp.StringOf("amount_net")
lcBank_debit_form = loJResp.StringOf("bank_debit_form")
lcBilling_country = loJResp.StringOf("billing_country")
lnCalc_vat_from = loJResp.IntOf("calc_vat_from")
lcCancel_id = loJResp.StringOf("cancel_id")
lcCash_allowance = loJResp.StringOf("cash_allowance")
lcCash_allowance_days = loJResp.StringOf("cash_allowance_days")
lcCash_allowance_text = loJResp.StringOf("cash_allowance_text")
lcContact_id = loJResp.StringOf("contact_id")
lcContact_label = loJResp.StringOf("contact_label")
lcContact_text = loJResp.StringOf("contact_text")
lcCreated_at = loJResp.StringOf("created_at")
lcV_currency = loJResp.StringOf("currency")
lcCustomer_id = loJResp.StringOf("customer_id")
lcCustomer_snapshotLast_name = loJResp.StringOf("customer_snapshot.last_name")
lcCustomer_snapshotCompany_name = loJResp.StringOf("customer_snapshot.company_name")
lnAcquire_options = loJResp.IntOf("customer_snapshot.acquire_options")
lcBank_account = loJResp.StringOf("customer_snapshot.bank_account")
lcBank_account_owner = loJResp.StringOf("customer_snapshot.bank_account_owner")
lcBank_bic = loJResp.StringOf("customer_snapshot.bank_bic")
lcBank_code = loJResp.StringOf("customer_snapshot.bank_code")
lcBank_iban = loJResp.StringOf("customer_snapshot.bank_iban")
lcBank_name = loJResp.StringOf("customer_snapshot.bank_name")
lcBirth_date = loJResp.StringOf("customer_snapshot.birth_date")
lcCash_allowance = loJResp.StringOf("customer_snapshot.cash_allowance")
lnCash_allowance_days = loJResp.IntOf("customer_snapshot.cash_allowance_days")
lcCash_discount = loJResp.StringOf("customer_snapshot.cash_discount")
lcCash_discount_type = loJResp.StringOf("customer_snapshot.cash_discount_type")
lcCustomer_snapshotCity = loJResp.StringOf("customer_snapshot.city")
lcCustomer_snapshotState = loJResp.StringOf("customer_snapshot.state")
lcCustomer_snapshotCountry = loJResp.StringOf("customer_snapshot.country")
lcCreated_at = loJResp.StringOf("customer_snapshot.created_at")
lcUpdated_at = loJResp.StringOf("customer_snapshot.updated_at")
lcDelivery_title = loJResp.StringOf("customer_snapshot.delivery_title")
lcDelivery_city = loJResp.StringOf("customer_snapshot.delivery_city")
lcDelivery_state = loJResp.StringOf("customer_snapshot.delivery_state")
lcDelivery_company_name = loJResp.StringOf("customer_snapshot.delivery_company_name")
lcDelivery_country = loJResp.StringOf("customer_snapshot.delivery_country")
lcDelivery_first_name = loJResp.StringOf("customer_snapshot.delivery_first_name")
lcDelivery_last_name = loJResp.StringOf("customer_snapshot.delivery_last_name")
lcDelivery_personal = loJResp.StringOf("customer_snapshot.delivery_personal")
lnDelivery_salutation = loJResp.IntOf("customer_snapshot.delivery_salutation")
lcDelivery_street = loJResp.StringOf("customer_snapshot.delivery_street")
lcDelivery_suffix_1 = loJResp.StringOf("customer_snapshot.delivery_suffix_1")
lcDelivery_suffix_2 = loJResp.StringOf("customer_snapshot.delivery_suffix_2")
lcDelivery_zip_code = loJResp.StringOf("customer_snapshot.delivery_zip_code")
lcDisplay_name = loJResp.StringOf("customer_snapshot.display_name")
lcFax = loJResp.StringOf("customer_snapshot.fax")
lcCustomer_snapshotFirst_name = loJResp.StringOf("customer_snapshot.first_name")
lcGrace_period = loJResp.StringOf("customer_snapshot.grace_period")
lcDue_in_days = loJResp.StringOf("customer_snapshot.due_in_days")
lcGroup_id = loJResp.StringOf("customer_snapshot.group_id")
lcId = loJResp.StringOf("customer_snapshot.id")
lcInfo_1 = loJResp.StringOf("customer_snapshot.info_1")
lcInfo_2 = loJResp.StringOf("customer_snapshot.info_2")
lcInternet = loJResp.StringOf("customer_snapshot.internet")
lcLogin_id = loJResp.StringOf("customer_snapshot.login_id")
lcMobile = loJResp.StringOf("customer_snapshot.mobile")
lcNote = loJResp.StringOf("customer_snapshot.note")
lcV_Number = loJResp.StringOf("customer_snapshot.number")
lnPayment_options = loJResp.IntOf("customer_snapshot.payment_options")
llCustomer_snapshotPersonal = loJResp.BoolOf("customer_snapshot.personal")
lcPhone_1 = loJResp.StringOf("customer_snapshot.phone_1")
lcPhone_2 = loJResp.StringOf("customer_snapshot.phone_2")
lcPostbox = loJResp.StringOf("customer_snapshot.postbox")
lcPostbox_city = loJResp.StringOf("customer_snapshot.postbox_city")
lcPostbox_state = loJResp.StringOf("customer_snapshot.postbox_state")
lcPostbox_country = loJResp.StringOf("customer_snapshot.postbox_country")
lcPostbox_zip_code = loJResp.StringOf("customer_snapshot.postbox_zip_code")
lcSale_price_level = loJResp.StringOf("customer_snapshot.sale_price_level")
lnCustomer_snapshotSalutation = loJResp.IntOf("customer_snapshot.salutation")
lcSepa_agreement = loJResp.StringOf("customer_snapshot.sepa_agreement")
lcSepa_agreement_date = loJResp.StringOf("customer_snapshot.sepa_agreement_date")
lcSepa_mandate_reference = loJResp.StringOf("customer_snapshot.sepa_mandate_reference")
lcSince_date = loJResp.StringOf("customer_snapshot.since_date")
lcCustomer_snapshotStreet = loJResp.StringOf("customer_snapshot.street")
lcCustomer_snapshotSuffix_1 = loJResp.StringOf("customer_snapshot.suffix_1")
lcCustomer_snapshotSuffix_2 = loJResp.StringOf("customer_snapshot.suffix_2")
lcTax_number = loJResp.StringOf("customer_snapshot.tax_number")
lcCourt = loJResp.StringOf("customer_snapshot.court")
lcCourt_registry_number = loJResp.StringOf("customer_snapshot.court_registry_number")
lcTax_options = loJResp.StringOf("customer_snapshot.tax_options")
lcCustomer_snapshotTitle = loJResp.StringOf("customer_snapshot.title")
lcArchived = loJResp.StringOf("customer_snapshot.archived")
lcVat_identifier = loJResp.StringOf("customer_snapshot.vat_identifier")
lcCustomer_snapshotZip_code = loJResp.StringOf("customer_snapshot.zip_code")
lcDocument_pdf_type = loJResp.StringOf("customer_snapshot.document_pdf_type")
lcBuyer_reference = loJResp.StringOf("customer_snapshot.buyer_reference")
lcForeign_supplier_number = loJResp.StringOf("customer_snapshot.foreign_supplier_number")
lcDiscount = loJResp.StringOf("discount")
lcDiscount_type = loJResp.StringOf("discount_type")
lcDocument_date = loJResp.StringOf("document_date")
lcDue_date = loJResp.StringOf("due_date")
lcEdited_at = loJResp.StringOf("edited_at")
lcExternal_id = loJResp.StringOf("external_id")
lcReplica_url = loJResp.StringOf("replica_url")
lcGrace_period = loJResp.StringOf("grace_period")
lcDue_in_days = loJResp.StringOf("due_in_days")
lcId = loJResp.StringOf("id")
llIs_acceptable_on_public_domain = loJResp.BoolOf("is_acceptable_on_public_domain")
llIs_archive = loJResp.BoolOf("is_archive")
lcIs_draft = loJResp.StringOf("is_draft")
llIs_replica = loJResp.BoolOf("is_replica")
llIs_oss = loJResp.BoolOf("is_oss")
lcLast_postbox_id = loJResp.StringOf("last_postbox_id")
lcLogin_id = loJResp.StringOf("login_id")
lcV_number = loJResp.StringOf("number")
lcOrder_number = loJResp.StringOf("order_number")
lcBuyer_reference = loJResp.StringOf("buyer_reference")
lcPaid_amount = loJResp.StringOf("paid_amount")
lcPaid_at = loJResp.StringOf("paid_at")
lcPdf_pages = loJResp.StringOf("pdf_pages")
lcPdf_template = loJResp.StringOf("pdf_template")
lcProject_id = loJResp.StringOf("project_id")
lcNext_date = loJResp.StringOf("recurring_options.next_date")
lcFrequency = loJResp.StringOf("recurring_options.frequency")
lcFrequency_special = loJResp.StringOf("recurring_options.frequency_special")
lnInterval = loJResp.IntOf("recurring_options.interval")
lcEnd_date_or_count = loJResp.StringOf("recurring_options.end_date_or_count")
lcStatus = loJResp.StringOf("recurring_options.status")
llAs_draft = loJResp.BoolOf("recurring_options.as_draft")
llIs_notify = loJResp.BoolOf("recurring_options.is_notify")
lcSend_as = loJResp.StringOf("recurring_options.send_as")
llIs_sign = loJResp.BoolOf("recurring_options.is_sign")
llIs_paid = loJResp.BoolOf("recurring_options.is_paid")
lcPaid_date_option = loJResp.StringOf("recurring_options.paid_date_option")
llIs_sepa = loJResp.BoolOf("recurring_options.is_sepa")
lcSepa_local_instrument = loJResp.StringOf("recurring_options.sepa_local_instrument")
lcSepa_sequence_type = loJResp.StringOf("recurring_options.sepa_sequence_type")
lcSepa_reference = loJResp.StringOf("recurring_options.sepa_reference")
lcSepa_remittance_information = loJResp.StringOf("recurring_options.sepa_remittance_information")
lcTarget_type = loJResp.StringOf("recurring_options.target_type")
lcRef_id = loJResp.StringOf("ref_id")
lcRoot_id = loJResp.StringOf("root_id")
lcV_Type = loJResp.StringOf("service_date.type")
lcDate = loJResp.StringOf("service_date.date")
loJResp.DtOf("service_date.date_from",.F.,loDate_from)
loJResp.DtOf("service_date.date_to",.F.,loDate_to)
lcText = loJResp.StringOf("service_date.text")
lcShipping_country = loJResp.StringOf("shipping_country")
lcStatus = loJResp.StringOf("status")
lcText = loJResp.StringOf("text")
lcText_prefix = loJResp.StringOf("text_prefix")
lcText_tax = loJResp.StringOf("text_tax")
lcTitle = loJResp.StringOf("title")
lcV_type = loJResp.StringOf("type")
llUse_shipping_address = loJResp.BoolOf("use_shipping_address")
lcVat_country = loJResp.StringOf("vat_country")
lcVat_id = loJResp.StringOf("vat_id")
lcFulfillment_country = loJResp.StringOf("fulfillment_country")
lcVat_option = loJResp.StringOf("vat_option")
i = 0
lnCount_i = loJResp.SizeOfArray("attachment_ids")
do while i < lnCount_i
    loJResp.I = i
    lcStrVal = loJResp.StringOf("attachment_ids[i]")
    i = i + 1
enddo
i = 0
lnCount_i = loJResp.SizeOfArray("customer_snapshot.additional_groups_ids")
do while i < lnCount_i
    loJResp.I = i
    lcStrVal = loJResp.StringOf("customer_snapshot.additional_groups_ids[i]")
    i = i + 1
enddo
i = 0
lnCount_i = loJResp.SizeOfArray("customer_snapshot.emails")
do while i < lnCount_i
    loJResp.I = i
    lcStrVal = loJResp.StringOf("customer_snapshot.emails[i]")
    i = i + 1
enddo
i = 0
lnCount_i = loJResp.SizeOfArray("item_notes")
do while i < lnCount_i
    loJResp.I = i
    lcStrVal = loJResp.StringOf("item_notes[i]")
    i = i + 1
enddo
i = 0
lnCount_i = loJResp.SizeOfArray("items")
do while i < lnCount_i
    loJResp.I = i
    lcV_number = loJResp.StringOf("items[i].number")
    lcDescription = loJResp.StringOf("items[i].description")
    lcDocument_note = loJResp.StringOf("items[i].document_note")
    lnQuantity = loJResp.IntOf("items[i].quantity")
    lcQuantity_str = loJResp.StringOf("items[i].quantity_str")
    lcUnit = loJResp.StringOf("items[i].unit")
    lcV_type = loJResp.StringOf("items[i].type")
    lcPosition = loJResp.StringOf("items[i].position")
    lcSingle_price_net = loJResp.StringOf("items[i].single_price_net")
    lcSingle_price_gross = loJResp.StringOf("items[i].single_price_gross")
    lnVat_percent = loJResp.IntOf("items[i].vat_percent")
    lcDiscount = loJResp.StringOf("items[i].discount")
    lcDiscount_type = loJResp.StringOf("items[i].discount_type")
    lcPosition_id = loJResp.StringOf("items[i].position_id")
    lcTotal_price_net = loJResp.StringOf("items[i].total_price_net")
    lcTotal_price_gross = loJResp.StringOf("items[i].total_price_gross")
    lcTotal_vat = loJResp.StringOf("items[i].total_vat")
    lcSerial_number_id = loJResp.StringOf("items[i].serial_number_id")
    lcSerial_number = loJResp.StringOf("items[i].serial_number")
    lcBooking_account = loJResp.StringOf("items[i].booking_account")
    lcExport_cost_1 = loJResp.StringOf("items[i].export_cost_1")
    lcExport_cost_2 = loJResp.StringOf("items[i].export_cost_2")
    lcCost_price_net = loJResp.StringOf("items[i].cost_price_net")
    lcCost_price_total = loJResp.StringOf("items[i].cost_price_total")
    lcCost_price_charge = loJResp.StringOf("items[i].cost_price_charge")
    lcCost_price_charge_type = loJResp.StringOf("items[i].cost_price_charge_type")
    lcItemType = loJResp.StringOf("items[i].itemType")
    lcId = loJResp.StringOf("items[i].id")
    i = i + 1
enddo
i = 0
lnCount_i = loJResp.SizeOfArray("file_format_config")
do while i < lnCount_i
    loJResp.I = i
    lcV_type = loJResp.StringOf("file_format_config[i].type")
    i = i + 1
enddo


release loHttp
release loJson
release loSbRequestBody
release loSbResponseBody
release loJResp
release loDate_from
release loDate_to

Curl Command

curl -X PUT
	-H "Authorization: {{apiKey}}"
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '{
  "address": {
    "salutation": "<integer>",
    "personal": "<boolean>",
    "title": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "suffix_1": "<string>",
    "suffix_2": "<string>",
    "company_name": "<string>",
    "street": "<string>",
    "zip_code": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>"
  },
  "attachment_ids": [
    "<integer>",
    "<integer>"
  ],
  "label_address": {
    "salutation": "<integer>",
    "personal": "<boolean>",
    "title": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "suffix_1": "<string>",
    "suffix_2": "<string>",
    "company_name": "<string>",
    "street": "<string>",
    "zip_code": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>"
  },
  "amount": "<integer>",
  "amount_net": "<integer>",
  "bank_debit_form": null,
  "billing_country": "<string>",
  "calc_vat_from": 0,
  "cancel_id": "<long>",
  "cash_allowance": null,
  "cash_allowance_days": null,
  "cash_allowance_text": null,
  "contact_id": null,
  "contact_label": "",
  "contact_text": "",
  "created_at": "<dateTime>",
  "currency": "EUR",
  "customer_id": null,
  "customer_snapshot": {
    "last_name": "<string>",
    "company_name": "<string>",
    "acquire_options": 2,
    "additional_groups_ids": [
      "<integer>",
      "<integer>"
    ],
    "bank_account": "<string>",
    "bank_account_owner": "<string>",
    "bank_bic": "<string>",
    "bank_code": "<string>",
    "bank_iban": "<string>",
    "bank_name": "<string>",
    "birth_date": "<date>",
    "cash_allowance": "<float>",
    "cash_allowance_days": 7,
    "cash_discount": "<float>",
    "cash_discount_type": "AMOUNT",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "created_at": "<date>",
    "updated_at": "<string>",
    "delivery_title": "<string>",
    "delivery_city": "<string>",
    "delivery_state": "<string>",
    "delivery_company_name": "<string>",
    "delivery_country": "<string>",
    "delivery_first_name": "<string>",
    "delivery_last_name": "<string>",
    "delivery_personal": "<boolean>",
    "delivery_salutation": 0,
    "delivery_street": "<string>",
    "delivery_suffix_1": "<string>",
    "delivery_suffix_2": "<string>",
    "delivery_zip_code": "<string>",
    "display_name": "<string>",
    "emails": [
      "<string>",
      "<string>"
    ],
    "fax": "<string>",
    "first_name": "<string>",
    "grace_period": "<integer>",
    "due_in_days": "<integer>",
    "group_id": "<integer>",
    "id": "<long>",
    "info_1": "<string>",
    "info_2": "<string>",
    "internet": "<string>",
    "login_id": "<long>",
    "mobile": "<string>",
    "note": "<string>",
    "number": "<string>",
    "payment_options": 1,
    "personal": false,
    "phone_1": "<string>",
    "phone_2": "<string>",
    "postbox": "<string>",
    "postbox_city": "<string>",
    "postbox_state": "<string>",
    "postbox_country": "<string>",
    "postbox_zip_code": "<string>",
    "sale_price_level": "SALEPRICE6",
    "salutation": 0,
    "sepa_agreement": "BASIC",
    "sepa_agreement_date": "<date>",
    "sepa_mandate_reference": "<string>",
    "since_date": "<date>",
    "street": "<string>",
    "suffix_1": "<string>",
    "suffix_2": "<string>",
    "tax_number": "<string>",
    "court": "<string>",
    "court_registry_number": "<string>",
    "tax_options": "nStbIm",
    "title": "<string>",
    "archived": "<boolean>",
    "vat_identifier": "<string>",
    "zip_code": "<string>",
    "document_pdf_type": "default",
    "buyer_reference": "<string>",
    "foreign_supplier_number": "<string>"
  },
  "discount": null,
  "discount_type": null,
  "document_date": "<date>",
  "due_date": "<date>",
  "edited_at": "<dateTime>",
  "external_id": null,
  "replica_url": null,
  "grace_period": "<integer>",
  "due_in_days": "<integer>",
  "id": "<long>",
  "is_acceptable_on_public_domain": false,
  "is_archive": false,
  "is_draft": "<boolean>",
  "is_replica": false,
  "is_oss": false,
  "item_notes": [
    "<string>",
    "<string>"
  ],
  "items": [
    {
      "number": null,
      "description": null,
      "document_note": "<string>",
      "quantity": 1,
      "quantity_str": "<string>",
      "unit": null,
      "type": "POSITION",
      "position": "<integer>",
      "single_price_net": null,
      "single_price_gross": "<float>",
      "vat_percent": 0,
      "discount": null,
      "discount_type": null,
      "position_id": null,
      "total_price_net": "<float>",
      "total_price_gross": "<float>",
      "total_vat": "<float>",
      "serial_number_id": "<string>",
      "serial_number": "<string>",
      "booking_account": null,
      "export_cost_1": null,
      "export_cost_2": null,
      "cost_price_net": null,
      "cost_price_total": "<float>",
      "cost_price_charge": "<float>",
      "cost_price_charge_type": "PERCENT",
      "itemType": "UNDEFINED",
      "id": "<long>"
    },
    {
      "number": null,
      "description": null,
      "document_note": "<string>",
      "quantity": 1,
      "quantity_str": "<string>",
      "unit": null,
      "type": "POSITION",
      "position": "<integer>",
      "single_price_net": null,
      "single_price_gross": "<float>",
      "vat_percent": 0,
      "discount": null,
      "discount_type": null,
      "position_id": null,
      "total_price_net": "<float>",
      "total_price_gross": "<float>",
      "total_vat": "<float>",
      "serial_number_id": "<string>",
      "serial_number": "<string>",
      "booking_account": null,
      "export_cost_1": null,
      "export_cost_2": null,
      "cost_price_net": null,
      "cost_price_total": "<float>",
      "cost_price_charge": "<float>",
      "cost_price_charge_type": "PERCENT",
      "itemType": "UNDEFINED",
      "id": "<long>"
    }
  ],
  "last_postbox_id": "<long>",
  "login_id": "<long>",
  "number": null,
  "order_number": "",
  "buyer_reference": "",
  "paid_amount": "<integer>",
  "paid_at": "<date>",
  "pdf_pages": "<integer>",
  "pdf_template": "<string>",
  "project_id": null,
  "recurring_options": {
    "next_date": "<date>",
    "frequency": "MONTHLY",
    "frequency_special": null,
    "interval": 1,
    "end_date_or_count": null,
    "status": "WAITING",
    "as_draft": false,
    "is_notify": false,
    "send_as": null,
    "is_sign": false,
    "is_paid": false,
    "paid_date_option": "created_date",
    "is_sepa": false,
    "sepa_local_instrument": null,
    "sepa_sequence_type": null,
    "sepa_reference": null,
    "sepa_remittance_information": null,
    "target_type": "INVOICE"
  },
  "ref_id": null,
  "root_id": null,
  "service_date": {
    "type": "SERVICE",
    "date": "<date>",
    "date_from": "<date>",
    "date_to": "<date>",
    "text": null
  },
  "shipping_country": null,
  "status": null,
  "text": "<string>",
  "text_prefix": "<string>",
  "text_tax": null,
  "title": null,
  "type": "INVOICE",
  "use_shipping_address": false,
  "vat_country": null,
  "vat_id": "",
  "fulfillment_country": null,
  "vat_option": null,
  "file_format_config": [
    {
      "type": "xrechnung2_2_xml"
    },
    {
      "type": "xrechnung3_0_xml"
    }
  ]
}'
https://api.easybill.de/rest/v1/documents/:id?refresh_customer_data=true&reason_for_change=<string>

Postman Collection Item JSON

{
  "name": "Update document",
  "request": {
    "method": "PUT",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"attachment_ids\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"label_address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"amount\": \"<integer>\",\n  \"amount_net\": \"<integer>\",\n  \"bank_debit_form\": null,\n  \"billing_country\": \"<string>\",\n  \"calc_vat_from\": 0,\n  \"cancel_id\": \"<long>\",\n  \"cash_allowance\": null,\n  \"cash_allowance_days\": null,\n  \"cash_allowance_text\": null,\n  \"contact_id\": null,\n  \"contact_label\": \"\",\n  \"contact_text\": \"\",\n  \"created_at\": \"<dateTime>\",\n  \"currency\": \"EUR\",\n  \"customer_id\": null,\n  \"customer_snapshot\": {\n    \"last_name\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"acquire_options\": 2,\n    \"additional_groups_ids\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"bank_account\": \"<string>\",\n    \"bank_account_owner\": \"<string>\",\n    \"bank_bic\": \"<string>\",\n    \"bank_code\": \"<string>\",\n    \"bank_iban\": \"<string>\",\n    \"bank_name\": \"<string>\",\n    \"birth_date\": \"<date>\",\n    \"cash_allowance\": \"<float>\",\n    \"cash_allowance_days\": 7,\n    \"cash_discount\": \"<float>\",\n    \"cash_discount_type\": \"AMOUNT\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\",\n    \"created_at\": \"<date>\",\n    \"updated_at\": \"<string>\",\n    \"delivery_title\": \"<string>\",\n    \"delivery_city\": \"<string>\",\n    \"delivery_state\": \"<string>\",\n    \"delivery_company_name\": \"<string>\",\n    \"delivery_country\": \"<string>\",\n    \"delivery_first_name\": \"<string>\",\n    \"delivery_last_name\": \"<string>\",\n    \"delivery_personal\": \"<boolean>\",\n    \"delivery_salutation\": 0,\n    \"delivery_street\": \"<string>\",\n    \"delivery_suffix_1\": \"<string>\",\n    \"delivery_suffix_2\": \"<string>\",\n    \"delivery_zip_code\": \"<string>\",\n    \"display_name\": \"<string>\",\n    \"emails\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"fax\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"grace_period\": \"<integer>\",\n    \"due_in_days\": \"<integer>\",\n    \"group_id\": \"<integer>\",\n    \"id\": \"<long>\",\n    \"info_1\": \"<string>\",\n    \"info_2\": \"<string>\",\n    \"internet\": \"<string>\",\n    \"login_id\": \"<long>\",\n    \"mobile\": \"<string>\",\n    \"note\": \"<string>\",\n    \"number\": \"<string>\",\n    \"payment_options\": 1,\n    \"personal\": false,\n    \"phone_1\": \"<string>\",\n    \"phone_2\": \"<string>\",\n    \"postbox\": \"<string>\",\n    \"postbox_city\": \"<string>\",\n    \"postbox_state\": \"<string>\",\n    \"postbox_country\": \"<string>\",\n    \"postbox_zip_code\": \"<string>\",\n    \"sale_price_level\": \"SALEPRICE6\",\n    \"salutation\": 0,\n    \"sepa_agreement\": \"BASIC\",\n    \"sepa_agreement_date\": \"<date>\",\n    \"sepa_mandate_reference\": \"<string>\",\n    \"since_date\": \"<date>\",\n    \"street\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"tax_number\": \"<string>\",\n    \"court\": \"<string>\",\n    \"court_registry_number\": \"<string>\",\n    \"tax_options\": \"nStbIm\",\n    \"title\": \"<string>\",\n    \"archived\": \"<boolean>\",\n    \"vat_identifier\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"document_pdf_type\": \"default\",\n    \"buyer_reference\": \"<string>\",\n    \"foreign_supplier_number\": \"<string>\"\n  },\n  \"discount\": null,\n  \"discount_type\": null,\n  \"document_date\": \"<date>\",\n  \"due_date\": \"<date>\",\n  \"edited_at\": \"<dateTime>\",\n  \"external_id\": null,\n  \"replica_url\": null,\n  \"grace_period\": \"<integer>\",\n  \"due_in_days\": \"<integer>\",\n  \"id\": \"<long>\",\n  \"is_acceptable_on_public_domain\": false,\n  \"is_archive\": false,\n  \"is_draft\": \"<boolean>\",\n  \"is_replica\": false,\n  \"is_oss\": false,\n  \"item_notes\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"items\": [\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    },\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    }\n  ],\n  \"last_postbox_id\": \"<long>\",\n  \"login_id\": \"<long>\",\n  \"number\": null,\n  \"order_number\": \"\",\n  \"buyer_reference\": \"\",\n  \"paid_amount\": \"<integer>\",\n  \"paid_at\": \"<date>\",\n  \"pdf_pages\": \"<integer>\",\n  \"pdf_template\": \"<string>\",\n  \"project_id\": null,\n  \"recurring_options\": {\n    \"next_date\": \"<date>\",\n    \"frequency\": \"MONTHLY\",\n    \"frequency_special\": null,\n    \"interval\": 1,\n    \"end_date_or_count\": null,\n    \"status\": \"WAITING\",\n    \"as_draft\": false,\n    \"is_notify\": false,\n    \"send_as\": null,\n    \"is_sign\": false,\n    \"is_paid\": false,\n    \"paid_date_option\": \"created_date\",\n    \"is_sepa\": false,\n    \"sepa_local_instrument\": null,\n    \"sepa_sequence_type\": null,\n    \"sepa_reference\": null,\n    \"sepa_remittance_information\": null,\n    \"target_type\": \"INVOICE\"\n  },\n  \"ref_id\": null,\n  \"root_id\": null,\n  \"service_date\": {\n    \"type\": \"SERVICE\",\n    \"date\": \"<date>\",\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"text\": null\n  },\n  \"shipping_country\": null,\n  \"status\": null,\n  \"text\": \"<string>\",\n  \"text_prefix\": \"<string>\",\n  \"text_tax\": null,\n  \"title\": null,\n  \"type\": \"INVOICE\",\n  \"use_shipping_address\": false,\n  \"vat_country\": null,\n  \"vat_id\": \"\",\n  \"fulfillment_country\": null,\n  \"vat_option\": null,\n  \"file_format_config\": [\n    {\n      \"type\": \"xrechnung2_2_xml\"\n    },\n    {\n      \"type\": \"xrechnung3_0_xml\"\n    }\n  ]\n}",
      "options": {
        "raw": {
          "headerFamily": "json",
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/documents/:id?refresh_customer_data=true&reason_for_change=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "documents",
        ":id"
      ],
      "query": [
        {
          "key": "refresh_customer_data",
          "value": "true",
          "description": "Forces refreshing of the customer data."
        },
        {
          "key": "reason_for_change",
          "value": "<string>",
          "description": "A string that is saved on the document version as reason. This value takes only affect if you update an already finalized document and provide this value."
        }
      ],
      "variable": [
        {
          "key": "id",
          "value": "<long>",
          "description": "(Required) ID of document"
        }
      ]
    }
  },
  "response": [
    {
      "name": "Successful operation",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "Authorization",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"attachment_ids\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"label_address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"amount\": \"<integer>\",\n  \"amount_net\": \"<integer>\",\n  \"bank_debit_form\": null,\n  \"billing_country\": \"<string>\",\n  \"calc_vat_from\": 0,\n  \"cancel_id\": \"<long>\",\n  \"cash_allowance\": null,\n  \"cash_allowance_days\": null,\n  \"cash_allowance_text\": null,\n  \"contact_id\": null,\n  \"contact_label\": \"\",\n  \"contact_text\": \"\",\n  \"created_at\": \"<dateTime>\",\n  \"currency\": \"EUR\",\n  \"customer_id\": null,\n  \"customer_snapshot\": {\n    \"last_name\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"acquire_options\": 2,\n    \"additional_groups_ids\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"bank_account\": \"<string>\",\n    \"bank_account_owner\": \"<string>\",\n    \"bank_bic\": \"<string>\",\n    \"bank_code\": \"<string>\",\n    \"bank_iban\": \"<string>\",\n    \"bank_name\": \"<string>\",\n    \"birth_date\": \"<date>\",\n    \"cash_allowance\": \"<float>\",\n    \"cash_allowance_days\": 7,\n    \"cash_discount\": \"<float>\",\n    \"cash_discount_type\": \"AMOUNT\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\",\n    \"created_at\": \"<date>\",\n    \"updated_at\": \"<string>\",\n    \"delivery_title\": \"<string>\",\n    \"delivery_city\": \"<string>\",\n    \"delivery_state\": \"<string>\",\n    \"delivery_company_name\": \"<string>\",\n    \"delivery_country\": \"<string>\",\n    \"delivery_first_name\": \"<string>\",\n    \"delivery_last_name\": \"<string>\",\n    \"delivery_personal\": \"<boolean>\",\n    \"delivery_salutation\": 0,\n    \"delivery_street\": \"<string>\",\n    \"delivery_suffix_1\": \"<string>\",\n    \"delivery_suffix_2\": \"<string>\",\n    \"delivery_zip_code\": \"<string>\",\n    \"display_name\": \"<string>\",\n    \"emails\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"fax\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"grace_period\": \"<integer>\",\n    \"due_in_days\": \"<integer>\",\n    \"group_id\": \"<integer>\",\n    \"id\": \"<long>\",\n    \"info_1\": \"<string>\",\n    \"info_2\": \"<string>\",\n    \"internet\": \"<string>\",\n    \"login_id\": \"<long>\",\n    \"mobile\": \"<string>\",\n    \"note\": \"<string>\",\n    \"number\": \"<string>\",\n    \"payment_options\": 1,\n    \"personal\": false,\n    \"phone_1\": \"<string>\",\n    \"phone_2\": \"<string>\",\n    \"postbox\": \"<string>\",\n    \"postbox_city\": \"<string>\",\n    \"postbox_state\": \"<string>\",\n    \"postbox_country\": \"<string>\",\n    \"postbox_zip_code\": \"<string>\",\n    \"sale_price_level\": \"SALEPRICE6\",\n    \"salutation\": 0,\n    \"sepa_agreement\": \"BASIC\",\n    \"sepa_agreement_date\": \"<date>\",\n    \"sepa_mandate_reference\": \"<string>\",\n    \"since_date\": \"<date>\",\n    \"street\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"tax_number\": \"<string>\",\n    \"court\": \"<string>\",\n    \"court_registry_number\": \"<string>\",\n    \"tax_options\": \"nStbIm\",\n    \"title\": \"<string>\",\n    \"archived\": \"<boolean>\",\n    \"vat_identifier\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"document_pdf_type\": \"default\",\n    \"buyer_reference\": \"<string>\",\n    \"foreign_supplier_number\": \"<string>\"\n  },\n  \"discount\": null,\n  \"discount_type\": null,\n  \"document_date\": \"<date>\",\n  \"due_date\": \"<date>\",\n  \"edited_at\": \"<dateTime>\",\n  \"external_id\": null,\n  \"replica_url\": null,\n  \"grace_period\": \"<integer>\",\n  \"due_in_days\": \"<integer>\",\n  \"id\": \"<long>\",\n  \"is_acceptable_on_public_domain\": false,\n  \"is_archive\": false,\n  \"is_draft\": \"<boolean>\",\n  \"is_replica\": false,\n  \"is_oss\": false,\n  \"item_notes\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"items\": [\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    },\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    }\n  ],\n  \"last_postbox_id\": \"<long>\",\n  \"login_id\": \"<long>\",\n  \"number\": null,\n  \"order_number\": \"\",\n  \"buyer_reference\": \"\",\n  \"paid_amount\": \"<integer>\",\n  \"paid_at\": \"<date>\",\n  \"pdf_pages\": \"<integer>\",\n  \"pdf_template\": \"<string>\",\n  \"project_id\": null,\n  \"recurring_options\": {\n    \"next_date\": \"<date>\",\n    \"frequency\": \"MONTHLY\",\n    \"frequency_special\": null,\n    \"interval\": 1,\n    \"end_date_or_count\": null,\n    \"status\": \"WAITING\",\n    \"as_draft\": false,\n    \"is_notify\": false,\n    \"send_as\": null,\n    \"is_sign\": false,\n    \"is_paid\": false,\n    \"paid_date_option\": \"created_date\",\n    \"is_sepa\": false,\n    \"sepa_local_instrument\": null,\n    \"sepa_sequence_type\": null,\n    \"sepa_reference\": null,\n    \"sepa_remittance_information\": null,\n    \"target_type\": \"INVOICE\"\n  },\n  \"ref_id\": null,\n  \"root_id\": null,\n  \"service_date\": {\n    \"type\": \"SERVICE\",\n    \"date\": \"<date>\",\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"text\": null\n  },\n  \"shipping_country\": null,\n  \"status\": null,\n  \"text\": \"<string>\",\n  \"text_prefix\": \"<string>\",\n  \"text_tax\": null,\n  \"title\": null,\n  \"type\": \"INVOICE\",\n  \"use_shipping_address\": false,\n  \"vat_country\": null,\n  \"vat_id\": \"\",\n  \"fulfillment_country\": null,\n  \"vat_option\": null,\n  \"file_format_config\": [\n    {\n      \"type\": \"xrechnung2_2_xml\"\n    },\n    {\n      \"type\": \"xrechnung3_0_xml\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/documents/:id?refresh_customer_data=true&reason_for_change=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "documents",
            ":id"
          ],
          "query": [
            {
              "key": "refresh_customer_data",
              "value": "true",
              "description": "Forces refreshing of the customer data."
            },
            {
              "key": "reason_for_change",
              "value": "<string>",
              "description": "A string that is saved on the document version as reason. This value takes only affect if you update an already finalized document and provide this value."
            }
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"attachment_ids\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"label_address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"amount\": \"<integer>\",\n  \"amount_net\": \"<integer>\",\n  \"bank_debit_form\": null,\n  \"billing_country\": \"<string>\",\n  \"calc_vat_from\": 0,\n  \"cancel_id\": \"<long>\",\n  \"cash_allowance\": null,\n  \"cash_allowance_days\": null,\n  \"cash_allowance_text\": null,\n  \"contact_id\": null,\n  \"contact_label\": \"\",\n  \"contact_text\": \"\",\n  \"created_at\": \"<dateTime>\",\n  \"currency\": \"EUR\",\n  \"customer_id\": null,\n  \"customer_snapshot\": {\n    \"last_name\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"acquire_options\": 2,\n    \"additional_groups_ids\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"bank_account\": \"<string>\",\n    \"bank_account_owner\": \"<string>\",\n    \"bank_bic\": \"<string>\",\n    \"bank_code\": \"<string>\",\n    \"bank_iban\": \"<string>\",\n    \"bank_name\": \"<string>\",\n    \"birth_date\": \"<date>\",\n    \"cash_allowance\": \"<float>\",\n    \"cash_allowance_days\": 7,\n    \"cash_discount\": \"<float>\",\n    \"cash_discount_type\": \"AMOUNT\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\",\n    \"created_at\": \"<date>\",\n    \"updated_at\": \"<string>\",\n    \"delivery_title\": \"<string>\",\n    \"delivery_city\": \"<string>\",\n    \"delivery_state\": \"<string>\",\n    \"delivery_company_name\": \"<string>\",\n    \"delivery_country\": \"<string>\",\n    \"delivery_first_name\": \"<string>\",\n    \"delivery_last_name\": \"<string>\",\n    \"delivery_personal\": \"<boolean>\",\n    \"delivery_salutation\": 0,\n    \"delivery_street\": \"<string>\",\n    \"delivery_suffix_1\": \"<string>\",\n    \"delivery_suffix_2\": \"<string>\",\n    \"delivery_zip_code\": \"<string>\",\n    \"display_name\": \"<string>\",\n    \"emails\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"fax\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"grace_period\": \"<integer>\",\n    \"due_in_days\": \"<integer>\",\n    \"group_id\": \"<integer>\",\n    \"id\": \"<long>\",\n    \"info_1\": \"<string>\",\n    \"info_2\": \"<string>\",\n    \"internet\": \"<string>\",\n    \"login_id\": \"<long>\",\n    \"mobile\": \"<string>\",\n    \"note\": \"<string>\",\n    \"number\": \"<string>\",\n    \"payment_options\": 1,\n    \"personal\": false,\n    \"phone_1\": \"<string>\",\n    \"phone_2\": \"<string>\",\n    \"postbox\": \"<string>\",\n    \"postbox_city\": \"<string>\",\n    \"postbox_state\": \"<string>\",\n    \"postbox_country\": \"<string>\",\n    \"postbox_zip_code\": \"<string>\",\n    \"sale_price_level\": \"SALEPRICE6\",\n    \"salutation\": 0,\n    \"sepa_agreement\": \"BASIC\",\n    \"sepa_agreement_date\": \"<date>\",\n    \"sepa_mandate_reference\": \"<string>\",\n    \"since_date\": \"<date>\",\n    \"street\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"tax_number\": \"<string>\",\n    \"court\": \"<string>\",\n    \"court_registry_number\": \"<string>\",\n    \"tax_options\": \"nStbIm\",\n    \"title\": \"<string>\",\n    \"archived\": \"<boolean>\",\n    \"vat_identifier\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"document_pdf_type\": \"default\",\n    \"buyer_reference\": \"<string>\",\n    \"foreign_supplier_number\": \"<string>\"\n  },\n  \"discount\": null,\n  \"discount_type\": null,\n  \"document_date\": \"<date>\",\n  \"due_date\": \"<date>\",\n  \"edited_at\": \"<dateTime>\",\n  \"external_id\": null,\n  \"replica_url\": null,\n  \"grace_period\": \"<integer>\",\n  \"due_in_days\": \"<integer>\",\n  \"id\": \"<long>\",\n  \"is_acceptable_on_public_domain\": false,\n  \"is_archive\": false,\n  \"is_draft\": \"<boolean>\",\n  \"is_replica\": false,\n  \"is_oss\": false,\n  \"item_notes\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"items\": [\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    },\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    }\n  ],\n  \"last_postbox_id\": \"<long>\",\n  \"login_id\": \"<long>\",\n  \"number\": null,\n  \"order_number\": \"\",\n  \"buyer_reference\": \"\",\n  \"paid_amount\": \"<integer>\",\n  \"paid_at\": \"<date>\",\n  \"pdf_pages\": \"<integer>\",\n  \"pdf_template\": \"<string>\",\n  \"project_id\": null,\n  \"recurring_options\": {\n    \"next_date\": \"<date>\",\n    \"frequency\": \"MONTHLY\",\n    \"frequency_special\": null,\n    \"interval\": 1,\n    \"end_date_or_count\": null,\n    \"status\": \"WAITING\",\n    \"as_draft\": false,\n    \"is_notify\": false,\n    \"send_as\": null,\n    \"is_sign\": false,\n    \"is_paid\": false,\n    \"paid_date_option\": \"created_date\",\n    \"is_sepa\": false,\n    \"sepa_local_instrument\": null,\n    \"sepa_sequence_type\": null,\n    \"sepa_reference\": null,\n    \"sepa_remittance_information\": null,\n    \"target_type\": \"INVOICE\"\n  },\n  \"ref_id\": null,\n  \"root_id\": null,\n  \"service_date\": {\n    \"type\": \"SERVICE\",\n    \"date\": \"<date>\",\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"text\": null\n  },\n  \"shipping_country\": null,\n  \"status\": null,\n  \"text\": \"<string>\",\n  \"text_prefix\": \"<string>\",\n  \"text_tax\": null,\n  \"title\": null,\n  \"type\": \"INVOICE\",\n  \"use_shipping_address\": false,\n  \"vat_country\": null,\n  \"vat_id\": \"\",\n  \"fulfillment_country\": null,\n  \"vat_option\": null,\n  \"file_format_config\": [\n    {\n      \"type\": \"xrechnung2_2_xml\"\n    },\n    {\n      \"type\": \"xrechnung3_0_xml\"\n    }\n  ]\n}"
    },
    {
      "name": "Invalid Document",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "Authorization",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"attachment_ids\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"label_address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"amount\": \"<integer>\",\n  \"amount_net\": \"<integer>\",\n  \"bank_debit_form\": null,\n  \"billing_country\": \"<string>\",\n  \"calc_vat_from\": 0,\n  \"cancel_id\": \"<long>\",\n  \"cash_allowance\": null,\n  \"cash_allowance_days\": null,\n  \"cash_allowance_text\": null,\n  \"contact_id\": null,\n  \"contact_label\": \"\",\n  \"contact_text\": \"\",\n  \"created_at\": \"<dateTime>\",\n  \"currency\": \"EUR\",\n  \"customer_id\": null,\n  \"customer_snapshot\": {\n    \"last_name\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"acquire_options\": 2,\n    \"additional_groups_ids\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"bank_account\": \"<string>\",\n    \"bank_account_owner\": \"<string>\",\n    \"bank_bic\": \"<string>\",\n    \"bank_code\": \"<string>\",\n    \"bank_iban\": \"<string>\",\n    \"bank_name\": \"<string>\",\n    \"birth_date\": \"<date>\",\n    \"cash_allowance\": \"<float>\",\n    \"cash_allowance_days\": 7,\n    \"cash_discount\": \"<float>\",\n    \"cash_discount_type\": \"AMOUNT\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\",\n    \"created_at\": \"<date>\",\n    \"updated_at\": \"<string>\",\n    \"delivery_title\": \"<string>\",\n    \"delivery_city\": \"<string>\",\n    \"delivery_state\": \"<string>\",\n    \"delivery_company_name\": \"<string>\",\n    \"delivery_country\": \"<string>\",\n    \"delivery_first_name\": \"<string>\",\n    \"delivery_last_name\": \"<string>\",\n    \"delivery_personal\": \"<boolean>\",\n    \"delivery_salutation\": 0,\n    \"delivery_street\": \"<string>\",\n    \"delivery_suffix_1\": \"<string>\",\n    \"delivery_suffix_2\": \"<string>\",\n    \"delivery_zip_code\": \"<string>\",\n    \"display_name\": \"<string>\",\n    \"emails\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"fax\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"grace_period\": \"<integer>\",\n    \"due_in_days\": \"<integer>\",\n    \"group_id\": \"<integer>\",\n    \"id\": \"<long>\",\n    \"info_1\": \"<string>\",\n    \"info_2\": \"<string>\",\n    \"internet\": \"<string>\",\n    \"login_id\": \"<long>\",\n    \"mobile\": \"<string>\",\n    \"note\": \"<string>\",\n    \"number\": \"<string>\",\n    \"payment_options\": 1,\n    \"personal\": false,\n    \"phone_1\": \"<string>\",\n    \"phone_2\": \"<string>\",\n    \"postbox\": \"<string>\",\n    \"postbox_city\": \"<string>\",\n    \"postbox_state\": \"<string>\",\n    \"postbox_country\": \"<string>\",\n    \"postbox_zip_code\": \"<string>\",\n    \"sale_price_level\": \"SALEPRICE6\",\n    \"salutation\": 0,\n    \"sepa_agreement\": \"BASIC\",\n    \"sepa_agreement_date\": \"<date>\",\n    \"sepa_mandate_reference\": \"<string>\",\n    \"since_date\": \"<date>\",\n    \"street\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"tax_number\": \"<string>\",\n    \"court\": \"<string>\",\n    \"court_registry_number\": \"<string>\",\n    \"tax_options\": \"nStbIm\",\n    \"title\": \"<string>\",\n    \"archived\": \"<boolean>\",\n    \"vat_identifier\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"document_pdf_type\": \"default\",\n    \"buyer_reference\": \"<string>\",\n    \"foreign_supplier_number\": \"<string>\"\n  },\n  \"discount\": null,\n  \"discount_type\": null,\n  \"document_date\": \"<date>\",\n  \"due_date\": \"<date>\",\n  \"edited_at\": \"<dateTime>\",\n  \"external_id\": null,\n  \"replica_url\": null,\n  \"grace_period\": \"<integer>\",\n  \"due_in_days\": \"<integer>\",\n  \"id\": \"<long>\",\n  \"is_acceptable_on_public_domain\": false,\n  \"is_archive\": false,\n  \"is_draft\": \"<boolean>\",\n  \"is_replica\": false,\n  \"is_oss\": false,\n  \"item_notes\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"items\": [\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    },\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    }\n  ],\n  \"last_postbox_id\": \"<long>\",\n  \"login_id\": \"<long>\",\n  \"number\": null,\n  \"order_number\": \"\",\n  \"buyer_reference\": \"\",\n  \"paid_amount\": \"<integer>\",\n  \"paid_at\": \"<date>\",\n  \"pdf_pages\": \"<integer>\",\n  \"pdf_template\": \"<string>\",\n  \"project_id\": null,\n  \"recurring_options\": {\n    \"next_date\": \"<date>\",\n    \"frequency\": \"MONTHLY\",\n    \"frequency_special\": null,\n    \"interval\": 1,\n    \"end_date_or_count\": null,\n    \"status\": \"WAITING\",\n    \"as_draft\": false,\n    \"is_notify\": false,\n    \"send_as\": null,\n    \"is_sign\": false,\n    \"is_paid\": false,\n    \"paid_date_option\": \"created_date\",\n    \"is_sepa\": false,\n    \"sepa_local_instrument\": null,\n    \"sepa_sequence_type\": null,\n    \"sepa_reference\": null,\n    \"sepa_remittance_information\": null,\n    \"target_type\": \"INVOICE\"\n  },\n  \"ref_id\": null,\n  \"root_id\": null,\n  \"service_date\": {\n    \"type\": \"SERVICE\",\n    \"date\": \"<date>\",\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"text\": null\n  },\n  \"shipping_country\": null,\n  \"status\": null,\n  \"text\": \"<string>\",\n  \"text_prefix\": \"<string>\",\n  \"text_tax\": null,\n  \"title\": null,\n  \"type\": \"INVOICE\",\n  \"use_shipping_address\": false,\n  \"vat_country\": null,\n  \"vat_id\": \"\",\n  \"fulfillment_country\": null,\n  \"vat_option\": null,\n  \"file_format_config\": [\n    {\n      \"type\": \"xrechnung2_2_xml\"\n    },\n    {\n      \"type\": \"xrechnung3_0_xml\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/documents/:id?refresh_customer_data=true&reason_for_change=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "documents",
            ":id"
          ],
          "query": [
            {
              "key": "refresh_customer_data",
              "value": "true",
              "description": "Forces refreshing of the customer data."
            },
            {
              "key": "reason_for_change",
              "value": "<string>",
              "description": "A string that is saved on the document version as reason. This value takes only affect if you update an already finalized document and provide this value."
            }
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Resource is locked. This status is returned if a process is currently running which locks the requested resource. Try again later.",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "Authorization",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"attachment_ids\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"label_address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"amount\": \"<integer>\",\n  \"amount_net\": \"<integer>\",\n  \"bank_debit_form\": null,\n  \"billing_country\": \"<string>\",\n  \"calc_vat_from\": 0,\n  \"cancel_id\": \"<long>\",\n  \"cash_allowance\": null,\n  \"cash_allowance_days\": null,\n  \"cash_allowance_text\": null,\n  \"contact_id\": null,\n  \"contact_label\": \"\",\n  \"contact_text\": \"\",\n  \"created_at\": \"<dateTime>\",\n  \"currency\": \"EUR\",\n  \"customer_id\": null,\n  \"customer_snapshot\": {\n    \"last_name\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"acquire_options\": 2,\n    \"additional_groups_ids\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"bank_account\": \"<string>\",\n    \"bank_account_owner\": \"<string>\",\n    \"bank_bic\": \"<string>\",\n    \"bank_code\": \"<string>\",\n    \"bank_iban\": \"<string>\",\n    \"bank_name\": \"<string>\",\n    \"birth_date\": \"<date>\",\n    \"cash_allowance\": \"<float>\",\n    \"cash_allowance_days\": 7,\n    \"cash_discount\": \"<float>\",\n    \"cash_discount_type\": \"AMOUNT\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\",\n    \"created_at\": \"<date>\",\n    \"updated_at\": \"<string>\",\n    \"delivery_title\": \"<string>\",\n    \"delivery_city\": \"<string>\",\n    \"delivery_state\": \"<string>\",\n    \"delivery_company_name\": \"<string>\",\n    \"delivery_country\": \"<string>\",\n    \"delivery_first_name\": \"<string>\",\n    \"delivery_last_name\": \"<string>\",\n    \"delivery_personal\": \"<boolean>\",\n    \"delivery_salutation\": 0,\n    \"delivery_street\": \"<string>\",\n    \"delivery_suffix_1\": \"<string>\",\n    \"delivery_suffix_2\": \"<string>\",\n    \"delivery_zip_code\": \"<string>\",\n    \"display_name\": \"<string>\",\n    \"emails\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"fax\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"grace_period\": \"<integer>\",\n    \"due_in_days\": \"<integer>\",\n    \"group_id\": \"<integer>\",\n    \"id\": \"<long>\",\n    \"info_1\": \"<string>\",\n    \"info_2\": \"<string>\",\n    \"internet\": \"<string>\",\n    \"login_id\": \"<long>\",\n    \"mobile\": \"<string>\",\n    \"note\": \"<string>\",\n    \"number\": \"<string>\",\n    \"payment_options\": 1,\n    \"personal\": false,\n    \"phone_1\": \"<string>\",\n    \"phone_2\": \"<string>\",\n    \"postbox\": \"<string>\",\n    \"postbox_city\": \"<string>\",\n    \"postbox_state\": \"<string>\",\n    \"postbox_country\": \"<string>\",\n    \"postbox_zip_code\": \"<string>\",\n    \"sale_price_level\": \"SALEPRICE6\",\n    \"salutation\": 0,\n    \"sepa_agreement\": \"BASIC\",\n    \"sepa_agreement_date\": \"<date>\",\n    \"sepa_mandate_reference\": \"<string>\",\n    \"since_date\": \"<date>\",\n    \"street\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"tax_number\": \"<string>\",\n    \"court\": \"<string>\",\n    \"court_registry_number\": \"<string>\",\n    \"tax_options\": \"nStbIm\",\n    \"title\": \"<string>\",\n    \"archived\": \"<boolean>\",\n    \"vat_identifier\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"document_pdf_type\": \"default\",\n    \"buyer_reference\": \"<string>\",\n    \"foreign_supplier_number\": \"<string>\"\n  },\n  \"discount\": null,\n  \"discount_type\": null,\n  \"document_date\": \"<date>\",\n  \"due_date\": \"<date>\",\n  \"edited_at\": \"<dateTime>\",\n  \"external_id\": null,\n  \"replica_url\": null,\n  \"grace_period\": \"<integer>\",\n  \"due_in_days\": \"<integer>\",\n  \"id\": \"<long>\",\n  \"is_acceptable_on_public_domain\": false,\n  \"is_archive\": false,\n  \"is_draft\": \"<boolean>\",\n  \"is_replica\": false,\n  \"is_oss\": false,\n  \"item_notes\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"items\": [\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    },\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    }\n  ],\n  \"last_postbox_id\": \"<long>\",\n  \"login_id\": \"<long>\",\n  \"number\": null,\n  \"order_number\": \"\",\n  \"buyer_reference\": \"\",\n  \"paid_amount\": \"<integer>\",\n  \"paid_at\": \"<date>\",\n  \"pdf_pages\": \"<integer>\",\n  \"pdf_template\": \"<string>\",\n  \"project_id\": null,\n  \"recurring_options\": {\n    \"next_date\": \"<date>\",\n    \"frequency\": \"MONTHLY\",\n    \"frequency_special\": null,\n    \"interval\": 1,\n    \"end_date_or_count\": null,\n    \"status\": \"WAITING\",\n    \"as_draft\": false,\n    \"is_notify\": false,\n    \"send_as\": null,\n    \"is_sign\": false,\n    \"is_paid\": false,\n    \"paid_date_option\": \"created_date\",\n    \"is_sepa\": false,\n    \"sepa_local_instrument\": null,\n    \"sepa_sequence_type\": null,\n    \"sepa_reference\": null,\n    \"sepa_remittance_information\": null,\n    \"target_type\": \"INVOICE\"\n  },\n  \"ref_id\": null,\n  \"root_id\": null,\n  \"service_date\": {\n    \"type\": \"SERVICE\",\n    \"date\": \"<date>\",\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"text\": null\n  },\n  \"shipping_country\": null,\n  \"status\": null,\n  \"text\": \"<string>\",\n  \"text_prefix\": \"<string>\",\n  \"text_tax\": null,\n  \"title\": null,\n  \"type\": \"INVOICE\",\n  \"use_shipping_address\": false,\n  \"vat_country\": null,\n  \"vat_id\": \"\",\n  \"fulfillment_country\": null,\n  \"vat_option\": null,\n  \"file_format_config\": [\n    {\n      \"type\": \"xrechnung2_2_xml\"\n    },\n    {\n      \"type\": \"xrechnung3_0_xml\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/documents/:id?refresh_customer_data=true&reason_for_change=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "documents",
            ":id"
          ],
          "query": [
            {
              "key": "refresh_customer_data",
              "value": "true",
              "description": "Forces refreshing of the customer data."
            },
            {
              "key": "reason_for_change",
              "value": "<string>",
              "description": "A string that is saved on the document version as reason. This value takes only affect if you update an already finalized document and provide this value."
            }
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "status": "Conflict",
      "code": 409,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Too Many Requests",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "Authorization",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"attachment_ids\": [\n    \"<integer>\",\n    \"<integer>\"\n  ],\n  \"label_address\": {\n    \"salutation\": \"<integer>\",\n    \"personal\": \"<boolean>\",\n    \"title\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"street\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"amount\": \"<integer>\",\n  \"amount_net\": \"<integer>\",\n  \"bank_debit_form\": null,\n  \"billing_country\": \"<string>\",\n  \"calc_vat_from\": 0,\n  \"cancel_id\": \"<long>\",\n  \"cash_allowance\": null,\n  \"cash_allowance_days\": null,\n  \"cash_allowance_text\": null,\n  \"contact_id\": null,\n  \"contact_label\": \"\",\n  \"contact_text\": \"\",\n  \"created_at\": \"<dateTime>\",\n  \"currency\": \"EUR\",\n  \"customer_id\": null,\n  \"customer_snapshot\": {\n    \"last_name\": \"<string>\",\n    \"company_name\": \"<string>\",\n    \"acquire_options\": 2,\n    \"additional_groups_ids\": [\n      \"<integer>\",\n      \"<integer>\"\n    ],\n    \"bank_account\": \"<string>\",\n    \"bank_account_owner\": \"<string>\",\n    \"bank_bic\": \"<string>\",\n    \"bank_code\": \"<string>\",\n    \"bank_iban\": \"<string>\",\n    \"bank_name\": \"<string>\",\n    \"birth_date\": \"<date>\",\n    \"cash_allowance\": \"<float>\",\n    \"cash_allowance_days\": 7,\n    \"cash_discount\": \"<float>\",\n    \"cash_discount_type\": \"AMOUNT\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"country\": \"<string>\",\n    \"created_at\": \"<date>\",\n    \"updated_at\": \"<string>\",\n    \"delivery_title\": \"<string>\",\n    \"delivery_city\": \"<string>\",\n    \"delivery_state\": \"<string>\",\n    \"delivery_company_name\": \"<string>\",\n    \"delivery_country\": \"<string>\",\n    \"delivery_first_name\": \"<string>\",\n    \"delivery_last_name\": \"<string>\",\n    \"delivery_personal\": \"<boolean>\",\n    \"delivery_salutation\": 0,\n    \"delivery_street\": \"<string>\",\n    \"delivery_suffix_1\": \"<string>\",\n    \"delivery_suffix_2\": \"<string>\",\n    \"delivery_zip_code\": \"<string>\",\n    \"display_name\": \"<string>\",\n    \"emails\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"fax\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"grace_period\": \"<integer>\",\n    \"due_in_days\": \"<integer>\",\n    \"group_id\": \"<integer>\",\n    \"id\": \"<long>\",\n    \"info_1\": \"<string>\",\n    \"info_2\": \"<string>\",\n    \"internet\": \"<string>\",\n    \"login_id\": \"<long>\",\n    \"mobile\": \"<string>\",\n    \"note\": \"<string>\",\n    \"number\": \"<string>\",\n    \"payment_options\": 1,\n    \"personal\": false,\n    \"phone_1\": \"<string>\",\n    \"phone_2\": \"<string>\",\n    \"postbox\": \"<string>\",\n    \"postbox_city\": \"<string>\",\n    \"postbox_state\": \"<string>\",\n    \"postbox_country\": \"<string>\",\n    \"postbox_zip_code\": \"<string>\",\n    \"sale_price_level\": \"SALEPRICE6\",\n    \"salutation\": 0,\n    \"sepa_agreement\": \"BASIC\",\n    \"sepa_agreement_date\": \"<date>\",\n    \"sepa_mandate_reference\": \"<string>\",\n    \"since_date\": \"<date>\",\n    \"street\": \"<string>\",\n    \"suffix_1\": \"<string>\",\n    \"suffix_2\": \"<string>\",\n    \"tax_number\": \"<string>\",\n    \"court\": \"<string>\",\n    \"court_registry_number\": \"<string>\",\n    \"tax_options\": \"nStbIm\",\n    \"title\": \"<string>\",\n    \"archived\": \"<boolean>\",\n    \"vat_identifier\": \"<string>\",\n    \"zip_code\": \"<string>\",\n    \"document_pdf_type\": \"default\",\n    \"buyer_reference\": \"<string>\",\n    \"foreign_supplier_number\": \"<string>\"\n  },\n  \"discount\": null,\n  \"discount_type\": null,\n  \"document_date\": \"<date>\",\n  \"due_date\": \"<date>\",\n  \"edited_at\": \"<dateTime>\",\n  \"external_id\": null,\n  \"replica_url\": null,\n  \"grace_period\": \"<integer>\",\n  \"due_in_days\": \"<integer>\",\n  \"id\": \"<long>\",\n  \"is_acceptable_on_public_domain\": false,\n  \"is_archive\": false,\n  \"is_draft\": \"<boolean>\",\n  \"is_replica\": false,\n  \"is_oss\": false,\n  \"item_notes\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"items\": [\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    },\n    {\n      \"number\": null,\n      \"description\": null,\n      \"document_note\": \"<string>\",\n      \"quantity\": 1,\n      \"quantity_str\": \"<string>\",\n      \"unit\": null,\n      \"type\": \"POSITION\",\n      \"position\": \"<integer>\",\n      \"single_price_net\": null,\n      \"single_price_gross\": \"<float>\",\n      \"vat_percent\": 0,\n      \"discount\": null,\n      \"discount_type\": null,\n      \"position_id\": null,\n      \"total_price_net\": \"<float>\",\n      \"total_price_gross\": \"<float>\",\n      \"total_vat\": \"<float>\",\n      \"serial_number_id\": \"<string>\",\n      \"serial_number\": \"<string>\",\n      \"booking_account\": null,\n      \"export_cost_1\": null,\n      \"export_cost_2\": null,\n      \"cost_price_net\": null,\n      \"cost_price_total\": \"<float>\",\n      \"cost_price_charge\": \"<float>\",\n      \"cost_price_charge_type\": \"PERCENT\",\n      \"itemType\": \"UNDEFINED\",\n      \"id\": \"<long>\"\n    }\n  ],\n  \"last_postbox_id\": \"<long>\",\n  \"login_id\": \"<long>\",\n  \"number\": null,\n  \"order_number\": \"\",\n  \"buyer_reference\": \"\",\n  \"paid_amount\": \"<integer>\",\n  \"paid_at\": \"<date>\",\n  \"pdf_pages\": \"<integer>\",\n  \"pdf_template\": \"<string>\",\n  \"project_id\": null,\n  \"recurring_options\": {\n    \"next_date\": \"<date>\",\n    \"frequency\": \"MONTHLY\",\n    \"frequency_special\": null,\n    \"interval\": 1,\n    \"end_date_or_count\": null,\n    \"status\": \"WAITING\",\n    \"as_draft\": false,\n    \"is_notify\": false,\n    \"send_as\": null,\n    \"is_sign\": false,\n    \"is_paid\": false,\n    \"paid_date_option\": \"created_date\",\n    \"is_sepa\": false,\n    \"sepa_local_instrument\": null,\n    \"sepa_sequence_type\": null,\n    \"sepa_reference\": null,\n    \"sepa_remittance_information\": null,\n    \"target_type\": \"INVOICE\"\n  },\n  \"ref_id\": null,\n  \"root_id\": null,\n  \"service_date\": {\n    \"type\": \"SERVICE\",\n    \"date\": \"<date>\",\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"text\": null\n  },\n  \"shipping_country\": null,\n  \"status\": null,\n  \"text\": \"<string>\",\n  \"text_prefix\": \"<string>\",\n  \"text_tax\": null,\n  \"title\": null,\n  \"type\": \"INVOICE\",\n  \"use_shipping_address\": false,\n  \"vat_country\": null,\n  \"vat_id\": \"\",\n  \"fulfillment_country\": null,\n  \"vat_option\": null,\n  \"file_format_config\": [\n    {\n      \"type\": \"xrechnung2_2_xml\"\n    },\n    {\n      \"type\": \"xrechnung3_0_xml\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/documents/:id?refresh_customer_data=true&reason_for_change=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "documents",
            ":id"
          ],
          "query": [
            {
              "key": "refresh_customer_data",
              "value": "true",
              "description": "Forces refreshing of the customer data."
            },
            {
              "key": "reason_for_change",
              "value": "<string>",
              "description": "A string that is saved on the document version as reason. This value takes only affect if you update an already finalized document and provide this value."
            }
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}