Get all contract lines

get

/fscmRestApi/resources/11.13.18.05/contracts/{contractsUniqID}/child/ContractLine

Request

Path Parameters
  • This is the hash key of the attributes which make up the composite key for the Contracts resource and used to uniquely identify an instance of Contracts. The client should not generate the hash key value. Instead, the client should query on the Contracts collection resource in order to navigate to a specific instance of Contracts to get the hash key.
Query Parameters
  • This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2

    Format: <attr1>=<val1>,<attr2>=<value2>
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • Used as a predefined finder to search the collection.

    Format: ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>

    The following are the available finder names and corresponding finder variables:

    • ContractAllLineAltKey: Finds the contract lines with alternate keys - ID and major version.
      Finder Variables:
      • Id; integer; The unique identifier of the contract line.
      • MajorVersion; integer; The contract line major version.
    • ContractAllLineVOALTKey: Finds the contract lines with alternate key.
      Finder Variables:
      • ExternalKey; string.
      • ExternalSource; string.
    • ContractLinePuidAltKey: Finds the contract lines with alternate key Line PUID
      Finder Variables:
      • LinePuid; string; The public unique identifier of the contract line.
    • PrimaryKey: Finds the contract line with the specified contract line identifier.
      Finder Variables:
      • LineId; integer; The unique identifier of the contract line.
  • This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
  • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

    Example:
    self,canonical
  • Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
  • This parameter orders a resource collection based on the specified fields. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. The default value is "asc". For example, ?orderBy=field1:asc,field2:desc
  • This query parameter defines the where clause. The resource collection will be queried using the provided expressions. The value of this query parameter is one or more expressions. Example: ?q=Deptno>=10 and <= 30;Loc!=NY

    Format: ?q=expression1;expression2

    You can use these queryable attributes to filter this collection resource using the q query parameter:
    • AdjustmentAmount; number; The adjustment amount of the contract line.
    • AdjustmentBasisCode; string; The code that indicates the adjustment basis.
    • AdjustmentBasisId; integer; The unique identifier of the adjustment basis.
    • AdjustmentType; string; The type of adjustment of the contract line.
    • AdjustmentTypeCode; string; The code that indicates the type of adjustment.
    • AgreedAmount; number; The agreed amount of the contract line.
    • AgreedQuantity; number; The agreed quantity to be shipped of the contract line.
    • AgreementAmountLimit; number; The limit on the agreed amount.
    • AgreementPriceLimit; number; The price limit of the agreement line.
    • AgreementPriceOverAllwdYn; string; Indicates if the agreement price can be overridden.
    • AgreementQuantityLimit; number; The limit on the agreed quantity to be shipped.
    • AgreementUnitPrice; number; The unit price of the agreement line.
    • AllowCustomAdjustmentsFlag; boolean; Indicates whether a custom adjustment can be made.
    • AllowPricelistOverrideYn; string; Indicates whether price list override is allowed.
    • AllowPromotionsYn; string; Indicates whether promotions are allowed.
    • AtRiskYn; string; Indicating whether the contract line is at risk.
    • AutoApplyStrategyPriceAdjustmentFlag; boolean; Auto Apply Strategy Price Adjustment Flag
    • BillPlanId; integer; The unique identifier of the bill plan.
    • CarrierId; integer; The unique identifier of the carrier.
    • Cognomen; string; The name of the contract line.
    • Comments; string; The comments on the contract line.
    • CommitLevel; string; Commit Level
    • CommitLevelCode; string; Commit Level Code
    • CustomerPONumber; string; The PO number of the customer.
    • DateCancelled; string; The date cancelled.
    • DateTerminated; string; The date when the contract line is terminated.
    • DeliveryDate; string; The date when the items are expected to be delivered.
    • EndDate; string; The date when the contract line ends.
    • EstimatedVariableConsiderationAmount; number; Estimated Variable Consideration Amount
    • ExemptCertificateNumber; string; Exempt Certificate Number
    • ExemptReasonCode; string; Exempt Reason Code
    • ExternalKey; string; The key identifier of the contract line in the external source system.
    • ExternalSource; string; The name of external source system where the contract line is imported from.
    • FOB; string; The FOB of the contract line.
    • FOBCode; string; The code that indicates the FOB of the contract line.
    • FixedPriceServiceYn; string; Indicates that the service has a fixed price.
    • FloorPrice; number; The floor price of the contract line.
    • FreightTerms; string; The display name of the freight terms of the contract line.
    • FreightTermsCode; string; The code that indicates the freight terms of the contract line.
    • HoldReasonCode; string; The code that indicates the reason for holding a contract line.
    • HoldReasonCodeSetId; integer; The unique identifier of the set used for the hold reason code of the contract line.
    • HoldUntilDate; string; The date until when the contract line is put of hold.
    • Id; integer; Contract Line ID
    • ItemDescription; string; The description of the contract line item.
    • ItemName; string; The name of the contract line item.
    • ItemNameTxt; string; The column that stores the actual name of the contract line item.
    • ItemQuantity; number; The quantity of the contract line.
    • LastRevenueRecogDate; string; The date when the last revenue is recognized.
    • LineAmount; number; The total amount of the contract line.
    • LineId; integer; The unique identifier of the contract line.
    • LineNumber; string; The line number of the contract.
    • LinePuid; string; Line PUID
    • LineTypeId; integer; The unique identifier of the contract line type.
    • LineValueAmount; number; The value of the contract line.
    • ListPrice; number; The list price of the contract line.
    • MajorVersion; integer; The version of the contract line.
    • MinimumReleaseAmount; number; The minimum release amount per order of the contract line.
    • MinimumReleaseQuantity; number; The minimum release quantity to be shipped per order.
    • Object1Id1; integer; The unique identifier of the object.
    • Object1Id2; integer; The alternate key identifier of the object.
    • OrigSystemReference; string; The originating system reference of the contract line.
    • OrigSystemSourceCode; string; The source code of the originating system.
    • OutputTaxClassificationCode; string; The code that indicates the classification of the output tax.
    • PaymentTerms; string; The display name of the payment terms.
    • PaymentTermsId; integer; The unique identifier of the payment terms.
    • PercentComplete; number; The completeness of the contract line in percentage.
    • PriceApplicationRule; string; Price Application Rule
    • PriceAsOf; string; The date as of which a contract line or asset line is priced.
    • PriceBookId; integer; The unique identifier of the price book.
    • PriceListId; integer; The unique identifier of the price list.
    • PurchasingCategoryId; integer; The unique identifier of the purchasing category.
    • RecvInvOrgId; integer; The unique identifier of the receiving inventory organization.
    • RecvLocationId; integer; The unique identifier of the receiving location.
    • RevenuePlanId; integer; The unique identifier of the revenue plan.
    • ShipInvOrgId; integer; The unique identifier of the ship inventory organization.
    • ShipToAccountId; integer; The unique identifier of the ship-to account.
    • ShipToSiteUseId; integer; The unique identifier of the Ship-to site.
    • SourceDocumentId; integer; Source Document Id
    • SourceDocumentLineId; integer; Source Document Line Id
    • SourceDocumentSystemCode; string; Source Application Code
    • StandaloneSellingPrice; number; Standalone Selling Price
    • StartDate; string; The date when the contract line was created.
    • StsCode; string; The code that indicates the status of the contract line.
    • SupplierId; integer; The unique identifier of the supplier.
    • SupplierSiteId; integer; The unique identifier of the supplier's address.
    • TaxAmount; number; The tax amount of the contract line.
    • TaxExemptionControl; string; The code that indicates the reason for tax exemption.
    • TaxExemptionControlMeaning; string; The reason of the tax exemption.
    • TrnCode; string; The unique identifier of the set used for the hold reason code of the contract line.
    • TrnCodeSetId; integer; The unique identifier of the set used for cancel or close reason code of the contract line.
    • UOMCode; string; The code that indicates the Unit Of Measure of a contract line.
    • UnitPrice; number; The unit price of the contract line.
  • The resource collection representation will include the "estimated row count" when "?totalResults=true", otherwise the count is not included. The default value is "false".
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.

There's no request body for this operation.

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 : contracts-ContractLine
Type: object
Show Source
Nested Schema : Items
Type: array
Title: Items
The items in the collection.
Show Source
Nested Schema : contracts-ContractLine-item-response
Type: object
Show Source
Nested Schema : Associated Projects
Type: array
Title: Associated Projects
The resource is used to view, create, update, delete associated project information. This includes the project number, task number, percent complete, funded amount etc.
Show Source
Nested Schema : Billing Controls
Type: array
Title: Billing Controls
The billing controls resource is used to view, create, update, and delete billing controls information. This includes the resource, hard limit, soft limit etc.
Show Source
Nested Schema : Contract Line Flexfields
Type: array
Title: Contract Line Flexfields
The resource is used to view, create, update contract line flex field information.
Show Source
Nested Schema : Contract Line Translations
Type: array
Title: Contract Line Translations
The resource is used to view, update contract line translation information.
Show Source
Nested Schema : Contract Line Internal Attributes
Type: array
Title: Contract Line Internal Attributes
The contract line internal attributes resource is used to view, create, update, and delete internal contract line attributes.
Show Source
Nested Schema : Sales Credits
Type: array
Title: Sales Credits
The resource is used to view, create, update, delete sales credit information at contract header and line level. This information includes sales person name, quota type, percent, start date and end date.
Show Source
Nested Schema : contracts-ContractLine-AssociatedProject-item-response
Type: object
Show Source
Nested Schema : contracts-ContractLine-BillingControl-item-response
Type: object
Show Source
Nested Schema : contracts-ContractLine-ContractAllLineDesFlexVA-item-response
Type: object
Show Source
Nested Schema : contracts-ContractLine-ContractLineTranslation-item-response
Type: object
Show Source
Nested Schema : contracts-ContractLine-ProjectContractLineInternalAttributes-item-response
Type: object
Show Source
  • Unique identifier of the contract.
  • Unique identifier of the contract line.
  • Maximum Length: 1
    Indicates whether project managers can change the planned finish date of a milestone once created in the project plan. The default value is Y, which allows project managers to manage planned finish dates for milestones in the project plan.
  • Unique identifier for the expenditure type which is recorded on the internal invoices of the receiver in Oracle Fusion Payables for the contract line.
  • Title: Expenditure Type Name
    Maximum Length: 240
    Name of the expenditure type that is recorded on the internal invoices of the receiver in Oracle Fusion Payables for the contract line.
  • Title: Use original task owning organization
    Maximum Length: 20
    Indicates whether the expenditure organization populated on the intercompany invoice line sent to payables comes from the task owning organization on the original expenditure item or the expenditure organization on the intercompany contract line.
  • Title: Use original expenditure type
    Maximum Length: 1
    Indicates whether the expenditure type populated on the internal invoice line sent to payables comes from the expenditure type on the original expenditure item or the expenditure type on the internal contract line..
  • Maximum Length: 150
    The external reference key.
  • Maximum Length: 150
    The external source key.
  • Links
  • Identification of the version of the contract, created by amending the contract, used to generate the revenue distribution.
  • Unique identifier for the expenditure organization which is recorded on the internal invoices of the receiver in Oracle Fusion Payables for the contract line.
  • Title: Expenditure Organization Name
    Maximum Length: 240
    Name of the organization that is recorded on the internal invoices of the receiver in Oracle Fusion Payables for the contract line.
  • Title: Provider Business Unit ID
    Unique identifier for the business unit that provides goods or services which are charged using the internal contract line.
  • Title: Provider Business Unit Name
    Maximum Length: 240
    Name of the business unit that provides goods or services which are charged using the internal contract line.
  • The unique identifier of the receiver business unit.
  • Title: Receiver Business Unit
    Maximum Length: 240
    The receiver business unit name.
  • Unique identifier for the project which is recorded on the internal invoices of the receiver in Oracle Fusion Payables for the contract line.
  • Title: Receiver Project Name
    Maximum Length: 240
    Name of the project that is recorded on the internal invoices of the receiver in Oracle Fusion Payables for the contract line.
  • Unique identifier for the task which is recorded on the internal invoices of the receiver in Oracle Fusion Payables for the contract line.
  • Title: Receiver Task Name
    Maximum Length: 255
    Name of the task that is recorded on the internal invoices of the receiver in Oracle Fusion Payables for the contract line.
Nested Schema : contracts-ContractLine-SalesCredit-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to get all contract lines by submitting a GET request on the REST resource using cURL.

cURL command

curl -u <username:password> \ -X GET https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/contracts/00020000000EACED0005770800005AF3113B1FE60000000EACED000577080000000000000001/child/ContractLine

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
"items": [
  {
"LineNumber": "1",
"Id": 100000012640235,
"MajorVersion": 1,
"LineTypeId": 104,
"LineTypeName": "Item",
"StsCode": "DRAFT",
"LineStatus": "Draft",
"Object1Id1": 33374,
"Object1Id2": 204,
"ItemName": "AS34300",
"ItemNameTxt": "AS34300",
"ItemDescription": "HP ProLiant DL740 - Xeon MP 3 GHz",
"StartDate": "2009-10-15",
"EndDate": null,
"PriceListId": null,
"UOMCode": "Ea",
"FixedPriceServiceYn": "N",
"ItemQuantity": 1,
"UnitPrice": 4444444444444,
"LineValueAmount": 4444444444444,
"LineAmount": 4444444444444,
"Comments": null,
"AgreedQuantity": null,
"AgreedAmount": null,
"AgreementQuantityLimit": null,
"AgreementAmountLimit": null,
"MinimumReleaseQuantity": null,
"MinimumReleaseAmount": null,
"PriceBookId": null,
"AllowPricelistOverrideYn": null,
"ListPrice": null,
"FloorPrice": null,
"AgreementPriceLimit": null,
"AgreementUnitPrice": null,
"AdjustmentTypeCode": null,
"AdjustmentType": null,
"AdjustmentBasisId": null,
"AdjustmentBasisCode": null,
"AdjustmentAmount": null,
"AllowCustomAdjustmentsFlag": null,
"DateTerminated": null,
"HoldUntilDate": null,
"TrnCodeSetId": null,
"TrnCode": null,
"CloseReason": null,
"HoldReasonCodeSetId": null,
"HoldReasonCode": null,
"HoldReason": null,
"AtRiskYn": "N",
"PercentComplete": null,
"ShipToAccountId": null,
"ShipToAccount": null,
"ShipToSiteUseId": null,
"ShipToSite": null,
"ShipInvOrgId": null,
"WareHouse": null,
"BillPlanId": null,
"RevenuePlanId": null,
"RevenueAmount": "0",
"OutputTaxClassificationCode": null,
"ExemptReasonCode": null,
"ExemptReason": null,
"LastRevenueRecogDate": null,
"CustomerPONumber": null,
"DeliveryDate": "2009-10-28",
"SupplierId": 2960,
"Supplier": null,
"SupplierSiteId": 2641,
"SupplierSiteName": "1263",
"RecvInvOrgId": 911,
"RecvLocationId": 3248,
"ShipToOrgLocation": "CSP10002",
"AgreementPriceOverAllwdYn": "N",
"FOBCode": "Destination",
"FOB": "Destination",
"FreightTermsCode": "SHIP",
"FreightTerms": null,
"PaymentTermsId": 10042,
"PaymentTerms": "2N30",
"PurchasingCategoryId": 1,
"CarrierId": 12524,
"CarrierName": "Federal Express",
"VendorSiteId": null,
"OrigSystemReference": null,
"OrigSystemSourceCode": null,
"Cognomen": null,
"TaxAmount": null,
"ExternalSource": null,
"ExternalKey": null,
"ExternalItemKey": null,
"ExternalItemReference1": null,
"ExternalItemReference2": null,
"ExternalItemReference3": null,
"ExternalItemReference4": null,
"ExternalItemReference5": null,
"ExternalItemSource": null,
"AllowPromotionsYn": "N",
"BillToCustAccountNumber": null,
"BillToSiteUseName": null,
"BillToContactName": null,
"InvoiceRuleId": null,
"BillToAccountId": null,
"AccountRuleId": null,
"BillingFrequency": null,
"InvoiceText": null,
"OrderSource": null,
"PriceUOM": null,
"ShipToPartyId": null,
"ShipToPartySiteId": null,
"DurationQuantity": null,
"PricingEffectivityDate": null,
"PriceItemQuantity": 1,
"PriceItemUOM": "Ea",
"OnetimeAmount": null,
"RecurringAmount": null,
"TaxError": null,
"InstrAssignmentId": null,
"PaymentMethod": null,
"PoNumber": null,
"TrxnExtensionId": null,
"WireNumber": null,
"CreditCardNumber": null,
"CreditCardHolderName": null,
"CreditCardIssuerCode": null,
"CreditCardIssuerName": null,
"CreditCardExpiryDate": null,
"BillToAccountPartyId": null,
"links":
...,
}
],
},
 {
"LineNumber": "2",
"Id": 100000012640236,
"MajorVersion": 1,
"LineTypeId": 103,
"LineTypeName": "Free-form",
"StsCode": "DRAFT",
"LineStatus": "Draft",
"Object1Id1": null,
"Object1Id2": null,
"ItemName": "ff",
"ItemNameTxt": "ff",
"ItemDescription": "ff",
"StartDate": "2009-10-15",
"EndDate": null,
"PriceListId": null,
"UOMCode": null,
"FixedPriceServiceYn": "Y",
"ItemQuantity": null,
"UnitPrice": null,
"LineValueAmount": 55555555555,
"LineAmount": 55555555555,
"Comments": null,
"AgreedQuantity": null,
"AgreedAmount": null,
"AgreementQuantityLimit": null,
"AgreementAmountLimit": null,
"MinimumReleaseQuantity": null,
"MinimumReleaseAmount": null,
"PriceBookId": null,
"AllowPricelistOverrideYn": null,
"ListPrice": null,
"FloorPrice": null,
"AgreementPriceLimit": null,
"AgreementUnitPrice": null,
"AdjustmentTypeCode": null,
"AdjustmentType": null,
"AdjustmentBasisId": null,
"AdjustmentBasisCode": null,
"AdjustmentAmount": null,
"AllowCustomAdjustmentsFlag": null,
"DateTerminated": null,
"HoldUntilDate": null,
"TrnCodeSetId": null,
"TrnCode": null,
"CloseReason": null,
"HoldReasonCodeSetId": null,
"HoldReasonCode": null,
"HoldReason": null,
"AtRiskYn": "N",
"PercentComplete": null,
"ShipToAccountId": null,
"ShipToAccount": null,
"ShipToSiteUseId": null,
"ShipToSite": null,
"ShipInvOrgId": null,
"WareHouse": null,
"BillPlanId": null,
"RevenuePlanId": null,
"RevenueAmount": "0",
"OutputTaxClassificationCode": null,
"ExemptReasonCode": null,
"ExemptReason": null,
"LastRevenueRecogDate": null,
"CustomerPONumber": null,
"DeliveryDate": "2009-10-31",
"SupplierId": 2960,
"Supplier": null,
"SupplierSiteId": 2641,
"SupplierSiteName": "1263",
"RecvInvOrgId": 498,
"RecvLocationId": 3248,
"ShipToOrgLocation": "CSP10002",
"AgreementPriceOverAllwdYn": "N",
"FOBCode": "Destination",
"FOB": "Destination",
"FreightTermsCode": "SHIP",
"FreightTerms": null,
"PaymentTermsId": 10042,
"PaymentTerms": "2N30",
"PurchasingCategoryId": null,
"CarrierId": 12524,
"CarrierName": "Federal Express",
"VendorSiteId": null,
"OrigSystemReference": null,
"OrigSystemSourceCode": null,
"Cognomen": null,
"TaxAmount": null,
"ExternalSource": null,
"ExternalKey": null,
"ExternalItemKey": null,
"ExternalItemReference1": null,
"ExternalItemReference2": null,
"ExternalItemReference3": null,
"ExternalItemReference4": null,
"ExternalItemReference5": null,
"ExternalItemSource": null,
"AllowPromotionsYn": "N",
"BillToCustAccountNumber": null,
"BillToSiteUseName": null,
"BillToContactName": null,
"InvoiceRuleId": null,
"BillToAccountId": null,
"AccountRuleId": null,
"BillingFrequency": null,
"InvoiceText": null,
"OrderSource": null,
"PriceUOM": null,
"ShipToPartyId": null,
"ShipToPartySiteId": null,
"DurationQuantity": null,
"PricingEffectivityDate": null,
"PriceItemQuantity": null,
"PriceItemUOM": null,
"OnetimeAmount": null,
"RecurringAmount": null,
"TaxError": null,
"InstrAssignmentId": null,
"PaymentMethod": null,
"PoNumber": null,
"TrxnExtensionId": null,
"WireNumber": null,
"CreditCardNumber": null,
"CreditCardHolderName": null,
"CreditCardIssuerCode": null,
"CreditCardIssuerName": null,
"CreditCardExpiryDate": null,
"BillToAccountPartyId": null,
"links":
...
],
}
],
...
Back to Top