Receipts API
Auto-generated from
openapi-snapshot.json. Do not edit by hand — changes are overwritten byscripts/docs/generate_api_reference.py.
5 endpoints in this group.
GET /api/receipts
List Receipts
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | optional | |
offset | query | integer | optional | |
category | query | — | optional |
Responses
| Code | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |
POST /api/receipts
Create Receipt
Request body: application/json
Responses
| Code | Description |
|---|---|
201 | Successful Response |
422 | Validation Error |
DELETE /api/receipts/{receipt_id}
Delete Receipt
Soft-delete: sets deleted_at so the row is hidden from list/get
but recoverable. Returns 204 on success, 404 if the receipt does not
exist or is not owned by the caller.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
receipt_id | path | integer | required |
Responses
| Code | Description |
|---|---|
204 | Successful Response |
422 | Validation Error |
GET /api/receipts/{receipt_id}
Get Receipt
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
receipt_id | path | integer | required |
Responses
| Code | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |
PATCH /api/receipts/{receipt_id}
Update Receipt
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
receipt_id | path | integer | required |
Request body: application/json
Responses
| Code | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |