Skip to main content
POST
/
partners
/
applications
/
approve
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.Approve(ctx, operations.ApprovePartnerApplicationRequestBody{
        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 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.