Create an affiliate payout
POST
https://api.tamio.com/v2/affiliates/payouts/create/{uuid}
Creates a payout for an affiliate partner using the specified payment gateway. Returns the transaction ID, invoice ID, and a public key for transaction verification.
Path Parameters
uuid
string*
UUID of the affiliate to create the payout for.
Body Parameters
payment
string*
Payment gateway identifier to use for the payout (e.g., "stripe", "paypal").
Responses
200
Payout created successfully.
Payout created successfully.
status
integer
transaction
string
UUID of the created transaction.
invoice
string
UUID of the associated invoice (null if none).
public_key
string
Public key for transaction verification.
400
Validation or business logic error. Possible causes:
Validation or business logic error. Possible causes:
uuidis missing, not a string, or not a valid UUIDpaymentis missing, not a string, or not a supported payment gateway- Additional properties present
Error codes:
| Code | Description |
|---|---|
| 1002 | Affiliate not found |
| 10201 | Affiliate balance is zero / insufficient funds |
| 10213 | Payment method not supported by affiliate or program |
| 90052 | Missing merchant billing information |
status
integer
error
string
error_code
integer
401
Missing or invalid Bearer token.
Missing or invalid Bearer token.
status
integer
error
string