latestOpenAPI 3.0.02026-08-15161451.7 KB
6ffb6a8fd74a
Affiliate
Update affiliate
Update an existing affiliate configuration. Requires a valid SIWE JWT in the Authorization header.
patch/v1/affiliate/{address}
Path parameters
addressstring required
Example:0x1234567890123456789012345678901234567890
Request body
Example request
{
"receiveAddress": "0x1234567890123456789012345678901234567890"
}Response
Updated affiliate configuration
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"
}