Skip to content

Formats and errors

Everyone receives the same fields in the same format. Column names and formats of your own, as in the file, no longer exist.

Subject Agreement
Connection HTTPS only.
Format JSON, UTF-8. Field names are English, in lower case with underscores.
Date YYYY-MM-DD, for example 2027-01-14
Date and time ISO 8601 in UTC, for example 2027-01-14T13:05:00Z
Amount Text with a dot and two decimals, in euros, for example "12.50"
Phone number International format (E.164), for example +31612345678. One field; there is no split into landline and mobile.
Country Two-letter ISO code, for example NL
Postcode Upper case without a space, for example 1234AB
Empty field null. A field is never missing from the record.
Codes Choice fields hold a fixed English code, not a description.

An error always has this shape. The code field is for your system, message for a person. Build on code, not on the text of message: that may change.

{
"success": false,
"code": "window_closed",
"message": "The change window for this pledge has closed.",
"errors": {}
}
HTTP status Meaning
200 Succeeded
401 Credentials are missing or invalid, or the token has expired. Fetch a new token.
403 Your rights do not allow this, or the request comes from an IP address that is not registered.
404 The record ID is unknown or is not yours. With GET also: the sign-up date is more than 13 months ago.
409 The report does not fit the state of the pledge; see code.
422 The content is not right; errors names per field what is wrong.
429 Too many requests in a short time. Wait and try again.
code Status Meaning What you do
window_closed 409 The pledge is already confirmed or cancelled; regret and changes (flow 2) are closed. Report a stop in flow 3. Other changes no longer need to be passed on.
already_no_show 409 The pledge was already no_show. Nothing: it has already lapsed.
already_cancelled 409 The donor had already stopped (cancelled). Nothing: reporting is done.
not_confirmed 409 The pledge is not confirmed (still pending, or no_show); flow 3 is not open. Report regret or a change in flow 2, or wait until day 9.
reporting_closed 409 More than 13 months have passed since the sign-up date; flow 3 is closed. Nothing: reporting is done.
updated_since_too_old 422 updated_since lies more than one month back. Choose a later moment.

If more than one code applies, you get the first one in this table: a donor who stopped, after 13 months, therefore gives already_cancelled.

More codes may be added. Treat an unknown code according to the HTTP status.

pace-api staging · a79cbe01e4c5