Chilkat Online Tools

Ruby / easybill REST API / Update Customer

Back to Collection Items

require 'chilkat'

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

http = Chilkat::CkHttp.new()

# 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>"
# }

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

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

sbRequestBody = Chilkat::CkStringBuilder.new()
json.EmitSb(sbRequestBody)

# resp is a CkHttpResponse
resp = http.PTextSb("PUT","https://api.easybill.de/rest/v1/customers/:id",sbRequestBody,"utf-8","application/json",false,false)
if (http.get_LastMethodSuccess() == false)
    print http.lastErrorText() + "\n";
    exit
end

sbResponseBody = Chilkat::CkStringBuilder.new()
resp.GetBodySb(sbResponseBody)

jResp = Chilkat::CkJsonObject.new()
jResp.LoadSb(sbResponseBody)
jResp.put_EmitCompact(false)

print "Response Body:" + "\n";
print jResp.emit() + "\n";

respStatusCode = resp.get_StatusCode()
print "Response Status Code = " + respStatusCode.to_s() + "\n";
if (respStatusCode >= 400)
    print "Response Header:" + "\n";
    print resp.header() + "\n";
    print "Failed." + "\n";

    exit
end

# 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

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

Curl Command

curl -X PUT
	-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/:id

Postman Collection Item JSON

{
  "name": "Update Customer",
  "request": {
    "method": "PUT",
    "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/:id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "customers",
        ":id"
      ],
      "variable": [
        {
          "key": "id",
          "value": "<long>",
          "description": "(Required) ID of customer that needs to be updated"
        }
      ]
    }
  },
  "response": [
    {
      "name": "Successful operation",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "Authorization",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"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/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers",
            ":id"
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_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": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "Authorization",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"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/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers",
            ":id"
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Too Many Requests",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "Authorization",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"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/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers",
            ":id"
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}