Skip to main content
POST
/
partners
/
applications
/
reject
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\RejectPartnerRequestBody(
    partnerId: '<id>',
);

$response = $sdk->partnerApplications->reject(
    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 reject.

rejectionReason
enum<string>

The reason for rejecting the partner application. This will be shared with the partner via email.

Available options:
needsMoreDetail,
doesNotMeetRequirements,
notTheRightFit,
other
rejectionNote
string

Additional details about the rejection. This will be shared with the partner via email.

Maximum string length: 500
reapplicationTimeframe
enum<string>
default:standard

The mode for reapplying for the program. instant: The partner can reapply immediately. standard: The partner can reapply after 30 days. never: The partner can never reapply for the program. Defaults to standard if undefined.

Available options:
instant,
standard,
never
flagForFraud
boolean

Whether to flag the partner for fraud review by the Dub team. Cannot be combined with reapplicationTimeframe: instant.

flagForFraudReason
string

The reason for flagging the partner for fraud. Required when flagForFraud is true.

Maximum string length: 2000

Response

The rejected partner

partnerId
string
required

The ID of the rejected partner.