Skip to main content

How to Create Items using REST API in Oracle Fusion


 Fusion Applications provide multiple ways to create Items such as
  • Using FBDI Process(File Based Data Import)
  • Using REST API
  • Using SOAP WebService
In this post, we will see the basic data elements required to create Items using REST API. 


You can find Oracle Standard Documentation at the below URL

End Point:  fscmRestApi/resources/11.13.18.05/itemsV2
Method: Post
Steps in Invoking a REST API:
  1. Construct the Request URL 
  2. Set the Authentication
  3. Prepare the Request Body
  4. Submit the request 
  1.     Construct the Request URL: 
There are two parts in a Request URL.
    a.       Server 
    b.       Resource Path
 
https://<server>/<resource-path>

The server will be the URL of your Oracle Cloud service.
 https://servername.fa.us2.oraclecloud.com 
Resource Path is the value provided in the documentation as shown below. 
/fscmRestApi/resources/11.13.18.05/itemsV2
 
 


Hence the Request URL will be  
https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources
/11.13.18.05/itemsV2
 
2.  Set the Authentication
 
In a REST API client, you can enter the User name and Password 
in the Authorization tab as shown below. 
 
 
3.  Prepare the Request Body 
Elements in the request body will depend on the Item Class setup and the business requirement. Below is a simple example to create a Finished Good Item.  
{
  "ItemNumber":"TQ032901",
  "ItemDescription":"Item Creation using REST API",
  "ItemClass":"Root Item Class",
  "OrganizationCode":"AQ_IMO",
  "Template":"Finished Goods",
  "PrimaryUOMValue":"Each",
  "LifecyclePhaseValue":"Production",
  "ItemStatusValue":"Active",
  "ApprovalStatusValue":"Approved"
}
 
4.  Submit the Request; 
 
Once the Request Body is saved, click on Send. 
As shown in the below screen shot, received the response status as 201(Created). 
 

Screen shot of the Items from Fusion Application.





 
 
 
 
 

Comments

Popular posts from this blog

Technical Details- Automatic Work Definition

 Table Details:  Operations that are enabled for Automatic Work Definition can be found from the below table  WIS_STANDARD_OPERATIONS_B. Column - USED_IN_AUTO_WD_FLAG indicates whether operation is assigned to Automatic Work definition. Query1: All Standard Operations across the orgs that are used in Automatic Work Definition. select io.organization_code, standard_operation_code,used_in_auto_wd_flag, count_point_flag, auto_transact_flag from wis_standard_operations_b wsob, inv_org_parameters io where wsob.organization_id=io.organization_id and wsob.used_in_auto_wd_flag='Y'   Query2: All the automatic work definitions in the application across organizations. select io.organization_code, esi.item_number, wwd.system_generated_flag System_Generated, wwd.* from inv_org_parameters io, egp_system_items_b esi, wis_work_definitions wwd where esi.inventory_item_id=wwd.inventory_item_id and esi.organization_id=wwd.organization_id and io.organization_id=wwd.org

Creating Item Lots Using REST API in Oracle Fusion

Creating Item Lots Using REST API in Oracle Fusion   Oracle Fusion Inventory Management provides multiple REST API services to create the transactions and to fetch the data from Inventory Management.    Below are the steps involved in creating an Item Lot using REST API.     Construct the Request URL   Set the Authentication Prepare the Request Body For more information on Step#1 and 2, You may review my earlier post https://xplorefusion.blogspot.com/2020/03/prerequisites-in-invoking-rest-api.html   Prepare the Request Body: Elements in the request body will depend on the business requirement. Below is a simple example to create an Item Lot.   {         "OrganizationId":"300000043518896",         "InventoryItemId": 300000045573119,         "LotNumber": "SF20181208",         "ActiveLot":"Yes",         "OriginationDate":"2020-03-31T18:30:00+00:00" } Prerequisit