Skip to main content
If you’re building a product or service that integrates with Stora on behalf of multiple operators, you’re building a partner integration. This guide covers how it works, what we expect, and how to get started.

Operator integrations vs partner integrations

There are two ways to connect to the Stora API:
Do not ask operators to share existing access tokens or Client Credentials. If you manage API access on behalf of a specific operator, use the managed-account flow to establish your own authorised connection and create credentials under it. For a partner product that operators connect independently, use Authorization Code.

How the partner programme works

1

Create a partner app

Use the Developer Portal to create a test partner application for your integration. Configure its redirect URIs, then copy the client ID and reveal the client secret. The secret can be revealed only once, so store it securely on your backend. See Partner app credentials.
2

Develop and test

Create a test operator and build your integration with the Authorization Code flow. For a pilot with a real operator, send a testing invitation, then complete OAuth consent separately.
3

Submit the application for review

Complete the partner approval checklist, then submit your application. Application review covers scopes, integration behavior, and data handling.
4

Configure the live application

Approval creates a separate live application, or updates its existing live counterpart. For the first live version, copy its client ID and reveal its secret once. Use the live credentials in production, not the test credentials.
5

Publish the marketplace listing

After the application is approved and live, create and submit a marketplace listing. Listing review is separate from application review. Application approval alone does not publish your integration on the marketplace.
After launch, we monitor usage and operator feedback. Use the application review process to publish changes from your test application to its live counterpart.

Partner app credentials

You create the test application yourself in the Developer Portal. Set its redirect URIs to the callback URLs your backend handles. For a distributed plugin, use your broker’s callback URL, not an individual plugin installation’s URL. The test application uses Authorization Code and has its own client ID and secret. You can reveal the secret once. Store it securely on your backend before leaving the credential view. Test access is limited to your company’s test operators and real operators that accept an application invitation. Approval publishes a separate live application with its own credentials and copies the approved redirect URIs. Use that application’s client ID and secret for production connections. The live secret also has a one-time reveal. Do not assume that approving a test app makes its existing credentials production credentials.

Invite a real operator to test

Your company’s test operators can use the test application automatically. Use an application invitation for a pilot with a real operator outside your developer company.
  1. In the Developer Portal, open My applications and select the test application.
  2. Open the Operators tab.
  3. Click Generate invitation link.
  4. Copy the link and share it privately with the operator’s staff member who can approve partner application testing.
  5. Ask that staff member to sign in to Stora, select the intended operator, and accept the invitation.
  6. Confirm that the operator appears under External operators.
  7. Send the operator through your app’s Authorization Code flow to grant API access.
Accepting a testing invitation approves the operator to test this app. It does not grant API access. OAuth consent is a separate step, and the staff member needs the relevant permissions for each step.
Real-operator testing uses real operator data. Agree on the pilot’s scope before you test writes or send notifications. The developer company has a configurable limit on invited operators. If acceptance fails because the limit is reached, contact Stora. Do not assume that each application has a separate quota. Use Regenerate link if you need to replace a shared link, or Revoke link to stop new acceptances. Both actions invalidate the old link. Operators who already accepted stay approved, and existing OAuth tokens are not revoked by changing the invitation link. End API access through the connection lifecycle. This invitation differs from connecting an account, which lets a developer manage credentials on an operator’s behalf. Do not use the managed-account flow as a substitute for a partner app’s OAuth flow.

Submit your application for review

  1. Open the test application under My applications.
  2. Check its name, description, logo, redirect URIs, and requested scopes.
  3. Set App URL, Privacy policy URL, and Terms of service URL. All three URLs are required for submission.
  4. Complete the partner approval checklist.
  5. Open Live app and click Submit for approval.
  6. Describe the app’s purpose, customer value, supported workflows, data storage and retention, and expected API traffic in the request form.
  7. Explain why the integration needs each requested scope.
  8. Provide a working test account URL, username, password, and testing instructions. Use integration-testing@stora.co for the test account email address.
  9. Submit the request.
The test account must let reviewers verify the integration. Instructions or a demonstration do not replace that account. Use the private review form to provide test access, not your published documentation or source repository. You cannot edit the application while its review is in progress. If the reviewer requests changes, open Live app and read Reviewer notes. Update the application, then click Edit and resubmit to update and submit the request again. After approval, configure your production backend with the live application’s credentials. Then submit the marketplace listing if you want marketplace distribution.

Publish application changes

Make changes on the test application, not its live counterpart.
  1. Edit the test application’s settings.
  2. Review the portal’s unpublished application changes.
  3. Click Request approval for changes.
  4. Update the review answers and scope justifications to describe the change.
  5. Submit the request and respond to any reviewer notes.
Saving the test application does not update the live application. Approval publishes the reviewed application settings to the live counterpart. This process covers application changes, not only additional scopes. If the change adds scopes, operators who are already connected must re-authorise your application. See Add scopes after launch. For listing copy, screenshots, categories, or setup links, use the separate listing update procedure.

Add scopes after launch

When a new feature needs scopes your live application doesn’t have, request them through review, then ask each connected operator to re-authorise.
1

Request the new scopes

Add the scopes to your test application and request approval for the changes. Explain why the new feature needs each scope.
2

Detect connections without the new scopes

Approval doesn’t change existing connections. Access tokens keep the scopes the operator granted, and refreshing a token doesn’t add new ones.Call GET /oauth2/token/info and compare the returned scopes with the scopes the feature needs. A request that needs a scope the token doesn’t have returns a 403 forbidden error.
3

Prompt the operator to re-authorise

Stora doesn’t notify operators when your application gains new scopes. Show a prompt in your app that explains what the new feature does and why it needs more access.When the operator accepts, run the Authorization Code flow again. Request every scope your integration needs in the scope parameter, not only the new ones. The consent screen lists all requested scopes, and the new token covers only what you request.
4

Replace the stored tokens

Store the new access and refresh tokens in place of the old ones. Re-authorising doesn’t revoke the previous tokens, so revoke them with POST /oauth2/revoke.
Until an operator re-authorises, keep the features that work with the existing scopes running. Hide or disable only the features that need the new scopes.

Technical requirements

These apply to all partner integrations. Meeting them is part of the review process.

Naming and presentation

Your integration must use a distinct product name and must not imply that Stora built, owns, operates, or endorses it. If you’re distributing a plugin, extension, or packaged integration, follow the third-party plugin naming rules before you publish.

Authentication

  • You must use the OAuth 2.0 Authorization Code flow. No other flow is accepted for partner integrations.
  • Handle token refresh correctly — access tokens expire after 2 hours.
  • Never ask operators to share or copy-paste credentials. Your integration should handle the OAuth flow end-to-end.
  • If you’re distributing your integration as code that runs outside infrastructure you control (WordPress plugin, browser extension, client-side app extension, packaged on-premise tool, etc.), follow the broker pattern — PKCE alone is not sufficient for multi-tenant distribution.

Identify the connected operator

Use GET /oauth2/token/info with the current access token to inspect the connected account and granted scopes. Your integration must display the returned operator.name in your app. A single Stora staff member can have access to multiple operators, so they need to know which operator account is connected. Use the returned scopes to check whether the current token includes the permissions your integration needs. If a newly added feature requires scopes that are missing, prompt the operator to re-authorise.
You can use this endpoint as the initial request to verify the connection.

Disconnect and reconnect

Your integration must expose operator-facing Disconnect and Reconnect actions in its UI. Operators expect to manage the connection from inside the product they installed.
  • Disconnect must call POST /oauth2/revoke with a valid token and your OAuth client credentials, then discard the locally stored tokens. Passing either the access token or the refresh token revokes the pair — one call is enough.
  • Reconnect is re-running the Authorization Code flow. Expose it in the UI even while the current tokens are still valid, so operators can re-grant expanded scopes or switch Stora accounts without uninstalling.
  • On uninstall or deprovisioning, your integration must automatically revoke tokens and discard local state. For distributed plugins, wire the same revoke-and-discard into the host’s uninstall hook. For hosted marketplace apps, use the platform’s deprovisioning webhook, such as Shopify’s app/uninstalled webhook. These hooks are best-effort; treat them as a hygiene layer on top of the explicit Disconnect action, not a replacement for it.
Operators may also terminate connections outside your integration. When your integration detects a refresh failure (a 400 or 401 from the token endpoint), surface a clear “reconnect” prompt to the operator. For plugin-distributed integrations, see Disconnecting and reconnecting in the broker guide for the broker-side responsibilities.

External Events

When your integration takes an action in Stora on behalf of an operator, it must be visible to them. You’re required to create Timeline Events for actions originating on your platform. For example:
  • “Unit locked via YourApp”
  • “Customer contacted via YourApp”
Use Timeline Sources and Templates to structure these events. Follow Record integration activity for a complete example. If you need custom Templates specific to your integration, we’ll review and create them during the onboarding process.

Rate limits

Standard rate limits apply (10 requests/second, 60 requests/minute) per operator, shared with their other API usage. Strategic partners may negotiate independent higher limits for operators using their integration. Your integration must implement backoff when receiving 429 responses — see rate limiting.

Idempotency

Use Idempotency-Key headers on all POST requests to prevent duplicate operations. See idempotent requests.

Error handling

Handle all documented error codes gracefully. Do not retry indefinitely on 4xx errors.

Metadata

Use the metadata field to store your own references on supported resources (contacts, orders, tasks, notes, webhook endpoints) rather than maintaining external mapping tables.

Webhooks

Use webhooks to react to Stora events rather than polling. This is more efficient, gives you real-time data, and respects rate limits.

Scope principles

We follow the principle of least privilege. Your production credentials will be scoped to only the permissions your integration needs — nothing more. During development, use test operators in the Developer Portal so you can explore freely. Test applications can only be used with your test operators or operators that accept an application invitation. At review time, we’ll agree on the minimum set of scopes for production. If you need additional scopes after launch (e.g. you’re adding a new feature), submit a request with justification. Operators who have already connected must re-authorise to grant the new scopes.

Get started

Ready to build a partner integration? Create a partner app in the Developer Portal, develop with test operators, review the partner approval checklist, then submit your application for review.