Create one sequence

post

/fscmRestApi/resources/11.13.18.05/cycleCountSequenceDetails

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 : Flexfields for Cycle Count Sequence Details
Type: array
Title: Flexfields for Cycle Count Sequence Details
The Flexfields for Cycle Count Sequence Details manages details of the descriptive flexfields that reference the cycle count sequence.
Show Source
Nested Schema : History
Type: array
Title: History
The History resource manages details for the history of cycle count sequences.
Show Source
Nested Schema : Flexfields for Tracking Attributes
Type: array
Title: Flexfields for Tracking Attributes
The Flexfields for Tracking Attributes resource manages details of the descriptive flexfields that reference the cycle count sequence.
Show Source
Nested Schema : Serials
Type: array
Title: Serials
The Serials resource manages details for the serials of cycle count sequences.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : cycleCountSequenceDetails-history-item-post-request
Type: object
Show Source
Nested Schema : historySerials
Type: array
Show Source
Nested Schema : cycleCountSequenceDetails-history-historySerials-item-post-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
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 : cycleCountSequenceDetails-item-response
Type: object
Show Source
Nested Schema : Flexfields for Cycle Count Sequence Details
Type: array
Title: Flexfields for Cycle Count Sequence Details
The Flexfields for Cycle Count Sequence Details manages details of the descriptive flexfields that reference the cycle count sequence.
Show Source
Nested Schema : History
Type: array
Title: History
The History resource manages details for the history of cycle count sequences.
Show Source
Nested Schema : Flexfields for Tracking Attributes
Type: array
Title: Flexfields for Tracking Attributes
The Flexfields for Tracking Attributes resource manages details of the descriptive flexfields that reference the cycle count sequence.
Show Source
Nested Schema : Serials
Type: array
Title: Serials
The Serials resource manages details for the serials of cycle count sequences.
Show Source
Nested Schema : cycleCountSequenceDetails-DFF-item-response
Type: object
Show Source
Nested Schema : cycleCountSequenceDetails-history-item-response
Type: object
Show Source
Nested Schema : History Serials
Type: array
Title: History Serials
The History Serials resource manages details for the history serials of cycle count sequences.
Show Source
Nested Schema : cycleCountSequenceDetails-history-historySerials-item-response
Type: object
Show Source
  • Read Only: true
    Value that uniquely identifies the cycle count sequence.
  • Read Only: true
    Value that uniquely identifies the cycle count history sequence.
  • Links
  • Read Only: true
    Contains one of the following values: true or false. If true, then the serial is counted in the current count sequence. If false, then the serial isn't counted in the current count sequence. This attribute doesn't have a default value.
  • Read Only: true
    Contains one of the following values: true or false. If true, then the serial is present in the application. If false, then the serial isn't present in the application. This attribute doesn't have a default value.
  • Read Only: true
    Maximum Length: 80
    Serial number to count.
Nested Schema : cycleCountSequenceDetails-inventoryAttributesDFF-item-response
Type: object
Show Source
Nested Schema : cycleCountSequenceDetails-serials-item-response
Type: object
Show Source
  • Value that uniquely identifies the serial number.
  • Value that uniquely identifies the cycle count serial entry.
  • Links
  • Contains one of the following values: true or false. If true, then the serial is counted in the current count sequence. If false, then the serial isn't counted in the current count sequence. This attribute doesn't have a default value.
  • Read Only: true
    Contains one of the following values: true or false. If true, then the serial is present in the application. If false, then the serial isn't present in the application. This attribute doesn't have a default value.
  • Title: Serial Number
    Maximum Length: 80
    Serial number to count.
Back to Top

Examples

This example describes how to create one sequence.

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

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.

{
  "CycleCountName": "RESTT2",
  "OrganizationCode": "M1",
  "ItemNumber" : "RCV-102",
  "Subinventory" : "Engineer",
  "CountQuantity" : 2,
  "CountUOMCode" : "Ea",
  "ProcessingFlag":true,
  "Comments" : "Test Post Multiple Serial",
  "serials": [
  {
  "SerialNumber" : "NDSS01",
  "RecordedInCountFlag" : "true"
  },
  {
  "SerialNumber" : "NDSS02",
  "RecordedInCountFlag" : "true"
  }
  ]
}

Example Response Body

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

{
  "CycleCountEntryId" : 300100149902727,
  "CycleCountHeaderId" : 300100149661688,
  "CycleCountName" : "RESTT2",
  "OrganizationId" : 207,
  "OrganizationCode" : "M1",
  "OrganizationName" : null,
  "CountTypeCode" : "2",
  "CountType" : null,
  "InventoryItemId" : 663909,
  "ItemNumber" : "RCV-102",
  "ItemDescription" : null,
  "Subinventory" : "Engineer",
  "LocatorId" : null,
  "Locator" : null,
  "LotNumber" : null,
  "SerialNumber" : null,
  "Revision" : null,
  "CountSequence" : 300100149902726,
  "CountQuantity" : 2,
  "CountUOMCode" : "Ea",
  "CountUOM" : null,
  "SecondaryCountQuantity" : null,
  "SecondaryCountUOMCode" : null,
  "SecondaryCountUOM" : null,
  "OwningType" : "2",
  "OwningEntityId" : 207,
  "OwningPartySite" : null,
  "OwningParty" : null,
  "Reason" : null,
  "Comments" : "Test Post Multiple Serial",
  "CountedByEmployeeId" : 300100036644754,
  "CountedBy" : null,
  "CountDate" : null,
  "ReviewedByEmployeeId" : null,
  "ReviewedBy" : null,
  "ReviewDate" : null,
  "CountSequenceStatusCode" : "2",
  "CountSequenceStatus" : null,
  "ExportCode" : null,
  "Exported" : null,
  "ReasonId" : null,
  "OwningTypeCode" : null,
  "ManualCountPrefix" : null,
  "PrimarySuggestedQuantity" : 0,
  "PrimaryAdjustmentQuantity" : 2,
  "SecondarySuggestedQuantity" : null,
  "SecondaryAdjustmentQuantity" : null,
  "AdjustmentValue" : null,
  "AdjustmentDate" : null,
  "Recounts" : 0,
  "ItemUnitCost" : null,
  "DeviationPercentage" : 200,
  "ProcessingFlag" : true,
  "ProcurementBU" : null,
  "serials" : [ {
    "CcSerialNumberId" : 300100149902728,
    "CycleCountEntryId" : 300100149902727,
    "SerialNumber" : "NDSS01",
    "RecordedInSystemFlag" : null,
    "RecordedInCountFlag" : "true",
    "links" : [ {
      "rel" : "self",
      "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/serials/300100149902728",
      "name" : "serials",
      "kind" : "item",
      "properties" : {
        "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
      }
    }, {
      "rel" : "canonical",
      "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/serials/300100149902728",
      "name" : "serials",
      "kind" : "item"
    }, {
      "rel" : "parent",
      "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF",
      "name" : "cycleCountSequenceDetails",
      "kind" : "item"
    } ]
  }, {
    "CcSerialNumberId" : 300100149902729,
    "CycleCountEntryId" : 300100149902727,
    "SerialNumber" : "NDSS02",
    "RecordedInSystemFlag" : null,
    "RecordedInCountFlag" : "true",
    "links" : [ {
      "rel" : "self",
      "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/serials/300100149902729",
      "name" : "serials",
      "kind" : "item",
      "properties" : {
        "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
      }
    }, {
      "rel" : "canonical",
      "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/serials/300100149902729",
      "name" : "serials",
      "kind" : "item"
    }, {
      "rel" : "parent",
      "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF",
      "name" : "cycleCountSequenceDetails",
      "kind" : "item"
    } ]
  } ],
  "links" : [ {
    "rel" : "self",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF",
    "name" : "cycleCountSequenceDetails",
    "kind" : "item",
    "properties" : {
      "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
    }
  }, {
    "rel" : "canonical",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF",
    "name" : "cycleCountSequenceDetails",
    "kind" : "item"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/history",
    "name" : "history",
    "kind" : "collection"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/DFF",
    "name" : "DFF",
    "kind" : "collection"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/serials",
    "name" : "serials",
    "kind" : "collection"
  } ]
}
Back to Top