Chilkat Online Tools

Swift3 / easybill REST API / Create document

Back to Collection Items

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

    let http = CkoHttp()!
    var success: Bool

    // 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"
    //     }
    //   ]
    // }

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

    http.setRequestHeader("Content-Type", value: "application/json")
    http.setRequestHeader("Authorization", value: "{{apiKey}}")
    http.setRequestHeader("Accept", value: "application/json")

    var resp: CkoHttpResponse? = http.postJson3("https://api.easybill.de/rest/v1/documents", contentType: "application/json", json: json)
    if http.lastMethodSuccess == false {
        print("\(http.lastErrorText!)")
        return
    }

    let sbResponseBody = CkoStringBuilder()!
    resp!.getBodySb(sbResponseBody)

    let jResp = CkoJsonObject()!
    jResp.loadSb(sbResponseBody)
    jResp.emitCompact = false

    print("Response Body:")
    print("\(jResp.emit()!)")

    var respStatusCode: Int = resp!.statusCode.intValue
    print("Response Status Code = \(respStatusCode)")
    if respStatusCode >= 400 {
        print("Response Header:")
        print("\(resp!.header!)")
        print("Failed.")
        resp = nil
        return
    }

    resp = nil

    // 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

    let Date_from = CkoDtObj()!
    let Date_to = CkoDtObj()!
    var strVal: String?
    var description: String?
    var document_note: String?
    var quantity: Int
    var quantity_str: String?
    var unit: String?
    var position: String?
    var single_price_net: String?
    var single_price_gross: String?
    var vat_percent: Int
    var position_id: String?
    var total_price_net: String?
    var total_price_gross: String?
    var total_vat: String?
    var serial_number_id: String?
    var serial_number: String?
    var booking_account: String?
    var export_cost_1: String?
    var export_cost_2: String?
    var cost_price_net: String?
    var cost_price_total: String?
    var cost_price_charge: String?
    var cost_price_charge_type: String?
    var itemType: String?

    var Salutation: String? = jResp.string(of: "address.salutation")
    var Personal: String? = jResp.string(of: "address.personal")
    var Title: String? = jResp.string(of: "address.title")
    var First_name: String? = jResp.string(of: "address.first_name")
    var Last_name: String? = jResp.string(of: "address.last_name")
    var Suffix_1: String? = jResp.string(of: "address.suffix_1")
    var Suffix_2: String? = jResp.string(of: "address.suffix_2")
    var Company_name: String? = jResp.string(of: "address.company_name")
    var Street: String? = jResp.string(of: "address.street")
    var Zip_code: String? = jResp.string(of: "address.zip_code")
    var City: String? = jResp.string(of: "address.city")
    var State: String? = jResp.string(of: "address.state")
    var Country: String? = jResp.string(of: "address.country")
    var label_addressSalutation: String? = jResp.string(of: "label_address.salutation")
    var label_addressPersonal: String? = jResp.string(of: "label_address.personal")
    var label_addressTitle: String? = jResp.string(of: "label_address.title")
    var label_addressFirst_name: String? = jResp.string(of: "label_address.first_name")
    var label_addressLast_name: String? = jResp.string(of: "label_address.last_name")
    var label_addressSuffix_1: String? = jResp.string(of: "label_address.suffix_1")
    var label_addressSuffix_2: String? = jResp.string(of: "label_address.suffix_2")
    var label_addressCompany_name: String? = jResp.string(of: "label_address.company_name")
    var label_addressStreet: String? = jResp.string(of: "label_address.street")
    var label_addressZip_code: String? = jResp.string(of: "label_address.zip_code")
    var label_addressCity: String? = jResp.string(of: "label_address.city")
    var label_addressState: String? = jResp.string(of: "label_address.state")
    var label_addressCountry: String? = jResp.string(of: "label_address.country")
    var amount: String? = jResp.string(of: "amount")
    var amount_net: String? = jResp.string(of: "amount_net")
    var bank_debit_form: String? = jResp.string(of: "bank_debit_form")
    var billing_country: String? = jResp.string(of: "billing_country")
    var calc_vat_from: Int = jResp.int(of: "calc_vat_from").intValue
    var cancel_id: String? = jResp.string(of: "cancel_id")
    var cash_allowance: String? = jResp.string(of: "cash_allowance")
    var cash_allowance_days: String? = jResp.string(of: "cash_allowance_days")
    var cash_allowance_text: String? = jResp.string(of: "cash_allowance_text")
    var contact_id: String? = jResp.string(of: "contact_id")
    var contact_label: String? = jResp.string(of: "contact_label")
    var contact_text: String? = jResp.string(of: "contact_text")
    var created_at: String? = jResp.string(of: "created_at")
    var v_currency: String? = jResp.string(of: "currency")
    var customer_id: String? = jResp.string(of: "customer_id")
    var customer_snapshotLast_name: String? = jResp.string(of: "customer_snapshot.last_name")
    var customer_snapshotCompany_name: String? = jResp.string(of: "customer_snapshot.company_name")
    var Acquire_options: Int = jResp.int(of: "customer_snapshot.acquire_options").intValue
    var Bank_account: String? = jResp.string(of: "customer_snapshot.bank_account")
    var Bank_account_owner: String? = jResp.string(of: "customer_snapshot.bank_account_owner")
    var Bank_bic: String? = jResp.string(of: "customer_snapshot.bank_bic")
    var Bank_code: String? = jResp.string(of: "customer_snapshot.bank_code")
    var Bank_iban: String? = jResp.string(of: "customer_snapshot.bank_iban")
    var Bank_name: String? = jResp.string(of: "customer_snapshot.bank_name")
    var Birth_date: String? = jResp.string(of: "customer_snapshot.birth_date")
    var Cash_allowance: String? = jResp.string(of: "customer_snapshot.cash_allowance")
    var Cash_allowance_days: Int = jResp.int(of: "customer_snapshot.cash_allowance_days").intValue
    var Cash_discount: String? = jResp.string(of: "customer_snapshot.cash_discount")
    var Cash_discount_type: String? = jResp.string(of: "customer_snapshot.cash_discount_type")
    var customer_snapshotCity: String? = jResp.string(of: "customer_snapshot.city")
    var customer_snapshotState: String? = jResp.string(of: "customer_snapshot.state")
    var customer_snapshotCountry: String? = jResp.string(of: "customer_snapshot.country")
    var Created_at: String? = jResp.string(of: "customer_snapshot.created_at")
    var Updated_at: String? = jResp.string(of: "customer_snapshot.updated_at")
    var Delivery_title: String? = jResp.string(of: "customer_snapshot.delivery_title")
    var Delivery_city: String? = jResp.string(of: "customer_snapshot.delivery_city")
    var Delivery_state: String? = jResp.string(of: "customer_snapshot.delivery_state")
    var Delivery_company_name: String? = jResp.string(of: "customer_snapshot.delivery_company_name")
    var Delivery_country: String? = jResp.string(of: "customer_snapshot.delivery_country")
    var Delivery_first_name: String? = jResp.string(of: "customer_snapshot.delivery_first_name")
    var Delivery_last_name: String? = jResp.string(of: "customer_snapshot.delivery_last_name")
    var Delivery_personal: String? = jResp.string(of: "customer_snapshot.delivery_personal")
    var Delivery_salutation: Int = jResp.int(of: "customer_snapshot.delivery_salutation").intValue
    var Delivery_street: String? = jResp.string(of: "customer_snapshot.delivery_street")
    var Delivery_suffix_1: String? = jResp.string(of: "customer_snapshot.delivery_suffix_1")
    var Delivery_suffix_2: String? = jResp.string(of: "customer_snapshot.delivery_suffix_2")
    var Delivery_zip_code: String? = jResp.string(of: "customer_snapshot.delivery_zip_code")
    var Display_name: String? = jResp.string(of: "customer_snapshot.display_name")
    var Fax: String? = jResp.string(of: "customer_snapshot.fax")
    var customer_snapshotFirst_name: String? = jResp.string(of: "customer_snapshot.first_name")
    var Grace_period: String? = jResp.string(of: "customer_snapshot.grace_period")
    var Due_in_days: String? = jResp.string(of: "customer_snapshot.due_in_days")
    var Group_id: String? = jResp.string(of: "customer_snapshot.group_id")
    var Id: String? = jResp.string(of: "customer_snapshot.id")
    var Info_1: String? = jResp.string(of: "customer_snapshot.info_1")
    var Info_2: String? = jResp.string(of: "customer_snapshot.info_2")
    var Internet: String? = jResp.string(of: "customer_snapshot.internet")
    var Login_id: String? = jResp.string(of: "customer_snapshot.login_id")
    var Mobile: String? = jResp.string(of: "customer_snapshot.mobile")
    var Note: String? = jResp.string(of: "customer_snapshot.note")
    var v_Number: String? = jResp.string(of: "customer_snapshot.number")
    var Payment_options: Int = jResp.int(of: "customer_snapshot.payment_options").intValue
    var customer_snapshotPersonal: Bool = jResp.bool(of: "customer_snapshot.personal")
    var Phone_1: String? = jResp.string(of: "customer_snapshot.phone_1")
    var Phone_2: String? = jResp.string(of: "customer_snapshot.phone_2")
    var Postbox: String? = jResp.string(of: "customer_snapshot.postbox")
    var Postbox_city: String? = jResp.string(of: "customer_snapshot.postbox_city")
    var Postbox_state: String? = jResp.string(of: "customer_snapshot.postbox_state")
    var Postbox_country: String? = jResp.string(of: "customer_snapshot.postbox_country")
    var Postbox_zip_code: String? = jResp.string(of: "customer_snapshot.postbox_zip_code")
    var Sale_price_level: String? = jResp.string(of: "customer_snapshot.sale_price_level")
    var customer_snapshotSalutation: Int = jResp.int(of: "customer_snapshot.salutation").intValue
    var Sepa_agreement: String? = jResp.string(of: "customer_snapshot.sepa_agreement")
    var Sepa_agreement_date: String? = jResp.string(of: "customer_snapshot.sepa_agreement_date")
    var Sepa_mandate_reference: String? = jResp.string(of: "customer_snapshot.sepa_mandate_reference")
    var Since_date: String? = jResp.string(of: "customer_snapshot.since_date")
    var customer_snapshotStreet: String? = jResp.string(of: "customer_snapshot.street")
    var customer_snapshotSuffix_1: String? = jResp.string(of: "customer_snapshot.suffix_1")
    var customer_snapshotSuffix_2: String? = jResp.string(of: "customer_snapshot.suffix_2")
    var Tax_number: String? = jResp.string(of: "customer_snapshot.tax_number")
    var Court: String? = jResp.string(of: "customer_snapshot.court")
    var Court_registry_number: String? = jResp.string(of: "customer_snapshot.court_registry_number")
    var Tax_options: String? = jResp.string(of: "customer_snapshot.tax_options")
    var customer_snapshotTitle: String? = jResp.string(of: "customer_snapshot.title")
    var Archived: String? = jResp.string(of: "customer_snapshot.archived")
    var Vat_identifier: String? = jResp.string(of: "customer_snapshot.vat_identifier")
    var customer_snapshotZip_code: String? = jResp.string(of: "customer_snapshot.zip_code")
    var Document_pdf_type: String? = jResp.string(of: "customer_snapshot.document_pdf_type")
    var Buyer_reference: String? = jResp.string(of: "customer_snapshot.buyer_reference")
    var Foreign_supplier_number: String? = jResp.string(of: "customer_snapshot.foreign_supplier_number")
    var discount: String? = jResp.string(of: "discount")
    var discount_type: String? = jResp.string(of: "discount_type")
    var document_date: String? = jResp.string(of: "document_date")
    var due_date: String? = jResp.string(of: "due_date")
    var edited_at: String? = jResp.string(of: "edited_at")
    var external_id: String? = jResp.string(of: "external_id")
    var replica_url: String? = jResp.string(of: "replica_url")
    var grace_period: String? = jResp.string(of: "grace_period")
    var due_in_days: String? = jResp.string(of: "due_in_days")
    var id: String? = jResp.string(of: "id")
    var is_acceptable_on_public_domain: Bool = jResp.bool(of: "is_acceptable_on_public_domain")
    var is_archive: Bool = jResp.bool(of: "is_archive")
    var is_draft: String? = jResp.string(of: "is_draft")
    var is_replica: Bool = jResp.bool(of: "is_replica")
    var is_oss: Bool = jResp.bool(of: "is_oss")
    var last_postbox_id: String? = jResp.string(of: "last_postbox_id")
    var login_id: String? = jResp.string(of: "login_id")
    var v_number: String? = jResp.string(of: "number")
    var order_number: String? = jResp.string(of: "order_number")
    var buyer_reference: String? = jResp.string(of: "buyer_reference")
    var paid_amount: String? = jResp.string(of: "paid_amount")
    var paid_at: String? = jResp.string(of: "paid_at")
    var pdf_pages: String? = jResp.string(of: "pdf_pages")
    var pdf_template: String? = jResp.string(of: "pdf_template")
    var project_id: String? = jResp.string(of: "project_id")
    var Next_date: String? = jResp.string(of: "recurring_options.next_date")
    var Frequency: String? = jResp.string(of: "recurring_options.frequency")
    var Frequency_special: String? = jResp.string(of: "recurring_options.frequency_special")
    var Interval: Int = jResp.int(of: "recurring_options.interval").intValue
    var End_date_or_count: String? = jResp.string(of: "recurring_options.end_date_or_count")
    var Status: String? = jResp.string(of: "recurring_options.status")
    var As_draft: Bool = jResp.bool(of: "recurring_options.as_draft")
    var Is_notify: Bool = jResp.bool(of: "recurring_options.is_notify")
    var Send_as: String? = jResp.string(of: "recurring_options.send_as")
    var Is_sign: Bool = jResp.bool(of: "recurring_options.is_sign")
    var Is_paid: Bool = jResp.bool(of: "recurring_options.is_paid")
    var Paid_date_option: String? = jResp.string(of: "recurring_options.paid_date_option")
    var Is_sepa: Bool = jResp.bool(of: "recurring_options.is_sepa")
    var Sepa_local_instrument: String? = jResp.string(of: "recurring_options.sepa_local_instrument")
    var Sepa_sequence_type: String? = jResp.string(of: "recurring_options.sepa_sequence_type")
    var Sepa_reference: String? = jResp.string(of: "recurring_options.sepa_reference")
    var Sepa_remittance_information: String? = jResp.string(of: "recurring_options.sepa_remittance_information")
    var Target_type: String? = jResp.string(of: "recurring_options.target_type")
    var ref_id: String? = jResp.string(of: "ref_id")
    var root_id: String? = jResp.string(of: "root_id")
    var v_Type: String? = jResp.string(of: "service_date.type")
    var Date: String? = jResp.string(of: "service_date.date")
    jResp.dt(of: "service_date.date_from", bLocal: false, dt: Date_from)
    jResp.dt(of: "service_date.date_to", bLocal: false, dt: Date_to)
    var Text: String? = jResp.string(of: "service_date.text")
    var shipping_country: String? = jResp.string(of: "shipping_country")
    var status: String? = jResp.string(of: "status")
    var text: String? = jResp.string(of: "text")
    var text_prefix: String? = jResp.string(of: "text_prefix")
    var text_tax: String? = jResp.string(of: "text_tax")
    var title: String? = jResp.string(of: "title")
    var v_type: String? = jResp.string(of: "type")
    var use_shipping_address: Bool = jResp.bool(of: "use_shipping_address")
    var vat_country: String? = jResp.string(of: "vat_country")
    var vat_id: String? = jResp.string(of: "vat_id")
    var fulfillment_country: String? = jResp.string(of: "fulfillment_country")
    var vat_option: String? = jResp.string(of: "vat_option")
    var i: Int = 0
    var count_i: Int = jResp.size(ofArray: "attachment_ids").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "attachment_ids[i]")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "customer_snapshot.additional_groups_ids").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "customer_snapshot.additional_groups_ids[i]")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "customer_snapshot.emails").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "customer_snapshot.emails[i]")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "item_notes").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "item_notes[i]")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "items").intValue
    while i < count_i {
        jResp.i = i
        v_number = jResp.string(of: "items[i].number")
        description = jResp.string(of: "items[i].description")
        document_note = jResp.string(of: "items[i].document_note")
        quantity = jResp.int(of: "items[i].quantity").intValue
        quantity_str = jResp.string(of: "items[i].quantity_str")
        unit = jResp.string(of: "items[i].unit")
        v_type = jResp.string(of: "items[i].type")
        position = jResp.string(of: "items[i].position")
        single_price_net = jResp.string(of: "items[i].single_price_net")
        single_price_gross = jResp.string(of: "items[i].single_price_gross")
        vat_percent = jResp.int(of: "items[i].vat_percent").intValue
        discount = jResp.string(of: "items[i].discount")
        discount_type = jResp.string(of: "items[i].discount_type")
        position_id = jResp.string(of: "items[i].position_id")
        total_price_net = jResp.string(of: "items[i].total_price_net")
        total_price_gross = jResp.string(of: "items[i].total_price_gross")
        total_vat = jResp.string(of: "items[i].total_vat")
        serial_number_id = jResp.string(of: "items[i].serial_number_id")
        serial_number = jResp.string(of: "items[i].serial_number")
        booking_account = jResp.string(of: "items[i].booking_account")
        export_cost_1 = jResp.string(of: "items[i].export_cost_1")
        export_cost_2 = jResp.string(of: "items[i].export_cost_2")
        cost_price_net = jResp.string(of: "items[i].cost_price_net")
        cost_price_total = jResp.string(of: "items[i].cost_price_total")
        cost_price_charge = jResp.string(of: "items[i].cost_price_charge")
        cost_price_charge_type = jResp.string(of: "items[i].cost_price_charge_type")
        itemType = jResp.string(of: "items[i].itemType")
        id = jResp.string(of: "items[i].id")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "file_format_config").intValue
    while i < count_i {
        jResp.i = i
        v_type = jResp.string(of: "file_format_config[i].type")
        i = i + 1
    }


}

Curl Command

curl -X POST
	-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

Postman Collection Item JSON

{
  "name": "Create document",
  "request": {
    "method": "POST",
    "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",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "documents"
      ]
    }
  },
  "response": [
    {
      "name": "Successful operation",
      "originalRequest": {
        "method": "POST",
        "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",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "documents"
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_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": "Too Many Requests",
      "originalRequest": {
        "method": "POST",
        "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",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "documents"
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}