Skip to main content
PUT
Caution – Setting email for consecutive failures after April 2026In Production, if your platform had VALID Hook objects before April 2, 2026, then Mangopay automatically populates the Email property with the previously used global address unless and until you set it proactively using this endpoint.If you send the Email on a POST or PUT request, other new Hooks created without the Email do not populate the Email automatically and do not emit alerts in case of consecutive failed notifications or if the Hook becomes INVALID.Platforms integrating after April 2, 2026 must proactively set the Email to receive alerts.Read more about this change

Path parameters

string
The unique identifier of the hook.

Body parameters

string
Max. length: 255 charactersThe URL to which the notification is sent.
string
Allowed values: DISABLED, ENABLEDWhether the hook is enabled or not.
string
Max. length: 255 charactersCustom data that you can add to this object.
string | null
Format: A valid email addressThe Email address to which alerts are sent in case of consecutive failed notification attempts.Caution: Mangopay may populate this property automatically if your platform had webhooks integrated in Production before April 2, 2026. If so, setting the Email on a single Hook stops this automatic population for any new Hooks you create - read more.For all platforms, if this property is returned null then no alerts are sent but the Hook still becomes INVALID after 100 consecutive failed notifications.

Responses

string
Max. length: 255 charactersThe URL to which the notification is sent.
string
Returned values: DISABLED, ENABLEDWhether the hook is enabled or not.
string
Returned values: VALID, INVALIDWhether the hook is valid or not. Once INVALID (following unsuccessful retries) the hook must be disabled and re-enabled.
string
Returned values: An EventType listed in the event types listThe type of the event.
string
Max length: 128 characters (see data formats for details)The unique identifier of the object.
string
Max. length: 255 charactersCustom data that you can add to this object.
Unix timestamp
The date and time at which the object was created.