201Successful Response
Schema: SuccessEnvelope_WebhookEndpointCreateResponse_
successbooleanmessagestringcodestringdataWebhookEndpointCreateResponse
/api/v1/webhooks/o2cRegister a URL to receive O2C events. The response includes the plaintext secret exactly once — store it to verify the X-DayZero-Signature (HMAC-SHA256) header on delivered events.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: WebhookEndpointCreate
urlstringrequiredHTTPS URL to POST events to.
event_typesarray · stringrequiredEvent types to subscribe to (e.g. ['order.countersigned']).
secretstringOptional shared HMAC secret; auto-generated if omitted.
is_activebooleanWhether the endpoint is active.
Schema: SuccessEnvelope_WebhookEndpointCreateResponse_
successbooleanmessagestringcodestringdataWebhookEndpointCreateResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject