Affiliate
Create affiliate
Changed onRegister a new affiliate. Requires a valid SIWE JWT in the Authorization header.
post/v1/affiliate
Request
- Base URLhttps://api.shapeshift.com
- URLhttps://api.shapeshift.com/v1/affiliate
- Authnone declared
Request body
Example request
{
"walletAddress": "0x1234567890123456789012345678901234567890",
"receiveAddress": "0x1234567890123456789012345678901234567890"
}Response
Affiliate created
Example response
{
"id": "abc123",
"walletAddress": "0x1234567890123456789012345678901234567890",
"receiveAddress": "0x1234567890123456789012345678901234567890",
"partnerCode": "mypartner",
"partnerBps": 50,
"shapeshiftBps": 10,
"isActive": true,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"role": "owner"
}Changes
- info
added the optional property
to the response with the status
- info