{"schemaVersion":"1.0","sourceCommit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca","sourceVisibility":"private","article":{"id":"api-mansoq-razorpay-webhookviewset-480c4de8","title":"Webhook API reference · mansoq-razorpay","summary":"Static source contract for Webhook: 2 declared or inherited operation mappings, schema/field evidence and authorization/refusal references. Deployment and behavioral review remain explicit.","module":"IT & integrations","roles":["IT administrator","Developer","Integration engineer"],"facilities":["All configured facility types"],"kind":"reference","minutes":3,"prerequisites":["Use the API contract from the installed deployment and an authorized synthetic test environment.","Confirm facility/organization scope, action permissions and optional app enablement.","This reference is static source evidence; complete payload, authorization, failure and end-to-end review remains recorded as pending."],"steps":[],"sections":[{"title":"Declared route and availability","body":"This resource is declared in **mansoq-razorpay** at `/api/{installed_plugin_prefix}/webhook/`. plugin/local mount; actual prefix and enablement require deployment verification A registered path and an indexed handler do not prove deployment availability, user permission or production readiness."},{"title":"Operation map","body":"| Method | Path | Action | Evidence |\n| --- | --- | --- | --- |\n| POST | `/api/{installed_plugin_prefix}/webhook/payment_link/` | payment_link | @action declaration |\n| POST | `/api/{installed_plugin_prefix}/webhook/qr_code/` | qr_code | @action declaration |"},{"title":"payment_link · POST","body":"**POST /api/{installed_plugin_prefix}/webhook/payment_link/** — action `payment_link`. static contract extracted; runtime/permission/payload behavior review pending.\n\nPath and deployment-context parameters:\n\n| Location | Parameter | Type | Required |\n| --- | --- | --- | --- |\n| deployment mount | installed_plugin_prefix | deployment-selected mount prefix | true |\n\nDirectly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):\n\n| Location | Field | Declared/inferred read type | Requiredness evidence |\n| --- | --- | --- | --- |\n| body | `event` | not declared at read site | not established |\n| body | `payload` | not declared at read site | not established |\n\n**Authorization:** no literal permission name was resolved in the bounded handler/helper traversal. Authentication, inherited policies, object/facility scoping and middleware still require review; this does not mean public access.\n\n**Class policy declarations:** permission_classes: AllowAny; authentication_classes: RazorpayWebhookAuthentication.\n\n**Explicit response statuses in observed code:** status.HTTP_200_OK, status.HTTP_400_BAD_REQUEST. Other branches/framework exception handling may differ."},{"title":"qr_code · POST","body":"**POST /api/{installed_plugin_prefix}/webhook/qr_code/** — action `qr_code`. static contract extracted; runtime/permission/payload behavior review pending.\n\nPath and deployment-context parameters:\n\n| Location | Parameter | Type | Required |\n| --- | --- | --- | --- |\n| deployment mount | installed_plugin_prefix | deployment-selected mount prefix | true |\n\nDirectly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):\n\n| Location | Field | Declared/inferred read type | Requiredness evidence |\n| --- | --- | --- | --- |\n| body | `event` | not declared at read site | not established |\n| body | `payload` | not declared at read site | not established |\n\n**Authorization:** no literal permission name was resolved in the bounded handler/helper traversal. Authentication, inherited policies, object/facility scoping and middleware still require review; this does not mean public access.\n\n**Class policy declarations:** permission_classes: AllowAny; authentication_classes: RazorpayWebhookAuthentication.\n\n**Explicit response statuses in observed code:** status.HTTP_200_OK, status.HTTP_400_BAD_REQUEST. Other branches/framework exception handling may differ."},{"title":"Integration review checklist","body":"Confirm the installed route and full schema; review authentication, organization/facility scoping, all accepted fields, value-state and date/time semantics, idempotency, pagination, response/exception branches and the allowed correction/reversal workflow. Test positive and negative cases with synthetic data. This source reference does not establish external certification or replace an illustrated user procedure."}],"troubleshooting":[{"problem":"A declared route is unavailable or a request is rejected","solution":"Compare the installed revision, actual API schema, optional plugin mount, HTTP-method restrictions and recorded validation/permission evidence. Do not bypass a refusal or send a production transaction to test documentation."}],"sources":[{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/urls.py","line":14,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":24,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":32,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":86,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}],"related":["it-api-contract","it-api-auth","security-rcm-roles"],"verification":"Static API contract — behavior review pending","version":"f6e9f05f76d4","apiReferenceIds":["backend-resource-7518ad60480c4de8","backend-resource-7518ad60480c4de8:POST:payment_link","backend-resource-7518ad60480c4de8:POST:qr_code"]},"backend":{"resources":[{"id":"backend-resource-7518ad60480c4de8","localPrefix":"webhook","viewset":"WebhookViewSet","classId":"repositories/teleicu/mansoq-razorpay:mansoq_razorpay.api.viewsets.webhook.WebhookViewSet","basename":"razorpay__webhook","source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/urls.py","line":14,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},"conditions":[],"repository":"repositories/teleicu/mansoq-razorpay","classSource":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":24,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},"description":"","path":"/api/{installed_plugin_prefix}/webhook/","mountStatus":"plugin/local mount; actual prefix and enablement require deployment verification","operationIds":["backend-resource-7518ad60480c4de8:POST:payment_link","backend-resource-7518ad60480c4de8:POST:qr_code"],"unresolvedViewset":false,"reviewStatus":"registered resource enumerated; behavioral review pending"}],"operations":[{"id":"backend-resource-7518ad60480c4de8:POST:payment_link","resourceId":"backend-resource-7518ad60480c4de8","repository":"repositories/teleicu/mansoq-razorpay","boundary":"optional-plugin/local-service","method":"POST","path":"/api/{installed_plugin_prefix}/webhook/payment_link/","declaredPattern":"/api/{installed_plugin_prefix}/webhook/payment_link/","action":"payment_link","viewset":"WebhookViewSet","classId":"repositories/teleicu/mansoq-razorpay:mansoq_razorpay.api.viewsets.webhook.WebhookViewSet","detail":false,"allowedByDeclaredHttpMethods":true,"mountStatus":"plugin/local mount; actual prefix and enablement require deployment verification","routeEvidence":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/urls.py","line":14,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},"handlerSource":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":32,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},"registrationConditions":[],"evidenceKind":"@action declaration","methodEvidenceIds":["repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py:32:payment_link"],"schemaIds":{},"classPermissionEvidence":[{"kind":"permission_classes","declaration":["AllowAny"],"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":26,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}},{"kind":"authentication_classes","declaration":["RazorpayWebhookAuthentication"],"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":25,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}}],"filterEvidence":[],"reviewStatus":"static contract extracted; runtime/permission/payload behavior review pending","pathParameters":[{"name":"installed_plugin_prefix","in":"deployment mount","type":"deployment-selected mount prefix","required":true,"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/urls.py","line":14,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}}]},{"id":"backend-resource-7518ad60480c4de8:POST:qr_code","resourceId":"backend-resource-7518ad60480c4de8","repository":"repositories/teleicu/mansoq-razorpay","boundary":"optional-plugin/local-service","method":"POST","path":"/api/{installed_plugin_prefix}/webhook/qr_code/","declaredPattern":"/api/{installed_plugin_prefix}/webhook/qr_code/","action":"qr_code","viewset":"WebhookViewSet","classId":"repositories/teleicu/mansoq-razorpay:mansoq_razorpay.api.viewsets.webhook.WebhookViewSet","detail":false,"allowedByDeclaredHttpMethods":true,"mountStatus":"plugin/local mount; actual prefix and enablement require deployment verification","routeEvidence":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/urls.py","line":14,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},"handlerSource":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":86,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},"registrationConditions":[],"evidenceKind":"@action declaration","methodEvidenceIds":["repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py:86:qr_code"],"schemaIds":{},"classPermissionEvidence":[{"kind":"permission_classes","declaration":["AllowAny"],"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":26,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}},{"kind":"authentication_classes","declaration":["RazorpayWebhookAuthentication"],"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":25,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}}],"filterEvidence":[],"reviewStatus":"static contract extracted; runtime/permission/payload behavior review pending","pathParameters":[{"name":"installed_plugin_prefix","in":"deployment mount","type":"deployment-selected mount prefix","required":true,"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/urls.py","line":14,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}}]}],"methodEvidence":[{"id":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py:32:payment_link","name":"payment_link","owner":"repositories/teleicu/mansoq-razorpay:mansoq_razorpay.api.viewsets.webhook.WebhookViewSet","summary":"","source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":32,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},"signatureParameters":[],"parametersRead":[{"name":"event","in":"body","type":"not declared at read site","required":"not established","readStyle":"get","dynamicName":false,"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":37,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}},{"name":"payload","in":"body","type":"not declared at read site","required":"not established","readStyle":"get","dynamicName":false,"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":40,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}}],"permissionChecks":[],"declaredErrors":[],"explicitResponseStatuses":[{"value":null,"symbol":"status.HTTP_200_OK","source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":80,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}},{"value":null,"symbol":"status.HTTP_400_BAD_REQUEST","source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":43,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}},{"value":null,"symbol":"status.HTTP_400_BAD_REQUEST","source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":53,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}}],"conditions":[],"schemaIds":[],"schemaUsages":[],"unconditionalRaise":false,"reviewStatus":"static declaration extracted; behavioral/security review pending"},{"id":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py:86:qr_code","name":"qr_code","owner":"repositories/teleicu/mansoq-razorpay:mansoq_razorpay.api.viewsets.webhook.WebhookViewSet","summary":"","source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":86,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"},"signatureParameters":[],"parametersRead":[{"name":"event","in":"body","type":"not declared at read site","required":"not established","readStyle":"get","dynamicName":false,"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":89,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}},{"name":"payload","in":"body","type":"not declared at read site","required":"not established","readStyle":"get","dynamicName":false,"source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":91,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}}],"permissionChecks":[],"declaredErrors":[],"explicitResponseStatuses":[{"value":null,"symbol":"status.HTTP_200_OK","source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":131,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}},{"value":null,"symbol":"status.HTTP_400_BAD_REQUEST","source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":94,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}},{"value":null,"symbol":"status.HTTP_400_BAD_REQUEST","source":{"path":"repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/webhook.py","line":104,"commit":"f6e9f05f76d443b26ebd2369f67d3c3bd52257ca"}}],"conditions":[],"schemaIds":[],"schemaUsages":[],"unconditionalRaise":false,"reviewStatus":"static declaration extracted; behavioral/security review pending"}],"schemas":[],"frameworkSettings":[]},"frontend":{"operations":[],"schemas":[]},"services":{"operations":[]},"boundaries":[]}