PartnerStack

App · 20 actions

Work with partner program applications, partnerships, leads, deals and transactions.

Actions

ActionWhat it does
Create a customerCreate a customer.
Create a partnershipCreate a partnership.
List all actionsList all actions.
List all customersList all customers.
List all dealsList all deals.
List all groupsList all groups.
List all leadsList all leads.
List all partnershipsList all partnerships.
List all rewardsList all rewards.
List all transactionsList all transactions.
List all webhooksList all webhooks.
List ApplicationsList Applications.
Retrieve a customerRetrieve a customer.
Retrieve a dealRetrieve a deal.
Retrieve a leadRetrieve a lead.
Retrieve a paginated list of productsRetrieve a paginated list of products.
Retrieve a partnershipRetrieve a partnership.
Retrieve a webhookRetrieve a webhook.
Retrieve all product books for the companyRetrieve all product books for the company.
Retrieve details of a ProductRetrieve details of a Product.

Create a customer

Create a customer.

Inputs

Customer keycustomer_keytextRequired
External customer key that can be configured on creation.
EmailemailtextRequired
The customers email, must be a valid email
Namenametext
Should be either the customer's name, or the company name
Provider keyprovider_keytext
A unique identifier given by a payment provider (Stripe, Recurly, Chargebee etc)
Partner keypartner_keytextRequired
The key of the partner that is responsible for the customer **(note: `partner_key` must belong to a partner in your program)**.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "created_at": 1,
      "customer_key": "example",
      "email": "example",
      "field_data": {},
      "fields": [
        {
          "api_name": {},
          "description": {},
          "external_type": {},
          "field_key": {},
          "help_text": {},
          "hidden": {},
          "internal_name": {},
          "name": {},
          "options": {},
          "placeholder_text": {},
          "position": {},
          "read_only": {},
          "required": {},
          "type": {},
          "value": {}
        }
      ],
      "key": "example",
      "mdata": {},
      "meta": {},
      "name": "example",
      "partner_key": "example",
      "partnership_key": "example",
      "provider_key": "example",
      "shared_id": "example",
      "source_key": "example",
      "source_type": "example",
      "submitted_by": "example",
      "submitted_by_email": "example",
      "submitted_by_photo_url": "example",
      "team": {
        "color": "example",
        "logo": "example",
        "member_count": 1,
        "name": "example"
      },
      "test": true,
      "updated_at": 1
    },
    "message": "example",
    "status": 1
  }
}

Create a partnership

Create a partnership.

Inputs

EmailemailtextRequired
The email of the partner.
First namefirst_nametext
The first name of the partner.
Last namelast_nametext
The last name of the partner.
Partner keypartner_keytext
The `partner_key` you wish to use for this partner. If included, **must** be unique to this partner. For more information on `partner_key` see PartnerStackJS. Note that the partner_key can only consist of letters, numbers, and underscores.
Group keygroup_keytext
The key of the group within PartnerStack that you want this partner to be placed into.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "claimed": true,
      "claimed_at": 1,
      "created_at": 1,
      "email": "example",
      "field_data": {},
      "fields": [
        {
          "api_name": {},
          "description": {},
          "external_type": {},
          "field_key": {},
          "help_text": {},
          "hidden": {},
          "internal_name": {},
          "name": {},
          "options": {},
          "placeholder_text": {},
          "position": {},
          "read_only": {},
          "required": {},
          "type": {},
          "value": {}
        }
      ],
      "first_name": "example",
      "fraud_flagged": true,
      "group": {
        "archived": true,
        "created_at": 1,
        "default": true,
        "features": {},
        "is_widget_group": true,
        "key": "example",
        "name": "example",
        "slug": "example",
        "updated_at": 1
      },
      "group_join_date": 1,
      "key": "example",
      "last_name": "example",
      "manager_email": "example",
      "manager_name": "example",
      "meta": {},
      "partner_key": "example",
      "program_join_date": 1,
      "tags": [
        "example"
      ],
      "tier": {
        "key": "example",
        "name": "example"
      },
      "updated_at": 1
    },
    "message": "example",
    "status": 1
  }
}

List all actions

List all actions.

Inputs

Partnership keypartnership_keytext
Partnership key in which the results are filtered by.
Customer keycustomer_keytext
Customer key in which the results are filtered by
Order byorder_bytext
The field in which the results are ordered by. A `-` prefix denotes that the results are in descending order.One of: -created_at (-created at), created_at (Created at), -updated_at (-updated at), updated_at (Updated at).
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "archived": {},
          "company": {},
          "created_at": {},
          "customer": {},
          "key": {},
          "partnership_key": {},
          "type": {},
          "updated_at": {},
          "value": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

List all customers

List all customers.

Inputs

Partner keypartner_keytext
Will filter to a specific partnership's `partner_key`, which can be found using the partnership's get endpoint or from the partnership view in your PartnerStack dashboard. Please provide either the partner_key or partnership_key if you would like to filter by partnership.
Partnership keypartnership_keytext
Partnership key in which the results are filtered by. Please provide either the partner_key or partnership_key if you would like to filter by partnership.
Groupgrouptext
Will filter for partnerships who are in a group with the specified name. Name must have spaces and special characters removed.
Customer keycustomer_keylist
Customer keys in which the results are filtered by
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "created_at": {},
          "customer_key": {},
          "email": {},
          "field_data": {},
          "fields": {},
          "key": {},
          "mdata": {},
          "meta": {},
          "name": {},
          "partner_key": {},
          "partnership_key": {},
          "provider_key": {},
          "shared_id": {},
          "source_key": {},
          "source_type": {},
          "submitted_by": {},
          "submitted_by_email": {},
          "submitted_by_photo_url": {},
          "team": {},
          "test": {},
          "updated_at": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

List all deals

List all deals.

Inputs

Groupgrouptext
Will filter for partnerships who are in a group with the specified name. Name must have spaces and special characters removed.
Partner keypartner_keytext
Will filter to a specific partnership's `partner_key`, which can be found using the partnership's get endpoint or from the partnership view in your PartnerStack dashboard.
Customer keycustomer_keylist
Customer keys in which the results are filtered by
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "account_name": {},
          "amount": {},
          "close_date": {},
          "contact_first_name": {},
          "contact_last_name": {},
          "created_at": {},
          "customer_key": {},
          "external_key": {},
          "field_data": {},
          "fields": {},
          "group_key": {},
          "key": {},
          "lost_reason": {},
          "meta": {},
          "mold_key": {},
          "partner_key": {},
          "source": {},
          "stage": {},
          "team": {},
          "team_member": {},
          "updated_at": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

List all groups

List all groups.

Inputs

Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "archived": {},
          "created_at": {},
          "default": {},
          "features": {},
          "is_widget_group": {},
          "key": {},
          "name": {},
          "slug": {},
          "updated_at": {}
        }
      ]
    },
    "message": "example",
    "status": 1
  }
}

List all leads

List all leads.

Inputs

Groupgrouptext
Will filter for partnerships who are in a group with the specified name. Name must have spaces and special characters removed.
Partner keypartner_keytext
Will filter to a specific partnership's `partner_key`, which can be found using the partnership's get endpoint or from the partnership view in your PartnerStack dashboard.
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "amount": {},
          "approved": {},
          "created_at": {},
          "customer_key": {},
          "external_key": {},
          "field_data": {},
          "fields": {},
          "group_key": {},
          "key": {},
          "meta": {},
          "mold_key": {},
          "partner_key": {},
          "stage_data": {},
          "status": {},
          "team": {},
          "team_member": {},
          "updated_at": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

List all partnerships

List all partnerships.

Inputs

Groupgrouptext
Will filter for partnerships who are in a group with the specified name. Name must have spaces and special characters removed.
Order byorder_bytext
The field in which the results are ordered by. A `-` prefix denotes that the results are in descending order.One of: -created_at (-created at), created_at (Created at), -updated_at (-updated at), updated_at (Updated at).
Emailemailtext
The email of the user with the partnership you're looking for.
Partnership keypartnership_keytext
Partnership key in which the results are filtered by.
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "address": {},
          "approved_status": {},
          "claimed": {},
          "created_at": {},
          "email": {},
          "first_name": {},
          "fraud_flagged": {},
          "group": {},
          "group_join_date": {},
          "is_archived": {},
          "joined_at": {},
          "key": {},
          "last_name": {},
          "manager": {},
          "mdata": {},
          "parent_partnership_key": {},
          "partner_key": {},
          "partnership_source": {},
          "program_join_date": {},
          "stats": {},
          "tags": {},
          "team": {},
          "updated_at": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

List all rewards

List all rewards.

Inputs

Partnership keypartnership_keytext
Partnership key in which the results are filtered by.
Order byorder_bytext
The field in which the results are ordered by. A `-` prefix denotes that the results are in descending order.One of: -created_at (-created at), created_at (Created at), -amount, amount, -ready_at (-ready at), ready_at (Ready at).
Group keygroup_keytext
Group key in which the results are filtered by
Customer keycustomer_keytext
PartnerStack internal customer key (`cus_*`) in which the results are filtered by
Customer external keycustomer_external_keytext
Customer external key in which the results are filtered by
Statusstatustext
The status of the rewards
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "action": {},
          "amount": {},
          "created_at": {},
          "created_by": {},
          "created_by_name": {},
          "creation_source": {},
          "currency": {},
          "customer": {},
          "decline_reason": {},
          "description": {},
          "drip": {},
          "invoice": {},
          "key": {},
          "line": {},
          "offer": {},
          "partnership": {},
          "reward_status": {},
          "transaction": {},
          "trigger": {},
          "updated_at": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

List all transactions

List all transactions.

Inputs

Customer keycustomer_keytext
Key of customer who made the transaction.
Customer external keycustomer_external_keytext
An external key that can be used to reference the customer. This is the same as the `customer_key` value used when creating the customer with PartnerStackJS.
Customer emailcustomer_emailtext
Customer's email address.
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "amount": {},
          "amount_usd": {},
          "approved": {},
          "archived": {},
          "category_key": {},
          "created_at": {},
          "currency": {},
          "customer": {},
          "customer_key": {},
          "extension": {},
          "key": {},
          "metadata": {},
          "product_key": {},
          "test": {},
          "updated_at": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

List all webhooks

List all webhooks.

Inputs

Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "created_at": {},
          "events": {},
          "key": {},
          "target_url": {},
          "updated_at": {}
        }
      ]
    },
    "message": "example",
    "status": 1
  }
}

List Applications

List Applications.

Inputs

Statusstatustext
Comma-separated list of statuses to filter by. Accepted values: `pending`, `approved`, `declined`, `flagged`. `flagged` matches applications from partnerships flagged for fraudulent activity and may be combined with other values (e.g. `pending,flagged`). Omit to return applications of all statuses.
Emailemailtext
Filter by applicant email address (case-insensitive, substring match).
Group keygroup_keylist
Group keys in which the results are filtered by
Order byorder_bytext
Field to sort results by. A leading `-` denotes descending order. Defaults to `-created_at`.One of: -created_at (-created at), created_at (Created at).
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "actioned_by": {},
          "approved": {},
          "content": {},
          "created_at": {},
          "decline_reason": {},
          "flagged": {},
          "group_name": {},
          "key": {},
          "partnership_source": {},
          "team_color": {},
          "team_key": {},
          "team_logo": {},
          "team_name": {},
          "updated_at": {},
          "with_profile": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

Retrieve a customer

Retrieve a customer.

Inputs

Customer keycustomer_keytextRequired
Unique identifier for customers. This is the same as the `customer_key` that can be assigned using PartnerStackJS.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "created_at": 1,
      "customer_key": "example",
      "email": "example",
      "field_data": {},
      "fields": [
        {
          "api_name": {},
          "description": {},
          "external_type": {},
          "field_key": {},
          "help_text": {},
          "hidden": {},
          "internal_name": {},
          "name": {},
          "options": {},
          "placeholder_text": {},
          "position": {},
          "read_only": {},
          "required": {},
          "type": {},
          "value": {}
        }
      ],
      "key": "example",
      "mdata": {},
      "meta": {},
      "name": "example",
      "partner_key": "example",
      "partnership_key": "example",
      "provider_key": "example",
      "shared_id": "example",
      "source_key": "example",
      "source_type": "example",
      "submitted_by": "example",
      "submitted_by_email": "example",
      "submitted_by_photo_url": "example",
      "team": {
        "color": "example",
        "logo": "example",
        "member_count": 1,
        "name": "example"
      },
      "test": true,
      "updated_at": 1
    },
    "message": "example",
    "status": 1
  }
}

Retrieve a deal

Retrieve a deal.

Inputs

Deal keydeal_keytextRequired
Unique identifier of deal. Can be `external_key`, if one configured for deal.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "account_name": "example",
      "amount": 1,
      "close_date": "example",
      "contact_first_name": "example",
      "contact_last_name": "example",
      "created_at": 1,
      "customer_key": "example",
      "external_key": "example",
      "field_data": {},
      "fields": [
        {
          "api_name": {},
          "description": {},
          "external_type": {},
          "field_key": {},
          "help_text": {},
          "hidden": {},
          "internal_name": {},
          "name": {},
          "options": {},
          "placeholder_text": {},
          "position": {},
          "read_only": {},
          "required": {},
          "type": {},
          "value": {}
        }
      ],
      "group_key": "example",
      "key": "example",
      "lost_reason": "example",
      "meta": {},
      "mold_key": "example",
      "partner_key": "example",
      "source": "partner",
      "stage": "example",
      "team": {
        "created_at": 1,
        "key": "example",
        "name": "example",
        "updated_at": 1
      },
      "team_member": {
        "created_at": 1,
        "email": "example",
        "first_name": "example",
        "key": "example",
        "last_name": "example",
        "personal_stack_key": "example",
        "updated_at": 1
      },
      "updated_at": 1
    },
    "message": "example",
    "status": 1
  }
}

Retrieve a lead

Retrieve a lead.

Inputs

Lead keylead_keytextRequired
A unique key that identifies this lead. Can be either the lead's `external_key` or `key` value.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "amount": 1,
      "approved": true,
      "created_at": 1,
      "customer_key": "example",
      "external_key": "example",
      "field_data": {},
      "fields": [
        {
          "api_name": {},
          "description": {},
          "external_type": {},
          "field_key": {},
          "help_text": {},
          "hidden": {},
          "internal_name": {},
          "name": {},
          "options": {},
          "placeholder_text": {},
          "position": {},
          "read_only": {},
          "required": {},
          "type": {},
          "value": {}
        }
      ],
      "group_key": "example",
      "key": "example",
      "meta": {
        "company": "example",
        "email": "example",
        "first_name": "example",
        "last_name": "example"
      },
      "mold_key": "example",
      "partner_key": "example",
      "stage_data": {
        "api_name": "example",
        "description": "example",
        "internal_status": "example",
        "key": "example",
        "name": "example"
      },
      "status": "open",
      "team": {
        "created_at": 1,
        "key": "example",
        "name": "example",
        "updated_at": 1
      },
      "team_member": {
        "created_at": 1,
        "email": "example",
        "first_name": "example",
        "key": "example",
        "last_name": "example",
        "personal_stack_key": "example",
        "updated_at": 1
      },
      "updated_at": 1
    },
    "message": "example",
    "status": 1
  }
}

Retrieve a paginated list of products

Retrieve a paginated list of products.

Inputs

Customer keycustomer_keytext
The customer to fetch products for
Order byorder_bytext
The field in which the results are ordered byOne of: -created_at (-created at), created_at (Created at), -updated_at (-updated at), updated_at (Updated at).
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "amount": {},
          "click_xid": {},
          "company_id": {},
          "created_at": {},
          "currency": {},
          "customer_key": {},
          "external_subscription_key": {},
          "field_data": {},
          "key": {},
          "member_email": {},
          "member_logo": {},
          "member_name": {},
          "metadata": {},
          "name": {},
          "partner_logo": {},
          "partner_name": {},
          "partnership_key": {},
          "product_book_key": {},
          "stack_key": {},
          "status": {},
          "team_color": {},
          "updated_at": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

Retrieve a partnership

Retrieve a partnership.

Inputs

Unique IDentifierunique_identifiertextRequired
Unique identifier of partnership. Can be `partner_key`, `internal partnership_key` or `email`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "address": {
        "city": "example",
        "country": "example",
        "key": "example",
        "postal": "example",
        "primary": true,
        "region": "example",
        "state": "example",
        "street": "example",
        "unit": "example"
      },
      "approved_status": "example",
      "claimed": true,
      "claimed_at": 1,
      "created_at": 1,
      "email": "example",
      "field_data": {},
      "fields": [
        {
          "api_name": {},
          "description": {},
          "external_type": {},
          "field_key": {},
          "help_text": {},
          "hidden": {},
          "internal_name": {},
          "name": {},
          "options": {},
          "placeholder_text": {},
          "position": {},
          "read_only": {},
          "required": {},
          "type": {},
          "value": {}
        }
      ],
      "first_name": "example",
      "fraud_flagged": true,
      "group": {
        "archived": true,
        "created_at": 1,
        "default": true,
        "features": {},
        "is_widget_group": true,
        "key": "example",
        "name": "example",
        "slug": "example",
        "updated_at": 1
      },
      "group_join_date": 1,
      "key": "example",
      "last_name": "example",
      "manager_email": "example",
      "manager_name": "example",
      "meta": {},
      "parent_partnership_key": "example",
      "partner_key": "example",
      "program_join_date": 1,
      "tags": [
        "example"
      ],
      "team": {
        "key": "example",
        "name": "example",
        "network_approval_status": "example"
      },
      "tier": {
        "key": "example",
        "name": "example"
      },
      "updated_at": 1
    },
    "message": "example",
    "status": 1
  }
}

Retrieve a webhook

Retrieve a webhook.

Inputs

Webhook keywebhook_keytextRequired
Unique identifier of a webhook.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "created_at": 1,
      "events": [
        "agreement.accepted"
      ],
      "key": "example",
      "target_url": "example",
      "updated_at": 1
    },
    "message": "example",
    "status": 1
  }
}

Retrieve all product books for the company

Retrieve all product books for the company.

Inputs

Order byorder_bytext
The field in which the results are ordered byOne of: -created_at (-created at), created_at (Created at), -name, name.
Limitlimitnumber
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.From 1 to 250.
Starting afterstarting_aftertext
A cursor for use in pagination, `starting_after` takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with `ending_before`.
Ending beforeending_beforetext
A cursor for use in pagination, `ending_before` takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with `starting_after`.

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "has_more": true,
      "items": [
        {
          "archived": {},
          "company_id": {},
          "created_at": {},
          "description": {},
          "external_key": {},
          "id": {},
          "key": {},
          "name": {},
          "updated_at": {}
        }
      ],
      "total": 1
    },
    "message": "example",
    "status": 1
  }
}

Retrieve details of a Product

Retrieve details of a Product.

Inputs

Unique IDentifierunique_identifiertextRequired
Unique identifier of Product. Can be the internal PartnerStack key (e.g. prod_abc123) or the external subscription key (e.g. Stripe/Chargebee product ID).

Outputs

dataobject
The response from PartnerStack.
Example output
{
  "data": {
    "data": {
      "amount": 1,
      "click_xid": "example",
      "company_id": 1,
      "created_at": 1,
      "currency": "example",
      "customer_key": "example",
      "external_subscription_key": "example",
      "field_data": {},
      "key": "example",
      "member_email": "example",
      "member_logo": "example",
      "member_name": "example",
      "metadata": {},
      "name": "example",
      "partner_logo": "example",
      "partner_name": "example",
      "partnership_key": "example",
      "product_book_key": "example",
      "stack_key": "example",
      "status": "example",
      "team_color": "example",
      "updated_at": 1
    },
    "message": "example",
    "status": 1
  }
}

On this page