Create a per diem calculation
post
/fscmRestApi/resources/11.13.18.05/expensePerDiemCalculations
Request
Header Parameters
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
BusinessUnit: string
Business unit associated with the expense template.
-
DailyDetails: string
Daily breakdown of per diem calculations like eligibility, deductions, and so on.
-
Deductions: string
Optional value that indicates daily deductions. The format is a series of day entries separated by a comma. Each day is indicated with 5 letters composed of Y and N. The letters indicate whether the day is a holiday, whether breakfast, lunch, and dinner are included, and whether accommodations are included. For example, a two day trip with no holidays where the first day breakfast and last day dinner aren't included is entered as: NNYYY,NYYNY.
-
EndDatetime: string
Date and time when the trip ended. The format is YYYY-MM-DD hours:minutes:seconds in two digits.
-
ExchangeRate: number
Exchange rate between the functional currency and the reimbursement currency, if specified.
-
ExpenseTemplate: string
Expense template associated with the trip.
-
ExpenseType: string
Expense type associated with the per diem policy.
-
ExpenseTypeId: integer
Unique identifier of the expense type.
-
Location: string
Geographical location or zone code of the trip. Values are from exm_locations_mv.
-
LocationId: integer
Unique identifier of the geographical location obtained from the location.
-
Messages: string
Validation messages and error messages.
-
PersonId: integer
Unique identifier of the person associated with the user name.
-
ReceiptAmount: number
Per diem amount in the functional currency.
-
ReceiptCurrencyCode: string
Indicates the functional currency of this per diem.
-
ReimbursableAmount: number
The reimbursable amount in the reimbursement currency, if specified.
-
ReimbursementCurrencyCode: string
Optional value that indicates the reimbursement currency if it's different from the functional currency.
-
StartDatetime: string
Date and time when the trip started. The format is YYYY-MM-DD hours:minutes:seconds in two digits.
-
Username: string
User Name of the person associated with the trip.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : expensePerDiemCalculations-item-response
Type:
Show Source
object
-
BusinessUnit: string
Business unit associated with the expense template.
-
BusinessUnitId: integer
Read Only:
true
Unique identifier of the business unit. -
DailyDetails: string
Daily breakdown of per diem calculations like eligibility, deductions, and so on.
-
Deductions: string
Optional value that indicates daily deductions. The format is a series of day entries separated by a comma. Each day is indicated with 5 letters composed of Y and N. The letters indicate whether the day is a holiday, whether breakfast, lunch, and dinner are included, and whether accommodations are included. For example, a two day trip with no holidays where the first day breakfast and last day dinner aren't included is entered as: NNYYY,NYYNY.
-
EndDatetime: string
Date and time when the trip ended. The format is YYYY-MM-DD hours:minutes:seconds in two digits.
-
ExchangeRate: number
Exchange rate between the functional currency and the reimbursement currency, if specified.
-
ExpenseTemplate: string
Expense template associated with the trip.
-
ExpenseType: string
Expense type associated with the per diem policy.
-
ExpenseTypeId: integer
Unique identifier of the expense type.
-
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
Location: string
Geographical location or zone code of the trip. Values are from exm_locations_mv.
-
LocationId: integer
Unique identifier of the geographical location obtained from the location.
-
Messages: string
Validation messages and error messages.
-
PersonId: integer
Unique identifier of the person associated with the user name.
-
ReceiptAmount: number
Per diem amount in the functional currency.
-
ReceiptCurrencyCode: string
Indicates the functional currency of this per diem.
-
ReimbursableAmount: number
The reimbursable amount in the reimbursement currency, if specified.
-
ReimbursementCurrencyCode: string
Optional value that indicates the reimbursement currency if it's different from the functional currency.
-
StartDatetime: string
Date and time when the trip started. The format is YYYY-MM-DD hours:minutes:seconds in two digits.
-
Username: string
User Name of the person associated with the trip.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.