Back to Collection Items
' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.
Dim http As New ChilkatHttp
Dim success As Long
' 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"
' }
' ]
' }
Dim json As New ChilkatJsonObject
success = json.UpdateString("address.salutation","<integer>")
success = json.UpdateString("address.personal","<boolean>")
success = json.UpdateString("address.title","<string>")
success = json.UpdateString("address.first_name","<string>")
success = json.UpdateString("address.last_name","<string>")
success = json.UpdateString("address.suffix_1","<string>")
success = json.UpdateString("address.suffix_2","<string>")
success = json.UpdateString("address.company_name","<string>")
success = json.UpdateString("address.street","<string>")
success = json.UpdateString("address.zip_code","<string>")
success = json.UpdateString("address.city","<string>")
success = json.UpdateString("address.state","<string>")
success = json.UpdateString("address.country","<string>")
success = json.UpdateString("attachment_ids[0]","<integer>")
success = json.UpdateString("attachment_ids[1]","<integer>")
success = json.UpdateString("label_address.salutation","<integer>")
success = json.UpdateString("label_address.personal","<boolean>")
success = json.UpdateString("label_address.title","<string>")
success = json.UpdateString("label_address.first_name","<string>")
success = json.UpdateString("label_address.last_name","<string>")
success = json.UpdateString("label_address.suffix_1","<string>")
success = json.UpdateString("label_address.suffix_2","<string>")
success = json.UpdateString("label_address.company_name","<string>")
success = json.UpdateString("label_address.street","<string>")
success = json.UpdateString("label_address.zip_code","<string>")
success = json.UpdateString("label_address.city","<string>")
success = json.UpdateString("label_address.state","<string>")
success = json.UpdateString("label_address.country","<string>")
success = json.UpdateString("amount","<integer>")
success = json.UpdateString("amount_net","<integer>")
success = json.UpdateNull("bank_debit_form")
success = json.UpdateString("billing_country","<string>")
success = json.UpdateInt("calc_vat_from",0)
success = json.UpdateString("cancel_id","<long>")
success = json.UpdateNull("cash_allowance")
success = json.UpdateNull("cash_allowance_days")
success = json.UpdateNull("cash_allowance_text")
success = json.UpdateNull("contact_id")
success = json.UpdateString("contact_label","")
success = json.UpdateString("contact_text","")
success = json.UpdateString("created_at","<dateTime>")
success = json.UpdateString("currency","EUR")
success = json.UpdateNull("customer_id")
success = json.UpdateString("customer_snapshot.last_name","<string>")
success = json.UpdateString("customer_snapshot.company_name","<string>")
success = json.UpdateInt("customer_snapshot.acquire_options",2)
success = json.UpdateString("customer_snapshot.additional_groups_ids[0]","<integer>")
success = json.UpdateString("customer_snapshot.additional_groups_ids[1]","<integer>")
success = json.UpdateString("customer_snapshot.bank_account","<string>")
success = json.UpdateString("customer_snapshot.bank_account_owner","<string>")
success = json.UpdateString("customer_snapshot.bank_bic","<string>")
success = json.UpdateString("customer_snapshot.bank_code","<string>")
success = json.UpdateString("customer_snapshot.bank_iban","<string>")
success = json.UpdateString("customer_snapshot.bank_name","<string>")
success = json.UpdateString("customer_snapshot.birth_date","<date>")
success = json.UpdateString("customer_snapshot.cash_allowance","<float>")
success = json.UpdateInt("customer_snapshot.cash_allowance_days",7)
success = json.UpdateString("customer_snapshot.cash_discount","<float>")
success = json.UpdateString("customer_snapshot.cash_discount_type","AMOUNT")
success = json.UpdateString("customer_snapshot.city","<string>")
success = json.UpdateString("customer_snapshot.state","<string>")
success = json.UpdateString("customer_snapshot.country","<string>")
success = json.UpdateString("customer_snapshot.created_at","<date>")
success = json.UpdateString("customer_snapshot.updated_at","<string>")
success = json.UpdateString("customer_snapshot.delivery_title","<string>")
success = json.UpdateString("customer_snapshot.delivery_city","<string>")
success = json.UpdateString("customer_snapshot.delivery_state","<string>")
success = json.UpdateString("customer_snapshot.delivery_company_name","<string>")
success = json.UpdateString("customer_snapshot.delivery_country","<string>")
success = json.UpdateString("customer_snapshot.delivery_first_name","<string>")
success = json.UpdateString("customer_snapshot.delivery_last_name","<string>")
success = json.UpdateString("customer_snapshot.delivery_personal","<boolean>")
success = json.UpdateInt("customer_snapshot.delivery_salutation",0)
success = json.UpdateString("customer_snapshot.delivery_street","<string>")
success = json.UpdateString("customer_snapshot.delivery_suffix_1","<string>")
success = json.UpdateString("customer_snapshot.delivery_suffix_2","<string>")
success = json.UpdateString("customer_snapshot.delivery_zip_code","<string>")
success = json.UpdateString("customer_snapshot.display_name","<string>")
success = json.UpdateString("customer_snapshot.emails[0]","<string>")
success = json.UpdateString("customer_snapshot.emails[1]","<string>")
success = json.UpdateString("customer_snapshot.fax","<string>")
success = json.UpdateString("customer_snapshot.first_name","<string>")
success = json.UpdateString("customer_snapshot.grace_period","<integer>")
success = json.UpdateString("customer_snapshot.due_in_days","<integer>")
success = json.UpdateString("customer_snapshot.group_id","<integer>")
success = json.UpdateString("customer_snapshot.id","<long>")
success = json.UpdateString("customer_snapshot.info_1","<string>")
success = json.UpdateString("customer_snapshot.info_2","<string>")
success = json.UpdateString("customer_snapshot.internet","<string>")
success = json.UpdateString("customer_snapshot.login_id","<long>")
success = json.UpdateString("customer_snapshot.mobile","<string>")
success = json.UpdateString("customer_snapshot.note","<string>")
success = json.UpdateString("customer_snapshot.number","<string>")
success = json.UpdateInt("customer_snapshot.payment_options",1)
success = json.UpdateBool("customer_snapshot.personal",0)
success = json.UpdateString("customer_snapshot.phone_1","<string>")
success = json.UpdateString("customer_snapshot.phone_2","<string>")
success = json.UpdateString("customer_snapshot.postbox","<string>")
success = json.UpdateString("customer_snapshot.postbox_city","<string>")
success = json.UpdateString("customer_snapshot.postbox_state","<string>")
success = json.UpdateString("customer_snapshot.postbox_country","<string>")
success = json.UpdateString("customer_snapshot.postbox_zip_code","<string>")
success = json.UpdateString("customer_snapshot.sale_price_level","SALEPRICE6")
success = json.UpdateInt("customer_snapshot.salutation",0)
success = json.UpdateString("customer_snapshot.sepa_agreement","BASIC")
success = json.UpdateString("customer_snapshot.sepa_agreement_date","<date>")
success = json.UpdateString("customer_snapshot.sepa_mandate_reference","<string>")
success = json.UpdateString("customer_snapshot.since_date","<date>")
success = json.UpdateString("customer_snapshot.street","<string>")
success = json.UpdateString("customer_snapshot.suffix_1","<string>")
success = json.UpdateString("customer_snapshot.suffix_2","<string>")
success = json.UpdateString("customer_snapshot.tax_number","<string>")
success = json.UpdateString("customer_snapshot.court","<string>")
success = json.UpdateString("customer_snapshot.court_registry_number","<string>")
success = json.UpdateString("customer_snapshot.tax_options","nStbIm")
success = json.UpdateString("customer_snapshot.title","<string>")
success = json.UpdateString("customer_snapshot.archived","<boolean>")
success = json.UpdateString("customer_snapshot.vat_identifier","<string>")
success = json.UpdateString("customer_snapshot.zip_code","<string>")
success = json.UpdateString("customer_snapshot.document_pdf_type","default")
success = json.UpdateString("customer_snapshot.buyer_reference","<string>")
success = json.UpdateString("customer_snapshot.foreign_supplier_number","<string>")
success = json.UpdateNull("discount")
success = json.UpdateNull("discount_type")
success = json.UpdateString("document_date","<date>")
success = json.UpdateString("due_date","<date>")
success = json.UpdateString("edited_at","<dateTime>")
success = json.UpdateNull("external_id")
success = json.UpdateNull("replica_url")
success = json.UpdateString("grace_period","<integer>")
success = json.UpdateString("due_in_days","<integer>")
success = json.UpdateString("id","<long>")
success = json.UpdateBool("is_acceptable_on_public_domain",0)
success = json.UpdateBool("is_archive",0)
success = json.UpdateString("is_draft","<boolean>")
success = json.UpdateBool("is_replica",0)
success = json.UpdateBool("is_oss",0)
success = json.UpdateString("item_notes[0]","<string>")
success = json.UpdateString("item_notes[1]","<string>")
success = json.UpdateNull("items[0].number")
success = json.UpdateNull("items[0].description")
success = json.UpdateString("items[0].document_note","<string>")
success = json.UpdateInt("items[0].quantity",1)
success = json.UpdateString("items[0].quantity_str","<string>")
success = json.UpdateNull("items[0].unit")
success = json.UpdateString("items[0].type","POSITION")
success = json.UpdateString("items[0].position","<integer>")
success = json.UpdateNull("items[0].single_price_net")
success = json.UpdateString("items[0].single_price_gross","<float>")
success = json.UpdateInt("items[0].vat_percent",0)
success = json.UpdateNull("items[0].discount")
success = json.UpdateNull("items[0].discount_type")
success = json.UpdateNull("items[0].position_id")
success = json.UpdateString("items[0].total_price_net","<float>")
success = json.UpdateString("items[0].total_price_gross","<float>")
success = json.UpdateString("items[0].total_vat","<float>")
success = json.UpdateString("items[0].serial_number_id","<string>")
success = json.UpdateString("items[0].serial_number","<string>")
success = json.UpdateNull("items[0].booking_account")
success = json.UpdateNull("items[0].export_cost_1")
success = json.UpdateNull("items[0].export_cost_2")
success = json.UpdateNull("items[0].cost_price_net")
success = json.UpdateString("items[0].cost_price_total","<float>")
success = json.UpdateString("items[0].cost_price_charge","<float>")
success = json.UpdateString("items[0].cost_price_charge_type","PERCENT")
success = json.UpdateString("items[0].itemType","UNDEFINED")
success = json.UpdateString("items[0].id","<long>")
success = json.UpdateNull("items[1].number")
success = json.UpdateNull("items[1].description")
success = json.UpdateString("items[1].document_note","<string>")
success = json.UpdateInt("items[1].quantity",1)
success = json.UpdateString("items[1].quantity_str","<string>")
success = json.UpdateNull("items[1].unit")
success = json.UpdateString("items[1].type","POSITION")
success = json.UpdateString("items[1].position","<integer>")
success = json.UpdateNull("items[1].single_price_net")
success = json.UpdateString("items[1].single_price_gross","<float>")
success = json.UpdateInt("items[1].vat_percent",0)
success = json.UpdateNull("items[1].discount")
success = json.UpdateNull("items[1].discount_type")
success = json.UpdateNull("items[1].position_id")
success = json.UpdateString("items[1].total_price_net","<float>")
success = json.UpdateString("items[1].total_price_gross","<float>")
success = json.UpdateString("items[1].total_vat","<float>")
success = json.UpdateString("items[1].serial_number_id","<string>")
success = json.UpdateString("items[1].serial_number","<string>")
success = json.UpdateNull("items[1].booking_account")
success = json.UpdateNull("items[1].export_cost_1")
success = json.UpdateNull("items[1].export_cost_2")
success = json.UpdateNull("items[1].cost_price_net")
success = json.UpdateString("items[1].cost_price_total","<float>")
success = json.UpdateString("items[1].cost_price_charge","<float>")
success = json.UpdateString("items[1].cost_price_charge_type","PERCENT")
success = json.UpdateString("items[1].itemType","UNDEFINED")
success = json.UpdateString("items[1].id","<long>")
success = json.UpdateString("last_postbox_id","<long>")
success = json.UpdateString("login_id","<long>")
success = json.UpdateNull("number")
success = json.UpdateString("order_number","")
success = json.UpdateString("buyer_reference","")
success = json.UpdateString("paid_amount","<integer>")
success = json.UpdateString("paid_at","<date>")
success = json.UpdateString("pdf_pages","<integer>")
success = json.UpdateString("pdf_template","<string>")
success = json.UpdateNull("project_id")
success = json.UpdateString("recurring_options.next_date","<date>")
success = json.UpdateString("recurring_options.frequency","MONTHLY")
success = json.UpdateNull("recurring_options.frequency_special")
success = json.UpdateInt("recurring_options.interval",1)
success = json.UpdateNull("recurring_options.end_date_or_count")
success = json.UpdateString("recurring_options.status","WAITING")
success = json.UpdateBool("recurring_options.as_draft",0)
success = json.UpdateBool("recurring_options.is_notify",0)
success = json.UpdateNull("recurring_options.send_as")
success = json.UpdateBool("recurring_options.is_sign",0)
success = json.UpdateBool("recurring_options.is_paid",0)
success = json.UpdateString("recurring_options.paid_date_option","created_date")
success = json.UpdateBool("recurring_options.is_sepa",0)
success = json.UpdateNull("recurring_options.sepa_local_instrument")
success = json.UpdateNull("recurring_options.sepa_sequence_type")
success = json.UpdateNull("recurring_options.sepa_reference")
success = json.UpdateNull("recurring_options.sepa_remittance_information")
success = json.UpdateString("recurring_options.target_type","INVOICE")
success = json.UpdateNull("ref_id")
success = json.UpdateNull("root_id")
success = json.UpdateString("service_date.type","SERVICE")
success = json.UpdateString("service_date.date","<date>")
success = json.UpdateString("service_date.date_from","<date>")
success = json.UpdateString("service_date.date_to","<date>")
success = json.UpdateNull("service_date.text")
success = json.UpdateNull("shipping_country")
success = json.UpdateNull("status")
success = json.UpdateString("text","<string>")
success = json.UpdateString("text_prefix","<string>")
success = json.UpdateNull("text_tax")
success = json.UpdateNull("title")
success = json.UpdateString("type","INVOICE")
success = json.UpdateBool("use_shipping_address",0)
success = json.UpdateNull("vat_country")
success = json.UpdateString("vat_id","")
success = json.UpdateNull("fulfillment_country")
success = json.UpdateNull("vat_option")
success = json.UpdateString("file_format_config[0].type","xrechnung2_2_xml")
success = json.UpdateString("file_format_config[1].type","xrechnung3_0_xml")
http.SetRequestHeader "Content-Type","application/json"
http.SetRequestHeader "Authorization","{{apiKey}}"
http.SetRequestHeader "Accept","application/json"
Dim sbRequestBody As New ChilkatStringBuilder
success = json.EmitSb(sbRequestBody)
Dim resp As ChilkatHttpResponse
Set resp = http.PTextSb("PUT","https://api.easybill.de/rest/v1/documents/:id?refresh_customer_data=true&reason_for_change=<string>",sbRequestBody,"utf-8","application/json",0,0)
If (http.LastMethodSuccess = 0) Then
Debug.Print http.LastErrorText
Exit Sub
End If
Dim sbResponseBody As New ChilkatStringBuilder
success = resp.GetBodySb(sbResponseBody)
Dim jResp As New ChilkatJsonObject
success = jResp.LoadSb(sbResponseBody)
jResp.EmitCompact = 0
Debug.Print "Response Body:"
Debug.Print jResp.Emit()
Dim respStatusCode As Long
respStatusCode = resp.StatusCode
Debug.Print "Response Status Code = " & respStatusCode
If (respStatusCode >= 400) Then
Debug.Print "Response Header:"
Debug.Print resp.Header
Debug.Print "Failed."
Exit Sub
End If
' 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
Dim Date_from As New DtObj
Dim Date_to As New DtObj
Dim strVal As String
Dim description As String
Dim document_note As String
Dim quantity As Long
Dim quantity_str As String
Dim unit As String
Dim position As String
Dim single_price_net As String
Dim single_price_gross As String
Dim vat_percent As Long
Dim position_id As String
Dim total_price_net As String
Dim total_price_gross As String
Dim total_vat As String
Dim serial_number_id As String
Dim serial_number As String
Dim booking_account As String
Dim export_cost_1 As String
Dim export_cost_2 As String
Dim cost_price_net As String
Dim cost_price_total As String
Dim cost_price_charge As String
Dim cost_price_charge_type As String
Dim itemType As String
Dim Salutation As String
Salutation = jResp.StringOf("address.salutation")
Dim Personal As String
Personal = jResp.StringOf("address.personal")
Dim Title As String
Title = jResp.StringOf("address.title")
Dim First_name As String
First_name = jResp.StringOf("address.first_name")
Dim Last_name As String
Last_name = jResp.StringOf("address.last_name")
Dim Suffix_1 As String
Suffix_1 = jResp.StringOf("address.suffix_1")
Dim Suffix_2 As String
Suffix_2 = jResp.StringOf("address.suffix_2")
Dim Company_name As String
Company_name = jResp.StringOf("address.company_name")
Dim Street As String
Street = jResp.StringOf("address.street")
Dim Zip_code As String
Zip_code = jResp.StringOf("address.zip_code")
Dim City As String
City = jResp.StringOf("address.city")
Dim State As String
State = jResp.StringOf("address.state")
Dim Country As String
Country = jResp.StringOf("address.country")
Dim label_addressSalutation As String
label_addressSalutation = jResp.StringOf("label_address.salutation")
Dim label_addressPersonal As String
label_addressPersonal = jResp.StringOf("label_address.personal")
Dim label_addressTitle As String
label_addressTitle = jResp.StringOf("label_address.title")
Dim label_addressFirst_name As String
label_addressFirst_name = jResp.StringOf("label_address.first_name")
Dim label_addressLast_name As String
label_addressLast_name = jResp.StringOf("label_address.last_name")
Dim label_addressSuffix_1 As String
label_addressSuffix_1 = jResp.StringOf("label_address.suffix_1")
Dim label_addressSuffix_2 As String
label_addressSuffix_2 = jResp.StringOf("label_address.suffix_2")
Dim label_addressCompany_name As String
label_addressCompany_name = jResp.StringOf("label_address.company_name")
Dim label_addressStreet As String
label_addressStreet = jResp.StringOf("label_address.street")
Dim label_addressZip_code As String
label_addressZip_code = jResp.StringOf("label_address.zip_code")
Dim label_addressCity As String
label_addressCity = jResp.StringOf("label_address.city")
Dim label_addressState As String
label_addressState = jResp.StringOf("label_address.state")
Dim label_addressCountry As String
label_addressCountry = jResp.StringOf("label_address.country")
Dim amount As String
amount = jResp.StringOf("amount")
Dim amount_net As String
amount_net = jResp.StringOf("amount_net")
Dim bank_debit_form As String
bank_debit_form = jResp.StringOf("bank_debit_form")
Dim billing_country As String
billing_country = jResp.StringOf("billing_country")
Dim calc_vat_from As Long
calc_vat_from = jResp.IntOf("calc_vat_from")
Dim cancel_id As String
cancel_id = jResp.StringOf("cancel_id")
Dim cash_allowance As String
cash_allowance = jResp.StringOf("cash_allowance")
Dim cash_allowance_days As String
cash_allowance_days = jResp.StringOf("cash_allowance_days")
Dim cash_allowance_text As String
cash_allowance_text = jResp.StringOf("cash_allowance_text")
Dim contact_id As String
contact_id = jResp.StringOf("contact_id")
Dim contact_label As String
contact_label = jResp.StringOf("contact_label")
Dim contact_text As String
contact_text = jResp.StringOf("contact_text")
Dim created_at As String
created_at = jResp.StringOf("created_at")
Dim v_currency As String
v_currency = jResp.StringOf("currency")
Dim customer_id As String
customer_id = jResp.StringOf("customer_id")
Dim customer_snapshotLast_name As String
customer_snapshotLast_name = jResp.StringOf("customer_snapshot.last_name")
Dim customer_snapshotCompany_name As String
customer_snapshotCompany_name = jResp.StringOf("customer_snapshot.company_name")
Dim Acquire_options As Long
Acquire_options = jResp.IntOf("customer_snapshot.acquire_options")
Dim Bank_account As String
Bank_account = jResp.StringOf("customer_snapshot.bank_account")
Dim Bank_account_owner As String
Bank_account_owner = jResp.StringOf("customer_snapshot.bank_account_owner")
Dim Bank_bic As String
Bank_bic = jResp.StringOf("customer_snapshot.bank_bic")
Dim Bank_code As String
Bank_code = jResp.StringOf("customer_snapshot.bank_code")
Dim Bank_iban As String
Bank_iban = jResp.StringOf("customer_snapshot.bank_iban")
Dim Bank_name As String
Bank_name = jResp.StringOf("customer_snapshot.bank_name")
Dim Birth_date As String
Birth_date = jResp.StringOf("customer_snapshot.birth_date")
Dim Cash_allowance As String
Cash_allowance = jResp.StringOf("customer_snapshot.cash_allowance")
Dim Cash_allowance_days As Long
Cash_allowance_days = jResp.IntOf("customer_snapshot.cash_allowance_days")
Dim Cash_discount As String
Cash_discount = jResp.StringOf("customer_snapshot.cash_discount")
Dim Cash_discount_type As String
Cash_discount_type = jResp.StringOf("customer_snapshot.cash_discount_type")
Dim customer_snapshotCity As String
customer_snapshotCity = jResp.StringOf("customer_snapshot.city")
Dim customer_snapshotState As String
customer_snapshotState = jResp.StringOf("customer_snapshot.state")
Dim customer_snapshotCountry As String
customer_snapshotCountry = jResp.StringOf("customer_snapshot.country")
Dim Created_at As String
Created_at = jResp.StringOf("customer_snapshot.created_at")
Dim Updated_at As String
Updated_at = jResp.StringOf("customer_snapshot.updated_at")
Dim Delivery_title As String
Delivery_title = jResp.StringOf("customer_snapshot.delivery_title")
Dim Delivery_city As String
Delivery_city = jResp.StringOf("customer_snapshot.delivery_city")
Dim Delivery_state As String
Delivery_state = jResp.StringOf("customer_snapshot.delivery_state")
Dim Delivery_company_name As String
Delivery_company_name = jResp.StringOf("customer_snapshot.delivery_company_name")
Dim Delivery_country As String
Delivery_country = jResp.StringOf("customer_snapshot.delivery_country")
Dim Delivery_first_name As String
Delivery_first_name = jResp.StringOf("customer_snapshot.delivery_first_name")
Dim Delivery_last_name As String
Delivery_last_name = jResp.StringOf("customer_snapshot.delivery_last_name")
Dim Delivery_personal As String
Delivery_personal = jResp.StringOf("customer_snapshot.delivery_personal")
Dim Delivery_salutation As Long
Delivery_salutation = jResp.IntOf("customer_snapshot.delivery_salutation")
Dim Delivery_street As String
Delivery_street = jResp.StringOf("customer_snapshot.delivery_street")
Dim Delivery_suffix_1 As String
Delivery_suffix_1 = jResp.StringOf("customer_snapshot.delivery_suffix_1")
Dim Delivery_suffix_2 As String
Delivery_suffix_2 = jResp.StringOf("customer_snapshot.delivery_suffix_2")
Dim Delivery_zip_code As String
Delivery_zip_code = jResp.StringOf("customer_snapshot.delivery_zip_code")
Dim Display_name As String
Display_name = jResp.StringOf("customer_snapshot.display_name")
Dim Fax As String
Fax = jResp.StringOf("customer_snapshot.fax")
Dim customer_snapshotFirst_name As String
customer_snapshotFirst_name = jResp.StringOf("customer_snapshot.first_name")
Dim Grace_period As String
Grace_period = jResp.StringOf("customer_snapshot.grace_period")
Dim Due_in_days As String
Due_in_days = jResp.StringOf("customer_snapshot.due_in_days")
Dim Group_id As String
Group_id = jResp.StringOf("customer_snapshot.group_id")
Dim Id As String
Id = jResp.StringOf("customer_snapshot.id")
Dim Info_1 As String
Info_1 = jResp.StringOf("customer_snapshot.info_1")
Dim Info_2 As String
Info_2 = jResp.StringOf("customer_snapshot.info_2")
Dim Internet As String
Internet = jResp.StringOf("customer_snapshot.internet")
Dim Login_id As String
Login_id = jResp.StringOf("customer_snapshot.login_id")
Dim Mobile As String
Mobile = jResp.StringOf("customer_snapshot.mobile")
Dim Note As String
Note = jResp.StringOf("customer_snapshot.note")
Dim v_Number As String
v_Number = jResp.StringOf("customer_snapshot.number")
Dim Payment_options As Long
Payment_options = jResp.IntOf("customer_snapshot.payment_options")
Dim customer_snapshotPersonal As Long
customer_snapshotPersonal = jResp.BoolOf("customer_snapshot.personal")
Dim Phone_1 As String
Phone_1 = jResp.StringOf("customer_snapshot.phone_1")
Dim Phone_2 As String
Phone_2 = jResp.StringOf("customer_snapshot.phone_2")
Dim Postbox As String
Postbox = jResp.StringOf("customer_snapshot.postbox")
Dim Postbox_city As String
Postbox_city = jResp.StringOf("customer_snapshot.postbox_city")
Dim Postbox_state As String
Postbox_state = jResp.StringOf("customer_snapshot.postbox_state")
Dim Postbox_country As String
Postbox_country = jResp.StringOf("customer_snapshot.postbox_country")
Dim Postbox_zip_code As String
Postbox_zip_code = jResp.StringOf("customer_snapshot.postbox_zip_code")
Dim Sale_price_level As String
Sale_price_level = jResp.StringOf("customer_snapshot.sale_price_level")
Dim customer_snapshotSalutation As Long
customer_snapshotSalutation = jResp.IntOf("customer_snapshot.salutation")
Dim Sepa_agreement As String
Sepa_agreement = jResp.StringOf("customer_snapshot.sepa_agreement")
Dim Sepa_agreement_date As String
Sepa_agreement_date = jResp.StringOf("customer_snapshot.sepa_agreement_date")
Dim Sepa_mandate_reference As String
Sepa_mandate_reference = jResp.StringOf("customer_snapshot.sepa_mandate_reference")
Dim Since_date As String
Since_date = jResp.StringOf("customer_snapshot.since_date")
Dim customer_snapshotStreet As String
customer_snapshotStreet = jResp.StringOf("customer_snapshot.street")
Dim customer_snapshotSuffix_1 As String
customer_snapshotSuffix_1 = jResp.StringOf("customer_snapshot.suffix_1")
Dim customer_snapshotSuffix_2 As String
customer_snapshotSuffix_2 = jResp.StringOf("customer_snapshot.suffix_2")
Dim Tax_number As String
Tax_number = jResp.StringOf("customer_snapshot.tax_number")
Dim Court As String
Court = jResp.StringOf("customer_snapshot.court")
Dim Court_registry_number As String
Court_registry_number = jResp.StringOf("customer_snapshot.court_registry_number")
Dim Tax_options As String
Tax_options = jResp.StringOf("customer_snapshot.tax_options")
Dim customer_snapshotTitle As String
customer_snapshotTitle = jResp.StringOf("customer_snapshot.title")
Dim Archived As String
Archived = jResp.StringOf("customer_snapshot.archived")
Dim Vat_identifier As String
Vat_identifier = jResp.StringOf("customer_snapshot.vat_identifier")
Dim customer_snapshotZip_code As String
customer_snapshotZip_code = jResp.StringOf("customer_snapshot.zip_code")
Dim Document_pdf_type As String
Document_pdf_type = jResp.StringOf("customer_snapshot.document_pdf_type")
Dim Buyer_reference As String
Buyer_reference = jResp.StringOf("customer_snapshot.buyer_reference")
Dim Foreign_supplier_number As String
Foreign_supplier_number = jResp.StringOf("customer_snapshot.foreign_supplier_number")
Dim discount As String
discount = jResp.StringOf("discount")
Dim discount_type As String
discount_type = jResp.StringOf("discount_type")
Dim document_date As String
document_date = jResp.StringOf("document_date")
Dim due_date As String
due_date = jResp.StringOf("due_date")
Dim edited_at As String
edited_at = jResp.StringOf("edited_at")
Dim external_id As String
external_id = jResp.StringOf("external_id")
Dim replica_url As String
replica_url = jResp.StringOf("replica_url")
Dim grace_period As String
grace_period = jResp.StringOf("grace_period")
Dim due_in_days As String
due_in_days = jResp.StringOf("due_in_days")
Dim id As String
id = jResp.StringOf("id")
Dim is_acceptable_on_public_domain As Long
is_acceptable_on_public_domain = jResp.BoolOf("is_acceptable_on_public_domain")
Dim is_archive As Long
is_archive = jResp.BoolOf("is_archive")
Dim is_draft As String
is_draft = jResp.StringOf("is_draft")
Dim is_replica As Long
is_replica = jResp.BoolOf("is_replica")
Dim is_oss As Long
is_oss = jResp.BoolOf("is_oss")
Dim last_postbox_id As String
last_postbox_id = jResp.StringOf("last_postbox_id")
Dim login_id As String
login_id = jResp.StringOf("login_id")
Dim v_number As String
v_number = jResp.StringOf("number")
Dim order_number As String
order_number = jResp.StringOf("order_number")
Dim buyer_reference As String
buyer_reference = jResp.StringOf("buyer_reference")
Dim paid_amount As String
paid_amount = jResp.StringOf("paid_amount")
Dim paid_at As String
paid_at = jResp.StringOf("paid_at")
Dim pdf_pages As String
pdf_pages = jResp.StringOf("pdf_pages")
Dim pdf_template As String
pdf_template = jResp.StringOf("pdf_template")
Dim project_id As String
project_id = jResp.StringOf("project_id")
Dim Next_date As String
Next_date = jResp.StringOf("recurring_options.next_date")
Dim Frequency As String
Frequency = jResp.StringOf("recurring_options.frequency")
Dim Frequency_special As String
Frequency_special = jResp.StringOf("recurring_options.frequency_special")
Dim Interval As Long
Interval = jResp.IntOf("recurring_options.interval")
Dim End_date_or_count As String
End_date_or_count = jResp.StringOf("recurring_options.end_date_or_count")
Dim Status As String
Status = jResp.StringOf("recurring_options.status")
Dim As_draft As Long
As_draft = jResp.BoolOf("recurring_options.as_draft")
Dim Is_notify As Long
Is_notify = jResp.BoolOf("recurring_options.is_notify")
Dim Send_as As String
Send_as = jResp.StringOf("recurring_options.send_as")
Dim Is_sign As Long
Is_sign = jResp.BoolOf("recurring_options.is_sign")
Dim Is_paid As Long
Is_paid = jResp.BoolOf("recurring_options.is_paid")
Dim Paid_date_option As String
Paid_date_option = jResp.StringOf("recurring_options.paid_date_option")
Dim Is_sepa As Long
Is_sepa = jResp.BoolOf("recurring_options.is_sepa")
Dim Sepa_local_instrument As String
Sepa_local_instrument = jResp.StringOf("recurring_options.sepa_local_instrument")
Dim Sepa_sequence_type As String
Sepa_sequence_type = jResp.StringOf("recurring_options.sepa_sequence_type")
Dim Sepa_reference As String
Sepa_reference = jResp.StringOf("recurring_options.sepa_reference")
Dim Sepa_remittance_information As String
Sepa_remittance_information = jResp.StringOf("recurring_options.sepa_remittance_information")
Dim Target_type As String
Target_type = jResp.StringOf("recurring_options.target_type")
Dim ref_id As String
ref_id = jResp.StringOf("ref_id")
Dim root_id As String
root_id = jResp.StringOf("root_id")
Dim v_Type As String
v_Type = jResp.StringOf("service_date.type")
Dim Date As String
Date = jResp.StringOf("service_date.date")
success = jResp.DtOf("service_date.date_from",0,Date_from)
success = jResp.DtOf("service_date.date_to",0,Date_to)
Dim Text As String
Text = jResp.StringOf("service_date.text")
Dim shipping_country As String
shipping_country = jResp.StringOf("shipping_country")
Dim status As String
status = jResp.StringOf("status")
Dim text As String
text = jResp.StringOf("text")
Dim text_prefix As String
text_prefix = jResp.StringOf("text_prefix")
Dim text_tax As String
text_tax = jResp.StringOf("text_tax")
Dim title As String
title = jResp.StringOf("title")
Dim v_type As String
v_type = jResp.StringOf("type")
Dim use_shipping_address As Long
use_shipping_address = jResp.BoolOf("use_shipping_address")
Dim vat_country As String
vat_country = jResp.StringOf("vat_country")
Dim vat_id As String
vat_id = jResp.StringOf("vat_id")
Dim fulfillment_country As String
fulfillment_country = jResp.StringOf("fulfillment_country")
Dim vat_option As String
vat_option = jResp.StringOf("vat_option")
Dim i As Long
i = 0
Dim count_i As Long
count_i = jResp.SizeOfArray("attachment_ids")
Do While i < count_i
jResp.I = i
strVal = jResp.StringOf("attachment_ids[i]")
i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("customer_snapshot.additional_groups_ids")
Do While i < count_i
jResp.I = i
strVal = jResp.StringOf("customer_snapshot.additional_groups_ids[i]")
i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("customer_snapshot.emails")
Do While i < count_i
jResp.I = i
strVal = jResp.StringOf("customer_snapshot.emails[i]")
i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("item_notes")
Do While i < count_i
jResp.I = i
strVal = jResp.StringOf("item_notes[i]")
i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("items")
Do While i < count_i
jResp.I = i
v_number = jResp.StringOf("items[i].number")
description = jResp.StringOf("items[i].description")
document_note = jResp.StringOf("items[i].document_note")
quantity = jResp.IntOf("items[i].quantity")
quantity_str = jResp.StringOf("items[i].quantity_str")
unit = jResp.StringOf("items[i].unit")
v_type = jResp.StringOf("items[i].type")
position = jResp.StringOf("items[i].position")
single_price_net = jResp.StringOf("items[i].single_price_net")
single_price_gross = jResp.StringOf("items[i].single_price_gross")
vat_percent = jResp.IntOf("items[i].vat_percent")
discount = jResp.StringOf("items[i].discount")
discount_type = jResp.StringOf("items[i].discount_type")
position_id = jResp.StringOf("items[i].position_id")
total_price_net = jResp.StringOf("items[i].total_price_net")
total_price_gross = jResp.StringOf("items[i].total_price_gross")
total_vat = jResp.StringOf("items[i].total_vat")
serial_number_id = jResp.StringOf("items[i].serial_number_id")
serial_number = jResp.StringOf("items[i].serial_number")
booking_account = jResp.StringOf("items[i].booking_account")
export_cost_1 = jResp.StringOf("items[i].export_cost_1")
export_cost_2 = jResp.StringOf("items[i].export_cost_2")
cost_price_net = jResp.StringOf("items[i].cost_price_net")
cost_price_total = jResp.StringOf("items[i].cost_price_total")
cost_price_charge = jResp.StringOf("items[i].cost_price_charge")
cost_price_charge_type = jResp.StringOf("items[i].cost_price_charge_type")
itemType = jResp.StringOf("items[i].itemType")
id = jResp.StringOf("items[i].id")
i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("file_format_config")
Do While i < count_i
jResp.I = i
v_type = jResp.StringOf("file_format_config[i].type")
i = i + 1
Loop
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": ""
}
]
}