Skip to main content
Skip table of contents

DELETE Item Pricing

Using this service, you can delete Pricing records of an Item, Kit, Part or a Misc. charge using an API, so that you can delete those from external to R2 application.

DELETE

End Point: /items/{ID}/pricings

  • The POST/PUT/DELETE are having the endpoints in plural, to indicate the bulk operations.

  • Here id is the SKU/recordID of SKU

  • recordID is of the Pricing record, which was in the response of the GET List.

  • You can delete multiple pricing records.

 

Sample Request Payload:

Parameters can be Item SKU or recordid

DELETE /items/SKU12938/pricings

CODE
{
 "itempricing":
               [
                {
                 "recordid": "string",
                 "pricegroupid": "string",
                 "effectivedate": "MM/dd/yyyy HH:mm",
                 "unit": "Weekly",
                 "price": 0,
                 "minimumprice": 0,
                 "cost": 0,
                 "overheadcost": 0
                }
               ]
}

Sample Response Payload:

If there are any failures, system will respond with the list of errors alone.

If all are success. The HTTP response code will be 200 and there will not be any response payload

CODE
{
 "errors":
          [
           {
            "faultCode": 1187,
            "faultString": "Record 1 failed to process, since pricegroupid: Invalid pricing group id: 12"
           }
          ]
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.