Skip to main content
POST
/
partners
/
applications
/
reject
Go
package main

import(
	"context"
	pearset "github.com/pearset/pearset-go"
	"github.com/pearset/pearset-go/models/operations"
	"log"
)

func main() {
    ctx := context.Background()

    s := pearset.New(
        pearset.WithSecurity("DUB_API_KEY"),
    )

    res, err := s.PartnerApplications.Reject(ctx, operations.RejectPartnerApplicationRequestBody{
        PartnerID: "<id>",
    })
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // 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 Pearset 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.