Update Price Agreement Pricing Matrix Grid Data
patch
/rest/v16/pricingSetup/agreements/{agreementVarName}/matrixGrid
Use this endpoint to update pricing matrix grid data. The matrix input and output fields should be prefixed with the "_matrix_" string.
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : PricingJsonPatch
Type:
Show Source
object
-
operations:
array Patch Operations
Title:
Patch Operations
The array of Json Patch operations.
Nested Schema : Patch Operations
Type:
array
Title:
Patch Operations
The array of Json Patch operations.
Show Source
Nested Schema : PricingJsonPatchOperation
Type:
Show Source
object
-
op:
string()
Title:
Op
Allowed Values:[ "add", "remove", "replace" ]
The operation to be performed. -
path:
string()
Title:
Path
The JSON Pointer string for "path" property. -
value:
object Value
Title:
Value
The target value.
Nested Schema : Value
Type:
object
Title:
Value
The target value.
Response
Supported Media Types
- application/json
204 Response
Success
Examples
The following examples show how to update all pricing matrix grid data by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.
The matrix data input and output fields will be prefixed by the 'matrix' string in the response to distinguish from other charge or reference fields with the same name.
curl - X PATCH - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v16/pricingSetup/agreements/mbpAgreement/matrixGrid
Request Body Sample
[{ "op": "add", "path": "/", "value": { "id": -1, "partNumber": "part10", "description": "Part 10", "bomItemVariableName": "child", "rootBomItemVariableName": "parent", "bomItemName": "Child", "rootBomItemName": "Parent", "serviceDuration": 1, "serviceDurationPeriod": "months", "chargeType": "salesPrice", "priceType": "oneTime", "ratePlanName": "myRatePlan", "ratePlanNumber": "RP10234", "dynamicPricingType": "attributeBasedCharge", "chargeDefinitionCode": "ONE_TIME_SALES_PRICE", "chargeStartDate": "2024-11-08T00:0:00Z", "chargeEndDate": "2025-10-07T23:59:59Z", "dateAdded": "2023-11-08T05:42:17Z", "dateModified": "2023-11-08T05:42:17Z", "chargeAttrStr_c": "test", "chargeAttrInt_c": 11, "_matrix_str1": "testMatrix1", "_matrix_int1": 102, "_matrix_itemPrice": { "currency": "USD", "value": 20 } } }, { "op": "replace", "path": "/3453466", "value": { "_matrix_str1": "testMatrix1a", "_matrix_itemPrice": { "currency": "USD", "value": 21 } } } ]
Response Body Sample
{ [{ "_proxy_id": -1, "id": 456234 } ] }