Registrations - Mileage, PUT

API Url

Mileage (XM) variant of generic registration

Ignore the URI, for the correct URI see

PUT
http://localhost:16010/ProMarkREST/{DummyRegistration?type=XM}

Parameter

FieldTypeDescription
empIdstring

Internal employee ID

locationoptionalobject

Geo location of registration

  latitudenumber

Latitude, negative value is west

Size range: -180 to 180
  longitudenumber

Longitude, negative value is south

Size range: -180 to 180
mileageobject

Mileage

  accountobject

Account used on mileage

    idstring

Account ID

  carobject

Car used on mileage

    licensePlatestring

License plate

    typenumber

0 : Company car 2 : Personal car.

Allowed values:01
  commentoptionalstring

Optional comment

  distancenumber

Distance as decimal

  fromstring

Mileage starting point

  roundtripboolean

TRUE if it's a roundtrip

  tostring

Mileage ending point

  viaoptionalstring

Via point

regTimedatetime

The time of registration

terminalIdstring

Numeric ID of registration terminal, or if not numeric, then it's the ID of the user that changed or added the registration

transSeqnumber

Unique reference of registration

typestring
Default value: XM

Success 200

FieldTypeDescription
  departmentoptionalobject
    descriptionstring
    idstring
  questionsoptionalobject

Questions to answer related to mileage

    answeroptionalstring

The answer itself

    answerDescriptionoptionalstring

Answer description.

    dataTypenumber

0: Text, 1: Integer, 2: Decimal, 3: Boolean, 4: Date, 5: TimeOfDay, 6: DateTime, 7: TimeDuration, 8: TimeInterval, 9: DateInterval, 10: DateTimeInterval

Allowed values:0-10
    idstring

Question ID

    inputTypenumber

0 :Standard, 1: FillIn, 2: DropDown, 3: ComboBox, 4: TextArea, 5: RadioSet, 6: CheckBox, 7: SelectionList, 8: Calendar, 9: CalendarDropDown, 10: ExternalLookup

Allowed values:0-10
    labelstring

Label on the question

    orderstring

Question order

  relatedToobject

Fill if expense is related to a dimension. It can be related to: Nothing, Project/Activity or Department.

    activityobject

Activity

      descriptionstring

Description of activity

      idstring

ID of activity

    extraInfooptionalobject[]

Collection of extra info objects

      descriptionstring

Description of extra info

      idstring

ID of extra info

      valueobject

Extra info value

        descriptionstring

Description of extra info value

        idstring

ID of extra info value

    pieceworkoptionalobject

Piecework

      descriptionstring

Description of piecework

      idstring

ID of piecework

    projectobject

Project

      descriptionstring

Description of project

      idstring

ID of project

    timeTypeoptionalobject

Time Type

      descriptionstring

Description of timeType

      idstring

ID of timeType