Create a line

post

/fscmRestApi/resources/11.13.18.05/purchaseRequisitions/{RequisitionHeaderId}/child/lines

Request

Supported Media Types
Path Parameters
Body ()
The following table describes the body parameters in the request for this task.
Root Schema : purchaseRequisitions-lines-item
Type: object
Show Source
Nested Schema : Distributions
Type: array
Title: Distributions
The Lines resource manages the items to be requisitioned, its quantity, unit of measure, price, and deliver-to location information.
Show Source
Nested Schema : purchaseRequisitions-lines-distributions-item
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Body ()
Root Schema : purchaseRequisitions-lines-item
Type: object
Show Source
Nested Schema : Distributions
Type: array
Title: Distributions
The Lines resource manages the items to be requisitioned, its quantity, unit of measure, price, and deliver-to location information.
Show Source
Nested Schema : purchaseRequisitions-lines-distributions-item
Type: object
Show Source
Back to Top

Examples

This example describes how to create a line.

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.vision.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/purchaseRequisitions/RequisitionHeaderId/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 creates.

 {
  "LineNumber":1,
  "LineTypeId": 1,
  "ItemDescription": "TestSS Item from POST",
        "ItemId": 450,
  "Quantity":10,
     "UOMCode": "Ea",
     "Price": 10,
  "CurrencyCode": "USD",
     "DestinationOrganizationId": 204,
     "DeliverToLocationId": 204,
     "DestinationTypeCode": "INVENTORY",
        "RequesterId": 100010026864151,
  "RequestedDeliveryDate": "2019-10-26"
 
 }

Example Response Body

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

{
  "RequisitionHeaderId" : 300100169321626,
  "RequisitionLineId" : 300100169321627,
  "LineNumber" : 1,
  "LineTypeId" : 1,
  "LineTypeCode" : "Goods",
  "RequisitionLineSource" : "REST_INTEGRATION",
  "CategoryId" : 112,
  "CategoryName" : "Paper",
  "ItemDescription" : "Item from POST",
  "ItemId" : 450,
  "Item" : "CV1005",
  "ItemRevision" : null,
  "Quantity" : 10,
  "SecondaryQuantity" : null,
  "UnitPrice" : null,
  "CurrencyCode" : "USD",
  "Currency" : "US Dollar",
  "UOMCode" : "Ea",
  "UOM" : "Each",
  "SecondaryUOMCode" : null,
  "SecondaryUOM" : null,
  "ConversionRateType" : null,
  "ConversionRateDate" : null,
  "ConversionRate" : null,
  "Price" : 10,
  "LineStatus" : "INCOMPLETE",
  "Amount" : null,
  "CurrencyAmount" : null,
  "UrgentFlag" : null,
  "NegotiatedByPreparerFlag" : null,
  "NegotiationRequiredFlag" : null,
  "SourceAgreementTypeCode" : null,
  "SourceAgreementType" : null,
  "SourceAgreementHeaderId" : null,
  "SourceAgreement" : null,
  "SourceAgreementLineId" : null,
  "SourceAgreementLineNumber" : null,
  "UNNumberId" : null,
  "UNNumber" : null,
  "HazardClassId" : null,
  "HazardClass" : null,
  "HazardClassCode" : null,
  "UNSPSCCode" : null,
  "ManufacturerName" : null,
  "ManufacturerPartNumber" : null,
  "BPAPriceUserOverrideFlag" : null,
  "NewSupplierFlag" : null,
  "SupplierId" : null,
  "Supplier" : null,
  "SupplierSiteId" : null,
  "SupplierSite" : null,
  "SupplierContactId" : null,
  "SupplierContact" : null,
  "SupplierContactEmail" : null,
  "SupplierContactPhone" : null,
  "SupplierContactFax" : null,
  "SuggestedSupplier" : null,
  "SuggestedSupplierSite" : null,
  "SuggestedSupplierContact" : null,
  "SuggestedSupplierContactPhone" : null,
  "SuggestedSupplierContactFax" : null,
  "SuggestedSupplierContactEmail" : null,
  "SupplierItemNumber" : null,
  "RequesterId" : 100010026864151,
  "Requester" : "John, Johnson",
  "RequesterEmail" : "john.johnson@vision.com",
  "SuggestedBuyerId" : null,
  "SuggestedBuyer" : null,
  "SuggestedBuyerEmail" : null,
  "ModifiedByBuyerId" : null,
  "ModifiedByBuyer" : null,
  "AssignedBuyerId" : null,
  "AssignedBuyer" : null,
  "AssignedBuyerEmail" : null,
  "RequestedDeliveryDate" : "2019-10-26",
  "DestinationTypeCode" : "INVENTORY",
  "DestinationType" : "Inventory",
  "DestinationOrganizationId" : 204,
  "DestinationOrganizationCode" : "V1",
  "DestinationOrganization" : "Vision Corporation",
  "DestinationSubinventory" : null,
  "OneTimeLocationFlag" : null,
  "DeliverToLocationId" : 204,
  "DeliverToLocationCode" : "V1- New York City",
  "NoteToBuyer" : null,
  "NoteToReceiver" : null,
  "NoteToSupplier" : null,
  "POAutomationFailedReasonCode" : null,
  "POAutomationFailedReason" : null,
  "POHeaderId" : null,
  "POLineId" : null,
  "PurchaseOrder" : null,
  "ProcurementBUId" : null,
  "ProcurementBU" : null,
  "SourceTypeCode" : null,
  "SourceType" : null,
  "SourceOrganizationId" : null,
  "SourceOrganization" : null,
  "SourceSubinventory" : null,
  "TransferOrderHeaderId" : null,
  "TransferOrder" : null,
  "TransferOrderLineId" : null,
  "NegotiationHeaderId" : null,
  "Negotiation" : null,
  "NegotiationLineNumber" : null,
  "ResponseNumber" : null,
  "ResponseLineNumber" : null,
  "OnNegotiationFlag" : null,
  "WorkOrderId" : null,
  "WorkOrder" : null,
  "WorkOrderOperationId" : null,
  "WorkOrderOperationSequence" : null,
  "WorkOrderProduct" : null,
  "WorkOrderSubType" : null,
  "BackToBackFlag" : null,
  "ConfiguredItemFlag" : null,
  "DeliverToCustomerId" : null,
  "DeliverToCustomer" : null,
  "DeliverToCustomerLocationId" : null,
  "RequestedShipDate" : null,
  "SalesOrderLineNumber" : null,
  "SalesOrder" : null,
  "SalesOrderScheduleNumber" : null,
  "ShipToCustomerId" : null,
  "ShipToCustomer" : null,
  "ServiceLevelCode" : null,
  "ServiceLevel" : null,
  "ModeOfTransportCode" : null,
  "ModeOfTransport" : null,
  "CarrierId" : null,
  "Carrier" : null,
  "CreatedBy" : "por_intuser01",
  "CreationDate" : "2018-10-30T10:42:46+00:00",
  "LastUpdatedBy" : "por_intuser01",
  "LastUpdateDate" : "2018-10-30T10:42:46.162+00:00",
  "LastSubmittedDate" : null,
  "LastApprovalDate" : null,
  "OriginalSubmittedDate" : null,
  "OriginalApprovalDate" : null,
  "CancelDate" : null,
  "CancelReason" : null,
  "links" : [ {
    "rel" : "self",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627",
    "name" : "lines",
    "kind" : "item"
  }, {
    "rel" : "canonical",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627",
    "name" : "lines",
    "kind" : "item"
  }, {
    "rel" : "parent",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626",
    "name" : "purchaseRequisitions",
    "kind" : "item"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/PersonEmailVVO",
    "name" : "PersonEmailVVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/OrgOrganizationDefinitionsPVO",
    "name" : "OrgOrganizationDefinitionsPVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/UnitOfMeasureConversionPVO",
    "name" : "UnitOfMeasureConversionPVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/SupplierLOVCompleteSupplierPVO",
    "name" : "SupplierLOVCompleteSupplierPVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/DestinationTypeVO",
    "name" : "DestinationTypeVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/LocationLovPVO",
    "name" : "LocationLovPVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/PurchasingLineTypePVO",
    "name" : "PurchasingLineTypePVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/ItemVVO",
    "name" : "ItemVVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/PurchasingCategoryVO",
    "name" : "PurchasingCategoryVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/SupplierSiteLOVCompleteSupplierSitePVO",
    "name" : "SupplierSiteLOVCompleteSupplierSitePVO",
    "kind" : "collection"
  }, {
    "rel" : "lov",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/lov/CurrencyPVO",
    "name" : "CurrencyPVO",
    "kind" : "collection"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/purchaseRequisitions/300100169321626/child/lines/300100169321627/child/distributions",
    "name" : "distributions",
    "kind" : "collection"
  } ]
}
Back to Top