NEDApayDevelopersConnect API · v1
Build

Errors

Every error has the same shape: a stable code to act on, and a message for your logs.

Error shape
{ "error": { "code": "...", "message": "..." } }

Codes

CodeStatusWhat to do
INVALID_CREDENTIALS401Unknown or revoked key, or the signature does not match. Check the string you sign.
TIMESTAMP_OUT_OF_RANGE401Check your server clock.
INVALID_NONCE
NONCE_REUSED
401Use a fresh nonce for every request, including retries.
IP_NOT_ALLOWED403The call came from a server address that is not registered for you.
INVALID_SCOPE
INVALID_REDIRECT_URI

INVALID_STATE

INVALID_CODE_CHALLENGE
400Fix the link request.
INVALID_GRANT400The code or refresh token is wrong, expired or already used. Start a new link.
INVALID_TOKEN401Refresh the access token.
LINK_REMOVED
LINK_EXPIRED
401Show the account as not linked and offer to link again.
SCOPE_NOT_GRANTED403The user did not allow that data for this link.
LINK_PAUSED403The user's account is temporarily paused. Try again later.
BALANCE_UNAVAILABLE
HOLDINGS_UNAVAILABLE

UNAVAILABLE
503Try again shortly. Do not show a zero in the meantime.
RATE_LIMITED429Slow down and retry later.

After linking: what can change

Real users change things over time. Your app should handle each of these calmly.

You receiveIt meansShow the user
401 LINK_REMOVEDThe user removed your app in NEDApay, or closed their account.Not linked. Offer Link NEDApay again. Delete their tokens.
401 LINK_EXPIRED12 months have passed.Ask them to link again.
403 LINK_PAUSEDTheir NEDApay account is temporarily paused.Keep the last data, say it may be out of date, retry later.
403 SCOPE_NOT_GRANTEDYou asked for data this link does not include.Hide that section.
503 …_UNAVAILABLEThe data could not be read just now.Keep the last data. Never show zero.
400 INVALID_GRANT on refreshThe refresh token was used twice, so the link was ended for safety.Ask them to link again. Check that you store each new refresh token.