Create one line type
/fscmRestApi/resources/11.13.18.05/purchasingLineTypes
Request
-
Metadata-Context: string
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".
-
REST-Framework-Version: string
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.
-
Upsert-Mode: string
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.
- application/json
object-
CreditLineFlag: boolean
Title:
Credit LineMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, the credit line type is enabled for this line type. If false, the credit line type isn't enabled for this line type. -
DefaultCategoryId: integer
(int64)
Title:
Default Category IDValue that uniquely identifies the default category. -
DefaultInvoiceMatchOption: string
Title:
Default Invoice Match OptionMaximum Length:80Name of the default invoice match option. -
DefaultInvoiceMatchOptionCode: string
Title:
Default Invoice Match Option CodeMaximum Length:25Abbreviation that identifies the default invoice match option. -
DefaultMatchApprovalLevelCode: string
Title:
Default Match Approval Level CodeMaximum Length:255Abbreviation that identifies the match approval level. -
DefaultReceiptCloseTolerancePercent: number
Title:
Default Receipt Close Tolerance PercentDefault value for the permissible variance between the anticipated amount of goods or services and the actual amount delivered. -
DefaultUOMCode: string
Title:
Default UOM CodeMaximum Length:3Abbreviation that identifies the default unit of measure. -
DFF: array
DFF
-
EndDate: string
(date)
Title:
End DateDate after which the line type is no longer valid. -
LineType(required): string
Title:
Line TypeMaximum Length:30Name that uniquely identifies the purchasing line type. -
LineTypeCode(required): string
Title:
Line Type CodeMaximum Length:30Abbreviation that identifies the purchasing line type. -
LineTypeDescription(required): string
Title:
DescriptionMaximum Length:240Description of the purchasing line type. -
ProductType: string
Title:
Product TypeMaximum Length:80Name of the product type. -
ProductTypeCode: string
Title:
Product Type CodeMaximum Length:30Default Value:GOODSAbbreviation that identifies the product type. -
PurchaseBasis: string
Title:
Purchase BasisMaximum Length:80Name of the purchase basis lookup type. -
PurchaseBasisCode: string
Title:
Purchase Basis CodeMaximum Length:30Default Value:GOODSAbbreviation that identifies the purchase basis lookup type.
object-
__FLEX_Context: string
Title:
Context PromptMaximum Length:30Context Prompt -
__FLEX_Context_DisplayValue: string
Title:
Context PromptContext Prompt -
LineTypeId: integer
(int64)
Response
- application/json
Default Response
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
object-
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the line type. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the purchasing line type was created. -
CreditLineFlag: boolean
Title:
Credit LineMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, the credit line type is enabled for this line type. If false, the credit line type isn't enabled for this line type. -
DefaultCategory: string
Title:
Default CategoryRead Only:trueMaximum Length:2400Name of the default category. -
DefaultCategoryId: integer
(int64)
Title:
Default Category IDValue that uniquely identifies the default category. -
DefaultInvoiceMatchOption: string
Title:
Default Invoice Match OptionMaximum Length:80Name of the default invoice match option. -
DefaultInvoiceMatchOptionCode: string
Title:
Default Invoice Match Option CodeMaximum Length:25Abbreviation that identifies the default invoice match option. -
DefaultMatchApprovalLevel: string
Title:
Default Match Approval LevelRead Only:trueMaximum Length:255Name of the default match approval level. -
DefaultMatchApprovalLevelCode: string
Title:
Default Match Approval Level CodeMaximum Length:255Abbreviation that identifies the match approval level. -
DefaultReceiptCloseTolerancePercent: number
Title:
Default Receipt Close Tolerance PercentDefault value for the permissible variance between the anticipated amount of goods or services and the actual amount delivered. -
DefaultUOM: string
Title:
Default UOMRead Only:trueMaximum Length:25Name of the default unit of measure. -
DefaultUOMCode: string
Title:
Default UOM CodeMaximum Length:3Abbreviation that identifies the default unit of measure. -
DFF: array
DFF
-
EndDate: string
(date)
Title:
End DateDate after which the line type is no longer valid. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the user most recently updated the line type. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the line type. -
LineType: string
Title:
Line TypeMaximum Length:30Name that uniquely identifies the purchasing line type. -
LineTypeCode: string
Title:
Line Type CodeMaximum Length:30Abbreviation that identifies the purchasing line type. -
LineTypeDescription: string
Title:
DescriptionMaximum Length:240Description of the purchasing line type. -
LineTypeId: integer
(int64)
Title:
Line Type IDRead Only:trueValue that uniquely identifies the purchasing line type. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProductType: string
Title:
Product TypeMaximum Length:80Name of the product type. -
ProductTypeCode: string
Title:
Product Type CodeMaximum Length:30Default Value:GOODSAbbreviation that identifies the product type. -
PurchaseBasis: string
Title:
Purchase BasisMaximum Length:80Name of the purchase basis lookup type. -
PurchaseBasisCode: string
Title:
Purchase Basis CodeMaximum Length:30Default Value:GOODSAbbreviation that identifies the purchase basis lookup type.
arrayLinksobject-
__FLEX_Context: string
Title:
Context PromptMaximum Length:30Context Prompt -
__FLEX_Context_DisplayValue: string
Title:
Context PromptContext Prompt -
LineTypeId: integer
(int64)
-
links: array
Links
Title:
LinksThe link relations associated with the resource instance.
arrayLinksobject-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
- DFF
-
Parameters:
- LineTypeId:
$request.path.LineTypeId
- LineTypeId:
Examples
This example describes how to create one line type for a purchasing line types.
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/purchasingLineTypes"
For example:
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/purchasingLineTypes"
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.
{
"LineType": "2WAYR",
"LineTypeCode": "2WAYR",
"LineTypeDescription": "2-Way match to receipt",
"CreditLineFlag": false,
"ProductTypeCode": "GOODS",
"ProductType": "Goods",
"PurchaseBasisCode": "GOODS",
"PurchaseBasis": "Quantity",
"EndDate": null,
"DefaultMatchApprovalLevelCode": null,
"DefaultInvoiceMatchOptionCode": null,
"DefaultReceiptCloseTolerancePercent": null
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"LineTypeId": 300100650974301,
"LineType": "2WAYR",
"LineTypeCode": "2WAYR",
"LineTypeDescription": "2-Way match to receipt",
"CreditLineFlag": false,
"ProductTypeCode": "GOODS",
"ProductType": "Goods",
"PurchaseBasisCode": "GOODS",
"PurchaseBasis": "Quantity",
"EndDate": null,
"DefaultMatchApprovalLevelCode": null,
"DefaultMatchApprovalLevel": null,
"DefaultInvoiceMatchOptionCode": null,
"DefaultInvoiceMatchOption": null,
"DefaultReceiptCloseTolerancePercent": null,
"DefaultCategoryId": null,
"DefaultCategory": null,
"DefaultUOMCode": null,
"DefaultUOM": null,
"CreatedBy": "CVBUYER01",
"CreationDate": "2026-02-09T02:25:44.002+00:00",
"LastUpdateDate": "2026-02-09T02:25:44.555+00:00",
"LastUpdatedBy": "CVBUYER01",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/purchasingLineTypes/300100650974301",
"name": "purchasingLineTypes",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/purchasingLineTypes/300100650974301",
"name": "purchasingLineTypes",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/purchasingLineTypes/300100650974301/child/DFF",
"name": "DFF",
"kind": "collection"
}
]
}