Update one distribution

patch

/fscmRestApi/resources/11.13.18.05/draftPurchaseOrders/{draftPurchaseOrdersUniqID}/child/lines/{POLineId}/child/schedules/{schedulesUniqID}/child/distributions/{distributionsUniqID}

Request

Path Parameters
  • Value that uniquely identifies the purchase order line.
  • This is the hash key of the attributes which make up the composite key for the Distributions resource and used to uniquely identify an instance of Distributions. The client should not generate the hash key value. Instead, the client should query on the Distributions collection resource in order to navigate to a specific instance of Distributions to get the hash key.
  • This is the hash key of the attributes which make up the composite key for the Draft Purchase Orders resource and used to uniquely identify an instance of Draft Purchase Orders. The client should not generate the hash key value. Instead, the client should query on the Draft Purchase Orders collection resource in order to navigate to a specific instance of Draft Purchase Orders to get the hash key.
  • This is the hash key of the attributes which make up the composite key for the Schedules resource and used to uniquely identify an instance of Schedules. The client should not generate the hash key value. Instead, the client should query on the Schedules collection resource in order to navigate to a specific instance of Schedules to get the hash key.
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.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Flexfields for Distributions
Type: array
Title: Flexfields for Distributions
The Flexfields for Distributions resource manages additional details about purchase order distributions.
Show Source
Nested Schema : US Federal Attributes for Distributions
Type: array
Title: US Federal Attributes for Distributions
The US Federal Attributes for Distributions resource manages federal financial attributes for purchase order distributions.
Show Source
  • Discriminator: __FLEX_Context
    Discriminator: { "propertyName":"__FLEX_Context", "mapping":{ "FVxUSPODistributions":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPoDistributionGdf_view_DraftRestPoDistributionGDFFVxUSPODistributionsVO-item-patch-request" } }
Nested Schema : Project Costing Flexfields for Distributions
Type: array
Title: Project Costing Flexfields for Distributions
The Project Costing Flexfields for Distributions resource manages project details about purchase order distributions.
Show Source
  • Discriminator: __FLEX_Context
    Discriminator: { "propertyName":"__FLEX_Context", "mapping":{ "AP_Distribution_Sets":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FDistribution__5FSetsVO-item-patch-request", "AP_Invoice_Distribution":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FInvoice__5FDistributionVO-item-patch-request", "AP_Invoice_Line":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FInvoice__5FLineVO-item-patch-request", "EXM_Expense_Report":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFEXM__5FExpense__5FReportVO-item-patch-request", "EXM_Expense_Report_Line":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFEXM__5FExpense__5FReport__5FLineVO-item-patch-request", "INV_Misc_Transactions":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFINV__5FMisc__5FTransactionsVO-item-patch-request", "OM_Sales_Order":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFOM__5FSales__5FOrderVO-item-patch-request", "PJC_All":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPJC__5FAllVO-item-patch-request", "PJC_Expenditure_Batch":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPJC__5FExpenditure__5FBatchVO-item-patch-request", "POR_Requisition":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPOR__5FRequisitionVO-item-patch-request", "POR_User_Preferences":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPOR__5FUser__5FPreferencesVO-item-patch-request", "PO_Purchase_Order":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrderVO-item-patch-request", "PO_Purchase_Order_Line":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrder__5FLineVO-item-patch-request", "PO_Purchase_Order_Schedule":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrder__5FScheduleVO-item-patch-request" } }
Nested Schema : draftPurchaseOrders-lines-schedules-distributions-DFF-item-patch-request
Type: object
Show Source
Nested Schema : Discriminator: __FLEX_Context
Type: object
Discriminator: __FLEX_Context

Discriminator Values

Match One Schema
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPoDistributionGdf_view_DraftRestPoDistributionGDFFVxUSPODistributionsVO-item-patch-request
Type: object
Show Source
Nested Schema : Discriminator: __FLEX_Context
Type: object
Discriminator: __FLEX_Context

Discriminator Values

Match One Schema
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FDistribution__5FSetsVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FInvoice__5FDistributionVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FInvoice__5FLineVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFEXM__5FExpense__5FReportVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFEXM__5FExpense__5FReport__5FLineVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFINV__5FMisc__5FTransactionsVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFOM__5FSales__5FOrderVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPJC__5FAllVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPJC__5FExpenditure__5FBatchVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPOR__5FRequisitionVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPOR__5FUser__5FPreferencesVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrderVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrder__5FLineVO-item-patch-request
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrder__5FScheduleVO-item-patch-request
Type: object
Show Source
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 : draftPurchaseOrders-lines-schedules-distributions-item-response
Type: object
Show Source
Nested Schema : Flexfields for Distributions
Type: array
Title: Flexfields for Distributions
The Flexfields for Distributions resource manages additional details about purchase order distributions.
Show Source
Nested Schema : US Federal Attributes for Distributions
Type: array
Title: US Federal Attributes for Distributions
The US Federal Attributes for Distributions resource manages federal financial attributes for purchase order distributions.
Show Source
  • Discriminator: __FLEX_Context
    Discriminator: { "propertyName":"__FLEX_Context", "mapping":{ "FVxUSPODistributions":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPoDistributionGdf_view_DraftRestPoDistributionGDFFVxUSPODistributionsVO-item-response" } }
Nested Schema : Project Costing Flexfields for Distributions
Type: array
Title: Project Costing Flexfields for Distributions
The Project Costing Flexfields for Distributions resource manages project details about purchase order distributions.
Show Source
  • Discriminator: __FLEX_Context
    Discriminator: { "propertyName":"__FLEX_Context", "mapping":{ "AP_Distribution_Sets":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FDistribution__5FSetsVO-item-response", "AP_Invoice_Distribution":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FInvoice__5FDistributionVO-item-response", "AP_Invoice_Line":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FInvoice__5FLineVO-item-response", "EXM_Expense_Report":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFEXM__5FExpense__5FReportVO-item-response", "EXM_Expense_Report_Line":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFEXM__5FExpense__5FReport__5FLineVO-item-response", "INV_Misc_Transactions":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFINV__5FMisc__5FTransactionsVO-item-response", "OM_Sales_Order":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFOM__5FSales__5FOrderVO-item-response", "PJC_All":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPJC__5FAllVO-item-response", "PJC_Expenditure_Batch":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPJC__5FExpenditure__5FBatchVO-item-response", "POR_Requisition":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPOR__5FRequisitionVO-item-response", "POR_User_Preferences":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPOR__5FUser__5FPreferencesVO-item-response", "PO_Purchase_Order":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrderVO-item-response", "PO_Purchase_Order_Line":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrder__5FLineVO-item-response", "PO_Purchase_Order_Schedule":"#/components/schemas/oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrder__5FScheduleVO-item-response" } }
Nested Schema : draftPurchaseOrders-lines-schedules-distributions-DFF-item-response
Type: object
Show Source
Nested Schema : Discriminator: __FLEX_Context
Type: object
Discriminator: __FLEX_Context

Discriminator Values

Match One Schema
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPoDistributionGdf_view_DraftRestPoDistributionGDFFVxUSPODistributionsVO-item-response
Type: object
Show Source
Nested Schema : Discriminator: __FLEX_Context
Type: object
Discriminator: __FLEX_Context

Discriminator Values

Match One Schema
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FDistribution__5FSetsVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FInvoice__5FDistributionVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFAP__5FInvoice__5FLineVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFEXM__5FExpense__5FReportVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFEXM__5FExpense__5FReport__5FLineVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFINV__5FMisc__5FTransactionsVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFOM__5FSales__5FOrderVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPJC__5FAllVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPJC__5FExpenditure__5FBatchVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPOR__5FRequisitionVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPOR__5FUser__5FPreferencesVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrderVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrder__5FLineVO-item-response
Type: object
Show Source
Nested Schema : oracle_apps_flex_prc_po_commonPo_draftRestPJCPODistribution_view_PJCDFFPO__5FPurchase__5FOrder__5FScheduleVO-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to update a distribution.

Example cURL Command

Use the following cURL command to submit a request on the REST resource.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/draftPurchaseOrdersUniqID/child/lines/POLineId/child/schedules/schedulesUniqID/child/distributions/distributionsUniqID"
Example Number Description
Example 1 Update an approved purchase order distribution.
Example 2 Update an approved purchase order distribution with destination charge account on an existing purchase order distribution that is associated with financial orchestration flow.
Example 3 Update an approved purchase order distribution with initiating party as buyer.
Example 4 Update an approved purchase order distribution with initiating party as requester.
Example 5 Update an approved purchase order distribution with initiating party as supplier.

Example 1 cURL Command

Use the following cURL command to submit a request on the REST resource.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/POHeaderId/child/lines/POLineId/child/schedules/LineLocationId/child/distributions/PODistributionId"

For example:

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/300100186256909/child/lines/300100186256910/child/schedules/300100186256911/child/distributions/300100186256912"

Example 1 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.

{
	"BudgetDate": "2019-06-01",
	"POChargeAccount": "0001-9201-0000-3130-000000-0000"
}

Example 1 Response Body

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

{
	"PODistributionId" : 300100186256912,
	"DistributionNumber" : 1,
	"POHeaderId" : 300100186256909,
	"OrderNumber" : "305",
	"POLineId" : 300100186256910,
	"LineNumber" : 1,
	"LineLocationId" : 300100186256911,
	"ScheduleNumber" : 1,
	"Quantity" : 10,
	"Amount" : null,
	"DeliverToLocationId" : 300100014484337,
	"DeliverToLocationCode" : "VC - Vision City",
	"DeliverToLocation" : "VC - Vision City",
	"POChargeAccountId" : 300100038885264,
	"POChargeAccount" : "0001-9201-0000-3130-000000-0000",
	"POAccrualAccountId" : null,
	"POAccrualAccount" : null,
	"POVarianceAccountId" : null,
	"POVarianceAccount" : null,
	"DestinationChargeAccountId" : null,
	"DestinationChargeAccount" : null,
	"DestinationVarianceAccountId" : null,
	"DestinationVarianceAccount" : null,
	"RecoverableInclusiveTax" : null,
	"RecoverableExclusiveTax" : null,
	"NonrecoverableInclusiveTax" : null,
	"NonrecoverableExclusiveTax" : null,
	"ConversionRate" : null,
	"ConversionRateDate" : null,
	"CurrencyCode" : "USD",
	"Currency" : "US Dollar",
	"UOMCode" : "Ea",
	"UOM" : "Each",
	"BudgetDate" : "2019-06-01",
	"ChangeAcceptedFlag" : null,
	"ChangeOrderAmountCancelled" : null,
	"ChangeOrderQuantityCancelled" : null,
	"DeliverToCustomerContactId" : null,
	"DeliverToCustomerContact" : null,
	"DeliverToCustomerId" : null,
	"DeliverToCustomer" : null,
	"DeliverToCustomerLocationId" : null,
	"RequesterId" : null,
	"Requester" : null,
	"DestinationSubinventory" : null,
	"FundsStatusCode" : null,
	"FundsStatus" : null,
	"ParentDistributionId" : null,
	"ParentDistributionNumber" : null,
	"ReasonForChange" : null,
	"RequisitionHeaderId" : null,
	"Requisition" : null,
	"RequisitionLineId" : null,
	"RequisitionLine" : null,
	"RequisitionDistributionId" : null,
	"RequisitionDistribution" : null,
	"CreationDate" : "2020-07-05T14:05:34.601+00:00",
	"CreatedBy" : "BUYER01",
	"LastUpdateDate" : "2020-07-05T14:08:09.075+00:00",
	"LastUpdatedBy" : "BUYER01",
	"links" : [ {
		"rel" : "self",
		"href" : "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/300100186256909/child/lines/300100186256910/child/schedules/300100186256911/child/distributions/300100186256912",
		"name" : "distributions",
		"kind" : "item",
		"properties" : {
			"changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
		}
	}, {
		"rel" : "canonical",
		"href" : "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/300100186256909/child/lines/300100186256910/child/schedules/300100186256911/child/distributions/300100186256912",
		"name" : "distributions",
		"kind" : "item"
	}, {
		"rel" : "parent",
		"href" : "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/300100186256909/child/lines/300100186256910/child/schedules/300100186256911",
		"name" : "schedules",
		"kind" : "item"
	}, {
		"rel" : "child",
		"href" : "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/300100186256909/child/lines/300100186256910/child/schedules/300100186256911/child/distributions/300100186256912/child/DFF",
		"name" : "DFF",
		"kind" : "collection"
	}, {
		"rel" : "child",
		"href" : "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/300100186256909/child/lines/300100186256910/child/schedules/300100186256911/child/distributions/300100186256912/child/projectDFF",
		"name" : "projectDFF",
		"kind" : "collection"
	} ]
}

Example 2 cURL Command

In this example, destination charge account on an existing purchase order distribution that is associated with financial orchestration flow is being updated using PATCH operation. Use the following cURL command to submit a request on the REST resource.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/300100188302713/child/lines/300100188302715/child/schedules/300100188302716/child/distributions/300100188302717/"

Example 2 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.

{
	"DestinationChargeAccount":"02-110-5220-0000-000" 
}

Example 2 Response Body

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

{
	"PODistributionId": 300100188302717,
	"DistributionNumber": 1,
	"POHeaderId": 300100188302713,
	"OrderNumber": "1005666",
	"POLineId": 300100188302715,
	"LineNumber": 1,
	"LineLocationId": 300100188302716,
	"ScheduleNumber": 1,
	"Quantity": 100,
	"Amount": null,
	"DeliverToLocationId": 300100016835011,
	"DeliverToLocationCode": "FOS VisOP Loc2",
	"DeliverToLocation": "FOS VisOP Loc2",
	"POChargeAccountId": null,
	"POChargeAccount": null,
	"POAccrualAccountId": null,
	"POAccrualAccount": null,
	"POVarianceAccountId": null,
	"POVarianceAccount": null,
	"DestinationChargeAccountId": 269728,
	"DestinationChargeAccount": "02-110-5220-0000-000",
	"DestinationVarianceAccountId": null,
	"DestinationVarianceAccount": null,
	"RecoverableInclusiveTax": null,
	"RecoverableExclusiveTax": null,
	"NonrecoverableInclusiveTax": null,
	"NonrecoverableExclusiveTax": null,
	"ConversionRate": null,
	"ConversionRateDate": null,
	"CurrencyCode": "USD",
	"Currency": "US Dollar",
	"UOMCode": "Ea",
	"UOM": "Each",
	"BudgetDate": null,
	"ChangeAcceptedFlag": null,
	"ChangeOrderAmountCancelled": null,
	"ChangeOrderQuantityCancelled": null,
	"DeliverToCustomerContactId": null,
	"DeliverToCustomerContact": null,
	"DeliverToCustomerId": null,
	"DeliverToCustomer": null,
	"DeliverToCustomerLocationId": null,
	"RequesterId": 300100178696487,
	"Requester": "SSPUSER06",
	"DestinationSubinventory": null,
	"FundsStatusCode": null,
	"FundsStatus": null,
	"ParentDistributionId": null,
	"ParentDistributionNumber": null,
	"ReasonForChange": null,
	"RequisitionHeaderId": null,
	"Requisition": null,
	"RequisitionLineId": null,
	"RequisitionLine": null,
	"RequisitionDistributionId": null,
	"RequisitionDistribution": null,
	"CreationDate": "2020-10-08T12:14:08.657+00:00",
	"CreatedBy": "BUYER01",
	"LastUpdateDate": "2020-10-08T12:17:12.072+00:00",
	"LastUpdatedBy": "BUYER01",
	"links": [
	{
		"rel": "self",
		"href": "BUYER01/draftPurchaseOrders/300100188302713/child/lines/300100188302715/child/schedules/300100188302716/child/distributions/300100188302717",
		"name": "distributions",
		"kind": "item",
		"properties": {
			"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
		}
	},
	{
		"rel": "canonical",
		"href": "BUYER01/draftPurchaseOrders/300100188302713/child/lines/300100188302715/child/schedules/300100188302716/child/distributions/300100188302717",
		"name": "distributions",
		"kind": "item"
	},
	{
		"rel": "parent",
		"href": "BUYER01/draftPurchaseOrders/300100188302713/child/lines/300100188302715/child/schedules/300100188302716",
		"name": "schedules",
		"kind": "item"
	},
	{
		"rel": "child",
		"href": "BUYER01/draftPurchaseOrders/300100188302713/child/lines/300100188302715/child/schedules/300100188302716/child/distributions/300100188302717/child/DFF",
		"name": "DFF",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "BUYER01/draftPurchaseOrders/300100188302713/child/lines/300100188302715/child/schedules/300100188302716/child/distributions/300100188302717/child/projectDFF",
		"name": "projectDFF",
		"kind": "collection"
	}
	]
}

Example 3 Request Body

The following example includes the contents of the request body in JSON format to update an approved purchase order line/schedule corresponding distribution. User should be able to update below attributes at distribution level as part of change order.

  • Charge account on goods/service line with destination type as expense
  • Budget date on purchase order with budgetary enabled
  • Quantity of a goods line
  • Amount of a service line

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.

{
	"Quantity": 5,
	"POChargeAccount": "01-404-7340-0000-000",
	"BudgetDate": "2030-06-19"
}

Example 3 Response Body

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

{
	"PODistributionId": 680836,
	"DistributionNumber": 1,
	"POHeaderId": 558688,
	"OrderNumber": "1006333",
	"POLineId": 702441,
	"LineNumber": 1,
	"LineLocationId": 638816,
	"ScheduleNumber": 1,
	"Quantity": 5,
	"Amount": null,
	"DeliverToLocationId": 207,
	"DeliverToLocationCode": "M1- Seattle Mfg",
	"DeliverToLocation": "M1- Seattle Mfg",
	"POChargeAccountId": 22621,
	"POChargeAccount": "01-404-7340-0000-000",
	"POAccrualAccountId": 12854,
	"POAccrualAccount": "01-000-2210-0000-000",
	"POVarianceAccountId": 165142,
	"POVarianceAccount": "00-000-1110-0000-000",
	"DestinationChargeAccountId": null,
	"DestinationChargeAccount": null,
	"DestinationVarianceAccountId": null,
	"DestinationVarianceAccount": null,
	"RecoverableInclusiveTax": 0,
	"RecoverableExclusiveTax": 0,
	"NonrecoverableInclusiveTax": 0,
	"NonrecoverableExclusiveTax": 0,
	"ConversionRate": null,
	"ConversionRateDate": null,
	"CurrencyCode": "USD",
	"Currency": "US Dollar",
	"UOMCode": "Ea",
	"UOM": "Each",
	"BudgetDate": "2030-06-19",
	"ChangeAcceptedFlag": null,
	"ChangeOrderAmountCancelled": null,
	"ChangeOrderQuantityCancelled": null,
	"DeliverToCustomerContactId": null,
	"DeliverToCustomerContact": null,
	"DeliverToCustomerId": null,
	"DeliverToCustomer": null,
	"DeliverToCustomerLocationId": null,
	"RequesterId": null,
	"Requester": null,
	"DestinationSubinventory": null,
	"FundsStatusCode": "NOT_APPLICABLE",
	"FundsStatus": "Not Applicable",
	"ParentDistributionId": null,
	"ParentDistributionNumber": null,
	"ReasonForChange": null,
	"RequisitionHeaderId": null,
	"Requisition": null,
	"RequisitionLineId": null,
	"RequisitionLine": null,
	"RequisitionDistributionId": null,
	"RequisitionDistribution": null,
	"CreationDate": "2020-10-15T08:29:45+00:00",
	"CreatedBy": "BUYER01",
	"LastUpdateDate": "2020-10-15T11:44:18.074+00:00",
	"LastUpdatedBy": "BUYER01",
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816/child/distributions/680836",
		"name": "distributions",
		"kind": "item",
		"properties": {
			"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378"
		}
	},
	{
		"rel": "canonical",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816/child/distributions/680836",
		"name": "distributions",
		"kind": "item"
	},
	{
		"rel": "parent",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816",
		"name": "schedules",
		"kind": "item"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816/child/distributions/680836/child/DFF",
		"name": "DFF",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816/child/distributions/680836/child/projectDFF",
		"name": "projectDFF",
		"kind": "collection"
	}
	]
}

Example 4 Request Body

The following example includes the contents of the request body in JSON format to update an approved purchase order line/schedule corresponding distribution. User should be able to update below attributes at distribution level as part of change order.

  • Charge account on goods or service line with destination type as expense
  • Quantity of a goods line
  • Amount of a service line

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.

{
	"Quantity": 5,
	"POChargeAccount": "01-404-7340-0000-000"
}

Example 4 Response Body

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

{
	"PODistributionId": 680836,
	"DistributionNumber": 1,
	"POHeaderId": 558688,
	"OrderNumber": "1006333",
	"POLineId": 702441,
	"LineNumber": 1,
	"LineLocationId": 638816,
	"ScheduleNumber": 1,
	"Quantity": 5,
	"Amount": null,
	"DeliverToLocationId": 207,
	"DeliverToLocationCode": "M1- Seattle Mfg",
	"DeliverToLocation": "M1- Seattle Mfg",
	"POChargeAccountId": 22621,
	"POChargeAccount": "01-404-7340-0000-000",
	"POAccrualAccountId": 12854,
	"POAccrualAccount": "01-000-2210-0000-000",
	"POVarianceAccountId": 165142,
	"POVarianceAccount": "00-000-1110-0000-000",
	"DestinationChargeAccountId": null,
	"DestinationChargeAccount": null,
	"DestinationVarianceAccountId": null,
	"DestinationVarianceAccount": null,
	"RecoverableInclusiveTax": 0,
	"RecoverableExclusiveTax": 0,
	"NonrecoverableInclusiveTax": 0,
	"NonrecoverableExclusiveTax": 0,
	"ConversionRate": null,
	"ConversionRateDate": null,
	"CurrencyCode": "USD",
	"Currency": "US Dollar",
	"UOMCode": "Ea",
	"UOM": "Each",
	"BudgetDate": null,
	"ChangeAcceptedFlag": null,
	"ChangeOrderAmountCancelled": null,
	"ChangeOrderQuantityCancelled": null,
	"DeliverToCustomerContactId": null,
	"DeliverToCustomerContact": null,
	"DeliverToCustomerId": null,
	"DeliverToCustomer": null,
	"DeliverToCustomerLocationId": null,
	"RequesterId": null,
	"Requester": null,
	"DestinationSubinventory": null,
	"FundsStatusCode": null,
	"FundsStatus": null,
	"ParentDistributionId": null,
	"ParentDistributionNumber": null,
	"ReasonForChange": null,
	"RequisitionHeaderId": null,
	"Requisition": null,
	"RequisitionLineId": null,
	"RequisitionLine": null,
	"RequisitionDistributionId": null,
	"RequisitionDistribution": null,
	"CreationDate": "2020-10-15T08:29:45+00:00",
	"CreatedBy": "BUYER01",
	"LastUpdateDate": "2020-10-15T11:44:18.074+00:00",
	"LastUpdatedBy": "BUYER01",
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816/child/distributions/680836",
		"name": "distributions",
		"kind": "item",
		"properties": {
			"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378"
		}
	},
	{
		"rel": "canonical",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816/child/distributions/680836",
		"name": "distributions",
		"kind": "item"
	},
	{
		"rel": "parent",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816",
		"name": "schedules",
		"kind": "item"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816/child/distributions/680836/child/DFF",
		"name": "DFF",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/draftPurchaseOrders/558688/child/lines/702441/child/schedules/638816/child/distributions/680836/child/projectDFF",
		"name": "projectDFF",
		"kind": "collection"
	}
	]
}

Example 5 Request Body

The following example includes the contents of the request body in JSON format to update an approved purchase order line/schedule corresponding distribution. User should be able to update below attributes at distribution level as part of change order. 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.

{
	"Quantity": 5,
	"POChargeAccount": "01-404-7340-0000-000",
	"BudgetDate": "2030-06-19"
}

Example 5 Response Body

REST API will throw an error that the supplier doesn't have permission to update header or distribution level attributes.

Back to Top