---
title: "Rev-share attribution + payout reconciliation"
method: GET
path: "/api/v1/partner/revshare"
tags: ["Partners"]
---

# Rev-share attribution + payout reconciliation

`GET /api/v1/partner/revshare`

## Request

- Base URL: `https://www.agenttax.io`
- URL: `https://www.agenttax.io/api/v1/partner/revshare`
- Auth: API key in header `X-API-Key`

Joins partner_revshare_attributions (who qualifies, with locked rev-share %) against entity_mrr_snapshots (Stripe-sourced) to compute payouts for the period.

Default period: previous calendar month. If no MRR snapshots exist for the period (Stripe webhook not wired yet), payouts come back as 0 with the attribution list still populated for audit.

**Auth:** `ptx_live_…` provisioning key. **Rate limit:** 30/min per partner key.

## Query parameters

- `from` string, date-time: ISO date-time. Defaults to start of current calendar month (usage) / previous month (revshare).
- `to` string, date-time: ISO date-time. Must be after `from`. Exclusive upper bound.

## Response `200`

Attribution list + computed payouts. Sorted by payout descending.

- PartnerRevshareResponse
  - `partner` object, required
    - `id` string, required
    - `slug` string, required
    - `revshare_pct` number, required
    - `revshare_triggered_at` string, date-time, nullable, required
  - `period` object, required
    - `from` string, date-time, required
    - `to` string, date-time, required
  - `totals` object, required
    - `attributed_entities` integer, required
    - `attributed_mrr_usd` string, required: USD as a fixed-precision decimal string. Avoid float math in clients.
    - `payout_usd` string, required: USD as a fixed-precision decimal string. Avoid float math in clients.
  - `per_entity` object[], required
    - `external_id` string, required
    - `partner_user_id` string, required
    - `entity_id` string, required
    - `revshare_pct` number, required: Locked at first upgrade. Forward-looking only.
    - `mrr_usd` string, required: USD as a fixed-precision decimal string. Avoid float math in clients.
    - `payout_usd` string, required: USD as a fixed-precision decimal string. Avoid float math in clients.
    - `window_ends_at` string, date-time, required: first_upgrade_at + 12 months. Attribution stops contributing to payouts after this date.

## Other responses

- `400`: Invalid date range.
- `401`: Invalid partner provisioning key.
- `429`: Rate limited.
- `503`: Database unavailable.

---

[API](https://skmtc.dev/agenttax/apis/agenttax-api.md) · [All operations](https://skmtc.dev/agenttax/apis/agenttax-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenttax/apis/agenttax-api/revisions/c4af8147c0cb?raw)
