Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTTP GET to /persons/id

Parameters

See Common parameters and responses

Name

Value

Description

Data type

memberuntil

2015-12-24

When the membership expires

Date

kid000000400000006The persons KID-number

String

...

Code Block
languagehtml/xml
<person>
  <id>1</id>
  <businessunit>
    <id>2</id>
    <name>Test facility</name>
  </businessunit>
  <organization>
    <id>12</id>
    <name>Acme</name>
  </organization>
  <cardnumber>123434556</cardnumber>
  <customernumber>10000</customernumber>
  <firstname>John</firstname>
  <lastname>Doe</lastname>
  <shippingcareof>Jane Doe</shippingcareof>
  <shippingstreet>10 Main street</shippingstreet>
  <shippingpostal>12345</shippingpostal>
  <shippingcity>Springfield</shippingcity>
  <shippingcountry>SE</shippingcountry>
  <billingcareof/>
  <billingstreet/>
  <billingpostal/>
  <billingcity/>
  <billingcountry/>
  <email>john@doe.com</email>
  <sex>male</sex>
  <kid>000000400000006</kid>
  <personnumber/>
  <birthdate/>
  <homephone>012-123 456</homephone>
  <mobilephone></mobilephone>
  <workphone></workphone>
  <memberuntil>2015-12-24</memberuntil>
  <allowsmsreminders>true</allowsmsreminders>
  <allowsms>true</allowsms>
  <allowmail>true</allowmail>
  <allowemail>true</allowemail>
  <lastupdate>2012-08-13 13:31:32.0</lastupdate>
  <suspended>false</suspended>
  <suspendedreason></suspendedreason>
  <staffmember>false</staffmember>
  <discount></discount>
  <pricelist>
    <id>1</id>
    <name>Bonuskund</name>
  </pricelist>
  <photodocumentid>180</photodocumentid>
  <customertype>2</customertype>
  <customertypeend>2016-10-31</customertypeend>
  <owndefinedfields>
    <owndefinedfield>
      <id>137</id>
      <caption>Cars</caption>
      <name>field_cars</name>
      <sortindex>1</sortindex>
      <type>MultipleSelectionsList</type>
      <value/>
      <mulitvalues>
        <value>
          <id>480</id>
          <text>Volvo</text>
        </value>
        <value>
          <id>482</id>
          <text>BMW</text>
        </value>
      </mulitvalues>
    </owndefinedfield>
    <owndefinedfield>
      <id>134</id>
      <caption>Middle name</caption>
      <name>field_middlename</name>
      <sortindex>5</sortindex>
      <type>String</type>
      <value>Henrik</value>
    </owndefinedfield>
  </owndefinedfields>
  <wellnessloginurl></wellnessloginurl>
  <persongroups>
    <persongroup>
      <id>1</id>
      <name>VIP</name>
    </persongroup>
    <persongroup>
      <id>6</id>
      <name>Student</name>
    </persongroup>
  </persongroups>
  <internalnote>Some internal note</internalnote>
  <nationality>NO</nationality>
  <missingswedishssn>true</missingswedishssn>
  <temporary>2012-08-13 13:31:32.0</temporary>
  <employmentnumber></employmentnumber>
  <employmentstart></employmentstart>
  <employmentend></employmentend>
  <businessunits></businessunits>
  <role></role>
</person>

See Common parameters and responses

Verify a person

Request

HTTP GET to /persons

...

HTTP POST to /persons

Parameters

See Common parameters and responses
The following fields are required in order to create a person:

...

HTTP PUT to /persons/id

Parameters

See Common parameters and respones

businessunitid

May not be changed via the API

...