Docs

The care list: rejected and dead-lettered invoices with the catalogue code and who acts

  • In the sandbox

In plain words

Lists the rejected and dead-lettered invoices, with the catalogue code and who acts.
GET
/care

Since 0.15.0 a client key with the read scope reads its own client's rows, so a business can see its own rejected invoices. A client key gets at most its newest 200 rows in the asked status, with truncated: true when there are more; since 0.18.2 the status is applied first, so an old open row is never hidden behind newer handled ones. It may list 30 times a minute (429 past that). The operator's key sees every client's rows, or one client's with client.

Authorization

apiKey
headerAuthorizationBearer <token>

Send your key as a bearer token: Authorization: Bearer <your-api-key>. Health is the only call that needs no key.

Query parameters

status?string

open (not yet handled), handled, or all. The default is all, as before 0.8.0.

Default"all"
Value in"open""handled""all"
client?string

The operator's filter to one client. A client key may name only its own client; any other answers 404. Another shape answers 400.

Match^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$

Response body

data: one row per invoice and code.

application/json
  1. response
data*array<>
truncated?boolean

Present and true when a client key's list was cut to its newest 200 rows, before the status filter.

curl -X GET "https://example.com/care" \  -H "Authorization: Bearer <your-api-key>"
{  "data": [    {      "invoice_id": "string",      "catalogue_code": "string",      "who_acts": "us",      "age_seconds": 0,      "handled": true,      "handled_at": "2019-08-24T14:15:22Z",      "route": "PEPPOL",      "client": "string",      "invoice_ref": "string",      "deadline_at": "2019-08-24T14:15:22Z",      "field": "string",      "fix_hint": "string"    }  ],  "truncated": true}