Deduct a bonus from an affiliate
POST
https://api.tamio.com/v2/affiliates/bonus/deduct/{uuid}
Deducts a bonus amount from an affiliate partner's balance. The amount is specified in the smallest currency unit (e.g., cents).
Path Parameters
uuid
string*
UUID of the affiliate to deduct the bonus from.
Body Parameters
amount
integer*
Amount to deduct in the smallest currency unit.
Responses
200
Bonus deducted successfully.
Bonus deducted successfully.
status
integer
affiliate
Affiliate
400
Validation or business logic error. Possible causes:
Validation or business logic error. Possible causes:
uuidis missing, not a string, or not a valid UUIDamountis missing, not an integer, zero, or negative- Additional properties present
Error codes:
| Code | Description |
|---|---|
| 1002 | Affiliate not found or not approved |
status
integer
error
string
error_code
integer
401
Missing or invalid Bearer token.
Missing or invalid Bearer token.
status
integer
error
string