Update a landed cost charge
/fscmRestApi/resources/11.13.18.05/invoicesForLandedCostCharges/{invoicesForLandedCostChargesUniqID}
Request
-
invoicesForLandedCostChargesUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Invoices for Landed Cost Charges resource and used to uniquely identify an instance of Invoices for Landed Cost Charges. The client should not generate the hash key value. Instead, the client should query on the Invoices for Landed Cost Charges collection resource in order to navigate to a specific instance of Invoices for Landed Cost Charges to get the hash key.
-
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.
- application/json
object-
ChargeBUId: integer
(int64)
Title:
Charge Business Unit ID -
ChargeId: integer
(int64)
Title:
Charge ID -
landedCostChargeReferencesForInvoiceLines: array
Charge References
Title:
Charge ReferencesThe Charge References resource manages the charge references on the charge used for an invoice association.
arrayCharge Referencesobject-
ChargeReferenceDataType: string
Title:
Reference Data TypeValue that defines the type of input data for charge reference. -
ChargeReferenceName: string
Title:
Charge Reference NameName of the charge reference type. -
ChargeReferenceTypeId: integer
(int64)
Title:
Charge Reference Type IDValue that uniquely identifies the type of charge reference. -
InvoiceChargeReferenceId: integer
(int64)
Title:
Invoice Charge Reference IDValue that uniquely identifies the invoice charge reference. -
ProcurementBUId: integer
(int64)
Title:
Procurement Business Unit IDValue that uniquely identifies the procurement business unit for a charge reference. -
ReferenceValueDate: string
(date-time)
Title:
Date ReferenceDate value of the charge reference. -
ReferenceValueNumber: number
Title:
Numeric ReferenceNumber that identifies the charge reference. -
ReferenceValueText: string
Title:
Alphanumeric ReferenceMaximum Length:64Text of the charge reference. -
UserComment: string
Title:
CommentsMaximum Length:240Comments added by the user for the charge reference.
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-
AssociationMode: string
Title:
Association ModeRead Only:trueMaximum Length:255 -
AssociationModeCode: number
Title:
Association Mode CodeRead Only:true -
AssociationStatus: string
Title:
Association StatusRead Only:trueMaximum Length:80 -
ChargeBU: string
Title:
Charge BURead Only:trueMaximum Length:240 -
ChargeBUId: integer
(int64)
Title:
Charge Business Unit ID -
ChargeCode: string
Title:
Charge CodeRead Only:trueMaximum Length:30 -
ChargeId: integer
(int64)
Title:
Charge ID -
ChargeName: string
Title:
Charge NameRead Only:trueMaximum Length:80 -
InvoiceAmount: number
Title:
AmountRead Only:true -
InvoiceCreationDate: string
(date-time)
Title:
Invoice DateRead Only:true -
InvoiceCurrency: string
Title:
Currency NameRead Only:trueMaximum Length:80 -
InvoiceCurrencyCode: string
Title:
Currency CodeRead Only:trueMaximum Length:15 -
InvoiceId: integer
(int64)
Title:
Invoice IDRead Only:true -
InvoiceLineNumber: string
Title:
Invoice Line NumberRead Only:trueMaximum Length:40 -
InvoiceLineType: string
Title:
Line TypeRead Only:trueMaximum Length:30 -
InvoiceNonrecoverableTaxAmount: number
Title:
Nonrecoverable TaxRead Only:true -
InvoiceNumber: string
Title:
Invoice NumberRead Only:trueMaximum Length:50 -
landedCostChargeReferencesForInvoiceLines: array
Charge References
Title:
Charge ReferencesThe Charge References resource manages the charge references on the charge used for an invoice association. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MissingChargeReferences: string
Title:
Show Only Invoices Missing Reference TypesRead Only:trueMaximum Length:255 -
ProcurementBU: string
Title:
Procurement BURead Only:trueMaximum Length:240 -
ProcurementBUId: integer
(int64)
Title:
Procurement Business Unit IDRead Only:true -
Supplier: string
Title:
SupplierRead Only:trueMaximum Length:360 -
SupplierId: integer
(int64)
Title:
Supplier IDRead Only:true -
SupplierSite: string
Title:
Supplier SiteRead Only:trueMaximum Length:240 -
SupplierSiteId: integer
(int64)
Title:
Supplier Site IDRead Only:true -
TradeOperationName: string
Title:
Trade Operation NameRead Only:trueMaximum Length:80 -
TradeOperationNumber: string
Title:
Trade Operation NumberRead Only:trueMaximum Length:40
arrayCharge ReferencesarrayLinksobject-
ChargeReferenceDataType: string
Title:
Reference Data TypeValue that defines the type of input data for charge reference. -
ChargeReferenceName: string
Title:
Charge Reference NameName of the charge reference type. -
ChargeReferencePredefined: string
Title:
PredefinedRead Only:trueMaximum Length:255Contains one of the following values: true or false. If true, then the reference type is predefined in the default charge references setup. If false, then the reference type isn't predefined. The default value is false. -
ChargeReferenceTypeId: integer
(int64)
Title:
Charge Reference Type IDValue that uniquely identifies the type of charge reference. -
ChargeReferenceValueDataType: string
Title:
Reference Data TypeRead Only:trueMaximum Length:80Value that identifies the type of input data for charge references. -
InvoiceChargeReferenceId: integer
(int64)
Title:
Invoice Charge Reference IDValue that uniquely identifies the invoice charge reference. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProcurementBU: string
Title:
Procurement BURead Only:trueMaximum Length:240Value that indicates the procurement business unit on the charge reference. -
ProcurementBUId: integer
(int64)
Title:
Procurement Business Unit IDValue that uniquely identifies the procurement business unit for a charge reference. -
ReferenceValueDate: string
(date-time)
Title:
Date ReferenceDate value of the charge reference. -
ReferenceValueNumber: number
Title:
Numeric ReferenceNumber that identifies the charge reference. -
ReferenceValueText: string
Title:
Alphanumeric ReferenceMaximum Length:64Text of the charge reference. -
UserComment: string
Title:
CommentsMaximum Length:240Comments added by the user for the charge reference.
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.
- landedCostChargeReferencesForInvoiceLines
-
Parameters:
- invoicesForLandedCostChargesUniqID:
$request.path.invoicesForLandedCostChargesUniqID
- invoicesForLandedCostChargesUniqID:
Examples
This example describes how to update a landed cost charge.
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/invoicesForLandedCostCharges/invoicesForLandedCostChargesUniqID"
Example 1 Request Body
The following example includes the contents of the request body in JSON format to patch an invoice to associate it with a charge (where an invoice has no charge but charge references exist). 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.
{
"ChargeName": "SS_Shipment
}
Example 1 Response Body
The following example includes the contents of the response body in JSON format where a charge (and default charge references, if any) gets patched to the invoice:
200 OK
{
"AssociationMode": null,
"AssociationModeCode": null,
"AssociationStatus": "Good match",
"ChargeName": "SS_Shipment",
"ChargeCode": "SS_Shipment",
"ChargeId": null,
"ChargeBU": "Vision Operations",
"ChargeBUId": null,
"MissingChargeReferences": "false",
"InvoiceNumber": "LCMINV_10151824454",
"InvoiceId": 300100175150435,
"InvoiceLineNumber": "1",
"InvoiceLineType": "ITEM",
"InvoiceAmount": 150,
"InvoiceNonrecoverableTaxAmount": 0,
"InvoiceCurrency": "US Dollar",
"InvoiceCurrencyCode": "USD",
"InvoiceCreationDate": "10/15/18",
"ProcurementBU": "Vision Operations",
"ProcurementBUId": 204,
"Supplier": "Advanced Network Devices",
"SupplierId": 21,
"SupplierSite": "FRESNO",
"SupplierSiteId": 1969,
"TradeOperationName": null,
"TradeOperationNumber": null,
...
}
Example 2 Request Body
The following example includes the contents of the request body in JSON format to patch an invoice with a charge (when you want to deassociate a charge from an invoice) 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.
{
"ChargeName": null
}
Example 2 Response Body
The following example includes the contents of the response body in JSON format where the charge (and its default charge references, if any) gets deleted. Note: Since a record is getting deleted, the self link of the invoice charge changes. To view the result, search with the invoice number using the finder and go to its self link.
200 OK
{
"AssociationMode": null,
"AssociationModeCode": null,
"AssociationStatus": "Good match",
"ChargeName": null,
"ChargeCode": null,
"ChargeId": null,
"ChargeBU": null,
"ChargeBUId": null,
"MissingChargeReferences": "false",
"InvoiceNumber": "LCMINV_10151824454",
"InvoiceId": 300100175150435,
"InvoiceLineNumber": "1",
"InvoiceLineType": "ITEM",
"InvoiceAmount": 150,
"InvoiceNonrecoverableTaxAmount": 0,
"InvoiceCurrency": "US Dollar",
"InvoiceCurrencyCode": "USD",
"InvoiceCreationDate": "10/15/18",
"ProcurementBU": "Vision Operations",
"ProcurementBUId": 204,
"Supplier": "PennyPack Systems",
"SupplierId": 21,
"SupplierSite": "FRESNO",
"SupplierSiteId": 1969,
"TradeOperationName": null,
"TradeOperationNumber": null,
...
}
Example 3 Request Body
The following example includes the contents of the request body in JSON format to patch an invoice with a charge when the invoice is already associated. 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.
{
"ChargeName": "SS_Shipment"
}
Example 3 Response Body
The following example includes the contents of the response body in JSON format where an error is thrown:
400 Bad Request This invoice is already associated with a charge. (CML-3720089)
Example 4 Request Body
The following example includes the contents of the request body in JSON format to patch a collection of invoices with charges. 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.
{
"ChargeName": "SS_Freight"
}
Example 4 Response Body
The following example includes the contents of the response body in JSON format:
{
"parts":[
{
"id": "part1",
"path": "https://servername/fscmRestApi/resources/version/invoicesForLandedCostCharges/00040000000EACED0005770800000000075BCD15000000033733370000000EACED0005770800000000075BCD150000000EACED0005770800000000000002E1",
"operation": "update",
"payload":{
"AssociationMode": null,
"AssociationModeCode": null,
"AssociationStatus": "New",
"ChargeName": "SS_Freight",
"ChargeCode": "SS_Freight",
"ChargeId": 1,
"ChargeBU": "Vision Operations",
"ChargeBUId": 204,
"MissingChargeReferences": "true",
"InvoiceNumber": "Bulk_Invoice",
"InvoiceId": 123456789,
"InvoiceLineNumber": "737",
"InvoiceLineType": "ITEM",
"InvoiceAmount": 30,
"InvoiceNonrecoverableTaxAmount": 0,
"InvoiceCurrency": "US Dollar",
"InvoiceCurrencyCode": "USD",
"InvoiceCreationDate": "2017-02-23T12:11:53+00:00",
"ProcurementBU": "Vision Operations",
"ProcurementBUId": 204,
"Supplier": "CV_SuppA01",
"SupplierId": 12,
"SupplierSite": "CVSuppA01Site01",
"SupplierSiteId": 2444,
"TradeOperationName": null,
"TradeOperationNumber": null,
"links":[{"rel": "self", "href": "https://servername/fscmRestApi/resources/version/invoicesForLandedCostCharges/00040000000EACED0005770800000000075BCD15000000033733370000000EACED0005770800000000075BCD150000000EACED0005770800000000000002E1",...]
}
},
{
"id": "part2",
"path": "https://servername/fscmRestApi/resources/version/invoicesForLandedCostCharges/00040000000EACED0005770800000000075BCD15000000033436300000000EACED0005770800000000075BCD150000000EACED0005770800000000000001CC",
"operation": "update",
"payload":{
"AssociationMode": null,
"AssociationModeCode": null,
"AssociationStatus": "New",
"ChargeName": "SS_Freight",
"ChargeCode": "SS_Freight",
"ChargeId": 1,
"ChargeBU": "Vision Operations",
"ChargeBUId": 204,
"MissingChargeReferences": "true",
"InvoiceNumber": "Bulk_Invoice",
"InvoiceId": 123456789,
"InvoiceLineNumber": "460",
"InvoiceLineType": "ITEM",
"InvoiceAmount": 30,
"InvoiceNonrecoverableTaxAmount": 0,
"InvoiceCurrency": "US Dollar",
"InvoiceCurrencyCode": "USD",
"InvoiceCreationDate": "2017-02-23T12:11:53+00:00",
"ProcurementBU": "Vision Operations",
"ProcurementBUId": 204,
"Supplier": "CV_SuppA01",
"SupplierId": 12,
"SupplierSite": "CVSuppA01Site01",
"SupplierSiteId": 2444,
"TradeOperationName": null,
"TradeOperationNumber": null,
"links":[{"rel": "self", "href": "https://servername/fscmRestApi/resources/version/invoicesForLandedCostCharges/00040000000EACED0005770800000000075BCD15000000033436300000000EACED0005770800000000075BCD150000000EACED0005770800000000000001CC",...]
}
}
}
}
]
}