- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
action POST amend "Multi AmendRequest is not supported" error with single amendment
Attempting to send a single amendment via action POST amend and getting the error "Multi AmendRequest is not supported"
The payload: (ids redacted)
{ "requests": { "Amendments": [ { "DestinationAccountId":"......acct_id_a", "DestinationInvoiceOwnerId":".....acct_id_b", "SubscriptionId":".....sub_id", "ContractEffectiveDate":"2020-02-05", "CustomerAcceptanceDate":"2020-02-05", "ServiceActivationDate":"2020-02-05", "Status":"Completed", "Type":"OwnerTransfer" } ] } }
The response is:
{ "faultcode": "fns:INVALID_VALUE", "faultstring":"Multi AmendRequest is not supported.", "detail": { "UnexpectedErrorFault": { "FaultCode":"INVALID_VALUE", "FaultMessage":"Multi AmendRequest is not supported." } } }
It seems that error should only occur if I put multiple subscription amendments in one call, but it's returning for this single call.
Any ideas? Work-arounds?
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: action POST amend "Multi AmendRequest is not supported" error with single amendment
Until there's a fix for this (or better yet it gets rolled into the invoice REST endpoint) I've gone around the issue by using action update. It works fine that way.
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: action POST amend "Multi AmendRequest is not supported" error with single amendment
I found this post as I was having the same trouble. I eventually discovered that you seem to get that error message if the JSON is wrong.
In my case, I had somehow managed to omit {"requests: ...} around everything. In yours I would guess that the problem is that your requests is an objet, not an array, ie you have {"requests": {"Amendments"....}} instead of {"requests": {{"Amednment"...}]}.
It is a thoroughly confusing and unhelpful error.