Chilkat Online Tools

Swift3 / easybill REST API / Create customer

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.

    // {
    //   "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": 5,
    //   "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": "SALEPRICE10",
    //   "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": "nStbUstID",
    //   "title": "<string>",
    //   "archived": "<boolean>",
    //   "vat_identifier": "<string>",
    //   "zip_code": "<string>",
    //   "document_pdf_type": "default",
    //   "buyer_reference": "<string>",
    //   "foreign_supplier_number": "<string>"
    // }

    let json = CkoJsonObject()!
    json.update("last_name", value: "<string>")
    json.update("company_name", value: "<string>")
    json.updateInt("acquire_options", value: 2)
    json.update("additional_groups_ids[0]", value: "<integer>")
    json.update("additional_groups_ids[1]", value: "<integer>")
    json.update("bank_account", value: "<string>")
    json.update("bank_account_owner", value: "<string>")
    json.update("bank_bic", value: "<string>")
    json.update("bank_code", value: "<string>")
    json.update("bank_iban", value: "<string>")
    json.update("bank_name", value: "<string>")
    json.update("birth_date", value: "<date>")
    json.update("cash_allowance", value: "<float>")
    json.updateInt("cash_allowance_days", value: 7)
    json.update("cash_discount", value: "<float>")
    json.update("cash_discount_type", value: "AMOUNT")
    json.update("city", value: "<string>")
    json.update("state", value: "<string>")
    json.update("country", value: "<string>")
    json.update("created_at", value: "<date>")
    json.update("updated_at", value: "<string>")
    json.update("delivery_title", value: "<string>")
    json.update("delivery_city", value: "<string>")
    json.update("delivery_state", value: "<string>")
    json.update("delivery_company_name", value: "<string>")
    json.update("delivery_country", value: "<string>")
    json.update("delivery_first_name", value: "<string>")
    json.update("delivery_last_name", value: "<string>")
    json.update("delivery_personal", value: "<boolean>")
    json.updateInt("delivery_salutation", value: 0)
    json.update("delivery_street", value: "<string>")
    json.update("delivery_suffix_1", value: "<string>")
    json.update("delivery_suffix_2", value: "<string>")
    json.update("delivery_zip_code", value: "<string>")
    json.update("display_name", value: "<string>")
    json.update("emails[0]", value: "<string>")
    json.update("emails[1]", value: "<string>")
    json.update("fax", value: "<string>")
    json.update("first_name", value: "<string>")
    json.update("grace_period", value: "<integer>")
    json.update("due_in_days", value: "<integer>")
    json.update("group_id", value: "<integer>")
    json.update("id", value: "<long>")
    json.update("info_1", value: "<string>")
    json.update("info_2", value: "<string>")
    json.update("internet", value: "<string>")
    json.update("login_id", value: "<long>")
    json.update("mobile", value: "<string>")
    json.update("note", value: "<string>")
    json.update("number", value: "<string>")
    json.updateInt("payment_options", value: 5)
    json.updateBool("personal", value: false)
    json.update("phone_1", value: "<string>")
    json.update("phone_2", value: "<string>")
    json.update("postbox", value: "<string>")
    json.update("postbox_city", value: "<string>")
    json.update("postbox_state", value: "<string>")
    json.update("postbox_country", value: "<string>")
    json.update("postbox_zip_code", value: "<string>")
    json.update("sale_price_level", value: "SALEPRICE10")
    json.updateInt("salutation", value: 0)
    json.update("sepa_agreement", value: "BASIC")
    json.update("sepa_agreement_date", value: "<date>")
    json.update("sepa_mandate_reference", value: "<string>")
    json.update("since_date", value: "<date>")
    json.update("street", value: "<string>")
    json.update("suffix_1", value: "<string>")
    json.update("suffix_2", value: "<string>")
    json.update("tax_number", value: "<string>")
    json.update("court", value: "<string>")
    json.update("court_registry_number", value: "<string>")
    json.update("tax_options", value: "nStbUstID")
    json.update("title", value: "<string>")
    json.update("archived", value: "<boolean>")
    json.update("vat_identifier", value: "<string>")
    json.update("zip_code", value: "<string>")
    json.update("document_pdf_type", value: "default")
    json.update("buyer_reference", value: "<string>")
    json.update("foreign_supplier_number", value: "<string>")

    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/customers", 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)

    // {
    //   "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": 5,
    //   "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": "SALEPRICE10",
    //   "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": "nStbUstID",
    //   "title": "<string>",
    //   "archived": "<boolean>",
    //   "vat_identifier": "<string>",
    //   "zip_code": "<string>",
    //   "document_pdf_type": "default",
    //   "buyer_reference": "<string>",
    //   "foreign_supplier_number": "<string>"
    // }

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

    var strVal: String?

    var last_name: String? = jResp.string(of: "last_name")
    var company_name: String? = jResp.string(of: "company_name")
    var acquire_options: Int = jResp.int(of: "acquire_options").intValue
    var bank_account: String? = jResp.string(of: "bank_account")
    var bank_account_owner: String? = jResp.string(of: "bank_account_owner")
    var bank_bic: String? = jResp.string(of: "bank_bic")
    var bank_code: String? = jResp.string(of: "bank_code")
    var bank_iban: String? = jResp.string(of: "bank_iban")
    var bank_name: String? = jResp.string(of: "bank_name")
    var birth_date: String? = jResp.string(of: "birth_date")
    var cash_allowance: String? = jResp.string(of: "cash_allowance")
    var cash_allowance_days: Int = jResp.int(of: "cash_allowance_days").intValue
    var cash_discount: String? = jResp.string(of: "cash_discount")
    var cash_discount_type: String? = jResp.string(of: "cash_discount_type")
    var city: String? = jResp.string(of: "city")
    var state: String? = jResp.string(of: "state")
    var country: String? = jResp.string(of: "country")
    var created_at: String? = jResp.string(of: "created_at")
    var updated_at: String? = jResp.string(of: "updated_at")
    var delivery_title: String? = jResp.string(of: "delivery_title")
    var delivery_city: String? = jResp.string(of: "delivery_city")
    var delivery_state: String? = jResp.string(of: "delivery_state")
    var delivery_company_name: String? = jResp.string(of: "delivery_company_name")
    var delivery_country: String? = jResp.string(of: "delivery_country")
    var delivery_first_name: String? = jResp.string(of: "delivery_first_name")
    var delivery_last_name: String? = jResp.string(of: "delivery_last_name")
    var delivery_personal: String? = jResp.string(of: "delivery_personal")
    var delivery_salutation: Int = jResp.int(of: "delivery_salutation").intValue
    var delivery_street: String? = jResp.string(of: "delivery_street")
    var delivery_suffix_1: String? = jResp.string(of: "delivery_suffix_1")
    var delivery_suffix_2: String? = jResp.string(of: "delivery_suffix_2")
    var delivery_zip_code: String? = jResp.string(of: "delivery_zip_code")
    var display_name: String? = jResp.string(of: "display_name")
    var fax: String? = jResp.string(of: "fax")
    var first_name: String? = jResp.string(of: "first_name")
    var grace_period: String? = jResp.string(of: "grace_period")
    var due_in_days: String? = jResp.string(of: "due_in_days")
    var group_id: String? = jResp.string(of: "group_id")
    var id: String? = jResp.string(of: "id")
    var info_1: String? = jResp.string(of: "info_1")
    var info_2: String? = jResp.string(of: "info_2")
    var internet: String? = jResp.string(of: "internet")
    var login_id: String? = jResp.string(of: "login_id")
    var mobile: String? = jResp.string(of: "mobile")
    var note: String? = jResp.string(of: "note")
    var v_number: String? = jResp.string(of: "number")
    var payment_options: Int = jResp.int(of: "payment_options").intValue
    var personal: Bool = jResp.bool(of: "personal")
    var phone_1: String? = jResp.string(of: "phone_1")
    var phone_2: String? = jResp.string(of: "phone_2")
    var postbox: String? = jResp.string(of: "postbox")
    var postbox_city: String? = jResp.string(of: "postbox_city")
    var postbox_state: String? = jResp.string(of: "postbox_state")
    var postbox_country: String? = jResp.string(of: "postbox_country")
    var postbox_zip_code: String? = jResp.string(of: "postbox_zip_code")
    var sale_price_level: String? = jResp.string(of: "sale_price_level")
    var salutation: Int = jResp.int(of: "salutation").intValue
    var sepa_agreement: String? = jResp.string(of: "sepa_agreement")
    var sepa_agreement_date: String? = jResp.string(of: "sepa_agreement_date")
    var sepa_mandate_reference: String? = jResp.string(of: "sepa_mandate_reference")
    var since_date: String? = jResp.string(of: "since_date")
    var street: String? = jResp.string(of: "street")
    var suffix_1: String? = jResp.string(of: "suffix_1")
    var suffix_2: String? = jResp.string(of: "suffix_2")
    var tax_number: String? = jResp.string(of: "tax_number")
    var court: String? = jResp.string(of: "court")
    var court_registry_number: String? = jResp.string(of: "court_registry_number")
    var tax_options: String? = jResp.string(of: "tax_options")
    var title: String? = jResp.string(of: "title")
    var archived: String? = jResp.string(of: "archived")
    var vat_identifier: String? = jResp.string(of: "vat_identifier")
    var zip_code: String? = jResp.string(of: "zip_code")
    var document_pdf_type: String? = jResp.string(of: "document_pdf_type")
    var buyer_reference: String? = jResp.string(of: "buyer_reference")
    var foreign_supplier_number: String? = jResp.string(of: "foreign_supplier_number")
    var i: Int = 0
    var count_i: Int = jResp.size(ofArray: "additional_groups_ids").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "additional_groups_ids[i]")
        i = i + 1
    }

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


}

Curl Command

curl -X POST
	-H "Authorization: {{apiKey}}"
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '{
  "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": 5,
  "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": "SALEPRICE10",
  "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": "nStbUstID",
  "title": "<string>",
  "archived": "<boolean>",
  "vat_identifier": "<string>",
  "zip_code": "<string>",
  "document_pdf_type": "default",
  "buyer_reference": "<string>",
  "foreign_supplier_number": "<string>"
}'
https://api.easybill.de/rest/v1/customers

Postman Collection Item JSON

{
  "name": "Create customer",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\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\": 5,\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\": \"SALEPRICE10\",\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\": \"nStbUstID\",\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}",
      "options": {
        "raw": {
          "headerFamily": "json",
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/customers",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "customers"
      ]
    }
  },
  "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  \"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\": 5,\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\": \"SALEPRICE10\",\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\": \"nStbUstID\",\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}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/customers",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers"
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\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\": 5,\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\": \"SALEPRICE10\",\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\": \"nStbUstID\",\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}"
    },
    {
      "name": "Invalid Customer",
      "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  \"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\": 5,\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\": \"SALEPRICE10\",\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\": \"nStbUstID\",\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}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/customers",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "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  \"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\": 5,\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\": \"SALEPRICE10\",\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\": \"nStbUstID\",\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}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/customers",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers"
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}