{"openapi":"3.1.0","info":{"title":"POST /api/v1/webhooks/esign","version":"1.0.0","description":"E-signature provider webhook"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/webhooks/esign":{"post":{"tags":["orders-esign"],"summary":"E-signature provider webhook","description":"Inbound envelope-event receiver for the e-signature provider (DocuSign Connect). Deliveries are authenticated by HMAC-SHA256 signature over the raw body; unsigned or mis-signed deliveries get 403. Envelope `completed` marks the order signed; `declined` and `voided` are recorded. Redeliveries are idempotent.","operationId":"esign_webhook_api_v1_webhooks_esign_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ESignWebhookAck"}}}},"400":{"description":"Bad Request - Invalid input","content":{"application/json":{"example":{"detail":"Invalid request parameters"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"example":{"detail":"Not enough permissions"}}}}}}}},"components":{"schemas":{"ESignWebhookAck":{"properties":{"status":{"type":"string","title":"Status","description":"processed, duplicate, or ignored."},"envelope_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Envelope Id"}},"type":"object","required":["status"],"title":"ESignWebhookAck","description":"Acknowledgement returned to the e-signature provider's webhook."}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}