What is the correct success response for webhooks

In the webhook docs (Webhooks – Developer Resources | ShipHero) you state that:

When we send the webhook we wait for a response

HEADERS: Content-Type:application/json
BODY:
{
  "code": "200",
  "Status": "Success"
}

The timeout for this response to get back is 5 seconds with 5 retries per trigger

But the examples later on in that page give expected responses like:

{
  "code": "200",
  "Message": "Success"
}

Furthermore, in my testing, you don’t seem to retry so long as you get an HTTP 200 status code in the response.

Can you tell me which is correct?

1 Like

Hi @steveday,
The code is the important marker. code 200 is success.

Hi @Theresa, thanks for the response to my question. Just to be totally clear - is that the code value inside the JSON response body, or the HTTP status code?

I was referring to the HTTP Status code

Thank you @Theresa, that’s great!

1 Like

This topic was automatically closed after 10 days. New replies are no longer allowed.