Kunde v2 /api/v2/:principal_slug/business/partner/clients/:id

Überblick

Klasse / Datentyp
Kunde
Response Formats
JSON
API Version
v2
Öffentlich erreichbar
false
HTTP Methode
DELETE
Zuletzt aktualisiert

/api/v2/:principal_slug/business/partner/clients/:id

Parameter

Query Parameter

Schlüssel
id Pflicht

Business::Partner::Client ID

principal_slug Pflicht

Backend::Principal Slug / ID

Beispiel Rückgabe

{
  "data" : {
    "id"                            : "54e8becf6f7269239a440000",
    "backend_application_id"        : null,
    "foreign_id"                    : null,
    "abbreviation"                  : "4CAR",
    "name"                          : "4Car",
    "company_name"                  : "4Car",
    "email"                         : "info@4car.ch",
    "client_types"                  : ["regular"],
    "phone_number_1"                : "",
    "phone_number_2"                : "",
    "mobile_phone_number"           : "",
    "fax_number"                    : "",
    "company_identification_number" : null,
    "billing_address"               : {
      "id"                            : "54f73935626c693d2ca80000",
      "firstname"                     : null,
      "lastname"                      : null,
      "company_name"                  : "4Car",
      "location_name"                 : null,
      "latitude"                      : 47.4789292,
      "longitude"                     : 8.5036768,
      "street"                        : "Neufeldstrasse 3",
      "additional_street_information" : null,
      "zip_code"                      : "8154",
      "town"                          : "Oberglatt",
      "country"                       : "CH",
      "full_address"                  : "Neufeldstrasse 3, 8154 Oberglatt, Switzerland"
    },
    "shipping_address"              : {
      "id"                            : "54f73935626c693d2ca90000",
      "firstname"                     : null,
      "lastname"                      : null,
      "company_name"                  : "4Car",
      "location_name"                 : null,
      "latitude"                      : 47.4789292,
      "longitude"                     : 8.5036768,
      "street"                        : "Neufeldstrasse 3",
      "additional_street_information" : null,
      "zip_code"                      : "8154",
      "town"                          : "Oberglatt",
      "country"                       : "CH",
      "full_address"                  : "Neufeldstrasse 3, 8154 Oberglatt, Switzerland"
    },
    "account"                       : {
      "id"     : "554b432c6f72690ea2100400",
      "_type"  : "Business::Account::Active::Debitor",
      "number" : 1100,
      "label"  : "Forderungen aus Lieferungen und Leistungen (Debitoren)"
    },
    "classification"                : {
      "id"     : "54fdc4666f726947ac5f0000",
      "label"  : "Schweiz",
      "number" : 6120,
      "path"   : "1.60.6120"
    },
    "payment_term"                  : {
      "id"              : "54c3efdb6f72691d1b340000",
      "key"             : "30-tage-netto",
      "label"           : "30 Tage netto",
      "date_of_payment" : 30
    },
    "tax_type"                      : {"id" : "5641211e93e2e515390001ff","code" : "national","label" : "Inland"},
    "groups"                        : [
      {"id" : "569f6cd393e2e57c69000001","label" : "Kunden Drohnen"},
      {"id" : "569a8c4f93e2e5152c000001","label" : "Kunden Fotografie"},
      {"id" : "56d46ab093e2e54ba6ce382c","label" : "Passivkunden"}
    ],
    "contacts"                      : []
  },
  "meta" : {
    "resource_class" : "Business::Partner::Client::BusinessClient",
    "id"             : "54e8becf6f7269239a440000",
    "to"             : {"string" : "4Car","param" : "54e8becf6f7269239a440000"},
    "created_at"     : "2015-02-21T18:22:23.416+01:00",
    "updated_at"     : "2016-12-06T13:39:40.713+01:00",
    "principal"      : {"id" : "53db7cb4993a7aefa50001e1","to_param" : "squibble"},
    "can"            : {"update" : true,"destroy" : true}
  }
}