Webhook Authentication & response

I am using a webhook with on “Invoice Created” with POST method.
Sent to https://www.example.com/notification-invoice.php

The webhook is received OK

  1. How can i authenticate the webhook? (i,e, with a secret header hash, etc. Any simple example PHP code would be much appreciated)
  2. Is there a way of sending an “OK” response to the webhook, to let it know it was received OK?
    And if the response of the “OK” is not received, the webhook will periodically attempt to resend (for x amount of times, etc)
    OR does the webhook already check for a header response of 200? as this would be OK too. (i am just trying to plan for the even my servers do not respond)

Thanks
Jon

Hi,

  1. You can define a custom header to pass a secret value
  2. It isn’t currently supported but feel free to create an issue to request it
1 Like

WOW, thanks for the fast reply!

  1. i will test with the secret value.
  2. I think it would be useful to others too, so i will create an “issue”

Thank you again!

Added, i hope this is formatted OK

1 Like