INTERNAL_SERVER_ERROR: Error response after `sellingPlanGroupUpdate` request

Hello,
I have currently faced this issue when making sellingPlanGroupUpdate request and i really don’t know how to fix/debug this issue.

Information about this issue:

  • message: Internal error. Looks like something went wrong on our end.
  • requestId: a801a3c1-cc85-4e13-8c9a-1943cdea29d2-1765870324
  • code: INTERNAL_SERVER_ERROR

I need more details from this request, please let me know.
Thank you so much!

Hi @dantt1002 I looked into the request ID and found what’s causing this. You’re sending "pricingPolicies": [{"fixed": null}] in your mutation, which is tripping up the validation.

To remove pricing policies from a selling plan, pass an empty array instead:

"pricingPolicies": []

Since API version 2021-07, you need to provide the complete end state of all pricing policies when updating - so empty array means “no pricing policies.”

If you want to keep a pricing policy, you need the full structure with adjustmentType and adjustmentValue:

"pricingPolicies": [{
  "fixed": {
    "adjustmentType": "PERCENTAGE",
    "adjustmentValue": { "percentage": 10.0 }
  }
}]

The error message you’re getting isn’t great - it should be returning a validation error instead of INTERNAL_SERVER_ERROR. I’m raising this with the relevant team internally so the error handling can be improved.