Update Price Model Pricing Matrix Grid Data

patch

/rest/v16/pricingSetup/models/{modelVarName}/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
Path Parameters
Body ()
Root Schema : PricingJsonPatch
Type: object
Show Source
Nested Schema : Patch Operations
Type: array
Title: Patch Operations
The array of Json Patch operations.
Show Source
Nested Schema : PricingJsonPatchOperation
Type: object
Show Source
Nested Schema : Value
Type: object
Title: Value
The target value.
Back to Top

Response

Supported Media Types

204 Response

Success
Back to Top

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/models/mbpModel/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
    }
  ]
}
Back to Top