Create one line

post

/fscmRestApi/resources/11.13.18.05/supplierReturns/{SupplierReturnHeaderId}/child/lines

Request

Path Parameters
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 Supplier Return Lines
Type: array
Title: Flexfields for Supplier Return Lines
The Flexfields for Supplier Return Lines resource manages additional details about supplier return lines.
Show Source
Nested Schema : Flexfields for Inventory Attributes
Type: array
Title: Flexfields for Inventory Attributes
The Flexfields for Inventory Attributes resource manages descriptive flexfields for inventory attributes. This resource is associated with a feature that requires opt in.
Show Source
Nested Schema : Manufacturer Parts
Type: array
Title: Manufacturer Parts
The Manufacturer Parts resource manages the manufacturer parts associated with a supplier return line.
Show Source
Nested Schema : Serial Numbers
Type: array
Title: Serial Numbers
The Serial Numbers resource manages the serial numbers associated with a supplier return line.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
  • Title: Context Segment
    Maximum Length: 40
    Descriptive flexfield context name of inventory attributes for supplier return lines. This attribute is associated with a feature that requires opt in.
  • Title: Context Segment
    Descriptive flexfield context display value of inventory attributes for supplier return lines. This attribute is associated with a feature that requires opt in.
  • Title: Country of Origin
    Maximum Length: 2
    Abbreviation that identifies the country of origin. This attribute is associated with a feature that requires opt in.
  • Title: Country of Origin
    Name of the country of origin. This attribute is associated with a feature that requires opt in.
  • Title: Project
    Value that uniquely identifies the project. This attribute is associated with a feature that requires opt in.
  • Title: Project
    Number that identifies the project. This attribute is associated with a feature that requires opt in.
  • Value that uniquely identifies the supplier return line. This attribute is associated with a feature that requires opt in.
  • Title: Task
    Value that uniquely identifies the task. This attribute is associated with a feature that requires opt in.
  • Title: Task
    Number that identifies the task. This attribute is associated with a feature that requires opt in.
Nested Schema : supplierReturns-lines-manufacturerParts-item-post-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
  • Maximum Length: 80
    Number that indicates the starting serial in a range of serial numbers. This number is used to identify an item.
  • Maximum Length: 80
    Number that indicates the last serial in a range of serial numbers. This number is used to identify an item.
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 : supplierReturns-lines-item-response
Type: object
Show Source
Nested Schema : Flexfields for Supplier Return Lines
Type: array
Title: Flexfields for Supplier Return Lines
The Flexfields for Supplier Return Lines resource manages additional details about supplier return lines.
Show Source
Nested Schema : Flexfields for Inventory Attributes
Type: array
Title: Flexfields for Inventory Attributes
The Flexfields for Inventory Attributes resource manages descriptive flexfields for inventory attributes. This resource is associated with a feature that requires opt in.
Show Source
Nested Schema : Manufacturer Parts
Type: array
Title: Manufacturer Parts
The Manufacturer Parts resource manages the manufacturer parts associated with a supplier return line.
Show Source
Nested Schema : Serial Numbers
Type: array
Title: Serial Numbers
The Serial Numbers resource manages the serial numbers associated with a supplier return line.
Show Source
Nested Schema : supplierReturns-lines-DFF-item-response
Type: object
Show Source
Nested Schema : supplierReturns-lines-inventoryAttributesDFF-item-response
Type: object
Show Source
  • Title: Context Segment
    Maximum Length: 40
    Descriptive flexfield context name of inventory attributes for supplier return lines. This attribute is associated with a feature that requires opt in.
  • Title: Context Segment
    Descriptive flexfield context display value of inventory attributes for supplier return lines. This attribute is associated with a feature that requires opt in.
  • Title: Country of Origin
    Maximum Length: 2
    Abbreviation that identifies the country of origin. This attribute is associated with a feature that requires opt in.
  • Title: Country of Origin
    Name of the country of origin. This attribute is associated with a feature that requires opt in.
  • Links
  • Title: Project
    Value that uniquely identifies the project. This attribute is associated with a feature that requires opt in.
  • Title: Project
    Number that identifies the project. This attribute is associated with a feature that requires opt in.
  • Value that uniquely identifies the supplier return line. This attribute is associated with a feature that requires opt in.
  • Title: Task
    Value that uniquely identifies the task. This attribute is associated with a feature that requires opt in.
  • Title: Task
    Number that identifies the task. This attribute is associated with a feature that requires opt in.
Nested Schema : supplierReturns-lines-manufacturerParts-item-response
Type: object
Show Source
Nested Schema : supplierReturns-lines-serials-item-response
Type: object
Show Source
  • Maximum Length: 80
    Number that indicates the starting serial in a range of serial numbers. This number is used to identify an item.
  • Links
  • Maximum Length: 80
    Number that indicates the last serial in a range of serial numbers. This number is used to identify an item.
Back to Top

Examples

This example describes how to create one 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.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/supplierReturns/SupplierReturnHeaderId/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.

{
	"ItemNumber": "INV-100",
	"RequestedQuantity": 1.3,
	"UnitOfMeasure": "Case of 10",
	"Subinventory": "FloorStock",
	"PhysicalMaterialReturnRequiredFlag": true,
	"ReturnedByName": "Smith, Pat"
}

Example Response Body

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

{
	"SupplierReturnLineId": 300100191493356,
	"SupplierReturnLineNumber": 3,
	"CreationDate": "2020-05-14T23:33:36+00:00",
	"CreatedBy": "WHSE_MGR_ALL_INV_ORGS",
	"LastUpdateDate": "2020-05-14T23:33:36.376+00:00",
	"LastUpdatedBy": "WHSE_MGR_ALL_INV_ORGS",
	"OrganizationId": 207,
	"OrganizationCode": "M1",
	"ItemId": 663913,
	"ItemNumber": "INV-100",
	"ItemDescription": "Plain Item",
	"ItemRevision": null,
	"LineStatusCode": "INCOMPLETE",
	"LineStatus": "Incomplete",
	"Subinventory": "FloorStock",
	"LocatorId": null,
	"Locator": null,
	"PhysicalMaterialReturnRequiredFlag": true,
	"RequestedQuantity": 1.3,
	"FulfilledQuantity": null,
	"CanceledQuantity": null,
	"UOMCode": "C10",
	"UnitOfMeasure": "Case of 10",
	"PrimaryRequestedQuantity": 13,
	"PrimaryUOMCode": "Ea",
	"PrimaryUnitOfMeasure": "Each",
	"RequestedDate": null,
	"ReturnedById": 25,
	"ReturnedByName": "Smith, Pat",
	"AccountId": null,
	"Account": null,
	"LotNumber": null,
	"SecondaryRequestedQuantity": null,
	"SecondaryFulfilledQuantity": null,
	"SecondaryCanceledQuantity": null,
	"SecondaryUOMCode": null,
	"SecondaryUnitOfMeasure": null,
	"SupplierLotNumber": null,
	"SupplierItemNumber": null,
	"SupplierRMANumber": null,
	"RecallHeaderId": null,
	"RecallNoticeNumber": null,
	"RecallLineId": null,
	"RecallNoticeLineNumber": null,
	"ReasonId": null,
	"Reason": null,
	"Comments": null,
	"ErrorMessageName": null,
	"ErrorMessage": null,
	"CancelFlag": null,
	"links": [
	...
	]
}
Back to Top