Create one count task

post

/fscmRestApi/resources/11.13.18.05/inventoryCountTasks

Request

Header Parameters
  • 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".
  • 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.
  • 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.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Costs
Type: array
Title: Costs
The Costs resource manages the costs associated with the count task.
Show Source
Nested Schema : Flexfields for Inventory Count Tasks
Type: array
Title: Flexfields for Inventory Count Tasks
The Flexfields for Inventory Count Tasks resource manages the descriptive flexfields for the count task.
Show Source
Nested Schema : Recall Lots
Type: array
Title: Recall Lots
The Recall Lots gets the information about the lot details for each recall notice line.
Show Source
Nested Schema : Recall Lot Serials
Type: array
Title: Recall Lot Serials
The Recall Lot Serials gets the information about the lot and serial details for each recall notice line.
Show Source
Nested Schema : inventoryCountTasks-costs-item-post-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : inventoryCountTasks-recallLots-item-post-request
Type: object
Show Source
Nested Schema : inventoryCountTasks-recallLotSerials-item-post-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : inventoryCountTasks-item-response
Type: object
Show Source
Nested Schema : Costs
Type: array
Title: Costs
The Costs resource manages the costs associated with the count task.
Show Source
Nested Schema : Flexfields for Inventory Count Tasks
Type: array
Title: Flexfields for Inventory Count Tasks
The Flexfields for Inventory Count Tasks resource manages the descriptive flexfields for the count task.
Show Source
Nested Schema : Recall Lots
Type: array
Title: Recall Lots
The Recall Lots gets the information about the lot details for each recall notice line.
Show Source
Nested Schema : Recall Lot Serials
Type: array
Title: Recall Lot Serials
The Recall Lot Serials gets the information about the lot and serial details for each recall notice line.
Show Source
Nested Schema : inventoryCountTasks-costs-item-response
Type: object
Show Source
Nested Schema : inventoryCountTasks-DFF-item-response
Type: object
Show Source
Nested Schema : inventoryCountTasks-recallLots-item-response
Type: object
Show Source
Nested Schema : inventoryCountTasks-recallLotSerials-item-response
Type: object
Show Source
  • Links
  • Read Only: true
    Maximum Length: 80
    Number that indicates the starting serial as specified by the manufacturer in recall notice.
  • Title: Manufacturer Lot Number
    Read Only: true
    Maximum Length: 80
    Number that indicates the lot specified by the manufacturer in the recall notice.
  • Read Only: true
    Maximum Length: 80
    Number that indicates the ending serial as specified by the manufacturer in recall notice.
  • Read Only: true
    Quantity of the recalled lot.
  • Read Only: true
    Value that uniquely identifies the serial number of the recalled item.
Back to Top

Examples

This example describes how to create one count task.

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/inventoryCountTasks"

Example 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.

{
	"RecallHeaderNumber":"RC204301",
	"RecallLineNumber":"1",
	"OrganizationCode":"M1",
	"ItemNumber":"INV-101",
	"Subinventory":"M1INSTOCK",
	"LotNumber":"AVILOT1",
	"CountDate":"2020-03-13",
	"CountedByEmployee":"Jones, Sandra",
	"CountUnitOfMeasure":"Box of 5",
	"CountQuantity":1,
	"SecondaryUOMQuantity":null,
	"ExpectedQuantity":200,
	"SecondaryExpectedQuantity":null,
	"TransactionReason":null,
	"PickSubinventory":"AASUB1",
	"PickLocator":null,
	"Comments":"Test Case1",
	"AccountAlias":null,
	"Account":"01-130-5800-0000-000",
	"UseItemCostFlag":true
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
	"InvCountTaskId": 300100184764418,
	"RecallHeaderId": 300100184928127,
	"RecallHeaderNumber": "RC204301",
	"RecallLineId": 300100184928128,
	"RecallLineNumber": "1",
	"LocationId": 3248,
	"LocationCode": null,
	"LocationName": null,
	"CountTaskSourceHeaderId": 0,
	"CountTaskSourceLineId": 0,
	"CountTaskSourceLineTypeCode": "ORA_IN_STOCK",
	"CountTaskSourceLineType": null,
	"OrganizationId": 207,
	"OrganizationCode": "M1",
	"OrganizationName": null,
	"InventoryItemId": 663914,
	"ItemNumber": "INV-101",
	"ItemDescription": null,
	"Subinventory": "M1INSTOCK",
	"LocatorId": null,
	"Locator": null,
	"Revision": null,
	"LotNumber": "AVILOT1",
	"SerialNumber": null,
	"OwningTypeCode": "2",
	"OwningType": "Inventory organization",
	"OwningEntityId": 207,
	"OwningPartySite": null,
	"OwningParty": null,
	"ProcurementBU": null,
	"CountStatusCode": "ORA_OPEN",
	"CountStatus": "Pending count",
	"CountDate": "2020-03-13",
	"CountedByEmployeeId": 2159,
	"CountedByEmployee": "Jones, Sandra",
	"CountUOMCode": "BX5",
	"CountUnitOfMeasure": "Box of 5",
	"CountSecondaryUOMCode": null,
	"CountSecondaryUnitOfMeasure": null,
	"CountQuantity": 1,
	"SecondaryUOMQuantity": null,
	"ExpectedUOMCode": "Ea",
	"ExpectedUnitOfMeasure": "Each",
	"ExpectedQuantity": 200,
	"SecondaryExpectedQuantity": null,
	"ErrorCode": null,
	"ErrorMessage": null,
	"TransactionReasonId": null,
	"TransactionReason": null,
	"TransactionDate": null,
	"DestinationSubinventory": "RECALL",
	"DestinationLocatorId": null,
	"DestinationLocator": null,
	"PickSubinventory": "AASUB1",
	"PickLocatorId": null,
	"PickLocator": null,
	"Comments": "Test Case1",
	"AccountAliasId": null,
	"AccountAlias": null,
	"AccountId": 107724,
	"Account": "01-130-5800-0000-000",
	"SequenceNumber": 9,
	"RequesterId": null,
	"RequesterName": null,
	"UseItemCostFlag": "true",
	"ProcessingModeCode": null,
	"ProcessingMode": null,
	"links": [ 3 ]
	{ ..

	}

}
Back to Top