API referenceWebhooks and events
Update a webhook endpoint
PATCH methodhttps://api.anyshop.io/v1/webhook_endpoints/{id}
Changes the address, the events or the description, or pauses and resumes the endpoint. A paused endpoint keeps its events and gets them when it resumes; enabling a disabled one starts it again.
Path parameters
idstring required
Body
application/json0 required, 4 optionalurlstring A public https addressUp to 2,048 charactersdescriptionstring For you, up to 200 charactersUp to 200 charactersevents"all" or array of enums "all" (now and later), or a list of event typesallorder.paidorder.fulfilledorder.refundeddispute.createdstock.lowlicense.activatedstatusenum Pause or resume; enable a disabled endpoint againenabledpaused
Headers
Idempotency-Keystring Up to 255 characters. A retry with the same key and request gets the first answer, without running twice (24 hours).
Returns
The webhook_endpoint object.
Errors
Status and error.type400invalid_requestThe request is not valid;error.paramnames the field401authenticationNo API key, or it is not valid403permissionThe key does not have the scope this needs, it is a test key where only a live key may act (the catalog), or the store is suspended (store_suspended)404not_foundNot found in the key's store and mode409conflictConflicts with the object's state (type conflict), or an Idempotency-Key reused for another request (type idempotency, code idempotency_key_reused)429rate_limitedToo many requests; see Retry-After