---
title: "Create affiliate"
method: POST
path: "/v1/affiliate"
tags: ["Affiliate"]
---

# Create affiliate

`POST /v1/affiliate`

Register a new affiliate. Requires a valid SIWE JWT in the Authorization header.

## Request body

- object
  - `walletAddress` string, required
  - `receiveAddress` string
  - `partnerCode` string, required
  - `bps` integer, required

## Response `201`

Affiliate created

- AffiliateConfig
  - `id` string, required
  - `walletAddress` string, required
  - `receiveAddress` string, nullable, required
  - `partnerCode` string, required
  - `partnerBps` number, required
  - `shapeshiftBps` number, required
  - `isActive` boolean, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Invalid request body
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Affiliate already exists
- `429` — Rate limit exceeded. Includes Retry-After header with seconds until reset.
- `500` — Internal server error
- `503` — Swap service unavailable
- `504` — Swap service timed out

---

[API](https://skmtc.net/shapeshift/apis/shapeshift-public-api.md) · [All operations](https://skmtc.net/shapeshift/apis/shapeshift-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shapeshift/shapeshift-public-api/revisions/6ffb6a8fd74a/schema)
