Create inventories
/fscmRestApi/resources/11.13.18.05/physicalInventories
Request
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode:
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
- application/json
object
-
AllowAllSubinventories: string
Value that indicates whether all or specific subinventories must be included in the physical inventory. A list of accepted values is defined in the lookup type INV_SUBINVENTORIES_FLAG. The default value is All.
-
AllowAllSubinventoriesCode: string
Title:
Subinventories to Count
Maximum Length:30
Default Value:1
Value that indicates all or specific subinventories included in the physical inventory. A list of accepted values is defined in the lookup type INV_SUBINVENTORIES_FLAG. The default value is 1. -
AllowDynamicTags: string
Value that indicates if the dynamic tag creation is permitted in the physical inventory. Contains one of the following values: Yes or No. If Yes, then dynamic tag creation is permitted. If No, then dynamic tag creation is not permitted. This attribute does not have a default value.
-
AllowDynamicTagsCode(required): string
Title:
Dynamic tags allowed
Maximum Length:30
Value that indicates if the dynamic tag creation is permitted in the physical Inventory. Contains one of the following values: 1 or 2. If 1, then dynamic tag creation is permitted. If 2, then dynamic tag creation is not permitted. This attribute does not have a default value. -
ApprovalRequired: string
Value that indicates the level of approval required to post the physical inventory adjustments. A list of accepted values is defined in the lookup type INV_REQ_APPROVALS. This attribute does not have a default value.
-
ApprovalRequiredCode(required): string
Title:
Approval Type
Maximum Length:30
Value that indicates the level of approval required to post physical inventory adjustments. A list of accepted values is defined in the lookup type INV_REQ_APPROVALS. This attribute does not have a default value. -
ApprovalToleranceNegative: number
Title:
Negative Quantity Tolerance Percentage
Percent below the on-hand quantity that the adjustment transaction can vary. If the adjustment transaction exceeds the percent, then the adjustment transaction requires approval. For example, if Negative Quantity Tolerance Percentage is 10, and if the adjustment transaction requires an 11% negative adjustment to on-hand quantity, then the transaction requires approval. -
ApprovalTolerancePositive: number
Title:
Positive Quantity Tolerance Percentage
Percent above the on-hand quantity that the adjustment transaction can vary. If the adjustment transaction exceeds the percent, then the adjustment transaction requires approval. For example, if Positive Quantity Tolerance Percentage is 10, and if the adjustment transaction requires an 11% positive adjustment to on-hand quantity, then the transaction requires approval. -
CostVarianceNegative: number
Title:
Negative Adjustment Value Tolerance
Total value of a physical inventory adjustment that is less than the current value of the item. The user specifies this limit. -
CostVariancePositive: number
Title:
Positive Adjustment Value Tolerance
Total value of a physical inventory adjustment that is greater than the current value of the item. The user specifies this limit. -
Description: string
Title:
Description
Maximum Length:50
Description of the physical inventory. -
ExcludeNegativeBalance: string
Value that indicates if the items with negative on-hand balances are excluded from physical counts. Contains one of the following values: Yes or No. If Yes, then items with negative on-hand balances are excluded from physical count. If No, then items with negative on-hand balances are not excluded from physical count. This attribute does not have a default value.
-
ExcludeNegativeBalanceCode: string
Title:
Exclude negative balances
Maximum Length:30
Value that indicates that items with negative on-hand balances are excluded from physical counts. Contains one of the following values: Y or N. If Y, then items with negative on-hand balances are excluded from physical count. If N, then items with negative on-hand balances are not excluded from physical count. This attribute does not have a default value. -
ExcludeZeroBalance: string
Value that indicates that items with zero on-hand balances are excluded from physical counts. Contains one of the following values: Yes or No. If Yes, then items with negative on-hand balances are excluded from physical count. If No, then items with negative on-hand balances are not excluded from physical count. This attribute does not have a default value.
-
ExcludeZeroBalanceCode: string
Title:
Exclude zero balances
Maximum Length:30
Value that indicates that items with zero on-hand balances are excluded from physical counts. Contains one of the following values: Y or N. If Y, then items with negative on-hand balances are excluded from physical count. If N, then items with negative on-hand balances are not excluded from physical count. This attribute does not have a default value. -
FifthTagGenerationSequence: string
Fifth user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. There is no default value for this attribute.
-
FifthTagGenerationSequenceCode: string
Title:
Sequence 5
Maximum Length:30
Abbreviation that identifies the fifth sequence that the user defines when the application creates the physical inventory tag. -
FirstTagGenerationSequence: string
First user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. This attribute does not have a default value.
-
FirstTagGenerationSequenceCode: string
Title:
Sequence 1
Maximum Length:30
Abbreviation that identifies the first sequence that the user defines when the application creates the physical inventory tag. -
FourthTagGenerationSequence: string
Fourth user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. This attribute does not have a default value.
-
FourthTagGenerationSequenceCode: string
Title:
Sequence 4
Maximum Length:30
Abbreviation that identifies the fourth sequence that the user defines when the application creates the physical inventory tag. -
FreezeDate: string
(date-time)
Title:
Snapshot Date
Date when the application no longer allows changes to inventory. -
LastAdjustmentDate: string
(date-time)
Title:
Adjustment Date
Date when the application most recently adjusted the transaction. -
NextTagNumber: string
Title:
Starting Default Tag
Maximum Length:40
Next tag number in the sequence of tag numbers that the application creates for this physical inventory. -
NumberBlankTags: integer
Title:
Number of Blank Tags
Number of empty tags to create. -
NumberOfSkus: integer
(int64)
Number of stock keeping units where the application no longer permits changes. These units reside in physical inventory.
-
OrganizationCode: string
Abbreviation that identifies the organization.
-
OrganizationId(required): integer
(int64)
Value that uniquely identifies the organization.
-
PhysicalInventoryDate: string
(date)
Title:
Date
Date when the person physically counted the inventory. -
physicalInventoryDFFs: array
Flexfields
Title:
Flexfields
The Flexfields for Physical Inventories resource manages descriptive flexfields for physical inventories. -
PhysicalInventoryId: integer
(int64)
Value that uniquely identifies the physical inventory.
-
PhysicalInventoryName(required): string
Title:
Physical Inventory
Maximum Length:30
Name of the physical inventory. -
physicalInventorySubinventories: array
Subinventories
Title:
Subinventories
The Physical Inventory Subinventories resource manages operations on physical inventory subinventories. -
SecondTagGenerationSequence: string
Second user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. This attribute does not have a default value.
-
SecondTagGenerationSequenceCode: string
Title:
Sequence 2
Maximum Length:30
Abbreviation that identifies the second sequence that the user defines when the application creates the physical inventory tag. -
SeventhTagGenerationSequence: string
Seventh user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. There is no default value for this attribute.
-
SeventhTagGenerationSequenceCode: string
Title:
Sequence 7
Maximum Length:30
Abbreviation that identifies the seventh sequence that the user defines when the application creates the physical inventory tag. -
ShowSerialNumbers: string
Value that indicates if the dynamic tag creation is permitted in the physical inventory. Contains one of the following values: Yes or No. If Yes, then serial numbers are displayed on physical inventory tags. If No, then serial numbers are not displayed on physical inventory tags. This attribute does not have a default value.
-
ShowSerialNumbersCode: string
Title:
Show serial numbers on tags
Maximum Length:1
Value that indicates if the dynamic tag creation is permitted in the physical Inventory. Contains one of the following values: 1 or 2. If 1, then serial numbers are displayed on physical inventory tags. If 2, then serial numbers are not displayed on physical inventory tags. This attribute does not have a default value. -
SixthTagGenerationSequence: string
Sixth user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. There is no default value for this attribute.
-
SixthTagGenerationSequenceCode: string
Title:
Sequence 6
Maximum Length:30
Abbreviation that identifies the sixth sequence that the user defines when the application creates the physical inventory tag. -
StartBlankTagNumber: string
Title:
Starting Blank Tag
Maximum Length:40
Starting empty tag number or the next empty tag number to create. -
TagType: string
Type of physical inventory tags generated when the generate tags action is started. A list of accepted values is defined in the lookup type INV_GENERATE_TAG_TYPE. This attribute does not have a default value.
-
TagTypeCode(required): string
Title:
Tag Type
Maximum Length:30
Value that indicates the types of physical inventory tags generated when the generate tags action is started. A list of accepted values is defined in the lookup type INV_GENERATE_TAG_TYPE. This attribute does not have a default value. -
ThirdTagGenerationSequence: string
Third user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. This attribute does not have a default value.
-
ThirdTagGenerationSequenceCode: string
Title:
Sequence 3
Maximum Length:30
Abbreviation that identifies the third sequence that the user defines when the application creates the physical inventory tag. -
TotalAdjustmentValue: number
Total value of all adjustments in physical inventory.
array
Flexfields
array
Subinventories
object
-
__FLEX_Context: string
Title:
Context Value
Maximum Length:30
Descriptive flexfield context value of the physical inventory. -
__FLEX_Context_DisplayValue: string
Title:
Context Value
-
OrganizationId: integer
(int64)
Value that uniquely identifies the inventory organization.
-
PhysicalInventoryId: integer
(int64)
Value that uniquely identifies the physical inventory.
object
-
Subinventory: string
Maximum Length:
10
Subinventories that the physical inventory contains.
Response
- application/json
Default Response
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
object
-
AllowAllSubinventories: string
Value that indicates whether all or specific subinventories must be included in the physical inventory. A list of accepted values is defined in the lookup type INV_SUBINVENTORIES_FLAG. The default value is All.
-
AllowAllSubinventoriesCode: string
Title:
Subinventories to Count
Maximum Length:30
Default Value:1
Value that indicates all or specific subinventories included in the physical inventory. A list of accepted values is defined in the lookup type INV_SUBINVENTORIES_FLAG. The default value is 1. -
AllowDynamicTags: string
Value that indicates if the dynamic tag creation is permitted in the physical inventory. Contains one of the following values: Yes or No. If Yes, then dynamic tag creation is permitted. If No, then dynamic tag creation is not permitted. This attribute does not have a default value.
-
AllowDynamicTagsCode: string
Title:
Dynamic tags allowed
Maximum Length:30
Value that indicates if the dynamic tag creation is permitted in the physical Inventory. Contains one of the following values: 1 or 2. If 1, then dynamic tag creation is permitted. If 2, then dynamic tag creation is not permitted. This attribute does not have a default value. -
ApprovalRequired: string
Value that indicates the level of approval required to post the physical inventory adjustments. A list of accepted values is defined in the lookup type INV_REQ_APPROVALS. This attribute does not have a default value.
-
ApprovalRequiredCode: string
Title:
Approval Type
Maximum Length:30
Value that indicates the level of approval required to post physical inventory adjustments. A list of accepted values is defined in the lookup type INV_REQ_APPROVALS. This attribute does not have a default value. -
ApprovalToleranceNegative: number
Title:
Negative Quantity Tolerance Percentage
Percent below the on-hand quantity that the adjustment transaction can vary. If the adjustment transaction exceeds the percent, then the adjustment transaction requires approval. For example, if Negative Quantity Tolerance Percentage is 10, and if the adjustment transaction requires an 11% negative adjustment to on-hand quantity, then the transaction requires approval. -
ApprovalTolerancePositive: number
Title:
Positive Quantity Tolerance Percentage
Percent above the on-hand quantity that the adjustment transaction can vary. If the adjustment transaction exceeds the percent, then the adjustment transaction requires approval. For example, if Positive Quantity Tolerance Percentage is 10, and if the adjustment transaction requires an 11% positive adjustment to on-hand quantity, then the transaction requires approval. -
CostVarianceNegative: number
Title:
Negative Adjustment Value Tolerance
Total value of a physical inventory adjustment that is less than the current value of the item. The user specifies this limit. -
CostVariancePositive: number
Title:
Positive Adjustment Value Tolerance
Total value of a physical inventory adjustment that is greater than the current value of the item. The user specifies this limit. -
CreationDate: string
(date-time)
Read Only:
true
Date when the physical inventory was created. -
Description: string
Title:
Description
Maximum Length:50
Description of the physical inventory. -
ExcludeNegativeBalance: string
Value that indicates if the items with negative on-hand balances are excluded from physical counts. Contains one of the following values: Yes or No. If Yes, then items with negative on-hand balances are excluded from physical count. If No, then items with negative on-hand balances are not excluded from physical count. This attribute does not have a default value.
-
ExcludeNegativeBalanceCode: string
Title:
Exclude negative balances
Maximum Length:30
Value that indicates that items with negative on-hand balances are excluded from physical counts. Contains one of the following values: Y or N. If Y, then items with negative on-hand balances are excluded from physical count. If N, then items with negative on-hand balances are not excluded from physical count. This attribute does not have a default value. -
ExcludeZeroBalance: string
Value that indicates that items with zero on-hand balances are excluded from physical counts. Contains one of the following values: Yes or No. If Yes, then items with negative on-hand balances are excluded from physical count. If No, then items with negative on-hand balances are not excluded from physical count. This attribute does not have a default value.
-
ExcludeZeroBalanceCode: string
Title:
Exclude zero balances
Maximum Length:30
Value that indicates that items with zero on-hand balances are excluded from physical counts. Contains one of the following values: Y or N. If Y, then items with negative on-hand balances are excluded from physical count. If N, then items with negative on-hand balances are not excluded from physical count. This attribute does not have a default value. -
FifthTagGenerationSequence: string
Fifth user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. There is no default value for this attribute.
-
FifthTagGenerationSequenceCode: string
Title:
Sequence 5
Maximum Length:30
Abbreviation that identifies the fifth sequence that the user defines when the application creates the physical inventory tag. -
FirstTagGenerationSequence: string
First user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. This attribute does not have a default value.
-
FirstTagGenerationSequenceCode: string
Title:
Sequence 1
Maximum Length:30
Abbreviation that identifies the first sequence that the user defines when the application creates the physical inventory tag. -
FourthTagGenerationSequence: string
Fourth user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. This attribute does not have a default value.
-
FourthTagGenerationSequenceCode: string
Title:
Sequence 4
Maximum Length:30
Abbreviation that identifies the fourth sequence that the user defines when the application creates the physical inventory tag. -
FreezeDate: string
(date-time)
Title:
Snapshot Date
Date when the application no longer allows changes to inventory. -
IncludedSubInventoriesCount: integer
Read Only:
true
Value that indicates the count of included subinventories for the physical inventory. -
LastAdjustmentDate: string
(date-time)
Title:
Adjustment Date
Date when the application most recently adjusted the transaction. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
NextTagNumber: string
Title:
Starting Default Tag
Maximum Length:40
Next tag number in the sequence of tag numbers that the application creates for this physical inventory. -
NumberBlankTags: integer
Title:
Number of Blank Tags
Number of empty tags to create. -
NumberOfSkus: integer
(int64)
Number of stock keeping units where the application no longer permits changes. These units reside in physical inventory.
-
OrganizationCode: string
Abbreviation that identifies the organization.
-
OrganizationId: integer
(int64)
Value that uniquely identifies the organization.
-
PhysicalInventoryDate: string
(date)
Title:
Date
Date when the person physically counted the inventory. -
physicalInventoryDFFs: array
Flexfields
Title:
Flexfields
The Flexfields for Physical Inventories resource manages descriptive flexfields for physical inventories. -
PhysicalInventoryId: integer
(int64)
Value that uniquely identifies the physical inventory.
-
PhysicalInventoryName: string
Title:
Physical Inventory
Maximum Length:30
Name of the physical inventory. -
physicalInventorySubinventories: array
Subinventories
Title:
Subinventories
The Physical Inventory Subinventories resource manages operations on physical inventory subinventories. -
SecondTagGenerationSequence: string
Second user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. This attribute does not have a default value.
-
SecondTagGenerationSequenceCode: string
Title:
Sequence 2
Maximum Length:30
Abbreviation that identifies the second sequence that the user defines when the application creates the physical inventory tag. -
SeventhTagGenerationSequence: string
Seventh user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. There is no default value for this attribute.
-
SeventhTagGenerationSequenceCode: string
Title:
Sequence 7
Maximum Length:30
Abbreviation that identifies the seventh sequence that the user defines when the application creates the physical inventory tag. -
ShowSerialNumbers: string
Value that indicates if the dynamic tag creation is permitted in the physical inventory. Contains one of the following values: Yes or No. If Yes, then serial numbers are displayed on physical inventory tags. If No, then serial numbers are not displayed on physical inventory tags. This attribute does not have a default value.
-
ShowSerialNumbersCode: string
Title:
Show serial numbers on tags
Maximum Length:1
Value that indicates if the dynamic tag creation is permitted in the physical Inventory. Contains one of the following values: 1 or 2. If 1, then serial numbers are displayed on physical inventory tags. If 2, then serial numbers are not displayed on physical inventory tags. This attribute does not have a default value. -
SixthTagGenerationSequence: string
Sixth user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. There is no default value for this attribute.
-
SixthTagGenerationSequenceCode: string
Title:
Sequence 6
Maximum Length:30
Abbreviation that identifies the sixth sequence that the user defines when the application creates the physical inventory tag. -
StartBlankTagNumber: string
Title:
Starting Blank Tag
Maximum Length:40
Starting empty tag number or the next empty tag number to create. -
Status: string
Read Only:
true
Maximum Length:255
Status of the physical inventory. -
StatusCode: string
Read Only:
true
Maximum Length:255
Abbreviation that identifies the status of the physical inventory. -
TagType: string
Type of physical inventory tags generated when the generate tags action is started. A list of accepted values is defined in the lookup type INV_GENERATE_TAG_TYPE. This attribute does not have a default value.
-
TagTypeCode: string
Title:
Tag Type
Maximum Length:30
Value that indicates the types of physical inventory tags generated when the generate tags action is started. A list of accepted values is defined in the lookup type INV_GENERATE_TAG_TYPE. This attribute does not have a default value. -
ThirdTagGenerationSequence: string
Third user-defined sequence in which the physical inventory tags are generated. A list of accepted values is defined in the lookup type INV_TAG_GEN_SEQUENCE. This attribute does not have a default value.
-
ThirdTagGenerationSequenceCode: string
Title:
Sequence 3
Maximum Length:30
Abbreviation that identifies the third sequence that the user defines when the application creates the physical inventory tag. -
TotalAdjustmentValue: number
Total value of all adjustments in physical inventory.
array
Links
array
Flexfields
array
Subinventories
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
object
-
__FLEX_Context: string
Title:
Context Value
Maximum Length:30
Descriptive flexfield context value of the physical inventory. -
__FLEX_Context_DisplayValue: string
Title:
Context Value
-
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
OrganizationId: integer
(int64)
Value that uniquely identifies the inventory organization.
-
PhysicalInventoryId: integer
(int64)
Value that uniquely identifies the physical inventory.
array
Links
object
-
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
Subinventory: string
Maximum Length:
10
Subinventories that the physical inventory contains.
array
Links
- physicalInventoryDFFs
-
Parameters:
- physicalInventoriesUniqID:
$request.path.physicalInventoriesUniqID
The Flexfields for Physical Inventories resource manages descriptive flexfields for physical inventories. - physicalInventoriesUniqID:
- physicalInventorySubinventories
-
Parameters:
- physicalInventoriesUniqID:
$request.path.physicalInventoriesUniqID
The Physical Inventory Subinventories resource manages operations on physical inventory subinventories. - physicalInventoriesUniqID:
Examples
This example describes how to create inventories.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/physicalInventories"
Example 1 cURL Command
Use the following cURL command to submit a request on the REST resource to create a physical inventory along with its subinventories.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/physicalInventories"
Example 1 Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.
{ "OrganizationCode": "M1", "PhysicalInventoryName": "NDSPI-4", "Description": "PHYSICAL INVENTORY TO START UP Vision Corporation", "PhysicalInventoryDate": "2018-01-22", "FreezeDate": null, "ApprovalRequired": "If out of tolerance", "ApprovalTolerancePositive": 5, "ApprovalToleranceNegative": 5, "CostVariancePositive": null, "CostVarianceNegative": null, "AllowAllSubinventories": "Specific", "NextTagNumber": "100001", "AllowDynamicTags": "Yes", "TagTypeCode": "1", "TagType": "Default", "FirstTagGenerationSequence": "Item", "SecondTagGenerationSequence": "Locator", "ThirdTagGenerationSequence": "Subinventory", "FourthTagGenerationSequence": "Revision", "physicalInventorySubinventories": [ { "Subinventory": "FGI" }, { "Subinventory": "PCSub" } ] }
Example 1 Response Body
The following example includes the contents of the response body in JSON format:
{ "OrganizationId" : 207, "OrganizationCode" : "M1", "PhysicalInventoryId" : 300100129350622, "PhysicalInventoryName" : "NDSPI-4", "Description" : "PHYSICAL INVENTORY TO START UP Vision Corporation", "PhysicalInventoryDate" : "2018-03-22", "FreezeDate" : null, "ApprovalRequiredCode" : "3", "ApprovalRequired" : "If out of tolerance", "ApprovalTolerancePositive" : 5, "ApprovalToleranceNegative" : 5, "CostVariancePositive" : null, "CostVarianceNegative" : null, "AllowAllSubinventoriesCode" : "2", "AllowAllSubinventories" : "Specific", "NextTagNumber" : "100001", "AllowDynamicTagsCode" : "1", "AllowDynamicTags" : "Yes", "ExcludeZeroBalanceCode" : null, "ExcludeZeroBalance" : null, "ExcludeNegativeBalanceCode" : null, "ExcludeNegativeBalance" : null, "TagTypeCode" : "1", "TagType" : "Default", "ShowSerialNumbersCode" : null, "ShowSerialNumbers" : null, "StartBlankTagNumber" : null, "FirstTagGenerationSequenceCode" : "3", "SecondTagGenerationSequenceCode" : "2", "ThirdTagGenerationSequenceCode" : "1", "FourthTagGenerationSequenceCode" : "4", "FirstTagGenerationSequence" : "Item", "SecondTagGenerationSequence" : "Locator", "ThirdTagGenerationSequence" : "Subinventory", "FourthTagGenerationSequence" : "Revision", "LastAdjustmentDate" : null, "TotalAdjustmentValue" : null, "NumberOfSkus" : null, "NumberBlankTags" : null, "physicalInventorySubinventories" : [ { "Subinventory" : "FGI", "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/child/physicalInventorySubinventories/00030000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE00000003464749", "name" : "physicalInventorySubinventories", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/child/physicalInventorySubinventories/00030000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE00000003464749", "name" : "physicalInventorySubinventories", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE", "name" : "physicalInventories", "kind" : "item" } ] }, { "Subinventory" : "PCSub", "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/child/physicalInventorySubinventories/00030000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE000000055043537562", "name" : "physicalInventorySubinventories", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/child/physicalInventorySubinventories/00030000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE000000055043537562", "name" : "physicalInventorySubinventories", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE", "name" : "physicalInventories", "kind" : "item" } ] } ], "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE", "name" : "physicalInventories", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE", "name" : "physicalInventories", "kind" : "item" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/lov/ApprovalLookupVA", "name" : "ApprovalLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/lov/YesNoCharLookupVA", "name" : "YesNoCharLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/lov/TagGenLookupVA", "name" : "TagGenLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/lov/OrganizationVA", "name" : "OrganizationVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/lov/YesNoLookupVA", "name" : "YesNoLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/lov/TagTypeLookupVA", "name" : "TagTypeLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/lov/SubinvFlagLookupVA", "name" : "SubinvFlagLookupVA", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/child/physicalInventorySubinventories", "name" : "physicalInventorySubinventories", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0819B63DE/child/physicalInventoryDFFs", "name" : "physicalInventoryDFFs", "kind" : "collection" } ] }
Example 2 cURL Command
Use the following cURL command to submit a request on the REST resource to create a physical inventory along with its subinventories and flex fields.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/physicalInventories"
Example 2 Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.
{ "OrganizationId": 207, "OrganizationCode": "M1", "PhysicalInventoryName": "NDPI504", "Description": "New PI", "PhysicalInventoryDate": "2018-03-03", "ApprovalRequiredCode": "3", "ApprovalRequired": "If out of tolerance", "ApprovalTolerancePositive": 5, "ApprovalToleranceNegative": 5, "CostVariancePositive": null, "CostVarianceNegative": null, "AllowAllSubinventoriesCode": "2", "AllowAllSubinventories": "Specific", "NextTagNumber": "100001", "AllowDynamicTagsCode": "1", "AllowDynamicTags": "Yes", "ExcludeZeroBalanceCode": null, "ExcludeZeroBalance": null, "ExcludeNegativeBalanceCode": null, "ExcludeNegativeBalance": null, "TagTypeCode": null, "TagType": "Default", "ShowSerialNumbersCode": null, "ShowSerialNumbers": null, "StartBlankTagNumber": null, "FirstTagGenerationSequenceCode": "1", "SecondTagGenerationSequenceCode": "2", "ThirdTagGenerationSequenceCode": "3", "FourthTagGenerationSequenceCode": "4", "FirstTagGenerationSequence": null, "SecondTagGenerationSequence": null, "ThirdTagGenerationSequence": null, "FourthTagGenerationSequence": null, "NumberBlankTags": null, "physicalInventorySubinventories" : [ { "Subinventory": "PCSub" }, { "Subinventory": "FGI" } ], "physicalInventoryDFFs" : [ { "gseg1": 23, "__FLEX_Context" : "Context1", "c1seg1" : "A" } ] }
Example 2 Response Body
The following example includes the contents of the response body in JSON format:
{ "OrganizationId" : 207, "OrganizationCode" : "M1", "PhysicalInventoryId" : 300100125676981, "PhysicalInventoryName" : "NDPI504", "Description" : "New PI", "PhysicalInventoryDate" : "2018-03-03", "FreezeDate" : null, "ApprovalRequiredCode" : "3", "ApprovalRequired" : "If out of tolerance", "ApprovalTolerancePositive" : 5, "ApprovalToleranceNegative" : 5, "CostVariancePositive" : null, "CostVarianceNegative" : null, "AllowAllSubinventoriesCode" : "2", "AllowAllSubinventories" : "Specific", "NextTagNumber" : "100001", "AllowDynamicTagsCode" : "1", "AllowDynamicTags" : "Yes", "ExcludeZeroBalanceCode" : null, "ExcludeZeroBalance" : null, "ExcludeNegativeBalanceCode" : null, "ExcludeNegativeBalance" : null, "TagTypeCode" : "1", "TagType" : "Default", "ShowSerialNumbersCode" : null, "ShowSerialNumbers" : null, "StartBlankTagNumber" : null, "FirstTagGenerationSequenceCode" : "1", "SecondTagGenerationSequenceCode" : "2", "ThirdTagGenerationSequenceCode" : "3", "FourthTagGenerationSequenceCode" : "4", "FirstTagGenerationSequence" : "Subinventory", "SecondTagGenerationSequence" : "Locator", "ThirdTagGenerationSequence" : "Item", "FourthTagGenerationSequence" : "Revision", "LastAdjustmentDate" : null, "TotalAdjustmentValue" : null, "NumberOfSkus" : null, "NumberBlankTags" : null, "physicalInventorySubinventories" : [ { "Subinventory" : "PCSub", "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/child/physicalInventorySubinventories/00030000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5000000055043537562", "name" : "physicalInventorySubinventories", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/child/physicalInventorySubinventories/00030000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5000000055043537562", "name" : "physicalInventorySubinventories", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5", "name" : "physicalInventories", "kind" : "item" } ] }, { "Subinventory" : "FGI", "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/child/physicalInventorySubinventories/00030000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B500000003464749", "name" : "physicalInventorySubinventories", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/child/physicalInventorySubinventories/00030000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B500000003464749", "name" : "physicalInventorySubinventories", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5", "name" : "physicalInventories", "kind" : "item" } ] } ], "physicalInventoryDFFs" : [ { "OrganizationId" : 207, "PhysicalInventoryId" : 300100125676981, "gseg1" : 23, "__FLEX_Context" : "Context1", "__FLEX_Context_DisplayValue" : "Context1", "c1seg1" : "A", "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/child/physicalInventoryDFFs/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5", "name" : "physicalInventoryDFFs", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/child/physicalInventoryDFFs/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5", "name" : "physicalInventoryDFFs", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5", "name" : "physicalInventories", "kind" : "item" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/child/physicalInventoryDFFs/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/lov/LVVO___FLEX_Context", "name" : "LVVO___FLEX_Context", "kind" : "collection" } ] } ], "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5", "name" : "physicalInventories", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5", "name" : "physicalInventories", "kind" : "item" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/lov/ApprovalLookupVA", "name" : "ApprovalLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/lov/YesNoCharLookupVA", "name" : "YesNoCharLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/lov/TagGenLookupVA", "name" : "TagGenLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/lov/OrganizationVA", "name" : "OrganizationVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/lov/YesNoLookupVA", "name" : "YesNoLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/lov/TagTypeLookupVA", "name" : "TagTypeLookupVA", "kind" : "collection" }, { "rel" : "lov", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/lov/SubinvFlagLookupVA", "name" : "SubinvFlagLookupVA", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/child/physicalInventorySubinventories", "name" : "physicalInventorySubinventories", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/physicalInventories/00020000000EACED0005770800000000000000CF0000000EACED00057708000110F0816355B5/child/physicalInventoryDFFs", "name" : "physicalInventoryDFFs", "kind" : "collection" } ] }