Create Asset with two Distributions and Three Source Lines
You want to create a capitalized asset in OPS
CORP
book with cost $45000, with two physical locations and three source
lines.
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_ASSET_KEY_CCID:3,P_IN_USE_FLAG:T,P_OWNED_LEASED:OWNED,P_BOOK_TYPE_CODE: OPS CORP,P_DESCRIPTION: 'Dell Inspiron,Comma1,Comma2,Comma3,&Comma4',P_SERIAL_NUMBER:FT1234,P_CAT_ATTRIBUTE1:FT1234,P_MANUFACTURER_NAME: Dell,P_MODEL_NUMBER: 1500,P_ASSET_TYPE: CAPITALIZED,P_COST:45000,P_CATEGORY_ID: 21,P_DATE_PLACED_IN_SERVICE: '2003-03-31',P_CONVENTION_TYPE_ID: 1, P_TRX_ATTRIBUTE1:d, P_TRX_ATTRIBUTE2:d,P_D_TRX_ATTRIBUTE1:d,P_D_TRX_ATTRIBUTE2:d,P_EXPENSE_CCID_TBL:'300100071633798,300100071633798',P_LOCATION_CCID_TBL: '300100071633789,2', P_UNITS_ASSIGNED_TBL:'2,1',P_FIXED_ASSETS_COST_TBL:'15000,15000,15000', P_PAYABLES_COST_TBL:'15000,15000,15000',P_PAYABLES_CCID_TBL: '15340,15340,15340', P_PAYABLES_UNITS_TBL:'1,1,1',P_PO_NUMBER_TBL:'PO1,PO2,PO3'}"
}
Note:
The highlighted distributions attributes show how the two distribution elements are separated by a comma while the three source line values are supplied together and separated by commas.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\":\"209896\",\"X_MSG_COUNT\":\"0\",\"PX_ASSET_NUMBER\":\"10908876\",\"X_TRANSACTION_HEADER_ID\":\"209994\",\"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"
} ]
}