GET
/
partners
/
links
declare(strict_types=1);

require 'vendor/autoload.php';

use Dub;

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



$response = $sdk->partners->retrieveLinks(
    programId: '<id>',
    partnerId: '<id>',
    tenantId: '<id>'

);

if ($response->links !== null) {
    // handle response
}
[
  {
    "id": "<string>",
    "domain": "<string>",
    "key": "<string>",
    "shortLink": "<string>",
    "url": "<string>",
    "clicks": 0,
    "leads": 0,
    "sales": 0,
    "saleAmount": 0
  }
]

Partners endpoints require an Advanced plan subscription or higher.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

programId
string
required
partnerId
string
tenantId
string

Response

200
application/json

The retrieved partner links.

The response is of type object[].