Create business unit accesses
/fscmRestApi/resources/11.13.18.05/draftPurchaseAgreements/{draftPurchaseAgreementsUniqID}/child/businessUnitAccess
Request
-
draftPurchaseAgreementsUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Draft Purchase Agreements resource and used to uniquely identify an instance of Draft Purchase Agreements. The client should not generate the hash key value. Instead, the client should query on the Draft Purchase Agreements collection resource in order to navigate to a specific instance of Draft Purchase Agreements to get the hash key.
-
Effective-Of: string
This header accepts a string value. The string is a semi-colon separated list of
= . It is used to perform effective date range operations. The accepted parameters are RangeMode, RangeSpan, RangeStartDate, RangeEndDate, RangeStartSequence and RangeEndSequence. The parameter values are always strings. The possible values for RangeMode are SET_LOGICAL_START, SET_LOGICAL_END, END_DATE, SET_EFFECTIVE_START, SET_EFFECTIVE_END, REPLACE_CORRECTION, REPLACE_UPDATE, RECONCILE_CORRECTION, CORRECTION, RECONCILE_UPDATE, UPDATE, ZAP and DELETE_CHANGES. The possible values for RangeSpan are PHYSICAL_ROW_END_DATE and LOGICAL_ROW_END_DATE. The values for RangeStartDate and RangeEndDate have to be a string representation of a date in yyyy-MM-dd format. The value for RangeStartSequence and RangeEndSequence must be strings such that when parsed they yield positive integers. -
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-
BillToBU: string
Title:
Bill-to BUMaximum Length:240Business unit that processes supplier invoices for the purchase document. -
BilltoBUId: integer
(int64)
Title:
Bill to BU IDValue that uniquely identifies the business unit that processes supplier invoices for the purchase order. -
BillToLocation: string
Title:
Bill-to LocationMaximum Length:240Value that identifies the bill-to location where the supplier sends the invoice. -
BillToLocationId: integer
(int64)
Value that uniquely identifies the bill-to location.
-
EnabledFlag: boolean
Maximum Length:
1Indicates whether the business unit assignment on the agreement is enabled. Values: true or false. No default. -
EntityChangeTypeCode: string
Maximum Length:
1Value that identifies if the row is new or changed. -
OrderLocallyFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, then the client's order for items on the agreement should be routed to local supplier sites maintained by the client. If false, then the client's order for items on the agreement won't route to local supplier sites maintained by the client. This attribute doesn't have a default value. -
OrganizationAssignmentId: integer
(int64)
Value that uniquely identifies the business unit's access to a purchase agreement.
-
PurchasingSite: string
Title:
Purchasing SiteMaximum Length:240Name of the supplier site for the purchasing business unit. -
PurchasingSiteId: integer
(int64)
Value that uniquely identifies the supplier site for the purchasing operating unit.
-
RequisitioningBU: string
Title:
Requisitioning BUMaximum Length:240Business unit that creates the requisition. -
RequisitioningBUId: integer
(int64)
Value that uniquely identifies the business unit that requested the goods or services being purchased.
-
ShipToLocation: string
Title:
Ship-to LocationMaximum Length:240Name of the location where the supplier ships the item. -
ShipToLocationCode: string
Title:
Ship-to Location CodeMaximum Length:60Abbreviation that identifies the location where the supplier ships the item. -
ShipToLocationId: integer
(int64)
Value that uniquely identifies the location where the supplier ships the shipment item.
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-
BillToBU: string
Title:
Bill-to BUMaximum Length:240Business unit that processes supplier invoices for the purchase document. -
BilltoBUId: integer
(int64)
Title:
Bill to BU IDValue that uniquely identifies the business unit that processes supplier invoices for the purchase order. -
BillToLocation: string
Title:
Bill-to LocationMaximum Length:240Value that identifies the bill-to location where the supplier sends the invoice. -
BillToLocationId: integer
(int64)
Value that uniquely identifies the bill-to location.
-
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the business unit access on the purchase agreement -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the buyer or the application created the business unit access for the purchase agreement. -
EnabledFlag: boolean
Maximum Length:
1Indicates whether the business unit assignment on the agreement is enabled. Values: true or false. No default. -
EntityChangeTypeCode: string
Maximum Length:
1Value that identifies if the row is new or changed. -
IsOrderLocallyReadOnlyFlag: boolean
Read Only:
trueMaximum Length:255Indicates whether the Order Locally setting for the client business unit is read-only. Values: true or false. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the buyer or application last updated the business unit access of a purchase agreement. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who last updated the business unit access of a purchase agreement. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OrderLocallyFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, then the client's order for items on the agreement should be routed to local supplier sites maintained by the client. If false, then the client's order for items on the agreement won't route to local supplier sites maintained by the client. This attribute doesn't have a default value. -
OrganizationAssignmentId: integer
(int64)
Value that uniquely identifies the business unit's access to a purchase agreement.
-
PurchasingSite: string
Title:
Purchasing SiteMaximum Length:240Name of the supplier site for the purchasing business unit. -
PurchasingSiteId: integer
(int64)
Value that uniquely identifies the supplier site for the purchasing operating unit.
-
RequisitioningBU: string
Title:
Requisitioning BUMaximum Length:240Business unit that creates the requisition. -
RequisitioningBUId: integer
(int64)
Value that uniquely identifies the business unit that requested the goods or services being purchased.
-
ShipToLocation: string
Title:
Ship-to LocationMaximum Length:240Name of the location where the supplier ships the item. -
ShipToLocationCode: string
Title:
Ship-to Location CodeMaximum Length:60Abbreviation that identifies the location where the supplier ships the item. -
ShipToLocationId: integer
(int64)
Value that uniquely identifies the location where the supplier ships the shipment item.
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.
Examples
This example describes how to create one one business unit access.
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/draftPurchaseAgreements/draftPurchaseAgreementsUniqID/child/businessUnitAccess"
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/draftPurchaseAgreements/300100650109829/child/businessUnitAccess"
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.
{
"RequisitioningBU": "Vision Project Mfg",
"PurchasingSite": "Philadelphia",
"ShipToLocation": "P2- Los Angeles",
"BillToBU": "Vision Project Mfg",
"BillToLocation": "PM- HQ Location (LA)",
"EnabledFlag": true
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"OrganizationAssignmentId": 300100650109829,
"RequisitioningBUId": 600,
"RequisitioningBU": "Vision Project Mfg",
"OrderLocallyFlag": false,
"PurchasingSiteId": 300100559967535,
"PurchasingSite": "Philadelphia",
"ShipToLocationId": 409,
"ShipToLocationCode": "P2- Los Angeles",
"ShipToLocation": "P2- Los Angeles",
"BilltoBUId": 600,
"BillToBU": "Vision Project Mfg",
"BillToLocationId": 412,
"BillToLocation": "PM- HQ Location (LA)",
"EnabledFlag": true,
"CreatedBy": "PRC_INTEGRATION_USER",
"CreationDate": "2026-04-27T04:51:58.679+00:00",
"LastUpdatedBy": "PRC_INTEGRATION_USER",
"LastUpdateDate": "2026-04-27T04:51:58.679+00:00",
"IsOrderLocallyReadOnlyFlag": true,
"EntityChangeTypeCode": null,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/draftPurchaseAgreements/300100650135628/child/businessUnitAccess/300100650109829",
"name": "businessUnitAccess",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/draftPurchaseAgreements/300100650135628/child/businessUnitAccess/300100650109829",
"name": "businessUnitAccess",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/draftPurchaseAgreements/300100650135628",
"name": "draftPurchaseAgreements",
"kind": "item"
}
]
}