API reference
9 operations in ewaste. Raw spec: openapi.json.
GET
/api/v1/ewaste/dispositionsGET /api/ewaste/dispositions — the org-wide register, filterable for the accountant handoff.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
client_id | query | — | No | |
pathway | query | — | No | |
from | query | — | No | |
to | query | — | No | |
limit | query | — | No | |
cursor_disposed_at | query | — | No | Keyset cursor: the three fields of the last row on the previous page. Pass all three or none. |
cursor_created_at | query | — | No | |
cursor_id | query | — | No |
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
GET
/api/v1/ewaste/intakesGET /api/ewaste/intakes — newest receipt first, weights aggregated.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status | query | — | No | open | closed. |
client_id | query | — | No | |
limit | query | — | No | |
cursor_received_at | query | — | No | Keyset cursor: the last row's `received_at` and `id`, together. |
cursor_id | query | — | No |
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
POST
/api/v1/ewaste/intakesPOST /api/ewaste/intakes — instant-first (IF1/IF2).
Request body
CreateIntakeRequest
Responses
| Status | Description |
|---|---|
200 | |
404 | client, site, ticket or document not visible in scope |
409 | idempotency key reused or intake reference taken |
422 | line rejected |
Security: bearer
GET
/api/v1/ewaste/intakes/{id}GET /api/ewaste/intakes/{id}.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
| Status | Description |
|---|---|
200 | |
404 | intake not visible in scope |
Security: bearer
POST
/api/v1/ewaste/intakes/{id}/closePOST /api/ewaste/intakes/{id}/close — the balanced end of a receipt.
The body is optional. It may carry `version`, checked before the close writes, and an `idempotency_key`, so a retry after a lost response replays the stored result instead of colliding with the close it already made.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request body
CloseIntakeRequest
Responses
| Status | Description |
|---|---|
200 | |
404 | intake not visible in scope |
409 | weight remains, destruction pending, or already closed |
Security: bearer
POST
/api/v1/ewaste/intakes/{id}/dispositionsPOST /api/ewaste/intakes/{id}/dispositions — record a way out.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request body
RecordDispositionRequest
Responses
| Status | Description |
|---|---|
200 | |
404 | intake, line or document not visible in scope |
409 | destruction pending, weight overdraw, unit already disposed, or intake closed |
422 | unknown pathway or missing certificate/partner |
Security: bearer
POST
/api/v1/ewaste/intakes/{id}/eventsPOST /api/ewaste/intakes/{id}/events — store, move or handoff.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request body
RecordEventRequest
Responses
| Status | Description |
|---|---|
200 | |
404 | intake or its client not visible in scope |
409 | the intake is closed |
422 | unknown event kind or missing storage class |
Security: bearer
POST
/api/v1/ewaste/intakes/{id}/linesPOST /api/ewaste/intakes/{id}/lines — add one line while the intake is open.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request body
AddLineRequest
Responses
| Status | Description |
|---|---|
200 | |
404 | intake or its client not visible in scope |
409 | the intake is closed |
Security: bearer
POST
/api/v1/ewaste/intakes/{id}/lines/{line_id}/destructionPOST /api/ewaste/intakes/{id}/lines/{line_id}/destruction — record the destruction state of a data-bearing line.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | |
line_id | path | string | Yes |
Request body
SetDestructionRequest
Responses
| Status | Description |
|---|---|
200 | |
404 | intake, line or document not visible in scope |
409 | the intake is closed or the line is not data-bearing |
Security: bearer