Registrations - Daily Allowance, GET

API Url

Daily Allowance (XT) variant of generic registration

Ignore the URI, for the correct URI see

GET
http://localhost:16010/ProMarkREST/{DummyRegistration?type=XT}

Success 200

FieldTypeDescription
actualTimedatetime

The actual time the registration was made

approvaloptionalobject[]

Approval information

  approvalTimeoptionaldatetime

Time of approval/rejection, available when status is 2 or 3

  approverIdoptionalstring

Id of user that approved or rejected, available when status is 2 or 3

  deptIdstring

Department ID, secondary to approval group

  groupIdstring

Approval group ID

  levelnumber

1: First level approval, 2: Second level approval or 3: Escalated level approval

Allowed values:123
  rejectCodeoptionalstring

Rejection code, in use when status is 3

  rejectMsgoptionalstring

Rejection message, in use when status is 3

  statusnumber

0: No approval, 1: Needs approval, 2: Approved or 3: Rejected

Allowed values:0123
approvalStatusnumber

0: No approval, 1: Needs approval, 2: Approved or 3: Rejected

Allowed values:0123
attendanceDatedate

The date that the registration belongs to. Typical the date of the registration unless it's a night shift

closedPeriodboolean

The registration is in a closed period

correctedRegTimedatetime

Registration time adjusted according to setup in ProMark

descriptionstring
Default value: Daily Allowance
empIdstring

Internal employee ID

isDeletedboolean

The registration is deleted and cannot be altered.

isErroneousboolean

The registrations is erroneous and should either be changed or deleted. It's typical a result of offline CI/CO registration where a reason is missing or it's a duplicate.

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
noDeleteboolean

It's not allowed to delete the registration. Some registrations may be readOnly but can still be deleted

noTimeChangeboolean

regTime cannot be changed, for instance on absence registrations

readOnlyboolean

It's not allowed to edit the registration

regTimedatetime

The time of registration

signOffoptionalobject

Sign off information

  bystring

Used if status = 2: Terminal Id is signed off by employee or User Id if signed off by user

  statusnumber

0: Not required, 1: Pending or 2: Signed off

Allowed values:012
  timedatetime

Used if status = 2: Time of sign off

terminalIdstring

Numeric ID (optional prefixed by*) of registration terminal. If it's not numeric (it does not start with a digit or *) then it's the ID of the user that changed or created the registration

transSeqnumber

Unique reference of registration

travelobject

Travel

  daysobject[]

Travel days

    endTimedatetime

End date and time of day.

    entryNonumber

Entry number (day no).

    mealsobject

Meals take on the day.

      breakfastboolean

True = you had breakfast.

      dinnerboolean

True = you had dinner.

      lunchboolean

True = you had lunch.

    startTimedatetime

Start date and time of day.

    supplementDescstring

Supplement description.

    supplementIdstring

Supplement ID (on accomodation).

  departmentoptionalobject
    descriptionstring
    idstring
  endTimedatetime

Last day and time of travel

  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

  startTimedatetime

First day and time of travel

typestring
Default value: XT
underValidationboolean

The registration is under validation