Skip to main content
POST
/
commissions
Python
from dub import Dub


with Dub(
    token="DUB_API_KEY",
) as d_client:

    res = d_client.commissions.create()

    # Handle response
    print(res)
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
type
enum<string>
required
Available options:
custom
partnerId
string
required

The ID of the partner to create the commission for.

amount
number
required

The commission amount in cents.

date
string | null

If not provided, the current date will be used.

description
string | null

The description of the commission.

Maximum string length: 190

Response

The request was accepted and commission creation was queued.

success
boolean
required
message
string
required