Firmenkunde v2 /api/v2/:principal_slug/business/partner/client/business_clients/:id

Überblick

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

/api/v2/:principal_slug/business/partner/client/business_clients/:id

Ähnliche Schnittstellen

/api/v2/:principal_slug/business/partner/client/business_clients GET

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

Parameter

Query Parameter

Schlüssel
id Pflicht

Business::Partner::Client::BusinessClient ID

principal_slug Pflicht

Backend::Principal Slug / ID

Beispiel Rückgabe

{
  "data" : {
    "id"                            : "54070766726f7234e7010000",
    "backend_application_id"        : null,
    "foreign_id"                    : null,
    "abbreviation"                  : "PATR",
    "name"                          : "patricklehmann.ch photography",
    "company_name"                  : "patricklehmann.ch photography",
    "email"                         : "info@patricklehmann.ch",
    "client_types"                  : ["regular"],
    "phone_number_1"                : "",
    "phone_number_2"                : "",
    "mobile_phone_number"           : "+41 79 400 66 50",
    "fax_number"                    : "",
    "company_identification_number" : null,
    "billing_address"               : {
      "id"                            : "54f73935626c693d2c200000",
      "firstname"                     : null,
      "lastname"                      : null,
      "company_name"                  : "patricklehmann.ch photography",
      "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"                            : "54f73935626c693d2c210000",
      "firstname"                     : null,
      "lastname"                      : null,
      "company_name"                  : "patricklehmann.ch photography",
      "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"     : "554b43256f72690ea2cf0200",
      "_type"  : "Business::Account::Active::Debitor",
      "number" : 1100,
      "label"  : "Forderungen aus Lieferungen und Leistungen (Debitoren)"
    },
    "classification"                : {
      "id"     : "554b5ec2626c6923535f0000",
      "label"  : "Schweiz",
      "number" : 6120,
      "path"   : "1.60.6120"
    },
    "tax_type"                      : {
      "id"    : "5641214593e2e515390004a2",
      "code"  : "other_international",
      "label" : "Übriges Ausland"
    },
    "payment_term"                  : {
      "id"              : "54c3efda6f72691d1b250000",
      "key"             : "30-tage-netto",
      "label"           : "30 Tage netto",
      "date_of_payment" : 30
    },
    "groups"                        : [],
    "contacts"                      : []
  },
  "meta" : {
    "resource_class" : "Business::Partner::Client::BusinessClient",
    "id"             : "54070766726f7234e7010000",
    "to"             : {
      "string" : "patricklehmann.ch photography",
      "param"  : "54070766726f7234e7010000"
    },
    "created_at"     : "2014-09-03T14:19:50.510+02:00",
    "updated_at"     : "2016-07-13T12:14:45.135+02:00",
    "principal"      : {
      "id"       : "537bc650993a7a35ee000237",
      "to_param" : "patricklehmann-punkt-ch-photography"
    },
    "can"            : {"update" : true,"destroy" : true}
  }
}