SHOPAR FOR AGENTS · PUBLIC DOCSPartner SDKs: Agency and Product Discovery
Understand the ownership, setup, and data boundaries of Shopar's Agency and Product Discovery SDKs.
Last updated: 2026-10-08Available
Two separate SDK products
The Agency SDK provides Shopar email-code account signup/sign-in, link creation, and the creator's own share performance inside an agency's app. A new account is referred by that agency; the creator owns their links.
The Product Discovery SDK adds placement-based Shopar Product and Deal cards to apps bound to a Shopar account in App Studio. Consumers do not sign in to Shopar. Eligible activity follows Shopar's existing earnings rules and the bound Shopar account's existing referral policy.
Platforms and repositories
Android and iOS have separate public source repositories. Android: https://github.com/mobinova/shopar-android-sdk (Agency and Discovery Gradle modules). iOS: https://github.com/mobinova/shopar-ios-sdk (ShoparAgency and ShoparDiscovery Swift Package products). Both products can coexist in one host app. Check repository release status until a tagged SDK release and matching install instructions are available.
Setup order
- For Agency, create an Agency app property in the agency dashboard with its platform, app identifier, and store details; configure ShoparAgency with the generated `app_id`.
- For Discovery, create the app and at least one placement in App Studio first. Initialize with `app_id` and pass a placement belonging to that app as `placement_id`. Setup instructions must match the chosen platform, format, and tagged SDK version.
- There is no Web SDK in v1; Web is marked Coming soon. Native share-sheet handoff is the baseline and direct social publishing should not be assumed.
Security and data boundaries
Native SDKs run within the host app's security boundary. SDK APIs do not return PWT/refresh tokens; Agency session capabilities are enforced by the backend. Platform-protected storage alone does not isolate the SDK from malicious host code. Discovery is anonymous and never carries an Agency PWT.
Discovery's optional device details are off by default. When the host preference changes, call `ShoparDiscovery.setOptionalDeviceMetadataCollectionEnabled(enabled)` on Android or `ShoparDiscovery.setOptionalDeviceMetadataCollectionEnabled(_:)` on iOS. Disabling it omits model/OS/locale/timezone from future requests; the `dev_` installation ID stays stable and the SDK has no pending optional-data queue. Previously sent records follow existing retention rules. Rotate the installation identity only after an explicit user reset using Android `ShoparDiscovery.resetInstallationIdentity()` or iOS `ShoparDiscovery.resetInstallationIdentity()`; prior server events remain historical records.
There is no SDK-specific reward ledger or fixed visit payment. Shopar's existing qualification, allocation, reversal, and settlement rules apply. ClickHouse stores bounded traffic analytics projections only; redirects and financial facts remain in PostgreSQL and the existing earnings engine.
Agent-readable Markdown
---
title: "Partner SDKs: Agency and Product Discovery"
summary: "Understand the ownership, setup, and data boundaries of Shopar's Agency and Product Discovery SDKs."
canonical_url: https://shopar.app/agents/docs/en/partner-sdks/
status: available
audience: people,agents
language: English
last_updated: 2026-10-08
---
# Partner SDKs: Agency and Product Discovery
Understand the ownership, setup, and data boundaries of Shopar's Agency and Product Discovery SDKs.
## Two separate SDK products
The Agency SDK provides Shopar email-code account signup/sign-in, link creation, and the creator's own share performance inside an agency's app. A new account is referred by that agency; the creator owns their links.
The Product Discovery SDK adds placement-based Shopar Product and Deal cards to apps bound to a Shopar account in App Studio. Consumers do not sign in to Shopar. Eligible activity follows Shopar's existing earnings rules and the bound Shopar account's existing referral policy.
## Platforms and repositories
Android and iOS have separate public source repositories. Android: https://github.com/mobinova/shopar-android-sdk (Agency and Discovery Gradle modules). iOS: https://github.com/mobinova/shopar-ios-sdk (ShoparAgency and ShoparDiscovery Swift Package products). Both products can coexist in one host app. Check repository release status until a tagged SDK release and matching install instructions are available.
## Setup order
- For Agency, create an Agency app property in the agency dashboard with its platform, app identifier, and store details; configure ShoparAgency with the generated `app_id`.
- For Discovery, create the app and at least one placement in App Studio first. Initialize with `app_id` and pass a placement belonging to that app as `placement_id`. Setup instructions must match the chosen platform, format, and tagged SDK version.
- There is no Web SDK in v1; Web is marked Coming soon. Native share-sheet handoff is the baseline and direct social publishing should not be assumed.
## Security and data boundaries
Native SDKs run within the host app's security boundary. SDK APIs do not return PWT/refresh tokens; Agency session capabilities are enforced by the backend. Platform-protected storage alone does not isolate the SDK from malicious host code. Discovery is anonymous and never carries an Agency PWT.
Discovery's optional device details are off by default. When the host preference changes, call `ShoparDiscovery.setOptionalDeviceMetadataCollectionEnabled(enabled)` on Android or `ShoparDiscovery.setOptionalDeviceMetadataCollectionEnabled(_:)` on iOS. Disabling it omits model/OS/locale/timezone from future requests; the `dev_` installation ID stays stable and the SDK has no pending optional-data queue. Previously sent records follow existing retention rules. Rotate the installation identity only after an explicit user reset using Android `ShoparDiscovery.resetInstallationIdentity()` or iOS `ShoparDiscovery.resetInstallationIdentity()`; prior server events remain historical records.
There is no SDK-specific reward ledger or fixed visit payment. Shopar's existing qualification, allocation, reversal, and settlement rules apply. ClickHouse stores bounded traffic analytics projections only; redirects and financial facts remain in PostgreSQL and the existing earnings engine.