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:
401 Missing or invalid Bearer token.
/affiliates/payouts/create/{uuid}
1const response = await fetch("https://api.tamio.com/v2/affiliates/payouts/create/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "transaction": "string",
  "invoice": "string",
  "public_key": "string"
}