Documentation menu

API reference

9 operations in ewaste. Raw spec: openapi.json.

GET/api/v1/ewaste/dispositions

GET /api/ewaste/dispositions — the org-wide register, filterable for the accountant handoff.

Parameters

NameInTypeRequiredDescription
client_idquery—No
pathwayquery—No
fromquery—No
toquery—No
limitquery—No
cursor_disposed_atquery—NoKeyset cursor: the three fields of the last row on the previous page. Pass all three or none.
cursor_created_atquery—No
cursor_idquery—No

Responses

StatusDescription
200

Security: bearer

GET/api/v1/ewaste/intakes

GET /api/ewaste/intakes — newest receipt first, weights aggregated.

Parameters

NameInTypeRequiredDescription
statusquery—Noopen | closed.
client_idquery—No
limitquery—No
cursor_received_atquery—NoKeyset cursor: the last row's `received_at` and `id`, together.
cursor_idquery—No

Responses

StatusDescription
200

Security: bearer

POST/api/v1/ewaste/intakes

POST /api/ewaste/intakes — instant-first (IF1/IF2).

Request body

CreateIntakeRequest

Responses

StatusDescription
200
404client, site, ticket or document not visible in scope
409idempotency key reused or intake reference taken
422line rejected

Security: bearer

GET/api/v1/ewaste/intakes/{id}

GET /api/ewaste/intakes/{id}.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Responses

StatusDescription
200
404intake not visible in scope

Security: bearer

POST/api/v1/ewaste/intakes/{id}/close

POST /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

NameInTypeRequiredDescription
idpathstringYes

Request body

CloseIntakeRequest

Responses

StatusDescription
200
404intake not visible in scope
409weight remains, destruction pending, or already closed

Security: bearer

POST/api/v1/ewaste/intakes/{id}/dispositions

POST /api/ewaste/intakes/{id}/dispositions — record a way out.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Request body

RecordDispositionRequest

Responses

StatusDescription
200
404intake, line or document not visible in scope
409destruction pending, weight overdraw, unit already disposed, or intake closed
422unknown pathway or missing certificate/partner

Security: bearer

POST/api/v1/ewaste/intakes/{id}/events

POST /api/ewaste/intakes/{id}/events — store, move or handoff.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Request body

RecordEventRequest

Responses

StatusDescription
200
404intake or its client not visible in scope
409the intake is closed
422unknown event kind or missing storage class

Security: bearer

POST/api/v1/ewaste/intakes/{id}/lines

POST /api/ewaste/intakes/{id}/lines — add one line while the intake is open.

Parameters

NameInTypeRequiredDescription
idpathstringYes

Request body

AddLineRequest

Responses

StatusDescription
200
404intake or its client not visible in scope
409the intake is closed

Security: bearer

POST/api/v1/ewaste/intakes/{id}/lines/{line_id}/destruction

POST /api/ewaste/intakes/{id}/lines/{line_id}/destruction — record the destruction state of a data-bearing line.

Parameters

NameInTypeRequiredDescription
idpathstringYes
line_idpathstringYes

Request body

SetDestructionRequest

Responses

StatusDescription
200
404intake, line or document not visible in scope
409the intake is closed or the line is not data-bearing

Security: bearer