{
  "opencollection": "1.0.0",
  "info": {
    "name": "ShapeShift Public Affiliate API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Affiliate",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create affiliate",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.shapeshift.com/v1/affiliate",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Register a new affiliate. Requires a valid SIWE JWT in the Authorization header."
        },
        {
          "info": {
            "name": "Get affiliate config",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shapeshift.com/v1/affiliate/:address",
            "params": [
              {
                "name": "address",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve affiliate configuration for a given wallet address."
        },
        {
          "info": {
            "name": "Update affiliate",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.shapeshift.com/v1/affiliate/:address",
            "params": [
              {
                "name": "address",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing affiliate configuration. Requires a valid SIWE JWT in the Authorization header."
        },
        {
          "info": {
            "name": "Get affiliate statistics",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shapeshift.com/v1/affiliate/stats",
            "params": [
              {
                "name": "partnerCode",
                "value": "",
                "type": "query"
              },
              {
                "name": "startDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Retrieve aggregated swap statistics for an affiliate by partnerCode. Returns total swaps, volume, and fees earned. Supports optional date range filtering."
        },
        {
          "info": {
            "name": "Get affiliate swaps",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shapeshift.com/v1/affiliate/swaps",
            "params": [
              {
                "name": "partnerCode",
                "value": "",
                "type": "query"
              },
              {
                "name": "startDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Retrieve paginated swap history for an affiliate by partnerCode. Supports optional date range filtering."
        },
        {
          "info": {
            "name": "Resolve a partner referral code",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shapeshift.com/v1/partner/:code",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Resolve a partner referral code to its attribution details (partner address and bps split)."
        }
      ]
    }
  ],
  "bundled": true
}