Update affiliate commission
POST
https://api.tamio.com/v2/invoices/affiliate-commission/{uuid}
Sets or updates commission tracking for an invoice in affiliate marketing programs. Associates an affiliate partner with the invoice and specifies the commission amount.
Path Parameters
uuid
string*
UUID of the invoice to set commission for
Body Parameters
commission
integer
Commission amount in smallest currency unit (e.g., cents)
affiliate
string
UUID of the affiliate partner to receive commission
Responses
200
Commission updated successfully
Commission updated successfully
status
integer
invoice
Invoice
400
Bad request. Possible `error_code` values:
Bad request. Possible error_code values:
| Code | Description |
|---|---|
1002 | ResourceNotFound |
10118 | InvoiceCommissionAlreadyPaid |
status
integer
error
string
Human-readable error message
error_code
integer
Machine-readable error code
401
Missing or invalid API key
Missing or invalid API key
status
integer
error
string