Privatkunde v2 /api/v2/:principal_slug/business/partner/client/private_clients/:id

Überblick

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

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

Ähnliche Schnittstellen

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

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

Parameter

Query Parameter

Schlüssel
id Pflicht

Business::Partner::Client::PrivateClient ID

principal_slug Pflicht

Backend::Principal Slug / ID

Beispiel Rückgabe

{
  "data" : {
    "id"                     : "5406157b726f723401040000",
    "backend_application_id" : null,
    "foreign_id"             : null,
    "_type"                  : "data",
    "abbreviation"           : "LEUR",
    "name"                   : "Lehmann Ursula",
    "firstname"              : "Ursula",
    "lastname"               : "Lehmann",
    "email"                  : "XXX@XXX.ch",
    "client_types"           : ["regular"],
    "phone_number_1"         : "",
    "phone_number_2"         : "",
    "mobile_phone_number"    : "+XXXXXXXX",
    "fax_number"             : "",
    "billing_address"        : {
      "id"                            : "54f73935626c693d2c180000",
      "firstname"                     : "Ursula",
      "lastname"                      : "Lehmann",
      "company_name"                  : null,
      "location_name"                 : null,
      "latitude"                      : 1.234,
      "longitude"                     : 123.34,
      "street"                        : "XXXXXX 12",
      "additional_street_information" : null,
      "zip_code"                      : "1234",
      "town"                          : "XXXXXX",
      "country"                       : "CH",
      "full_address"                  : "XXXXX 12, 1234 XXXXXX, Switzerland"
    },
    "shipping_address"       : {
      "id"                            : "54f73935626c693d2c190000",
      "firstname"                     : "Ursula",
      "lastname"                      : "Lehmann",
      "company_name"                  : null,
      "location_name"                 : null,
      "latitude"                      : 123.45,
      "longitude"                     : 123.45,
      "street"                        : "XXXXXX 12",
      "additional_street_information" : null,
      "zip_code"                      : "1234",
      "town"                          : "XXXXXXXXX",
      "country"                       : "CH",
      "full_address"                  : "XXXXXXXXX 12, 1234 XXXXXX, 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"                 : []
  },
  "meta" : {
    "resource_class" : "Business::Partner::Client::PrivateClient",
    "id"             : "5406157b726f723401040000",
    "to"             : {"string" : "Lehmann Ursula","param" : "5406157b726f723401040000"},
    "created_at"     : "2014-09-02T21:07:39.066+02:00",
    "updated_at"     : "2016-03-18T11:01:51.839+01:00",
    "principal"      : {
      "id"       : "537bc650993a7a35ee000237",
      "to_param" : "patricklehmann-punkt-ch-photography"
    },
    "can"            : {"update" : true,"destroy" : true}
  }
}