Backend resource · STATIC DECLARATIONS
QRCode API reference · mansoq-razorpay
Static source contract for QRCode: 2 declared or inherited operation mappings, schema/field evidence and authorization/refusal references. Deployment and behavioral review remain explicit.
Static API contract — behavior review pending. Source baseline f6e9f05f76d4.
Enable JavaScript to inspect structured operation, parameter, schema and permission evidence. Download this reference and its evidence.
Declared route and availability
This resource is declared in mansoq-razorpay at /api/{installed_plugin_prefix}/qr_code/. 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.
Operation map
| Method | Path | Action | Evidence |
|---|---|---|---|
| POST | /api/{installed_plugin_prefix}/qr_code/ |
create | declared/inherited method |
| GET | /api/{installed_plugin_prefix}/qr_code/{pk}/ |
retrieve | declared/inherited method |
create · POST
POST /api/{installed_plugin_prefix}/qr_code/ — action create. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| deployment mount | installed_plugin_prefix | deployment-selected mount prefix | true |
body validation: CreateQRCodeRequest. Declared fields below; inherited fields are retained in the schema inventory.
| Field | Type | Required | Constraints |
|---|---|---|---|
| invoice_id | UUID4 | true | No extra constraint extracted |
| usage | QRCodeUsage | true | No extra constraint extracted |
| is_amount_fixed | bool | true | No extra constraint extracted |
| closes_at | datetime | None | false | No extra constraint extracted |
body validation 1: QRCode. Declared fields below; inherited fields are retained in the schema inventory.
| Field | Type | Required | Constraints |
|---|---|---|---|
| id | str | true | No extra constraint extracted |
| image_url | str | true | No extra constraint extracted |
| close_by | datetime | None | false | No extra constraint extracted |
| created_at | datetime | true | No extra constraint extracted |
| payment_amount | float | true | No extra constraint extracted |
| payments_amount_received | float | true | No extra constraint extracted |
| payments_count_received | int | true | No extra constraint extracted |
| status | QRCodeStatus | true | No extra constraint extracted |
decorator request: CreateQRCodeRequest. Declared fields below; inherited fields are retained in the schema inventory.
The declared field table is shown at its first occurrence in this reference; this operation links the same schema.
decorator responses: QRCode. Declared fields below; inherited fields are retained in the schema inventory.
The declared field table is shown at its first occurrence in this reference; this operation links the same schema.
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.
Class policy declarations: permission_classes: IsAuthenticated.
Explicit response statuses in observed code: status.HTTP_201_CREATED, status.HTTP_400_BAD_REQUEST. Other branches/framework exception handling may differ.
retrieve · GET
GET /api/{installed_plugin_prefix}/qr_code/{pk}/ — action retrieve. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| deployment mount | installed_plugin_prefix | deployment-selected mount prefix | true |
| path | pk | router lookup string; semantic ID validation requires handler/schema review | true |
body validation: QRCode. Declared fields below; inherited fields are retained in the schema inventory.
The declared field table is shown at its first occurrence in this reference; this operation links the same schema.
decorator responses: QRCode. Declared fields below; inherited fields are retained in the schema inventory.
The declared field table is shown at its first occurrence in this reference; this operation links the same schema.
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.
Class policy declarations: permission_classes: IsAuthenticated.
Explicit response statuses in observed code: status.HTTP_200_OK, status.HTTP_400_BAD_REQUEST. Other branches/framework exception handling may differ.
Integration review checklist
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.
Pinned source evidence
Links require access to the private source repository.
- repositories/teleicu/mansoq-razorpay/mansoq_razorpay/urls.py:13
- repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/qr_code.py:13
- repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/qr_code.py:42
- repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/serializers/qr_code.py:14
- repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/serializers/qr_code.py:48
- repositories/teleicu/mansoq-razorpay/mansoq_razorpay/api/viewsets/qr_code.py:23