Platform API

<back to all web services

RegisterNewUser

Registers a new user with the platform as a 'Perspective Platform - Platform Member'

The following routes are available for this service:
All Verbs/api/register
RegisterNewUser Parameters:
NameParameterData TypeRequiredDescription
EmailAddressquerystringYesDetails of the contacts primary/default user profile.
PasswordquerystringYesDetails of the contacts primary/default user profile.
FirstNamequerystringYesDetails of the contacts primary/default user profile.
SurnamequerystringYesThe users surname.
DescriptionquerystringYesThe users public profile description.
EmploymentIndustryquerystringYesThe users industry they work in and what they do (Profession/Trade/Industry).
EmploymentRolequerystringYesThe users company/trading name and any major businesses they contract to (Working/Subcontracting for).
EmploymentGeographicAreaquerystringYesThe users areas or geographic regions they work in (Work Areas/Suburbs).
TimezonequeryGuidNoThe users timezone.
BusinessProfilequerySaveUserProfileNoThe users business profile information (if they have a business).
SaveUserProfile Parameters:
NameParameterData TypeRequiredDescription
UserProfileIdqueryGuidYesThe users profile Guid.
UserIdqueryGuidYesThe users Guid. This is used for validation to ensure the user in the session is only changing his own user information.
ContactIdqueryGuidYesThe users contact Guid.
ProfileNamequerystringYesThe users profile name.
TitlequerystringNoThe users (contact) title.
FirstNamequerystringYesThe users (contact) first name(s).
SurnamequerystringYesThe users (contact) surname.
DescriptionquerystringNoThe contact profile description.
EmploymentIndustryquerystringNoThe contacts profession/trade/industry details.
EmploymentRolequerystringNoThe contact details of who they work/subcontract for.
EmploymentGeographicAreaquerystringNoThe contacts work area/suburbs.
TimezonequeryGuidNoThe contacts timezone.
ContactDetailsqueryList<ContactDetailModel>YesA list of the contact details for the contact. Note: an email must always be set for a business.
ContactTypeformstringNoType of contact (person, organisation etc.) linked to the profile
LegalNameformstringNoLegal name of contact linked to the profile
TradingNameformstringNoTrading name of contact linked to the profile
AbnformstringNoAbn of contact linked to the profile
AcnformstringNoAcn of contact linked to the profile
ArbnformstringNoArbn of contact linked to the profile
GstRegisteredqueryboolNoIndicates if the Contact is registered for GST.
GenderIdqueryGuidNoThe Gender Guid of the contact.
ContactDetailModel Parameters:
NameParameterData TypeRequiredDescription
ContactMethodIdbodyGuidNoId of the Contact Method
ContactMethodNamebodystringNoContact Method Name
ContactAddressbodyContactAddressModelNoIf the contact method is an address, this will contain the address details.
ContactPhonebodyPhoneModelNoIf the contact method is a phone, this will contain the phone details
CountryIdbodyGuid?NoId of the country
ContactDetailsbodystringNoA summary string representing the contact details
NotesbodystringNoNotes about the contact details
ContactDetailsCodebodystringNoArea Code if contact details are a phone number
OrderContactMethodbodyintNoOrder number of the contact method
IsPrimaryContactMethodbodyboolNoTrue if this is the primary contact method
IsAddressbodyboolNoTrue if this contact method is an address
ContactAddressModel Parameters:
NameParameterData TypeRequiredDescription
AddressbodyAddressModelNoAddress Details
IsPostalbodyboolNoTrue if this is a postal address.
IsPrimaryLocationbodyboolNoTrue if this is the primary address.
IsRegisteredLocationbodyboolNoTrue if this address is the registered tax address.
SuburbNamebodystringNoSuburb Name
StateNamebodystringNoState Name
CountryNamebodystringNoCountry Name
AddressModel Parameters:
NameParameterData TypeRequiredDescription
DistanceAwaybodydoubleNoThe distance between this project and another specified set of gps coordinates.
LatitudebodyDouble?NoThe latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.
LongitudebodyDouble?NoThe longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface.
AddressFormatIdbodyGuidNoAddress Format Id Guid - this will be determined by the service.
SuburbIdbodyGuidNoSuburb Id Guid - this will attempt to be determined by the SuburbName, StateShortName and Postcode entered.
SuburbNamebodystringNoThe suburb name.
StateShortNamebodystringNoThe shortened State Name e.g Vic for Victoria.
PostCodebodystringNoThe suburb postcode.
CountryIdbodyGuidNoCountry Id Guid - this will be determined by the CountrName or ISOCountryCode entered.
CountryNamebodystringNothe name of the country the address is within.
ISOCountryCodequerystringNoISO Country Code.
LotNumberbodystringNoThe address Lot number.
SubUnitbodystringNoThe address Sub Unit number.
BuildingNumberbodystringNoThe address building number.
StreetNumberbodystringNoThe address street number.
StreetNamebodystringNoThe address street name including street type.
AddressLineOnebodystringNoA formatted address Line 1.
AddressLineTwobodystringNoA formatted address Line 2.
AddressFullbodystringNoThe full address string.
IsPhysicalbodybool?NoTrue if the address is a physical location.
NotesformstringNoNotes about the address.
AutoMapCoordinatesbodybool?NoIf true, the address is eligible for having its coordinates calculated/updated.
LocationCoordinatesbodyLocationCoordinatesNoLocation Coordinates for the address.
LocationCoordinatesModel Parameters:
NameParameterData TypeRequiredDescription
LatitudequerydoubleNoThe latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.
LongitudequerydoubleNoThe longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface.
Altitudequerydouble?NoThe altitude of an address - the altitude above sea level."
Accuracyquerydouble?NoAccuracy of the latitude and longitude.
AltitudeAccuracyquerydouble?NoAccurancy of the Altitude.
Headingquerydouble?NoDirection you are heading.
Speedquerydouble?NoSpeed you are going.
VerticalSpeedquerydouble?NoSpeed your altitude is ascending/descending at.
PhoneModel Parameters:
NameParameterData TypeRequiredDescription
CountryCodebodystringNoCountry Code
AreaCodebodystringNoArea Code
LocalNumberbodystringNoLocal Number

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/register HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RegisterNewUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
  <BusinessProfile>
    <Abn>String</Abn>
    <Acn>String</Acn>
    <Arbn>String</Arbn>
    <ContactDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.WebAPI.ServiceModel">
      <d3p1:ContactDetailModel>
        <d3p1:_x003C_ContactAddress_x003E_k__BackingField>
          <d3p1:_x003C_Address_x003E_k__BackingField>
            <d3p1:_addressFull>String</d3p1:_addressFull>
            <d3p1:_x003C_AddressFormatId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_AddressFormatId_x003E_k__BackingField>
            <d3p1:_x003C_AddressLineOne_x003E_k__BackingField>String</d3p1:_x003C_AddressLineOne_x003E_k__BackingField>
            <d3p1:_x003C_AddressLineTwo_x003E_k__BackingField>String</d3p1:_x003C_AddressLineTwo_x003E_k__BackingField>
            <d3p1:_x003C_AutoMapCoordinates_x003E_k__BackingField>false</d3p1:_x003C_AutoMapCoordinates_x003E_k__BackingField>
            <d3p1:_x003C_BuildingNumber_x003E_k__BackingField>String</d3p1:_x003C_BuildingNumber_x003E_k__BackingField>
            <d3p1:_x003C_CountryId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_CountryId_x003E_k__BackingField>
            <d3p1:_x003C_CountryName_x003E_k__BackingField>String</d3p1:_x003C_CountryName_x003E_k__BackingField>
            <d3p1:_x003C_DistanceAway_x003E_k__BackingField>0</d3p1:_x003C_DistanceAway_x003E_k__BackingField>
            <d3p1:_x003C_ISOCountryCode_x003E_k__BackingField>String</d3p1:_x003C_ISOCountryCode_x003E_k__BackingField>
            <d3p1:_x003C_IsPhysical_x003E_k__BackingField>false</d3p1:_x003C_IsPhysical_x003E_k__BackingField>
            <d3p1:_x003C_Latitude_x003E_k__BackingField>0</d3p1:_x003C_Latitude_x003E_k__BackingField>
            <d3p1:_x003C_LocationCoordinates_x003E_k__BackingField>
              <d3p1:_x003C_Accuracy_x003E_k__BackingField>0</d3p1:_x003C_Accuracy_x003E_k__BackingField>
              <d3p1:_x003C_AltitudeAccuracy_x003E_k__BackingField>0</d3p1:_x003C_AltitudeAccuracy_x003E_k__BackingField>
              <d3p1:_x003C_Altitude_x003E_k__BackingField>0</d3p1:_x003C_Altitude_x003E_k__BackingField>
              <d3p1:_x003C_Heading_x003E_k__BackingField>0</d3p1:_x003C_Heading_x003E_k__BackingField>
              <d3p1:_x003C_Latitude_x003E_k__BackingField>0</d3p1:_x003C_Latitude_x003E_k__BackingField>
              <d3p1:_x003C_Longitude_x003E_k__BackingField>0</d3p1:_x003C_Longitude_x003E_k__BackingField>
              <d3p1:_x003C_Speed_x003E_k__BackingField>0</d3p1:_x003C_Speed_x003E_k__BackingField>
              <d3p1:_x003C_VerticalSpeed_x003E_k__BackingField>0</d3p1:_x003C_VerticalSpeed_x003E_k__BackingField>
            </d3p1:_x003C_LocationCoordinates_x003E_k__BackingField>
            <d3p1:_x003C_Longitude_x003E_k__BackingField>0</d3p1:_x003C_Longitude_x003E_k__BackingField>
            <d3p1:_x003C_LotNumber_x003E_k__BackingField>String</d3p1:_x003C_LotNumber_x003E_k__BackingField>
            <d3p1:_x003C_Notes_x003E_k__BackingField>String</d3p1:_x003C_Notes_x003E_k__BackingField>
            <d3p1:_x003C_PostCode_x003E_k__BackingField>String</d3p1:_x003C_PostCode_x003E_k__BackingField>
            <d3p1:_x003C_StateShortName_x003E_k__BackingField>String</d3p1:_x003C_StateShortName_x003E_k__BackingField>
            <d3p1:_x003C_StreetName_x003E_k__BackingField>String</d3p1:_x003C_StreetName_x003E_k__BackingField>
            <d3p1:_x003C_StreetNumber_x003E_k__BackingField>String</d3p1:_x003C_StreetNumber_x003E_k__BackingField>
            <d3p1:_x003C_SubUnit_x003E_k__BackingField>String</d3p1:_x003C_SubUnit_x003E_k__BackingField>
            <d3p1:_x003C_SuburbId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_SuburbId_x003E_k__BackingField>
            <d3p1:_x003C_SuburbName_x003E_k__BackingField>String</d3p1:_x003C_SuburbName_x003E_k__BackingField>
          </d3p1:_x003C_Address_x003E_k__BackingField>
          <d3p1:_x003C_CountryName_x003E_k__BackingField>String</d3p1:_x003C_CountryName_x003E_k__BackingField>
          <d3p1:_x003C_IsPostal_x003E_k__BackingField>false</d3p1:_x003C_IsPostal_x003E_k__BackingField>
          <d3p1:_x003C_IsPrimaryLocation_x003E_k__BackingField>false</d3p1:_x003C_IsPrimaryLocation_x003E_k__BackingField>
          <d3p1:_x003C_IsRegisteredLocation_x003E_k__BackingField>false</d3p1:_x003C_IsRegisteredLocation_x003E_k__BackingField>
          <d3p1:_x003C_StateName_x003E_k__BackingField>String</d3p1:_x003C_StateName_x003E_k__BackingField>
          <d3p1:_x003C_SuburbName_x003E_k__BackingField>String</d3p1:_x003C_SuburbName_x003E_k__BackingField>
        </d3p1:_x003C_ContactAddress_x003E_k__BackingField>
        <d3p1:_x003C_ContactDetailsCode_x003E_k__BackingField>String</d3p1:_x003C_ContactDetailsCode_x003E_k__BackingField>
        <d3p1:_x003C_ContactDetails_x003E_k__BackingField>String</d3p1:_x003C_ContactDetails_x003E_k__BackingField>
        <d3p1:_x003C_ContactMethodId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_ContactMethodId_x003E_k__BackingField>
        <d3p1:_x003C_ContactMethodName_x003E_k__BackingField>String</d3p1:_x003C_ContactMethodName_x003E_k__BackingField>
        <d3p1:_x003C_ContactPhone_x003E_k__BackingField>
          <d3p1:_x003C_AreaCode_x003E_k__BackingField>String</d3p1:_x003C_AreaCode_x003E_k__BackingField>
          <d3p1:_x003C_CountryCode_x003E_k__BackingField>String</d3p1:_x003C_CountryCode_x003E_k__BackingField>
          <d3p1:_x003C_LocalNumber_x003E_k__BackingField>String</d3p1:_x003C_LocalNumber_x003E_k__BackingField>
        </d3p1:_x003C_ContactPhone_x003E_k__BackingField>
        <d3p1:_x003C_CountryId_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</d3p1:_x003C_CountryId_x003E_k__BackingField>
        <d3p1:_x003C_IsPrimaryContactMethod_x003E_k__BackingField>false</d3p1:_x003C_IsPrimaryContactMethod_x003E_k__BackingField>
        <d3p1:_x003C_Notes_x003E_k__BackingField>String</d3p1:_x003C_Notes_x003E_k__BackingField>
        <d3p1:_x003C_OrderContactMethod_x003E_k__BackingField>0</d3p1:_x003C_OrderContactMethod_x003E_k__BackingField>
      </d3p1:ContactDetailModel>
    </ContactDetails>
    <ContactId>00000000-0000-0000-0000-000000000000</ContactId>
    <ContactType>00000000-0000-0000-0000-000000000000</ContactType>
    <Description>String</Description>
    <EmploymentGeographicArea>String</EmploymentGeographicArea>
    <EmploymentIndustry>String</EmploymentIndustry>
    <EmploymentRole>String</EmploymentRole>
    <FirstName>String</FirstName>
    <GenderId>00000000-0000-0000-0000-000000000000</GenderId>
    <GstRegistered>false</GstRegistered>
    <LegalName>String</LegalName>
    <ProfileName>String</ProfileName>
    <Surname>String</Surname>
    <Timezone>00000000-0000-0000-0000-000000000000</Timezone>
    <Title>String</Title>
    <TradingName>String</TradingName>
    <UserId>00000000-0000-0000-0000-000000000000</UserId>
    <UserProfileId>00000000-0000-0000-0000-000000000000</UserProfileId>
  </BusinessProfile>
  <Description>String</Description>
  <EmailAddress>String</EmailAddress>
  <EmploymentGeographicArea>String</EmploymentGeographicArea>
  <EmploymentIndustry>String</EmploymentIndustry>
  <EmploymentRole>String</EmploymentRole>
  <FirstName>String</FirstName>
  <Password>String</Password>
  <Surname>String</Surname>
  <Timezone>00000000-0000-0000-0000-000000000000</Timezone>
</RegisterNewUser>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <ErrorCode>String</ErrorCode>
  <Message>String</Message>
  <StackTrace>String</StackTrace>
  <Errors>
    <ResponseError>
      <ErrorCode>String</ErrorCode>
      <FieldName>String</FieldName>
      <Message>String</Message>
      <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Meta>
    </ResponseError>
  </Errors>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
</ResponseStatus>