Record Retirement History for an Asset
You want to record the retirement history of an asset with the identifier 108932
and asset book OPS CORP
.
Example URL
Here's an example of the resource URL:
POST
fscmRestApi/resources/11.13.18.05/erpintegrations
cURL Command
ccurl -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, using asset identifier:
{
"OperationName": "processTransaction-getAssetRetirementHistory",
"ParameterList": "{ P_ASSET_ID: 108932, P_BOOK_TYPE_CODE: OPS CORP}"
}
Example Response
Here's an example of the response body in JSON format:
{
"OperationName": "processTransaction-getAssetRetirementHistory",
"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_LAST_UPDATE_DATE_TBL\":\"11-12-2009 01:25:01,11-12-2009 00:45:33\",\"X_RETIREMENT_TYPE_CODE_TBL\":\"DESTROYED,RETIREMENT\",\"X_DATE_EFFECTIVE_TBL\":\"11-12-2009 01:22:54,11-12-2009 00:41:31\",\"X_LAST_UPDATE_BY_TBL\":\"9CC6A2057FBE9B440D35F0B7B367A7CC,9CC6A2057FBE9B440D35F0B7B367A7CC\",\"X_REFERENCE_NUM_TBL\":\"123,\",\"X_RETIREMENT_DATE_TBL\":\"2006-04-30,2006-07-31\",\"X_STATUS_TBL\":\"DELETED,DELETED\",\"X_RETURN_STATUS\":\"S\",\"X_DBTIMEZONE\":\"+00:00\",\"X_COST_RETIRED_TBL\":\"10000,20000\",\"X_UNITS_TBL\":\",4\",\"X_RETIREMENT_ID_TBL\":\"4413,4407\"}",
"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-getAssetRetirementHistory",
"name": "erpintegrations",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations/processTransaction-getAssetRetirementHistory",
"name": "erpintegrations",
"kind": "item"
}
]
}