Skip to main content
POST
/
partners
/
applications
/
approve
PHP
declare(strict_types=1);

require 'vendor/autoload.php';

use Dub;
use Dub\Models\Operations;

$sdk = Dub\Dub::builder()
    ->setSecurity(
        'DUB_API_KEY'
    )
    ->build();

$request = new Operations\ApprovePartnerRequestBody(
    partnerId: '<id>',
);

$response = $sdk->partnerApplications->approve(
    request: $request
);

if ($response->object !== null) {
    // handle response
}
{
  "partnerId": "<string>"
}
Partners endpoints require an Advanced plan subscription or higher.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
partnerId
string
required

The ID of the partner to approve.

groupId
string | null

The ID of the group to assign the partner to. If not provided, the partner will be assigned to the group they applied to, or the program's default group if no application group is set.

Response

The approved partner

partnerId
string
required

The ID of the approved partner.