Create (POST) Historical Expense Transaction

Use this API to create a historical expense transaction record.

To create historical expense transaction data:

Execute a POST command on the endpoint {{url}}/api/historicalExpense, specifying the data for the new historical expense transaction record in the request body. Bolded fields are required unless set differently from the default and you can check in the historical expense metadata.

For example, here is a request, using cURL, to create a new historical expense transaction record. For details about each field, check GET {{url}}/metadata/historicalExpense.

curl --request POST \
--url 'https://{{url}}/api/historicalExpense' \
--header 'authorization: Bearer {{oauth_token}}' \
--header 'content-type: application/json' \
--data '{
        "Period": 0,
        "PostSeq": 0,
        "PKey": "",
        "WBS1": "",
        "WBS2": "",
        "WBS3": "",
        "Account": "",
        "TransType": "",
        "TransDate": "YYYY-MM-DDT00:00:00.000",
        "BillExt": 0,
        "ProjectCost": "",
        "Vendor": "",
        "Unit": "",
        "AmountProjectCurrency": 0
}

A successful POST returns the JSON representation of the newly created historical expense record.