Create Single Asset with a Single Distribution
You want to create a capitalized asset in PL CORP
book with cost $15000, with one physical location and one unit. This asset has the alphanumeric asset number NEWADD0726
.
Example URL
Here's an example of the resource URL:
POST
fscmRestApi/resources/11.13.18.05/erpintegrations
cURL Command
curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations
Example Request
Here's an example of the request body in JSON format:
{
"OperationName": "processTransaction-addAsset",
"ParameterList": "{P_BOOK_TYPE_CODE: PL CORP,PX_ASSET_NUMBER: NEWADD0726,P_DESCRIPTION: Dell Inspiron,P_MANUFACTURER_NAME: Dell,P_MODEL_NUMBER: 1500,P_ASSET_TYPE: CAPITALIZED,P_CATEGORY_ID: 21,P_DATE_PLACED_IN_SERVICE: '2008-03-31', P_COST : 15000,P_TRX_ATTRIBUTE1:d, P_TRX_ATTRIBUTE2:d,P_D_TRX_ATTRIBUTE1:d,P_D_TRX_ATTRIBUTE2:d,P_DISTRIBUTION_ID_TBL:'1', P_ASSIGNED_TO_TBL:'1',P_UNITS_ASSIGNED_TBL:'1',P_TRANSACTION_UNITS_TBL:'1',P_EXPENSE_CCID_TBL:'300100071633798',P_LOCATION_CCID_TBL: '300100071633789'}"
}
Example Response
Here's an example of the response body in JSON format:
{
"OperationName": "processTransaction-addAsset",
"DocumentId": null,
"DocumentContent": null,
"FileName": null,
"ContentType": null,
"FileType": null,
"DocumentAccount": null,
"Comments": null,
"ProcessName": null,
"LoadRequestId": null,
"JobPackageName": null,
"JobDefName": null,
"ReqstId": null,
"RequestStatus": null,
"JobName": null,
"ParameterList": "{\"X_D_TRANSACTION_HEADER_ID\":\"209895\",\"X_MSG_COUNT\":\"0\",\"PX_ASSET_NUMBER\":\"NEWADD0726\",\"X_TRANSACTION_HEADER_ID\":\"209894\",\"X_RETURN_STATUS\":\"S\"}",
"NotificationCode": null,
"CallbackURL": null,
"JobOptions": null,
"StatusCode": null,
"ESSParameters": null,
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations/processTransaction-addAsset",
"name": "erpintegrations",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations/processTransaction-addAsset",
"name": "erpintegrations",
"kind": "item"
} ]
}