> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/marketing/partnerstack.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# PartnerStack (Partner key)

PartnerStack runs affiliate, referral and reseller programs. As a partner, read your partnerships, customers, transactions, rewards and payouts.

![PartnerStack (Partner key) logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0a4a80d0f1a1ce22d0c9bc63e84ab6481f74ac3c%2Fpartnerstack.png?alt=media)

|                    |                                                                                  |
| ------------------ | -------------------------------------------------------------------------------- |
| **Category**       | [Marketing](https://docs.fastn.ai/connectors/catalog/marketing.md)               |
| **Website**        | [partnerstack.com](https://partnerstack.com)                                     |
| **Authentication** | Access token                                                                     |
| **Slug**           | `partnerstack`                                                                   |
| **On fastn.ai**    | [Embed PartnerStack in your product](https://fastn.ai/integrations/partnerstack) |

## Setup

Your customers enter their access token for PartnerStack (Partner key) when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect PartnerStack (Partner key) from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **PartnerStack (Partner key)**.
2. Select **Connect** on the PartnerStack (Partner key) card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use PartnerStack (Partner key)'s actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Get Marketplace Program</td><td><code>getMarketplaceProgram</code></td><td>Retrieves a single PartnerStack marketplace program by its company key, including its categories, description, commission offers and promotions. Use the company key from a partnership returned by List Partnerships. Note that keys returned by List Marketplace Programs are not always resolvable here and can return a 404.</td></tr><tr><td>List Actions</td><td><code>listPartnerActions</code></td><td>Returns the actions you or your referred customers performed on a partner company's platform, such as a signup or a content submission, sorted by creation date with the most recent first. Each action carries its type, how many times it was performed, and the partnership and customer it belongs to. Results are cursor paginated.</td></tr><tr><td>List Customers</td><td><code>listCustomers</code></td><td>Returns the customers you referred to the companies you are partnered with, sorted by creation date with the most recent first. Each customer carries the referring partnership, the company, whether the customer has paid and any sub IDs used for tracking. Results are cursor paginated.</td></tr><tr><td>List Marketplace Programs</td><td><code>listMarketplacePrograms</code></td><td>Returns the partner programs listed on the PartnerStack marketplace that you can apply to join, sorted by creation date with the most recent first. Each program carries its categories, description, website, commission offers and available promotions. Results are cursor paginated.</td></tr><tr><td>List Partnerships</td><td><code>listPartnerships</code></td><td>Returns the partnerships between you and the companies whose programs you promote on PartnerStack, sorted by creation date with the most recent first. Each partnership carries the company, your status in its program, your referral link and your partner team. Results are cursor paginated.</td></tr><tr><td>List Payouts</td><td><code>listPayouts</code></td><td>Returns your payouts, the rewards that have been made payable to you, sorted by creation date with the most recent first. Each payout carries its amount in cents, currency, status, payment provider and withdrawal date. Results are cursor paginated.</td></tr><tr><td>List Rewards</td><td><code>listRewards</code></td><td>Returns the rewards you have earned from the companies you are partnered with, sorted by creation date with the most recent first. Each reward carries its amount in cents, reward and payment status, the source that generated it and the customer it relates to. Supports extensive filtering by company, group, customer, invoice, currency, status and free text keywords. Results are cursor paginated.</td></tr><tr><td>List Transactions</td><td><code>listTransactions</code></td><td>Returns the transactions recorded against the customers you referred, sorted by creation date with the most recent first. Each transaction carries its amount in cents, the currency, the originating customer and partnership, and the product it relates to. Results are cursor paginated.</td></tr></tbody></table>

## Events

Start a workflow when one of these happens, with an [app event trigger](https://docs.fastn.ai/build/integrations/triggers.md).

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Action Created</td><td><code>action.created</code></td><td>An action related to one of your partnerships with a vendor has been created. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, and select the Action event types.</td></tr><tr><td>Action Updated</td><td><code>action.updated</code></td><td>An action related to one of your partnerships with a vendor has been updated. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, and select the Action event types.</td></tr><tr><td>Customer Created</td><td><code>customer.created</code></td><td>A customer related to one of your partnerships with a vendor has been created. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, and select the Customer event types.</td></tr><tr><td>Customer Deleted</td><td><code>customer.deleted</code></td><td>A customer related to one of your partnerships with a vendor has been deleted. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, and select the Customer event types.</td></tr><tr><td>Customer Updated</td><td><code>customer.updated</code></td><td>A customer related to one of your partnerships with a vendor has been updated. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, and select the Customer event types.</td></tr><tr><td>Reward Created</td><td><code>reward.created</code></td><td>A reward has been generated for you by a vendor you are partnered with. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, and select the Reward event types.</td></tr><tr><td>Reward Updated</td><td><code>reward.updated</code></td><td>A reward of yours has been updated by a vendor you are partnered with, for example when it moves from pending to approved or paid. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, and select the Reward event types.</td></tr><tr><td>Test Event</td><td><code>test</code></td><td>The test event PartnerStack sends when you verify a postback endpoint. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, select the event types you want, save it, then use the send test event control. Postback registration is done in the PartnerStack UI only; the Partner API has no postback registration endpoint.</td></tr><tr><td>Transaction Created</td><td><code>transaction.created</code></td><td>A transaction related to one of your partnerships with a vendor has been created. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, and select the Transaction event types.</td></tr><tr><td>Transaction Updated</td><td><code>transaction.updated</code></td><td>A transaction related to one of your partnerships with a vendor has been updated. Setup: in your PartnerStack partner dashboard open https://dash.partnerstack.com/settings/postbacks (profile settings, then Postback), create a new postback, paste this Fastn trigger URL as the Endpoint URL, give the postback a Name, and select the Transaction event types.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/marketing/partnerstack.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
