Partner app installs
Partner app installs are the partner apps a merchant has connected to its Flint account. Use these routes as the merchant to see which apps can reach its data and to disconnect one. Both routes cover live and test mode, so they need a live API key: test keys get 403 FORBIDDEN with details[0].reason live_mode_required, and partner install tokens get 401 INVALID_CREDENTIAL with details[0].reason wrong_credential_type.
Building the app instead? The Partner app installs guide covers installing, the events your app receives when a merchant disconnects, and the app owner's install routes under Partner apps.
List installed apps#
GET /v1/partner-app-installs with developer.partner_apps.read lists the selected merchant's installs across all apps, including each install's environment grants. It includes revoked installs unless you filter them out, and never returns other merchants' installs, even for an app you own.
curl "https://api.withflintpay.com/v1/partner-app-installs?status=active" \
-H "Authorization: Bearer $FLINT_API_KEY"
Filter with partner_app_id, and with status (pending_exchange, active, revoked). Repeat status or separate values with commas to match more than one. A page_token only works with the filters it was issued for.
Each install has the app's partner_app_id and current partner_app_name, its status, and revoked_by (merchant or partner_app) when known. Each environment grant lists granted_permissions, the app's permissions it holds with their titles, descriptions, and scopes, and granted_scopes, the Flint API scopes the app can use in that mode.
Disconnect an app#
POST /v1/partner-app-installs/{partner_app_install_id}/revoke with developer.partner_apps.write disconnects the app. Flint revokes the install, its environment grants, refresh tokens, and linked API keys, and deletes its linked merchant webhook endpoints. The app's access tokens stop working and it stops receiving events for this merchant. The app is sent partner_app_install.revoked with revoked_by merchant.
curl -X POST https://api.withflintpay.com/v1/partner-app-installs/pinst_123/revoke \
-H "Authorization: Bearer $FLINT_API_KEY"
The response is PartnerAppInstallWithEndedAccess: the install's fields plus two required arrays:
| Field | Meaning |
|---|---|
revoked_api_key_ids | API keys this request revoked because they were linked to the install, with live keys first. [] when no keys ended. |
deleted_webhook_endpoint_ids | Linked webhook endpoints this request deleted or cut off from deliveries. Sandbox endpoints stop receiving events immediately and are normally deleted within seconds. [] when no endpoints ended. |
Each array has at most 50 IDs: an install has at most 25 active linked keys and 25 linked endpoints in each of its live and test environments. A new request to revoke an already revoked install returns the install with empty arrays. Replaying the same request with the same Idempotency-Key returns the recorded result, including its original arrays. Install reads, lists, and events don't include these arrays.
The app-owner install revoke and environment-grant revoke routes under /v1/partner-apps/{partner_app_id}/installs/{partner_app_install_id} return the same result. Revoking one grant ends only that environment's linked access, unless it was the last active grant and the install is revoked too.
An attempt to a webhook endpoint already in flight may still arrive. Unlinked keys and endpoints keep working and need separate revocation or deletion. Use the partner_app_install_id filters on API keys and webhook endpoints to see linked resources in each environment.
Another merchant's install returns 404 RESOURCE_NOT_FOUND. To reconnect, install the app again from the app's install link. Reinstalling doesn't restore revoked keys or deleted endpoints. What revoking an install ends covers all access and cleanup rules.
List installed partner apps#
/v1/partner-app-installsRequires scope developer.partner_apps.read or developer.partner_apps.write
Rate limit: read
Lists partner app installs on the authenticated merchant, across live and test mode. Requires a live API key. Default order: partner_app_install_id ascending; this key uniquely orders the results.
Query parameters
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.
partner_app_idstringFilter by app ID.
statusarray of enumFilter by install status. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
pending_exchangeactiverevoked
Response · 200
Partner app installs belonging to the authenticated merchant.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
created_atstringRequiredRFC3339 timestamp.
environment_grantsarray of objectinstalled_by_user_idstringmerchant_idstringRequiredID of the merchant this resource belongs to.
partner_app_idstringRequiredpartner_app_install_idstringRequiredUnique identifier for this partner app install, prefixed `pinst_`.
partner_app_namestringRequiredThe app’s current name.
revoked_atstringRFC3339 timestamp.
revoked_byenummerchantpartner_app
revoked_by_user_idstringstatusenumRequiredpending_exchangeactiverevoked
supported_actionsarray of enumRequiredLifecycle actions Flint accepts now. Revoke is accepted for pending and active installations and returns the current installation when it is already revoked.
revoke
updated_atstringRequiredRFC3339 timestamp.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/partner-app-installs \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Partner app installs belonging to the authenticated merchant.
{
"data": [
{
"created_at": "2026-03-18T20:05:00Z",
"environment_grants": [
{
"created_at": "2026-03-18T20:05:00Z",
"environment_grant_id": "egrt_01JQPARTNERGRANTTEST123456",
"granted_permissions": [
{
"description": "Read and update Flint orders for installed merchants.",
"permission_id": "manage_orders",
"required_scopes": [
"commerce.orders.read",
"commerce.orders.write"
],
"title": "Manage orders"
},
{
"description": "Read product, variant, bundle, and SKU lookup catalog records.",
"optional": true,
"permission_id": "read_catalog",
"required_scopes": [
"commerce.products.read",
"commerce.bundles.read",
"commerce.catalog.read"
],
"title": "Read catalog"
}
],
"granted_scopes": [
"commerce.orders.read",
"commerce.orders.write",
"commerce.products.read",
"commerce.bundles.read",
"commerce.catalog.read"
],
"mode": "test",
"sandbox_id": "test_01KEZF7C00EWKVN1WYFT3YJSS5",
"status": "active",
"supported_actions": [
"revoke"
],
"updated_at": "2026-03-18T20:05:00Z"
},
{
"created_at": "2026-03-18T20:06:00Z",
"environment_grant_id": "egrt_01KEZF7C00YSFNZQ5GTQT0EEQW",
"granted_permissions": [
{
"description": "Read and update Flint orders for installed merchants.",
"permission_id": "manage_orders",
"required_scopes": [
"commerce.orders.read",
"commerce.orders.write"
],
"title": "Manage orders"
},
{
"description": "Read product, variant, bundle, and SKU lookup catalog records.",
"optional": true,
"permission_id": "read_catalog",
"required_scopes": [
"commerce.products.read",
"commerce.bundles.read",
"commerce.catalog.read"
],
"title": "Read catalog"
}
],
"granted_scopes": [
"commerce.orders.read",
"commerce.orders.write",
"commerce.products.read",
"commerce.bundles.read",
"commerce.catalog.read"
],
"mode": "live",
"status": "active",
"supported_actions": [
"revoke"
],
"updated_at": "2026-03-18T20:06:00Z"
}
],
"installed_by_user_id": "usr_01KEZF7C00NQEV558W0ESKV30S",
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"partner_app_id": "papp_01KEZF7C00CRN13BTTQVZ1CEWS",
"partner_app_install_id": "pinst_01KEZF7C00V5TD9V9QS2PK2VEE",
"partner_app_name": "Acme Commerce Plugin",
"status": "active",
"supported_actions": [
"revoke"
],
"updated_at": "2026-03-18T20:06:00Z"
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6JY3QVFM8KDF0537N33SC"
}Remove connected partner app#
/v1/partner-app-installs/{partner_app_install_id}/revokeIdempotentRequires scope developer.partner_apps.write
Rate limit: sensitive_write
Disconnects a partner app from the authenticated merchant: revokes the install, its environment grants, its refresh tokens and linked API keys, and deletes linked webhook endpoints. The app is sent partner_app_install.revoked with revoked_by: merchant. A new request against an already revoked install returns empty ended-access arrays. Unlinked API keys and webhook endpoints keep working. To reconnect, install the app again.
Path parameters
partner_app_install_idstringRequiredFlint partner app install ID.
Response · 200
The revoked partner app install.
dataobjectRequiredThe connected app install and the linked API key and webhook endpoint IDs ended by this revoke request.
deleted_webhook_endpoint_idsarray of stringRequiredWebhook endpoints this request deleted because they were linked to this install. Sandbox endpoints stop receiving events immediately and are removed within seconds. Empty when no endpoints ended.
revoked_api_key_idsarray of stringRequiredAPI keys this request revoked because they were linked to this install, live keys first. Empty when no keys ended or a previous request already revoked them.
created_atstringRequiredRFC3339 timestamp.
environment_grantsarray of objectinstalled_by_user_idstringmerchant_idstringRequiredID of the merchant this resource belongs to.
partner_app_idstringRequiredpartner_app_install_idstringRequiredUnique identifier for this partner app install, prefixed `pinst_`.
partner_app_namestringRequiredThe app’s current name.
revoked_atstringRFC3339 timestamp.
revoked_byenummerchantpartner_app
revoked_by_user_idstringstatusenumRequiredpending_exchangeactiverevoked
supported_actionsarray of enumRequiredLifecycle actions Flint accepts now. Revoke is accepted for pending and active installations and returns the current installation when it is already revoked.
revoke
updated_atstringRequiredRFC3339 timestamp.
metaobjectResponse metadata, including the API version, trace ID, warnings, and whether this result was replayed, when present.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier of this API request, useful when contacting Flint support.
curl -X POST https://api.withflintpay.com/v1/partner-app-installs/pinst_01KEZF7C003HVKZR3GZAW6AFAZ/revoke \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Was this helpful?
