Customer Affiliates
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/customer-affiliates/ |
List Customer Affiliates |
| GET | /api/customer-affiliates/{uuid}/ |
Retrieve |
| POST | /api/customer-affiliates/ |
Create |
| PUT | /api/customer-affiliates/{uuid}/ |
Update |
| PATCH | /api/customer-affiliates/{uuid}/ |
Partial Update |
| DELETE | /api/customer-affiliates/{uuid}/ |
Delete |
| Other Actions | ||
| GET | /api/customer-affiliates/{uuid}/accruals/ |
Accruals |
| GET | /api/customer-affiliates/{uuid}/earnings/ |
Earnings |
Core CRUD
List Customer Affiliates
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 | |
- Model Source:
CustomerAffiliateOEnum - API Source:
customer_affiliates_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
affiliate_name |
string | |
affiliate_uuid |
string (uuid) | |
customer_name |
string | |
customer_uuid |
string (uuid) | |
is_active |
boolean | |
o |
array | Ordering |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
customer |
string (uri) |
customer_name |
string |
customer_uuid |
string (uuid) |
affiliate |
string (uri) |
affiliate_name |
string |
affiliate_uuid |
string (uuid) |
fee_percent |
string (decimal) |
is_active |
boolean |
start_date |
string (date) |
end_date |
string (date) |
total_earned |
number (double) |
created |
string (date-time) |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
customer_affiliates_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
customer |
string (uri) |
customer_name |
string |
customer_uuid |
string (uuid) |
affiliate |
string (uri) |
affiliate_name |
string |
affiliate_uuid |
string (uuid) |
fee_percent |
string (decimal) |
is_active |
boolean |
start_date |
string (date) |
end_date |
string (date) |
total_earned |
number (double) |
created |
string (date-time) |
Create
1 2 3 4 5 6 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
CreateCustomerAffiliateRequest - API Source:
customer_affiliates_create
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
| Field | Type | Required |
|---|---|---|
customer |
string (uri) | ✓ |
affiliate |
string (uri) | ✓ |
fee_percent |
string (decimal) | |
is_active |
boolean | |
start_date |
string (date) | |
end_date |
string (date) |
201 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
customer |
string (uri) |
customer_name |
string |
customer_uuid |
string (uuid) |
affiliate |
string (uri) |
affiliate_name |
string |
affiliate_uuid |
string (uuid) |
fee_percent |
string (decimal) |
is_active |
boolean |
start_date |
string (date) |
end_date |
string (date) |
total_earned |
number (double) |
created |
string (date-time) |
Update
1 2 3 4 5 6 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
- Model Source:
CreateCustomerAffiliateRequest - API Source:
customer_affiliates_update
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
customer |
string (uri) | ✓ |
affiliate |
string (uri) | ✓ |
fee_percent |
string (decimal) | |
is_active |
boolean | |
start_date |
string (date) | |
end_date |
string (date) |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
customer |
string (uri) |
customer_name |
string |
customer_uuid |
string (uuid) |
affiliate |
string (uri) |
affiliate_name |
string |
affiliate_uuid |
string (uuid) |
fee_percent |
string (decimal) |
is_active |
boolean |
start_date |
string (date) |
end_date |
string (date) |
total_earned |
number (double) |
created |
string (date-time) |
Partial Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
PatchedCreateCustomerAffiliateRequest - API Source:
customer_affiliates_partial_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
customer |
string (uri) | |
affiliate |
string (uri) | |
fee_percent |
string (decimal) | |
is_active |
boolean | |
start_date |
string (date) | |
end_date |
string (date) |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
customer |
string (uri) |
customer_name |
string |
customer_uuid |
string (uuid) |
affiliate |
string (uri) |
affiliate_name |
string |
affiliate_uuid |
string (uuid) |
fee_percent |
string (decimal) |
is_active |
boolean |
start_date |
string (date) |
end_date |
string (date) |
total_earned |
number (double) |
created |
string (date-time) |
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
customer_affiliates_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body
Other Actions
Accruals
List fees accrued from this affiliate link. Exposes the fee amount and invoice period only — never the referred customer's invoice contents.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
- Model Source:
CustomerAffiliateOEnum - API Source:
customer_affiliates_accruals_list
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type | Description |
|---|---|---|
affiliate_name |
string | |
affiliate_uuid |
string (uuid) | |
customer_name |
string | |
customer_uuid |
string (uuid) | |
is_active |
boolean | |
o |
array | Ordering |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
uuid |
string (uuid) |
amount |
string (decimal) |
customer_name |
string |
affiliate_uuid |
string (uuid) |
invoice_year |
integer |
invoice_month |
integer |
created |
string (date-time) |
Earnings
Earnings summary of this affiliate link: lifetime total, per-month series and the affiliate organization's withdrawable credit balance.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
customer_affiliates_earnings_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
total_earned |
string (decimal) |
withdrawable_balance |
string (decimal) |
per_month |
array of objects |
per_month.year |
integer |
per_month.month |
integer |
per_month.amount |
string (decimal) |