Spiris
Complete Spiris onboarding from your client backend.
Preview · What this means for your integration
Your customer selects the company in Spiris. Your backend sends the unused authorization code and callback URL, plus a PKCE verifier if used. Zwapgrid exchanges the code and manages token refresh.
First, complete the shared prerequisites and example setup.
What you need
Your own Spiris application and the scopes your integration needs. See the Spiris setup guide.
A Published Spiris System Setting containing that application's ID and secret, belonging to your Zwapgrid client.
Your exact backend callback registered for the application. Keep any guided callback you use; confirm the provider's registration limits or use a separate application.
Confirmation of whether your registered application uses PKCE, an OAuth check that links the authorization request to the code exchange. If it does, follow the PKCE instructions below.
OAuth scopes
Zwapgrid needs these scopes to access your customer's accounting data:
offline_access ea:api ea:sales ea:accounting ea:purchase1. Prepare the connection
Use the Consent created in the shared workflow. Make sure
systemsSettings.vismaeaccountingcontains your published setting ID.Start authorization at
https://identity.vismaonline.com/connect/authorizewithresponse_type=code, yourclient_id, exactredirect_uri, requiredscope, random expiring session/Consent-boundstateandprompt=select_accountfor deliberate company selection. Includeacr_values=service:44643EB1-3F76-4C1C-A672-402AE8085934to filter the selector to companies with access to the accounting product.Send the OAuth scopes above in the authorization request.
If your registered application uses PKCE, generate and retain a verifier on your backend, send its S256 challenge in the authorization request and include that original verifier when sending the code to Zwapgrid.
The customer signs in, deliberately selects the company and approves access. Validate callback state; retain the unused code without exchanging it.
Submit once within five minutes, with the exact redirect URI and matching verifier when PKCE was used. Zwapgrid exchanges the code and verifies company settings/product access before completing the connection.
See Spiris authentication for provider parameters and application requirements.
2. Send the request
The code and redirect URI are required, at most 2048 characters each. Use HTTPS (HTTP loopback is accepted locally), without fragments or user information. Do not send tokens or company/tenant/environment fields.
When authorization used PKCE, add codeVerifier inside credentials with the exact original verifier. It must contain 43–128 ASCII letters, digits or -._~. Omitted, null or empty means no PKCE verifier; whitespace-only values are invalid. Do not omit the verifier when authorization used PKCE. Other ERP sources do not accept this field.
For PKCE authorization, the complete body is:
Choose the body that matches your authorization, replace the placeholders and save it as a protected connection.json on your backend. Set the example variables, including a new UUID in CORRELATION_ID, then send the request once:
3. Check the result
Expect HTTP 201 with source: vismaeaccounting and state: completed. Optionally verify the connection. Zwapgrid owns refresh using the selected application.
Codes are single-use. A GET 404 does not mean the code is safe to reuse. If the company check fails after code exchange, or you cannot confirm the result, authorize again with a fresh code and a new PKCE verifier if used. Do not automatically repeat the connection request.
Last updated
Was this helpful?
