Create lines

post

/fscmRestApi/resources/11.13.18.05/purchaseAgreementImportRequests/{InterfaceHeaderId}/child/lines

Request

Path Parameters
  • The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
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.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Item Attributes
Type: array
Title: Item Attributes
Agreement item attribute captures additional information about the item on the agreement line such as supplier item auxiliary identifier, supplier URL, manufacturer name, manufacturer URL, manufacturer part number, United Nations Standard Products and Services Code, UNSPSC, and image URL. For example, Big Computers could be the manufacturer of a laptop whereas B004521 could be the manufacturer part number for a television.
Show Source
Nested Schema : Price Breaks
Type: array
Title: Price Breaks
Agreement price breaks are reductions in the price of an item depending on certain conditions such as purchasing in bulk or from a certain location. For example, for a laptop, price will be reduced by 100 dollars if your order exceeds 20 quantity or 30 dollars if you order for a specific location.
Show Source
Nested Schema : Translation Item Attributes
Type: array
Title: Translation Item Attributes
Translation item attributes capture additional information about purchasing item translation attributes.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : purchaseAgreementImportRequests-lines-priceBreaks-item-post-request
Type: object
Show Source
Nested Schema : purchaseAgreementImportRequests-lines-translationItemAttributes-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 : purchaseAgreementImportRequests-lines-item-response
Type: object
Show Source
Nested Schema : Item Attributes
Type: array
Title: Item Attributes
Agreement item attribute captures additional information about the item on the agreement line such as supplier item auxiliary identifier, supplier URL, manufacturer name, manufacturer URL, manufacturer part number, United Nations Standard Products and Services Code, UNSPSC, and image URL. For example, Big Computers could be the manufacturer of a laptop whereas B004521 could be the manufacturer part number for a television.
Show Source
Nested Schema : Price Breaks
Type: array
Title: Price Breaks
Agreement price breaks are reductions in the price of an item depending on certain conditions such as purchasing in bulk or from a certain location. For example, for a laptop, price will be reduced by 100 dollars if your order exceeds 20 quantity or 30 dollars if you order for a specific location.
Show Source
Nested Schema : Translation Item Attributes
Type: array
Title: Translation Item Attributes
Translation item attributes capture additional information about purchasing item translation attributes.
Show Source
Nested Schema : purchaseAgreementImportRequests-lines-itemAttributes-item-response
Type: object
Show Source
Nested Schema : purchaseAgreementImportRequests-lines-priceBreaks-item-response
Type: object
Show Source
Nested Schema : purchaseAgreementImportRequests-lines-translationItemAttributes-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create one component.

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/purchaseAgreementImportRequests/InterfaceHeaderId/child/lines"

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

{
    "ActionCode": "ADD",
    "LineNumber": 1,
    "LineType": "Goods",
    "Item": "RCV-100",
    "ItemDescription": null,
    "Price": 150,
    "UOM": "Each",
    "Category": "Miscellaneous_1"
}

Example Response Body

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

{
  "InterfaceLineId" : 300100590200170,
  "InterfaceHeaderKey" : null,
  "InterfaceLineKey" : null,
  "ActionCode" : "ADD",
  "LineNumber" : 1,
  "LineType" : "Goods",
  "LineTypeId" : null,
  "Item" : "RCV-100",
  "ItemId" : null,
  "ItemRevision" : null,
  "Category" : "Miscellaneous_1",
  "CategoryId" : null,
  "ItemDescription" : null,
  "AgreementAmount" : null,
  "UOM" : "Each",
  "UOMCode" : null,
  "Price" : 150,
  "Amount" : null,
  "AllowPriceOverrideFlag" : null,
  "NotToExceedPrice" : null,
  "SupplierItem" : null,
  "NegotiatedFlag" : null,
  "NoteToReceiver" : null,
  "NoteToSupplier" : null,
  "MinimumReleaseAmount" : null,
  "SupplierPartAuxiliaryId" : null,
  "SupplierReferenceNumber" : null,
  "AgingPeriodDays" : null,
  "ConsignmentLineFlag" : null,
  "UnitWeight" : null,
  "WeightUOMCode" : null,
  "WeightUOMName" : null,
  "UnitVolume" : null,
  "VolumeUOMCode" : null,
  "VolumeUOMName" : null,
  "ParentItem" : null,
  "ParentItemId" : null,
  "TopModel" : null,
  "TopModelId" : null,
  "SupplierParentItem" : null,
  "SupplierTopModel" : null,
  "PriceBreakType" : null,
  "AllowDescriptionUpdateFlag" : null,
  "AttributeCategory" : null,
  "LineAttribute1" : null,
  "LineAttribute2" : null,
  "LineAttribute3" : null,
  "LineAttribute4" : null,
  "LineAttribute5" : null,
  "LineAttribute6" : null,
  "LineAttribute7" : null,
  "LineAttribute8" : null,
  "LineAttribute9" : null,
  "LineAttribute10" : null,
  "LineAttribute11" : null,
  "LineAttribute12" : null,
  "LineAttribute13" : null,
  "LineAttribute14" : null,
  "LineAttribute15" : null,
  "Attribute16" : null,
  "Attribute17" : null,
  "Attribute18" : null,
  "Attribute19" : null,
  "Attribute20" : null,
  "AttributeDate1" : null,
  "AttributeDate2" : null,
  "AttributeDate3" : null,
  "AttributeDate4" : null,
  "AttributeDate5" : null,
  "AttributeDate6" : null,
  "AttributeDate7" : null,
  "AttributeDate8" : null,
  "AttributeDate9" : null,
  "AttributeDate10" : null,
  "AttributeNumber1" : null,
  "AttributeNumber2" : null,
  "AttributeNumber3" : null,
  "AttributeNumber4" : null,
  "AttributeNumber5" : null,
  "AttributeNumber6" : null,
  "AttributeNumber7" : null,
  "AttributeNumber8" : null,
  "AttributeNumber9" : null,
  "AttributeNumber10" : null,
  "AttributeTimestamp1" : null,
  "AttributeTimestamp2" : null,
  "AttributeTimestamp3" : null,
  "AttributeTimestamp4" : null,
  "AttributeTimestamp5" : null,
  "AttributeTimestamp6" : null,
  "AttributeTimestamp7" : null,
  "AttributeTimestamp8" : null,
  "AttributeTimestamp9" : null,
  "AttributeTimestamp10" : null,
  "InterfaceHeaderId" : 300100590192348,
  "CreatedBy" : "PRC_INTEGRATION_USER",
  "CreationDate" : "2024-01-17T06:34:32.004+00:00",
  "LastUpdatedBy" : "PRC_INTEGRATION_USER",
  "LastUpdateDate" : "2024-01-17T06:34:32.004+00:00",
  "ProcessCode" : null,
  "RequestId" : null,
  "ExpirationDate" : null,
  "AgreementQuantity" : null,
  "links" : [ {
    "rel" : "self",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseAgreementImportRequests/300100590192348/child/lines/300100590200170",
    "name" : "lines",
    "kind" : "item",
    "properties" : {
      "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
    }
  }, {
    "rel" : "canonical",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseAgreementImportRequests/300100590192348/child/lines/300100590200170",
    "name" : "lines",
    "kind" : "item"
  }, {
    "rel" : "parent",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseAgreementImportRequests/300100590192348",
    "name" : "purchaseAgreementImportRequests",
    "kind" : "item"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseAgreementImportRequests/300100590192348/child/lines/300100590200170/child/itemAttributes",
    "name" : "itemAttributes",
    "kind" : "collection"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseAgreementImportRequests/300100590192348/child/lines/300100590200170/child/priceBreaks",
    "name" : "priceBreaks",
    "kind" : "collection"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseAgreementImportRequests/300100590192348/child/lines/300100590200170/child/translationItemAttributes",
    "name" : "translationItemAttributes",
    "kind" : "collection"
  } ]
}
Back to Top