Webservice add entitlement operation

Hi all,

I am trying to configure to add an entitlement via a WebService connector. The problem is that when I try to pass the id in the body I get an error:

But if I try it from the ‘Postman’ with that same body I am able to add the entitlement to the account. The body is:

{
"profile: {entitlement id requested}
}

From IDNow I have tried several things but I think it should be something like this (although it doesn’t work):

image

Thanks.

Can you share the URL of the API endpoint you are using? My guess is that $plan.id$ is returning null, hence the error message. You can verify this by finding the request details in the ccg.log file on your VA. It should tell you what is in the request body.

Hello @apino ,
You should use $plan.nativeIdentity$ instead of $plan.id$.
Also, as you have put double-quotes around $plan.id$, you should ensure that the Web service is expecting a string and not an integer.

It really depends on which attribute you have chosen as the ID, the Web service, etc.

1 Like

Thank you very much for your answers, the body was correct, the problem was that the Get Object operation was not well defined.

2 posts were split to a new topic: Webservice connector: Add entitlement operation results in 400

A post was merged into an existing topic: Webservice connector: Add entitlement operation results in 400