Skip to content
Docs

Registering a Moneybird OAuth 2.0 application

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Moneybird’s own documentation: Authentication and Introduction, and the RFC 8414 metadata at https://moneybird.com/.well-known/oauth-authorization-server. Retrieved 2026-07-03.

  1. Log in to your Moneybird account and open the application registration page at https://moneybird.com/user/applications/new. Registration is a one-time step per developer.
  2. Choose to register an external OAuth application (not a personal API token).
  3. Set the redirect URI to the callback URL shown on the connect form. The client_id and redirect_uri you send in the authorization request must exactly match the values registered here. For manual/desktop testing Moneybird also accepts the out-of-band URI urn:ietf:wg:oauth:2.0:oob, which displays the code in the browser instead of redirecting.
  4. Save the application and record the Client ID and Client Secret.
  5. Decide which scopes your integration needs from sales_invoices, documents, estimates, bank, time_entries, settings. Scopes are passed as the space-separated scope parameter on the authorization request (URL-encoded as %20, e.g. scope=estimates%20bank). If you omit scope entirely, Moneybird applies sales_invoices by default. Note: contacts are reachable with any one of sales_invoices, documents, estimates, bank or settings — but not with time_entries alone.
  6. Send the user to the authorization endpoint https://moneybird.com/oauth/authorize with response_type=code, your client_id, redirect_uri and scope. The metadata advertises PKCE with code_challenge_methods_supported: [S256]; you may add code_challenge/code_challenge_method=S256 (PKCE is optional — the prose guide does not require it).
  7. Exchange the returned authorization code at the token endpoint https://moneybird.com/oauth/token via POST with grant_type=authorization_code, client_id, client_secret, code and redirect_uri in the form body. The metadata also permits HTTP Basic (client_secret_basic) for the client credentials.
  8. Persist both the access_token and the refresh_token from the response (which also carries token_type=bearer, the granted scope, and created_at). Per the docs the access token does not currently expire (“As of now, this token does not expire, but we might change this in the future”), so there is no expires_in today; be ready to refresh (grant_type=refresh_token at the same token endpoint) if that changes.

Operational notes:

  • Every API request goes to https://moneybird.com/api/v2/:administration_id/:resource_path.:format, with the access token in Authorization: Bearer <token>. Fetch GET https://moneybird.com/api/v2/administrations.json first to discover the administration_id values the token can reach — this connection stores the chosen one as its Administration ID.
  • Tokens can be revoked at https://moneybird.com/oauth/revoke (revocation_endpoint in the metadata).
  • Requests are throttled per IP at 150 / 5 minutes (50 / 5 minutes for /reports/); a 429 response carries Retry-After, RateLimit-Remaining, RateLimit-Limit and RateLimit-Reset.
  • Use a free sandbox administration to test without a subscription.

Open Connections under Credentials, choose Moneybird, and pick Moneybird OAuth 2.0. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Moneybird in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.