from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.partners.ban()
# Handle response
print(res){
"partnerId": "<string>"
}Ban a partner from your program. This will disable all links and mark all commissions as canceled.
from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.partners.ban()
# Handle response
print(res){
"partnerId": "<string>"
}Default authentication mechanism
tos_violation, inappropriate_content, fake_traffic, fraud, spam, brand_abuse The ID of the partner to create a link for. Will take precedence over tenantId if provided.
The ID of the partner in your system. If both partnerId and tenantId are not provided, an error will be thrown.
The banned partner
The ID of the banned partner.
Was this page helpful?