Import Pre-Mapped Transactions (Transaction Matching)
Imports a file of pre-mapped transactions into Transaction Matching. The response indicates processing status and provides a link for checking job status.
You can configure how the import job handles an empty file by specifying the optional
onEmptyFile parameter. Empty files include files containing only headers
with no transaction records and completely blank files.
REST Resource
POST /arm/rest/{api_version}/jobsRequired Roles
Service Administrator, Power User, or Profiles and Reconciliations - Manage
Request
Supported Media Types: application/json
Parameters
The following table summarizes the client request parameters specific to this job.
Table 4-246 IMPORTTMPREMAPPEDTRANSACTIONS
| Name | Description | Required |
|---|---|---|
api_version |
Version of the API you are working with, such as v1 | Yes |
jobName |
The name of a job, importtmpremappedtransactions |
Yes |
dataSource |
Text ID of the data source where the transaction will be imported to | |
file |
The file name, such as transactions.csv |
|
matchTypeId |
The Text ID of the match type (previously known as Reconciliation Type, both parameter names continue to work) where the transaction file will be imported to |
Yes |
dateFormat |
Date Format is a parameter that includes the format of the date fields in the transactions
import file. The default is dd-MMM-yy. Other supported date formats
are MM/dd/yyyy, dd/MM/yyyy, MM-dd-yyyy, d-M-yyyy, and MMM
d,yyyy.
|
Yes |
onEmptyFile |
Determines how the import job handles an empty file for the specified data source. Supported values are error and warning. Set to warning to allow the job to complete successfully without creating transaction records when the file is empty. Set to error to fail the job when the file is empty. The default is error. Values other than warning retain the existing empty-file failure behavior. | No |
The onEmptyFile setting applies to the individual import job for the
specified data source. If omitted, existing behavior is preserved: an empty file causes the
job to fail.
Example of request body
{
"jobName": "importtmpremappedtransactions",
"parameters": {
"dataSource": "CLEARING",
"matchTypeId": "CLEARING",
"file": "clearingTransaction.csv",
"dateFormat": "MM-dd-yyyy",
"onEmptyFile": "warning"
}
}
When onEmptyFile is set to warning and the import file is
empty, the job completes successfully and no transaction records are created.
Response
Supported Media Types: application/json
Parameters:
Table 4-247 Parameters
| Name | Description |
|---|---|
details |
In case of errors, details are published with the error string |
status |
See Migration Status Codes |
links |
Detailed information about the link |
href |
Links to API call or status API |
action |
The HTTP call type |
rel |
Relationship type |
data |
Parameters as key value pairs passed in the request |
Example of Response Body
The following is an example of the response body in JSON format.
{
"type": "TM",
"status": -1,
"details": "In Process",
"links": [
{
"rel": "self",
"href": "https://<SERVICE_NAME>-<TENANT_NAME>.<SERVICE_TYPE>.<dcX>.oraclecloud.com/armARCS/rest/v1/jobs/2141",
"action": "GET"
}
]
}