Problem creating a key vie REST Web API

Hi,I am attempting to configure a webhook that responds to a payment completion on our website and then fires off a generate key request to LimeLM via the web API.

I am doing this through a service that allows me to build the request through configuration (rather than through code). I have defined a POST request to the limelm.pkey.generate method and included the required parameters (api_key and version_id) and have added a header for ContentType of application/x-www-form-urlencoded.

While a key is generated, I don't get the key back in the response. It must be seeing something as it gets the variable structure right:

rsp:pkeys:pkey: null

Is there something else I should be adding to the request or headers to get the response back without a null value ?

many thanks,Ian

We can't reproduce this. Is your parser broken? Try outputting the raw data (JSON or XML) returned from the call.

Ok - thanks. I don't get any control over the how the response is parsed but I'll get in touch with the webhook support team to see what they suggest.

Just wanted to make sure there was nothing missing in the request.

Just to wrap this one up in case it helps someone else, it turned out that the parser required JSON format. I added the format=json parameter to the request and in a test I inspected a response packet and saw the JSON in the body. So LimeLM is working fine.

jsonLimeLMApi({"stat":"ok","pkeys":{"total":1,"pkey":[{"id":"1980338","key":"YQPN-YT3S-P7V5-XIFZ-4CN8-EZJP-CITA"}]}})

Unfortunately this still didn't work for me as the parser in question was expecting the reponse body to be enclosed in curly brackets, so i'll need to do the transaction with code.

Many thanks, that makes life easier. I missed that in the help files.