Skip to main content
POST
/
v1
/
partners
Create partner
curl --request POST \
  --url https://api.example.com/v1/partners
{
  "data": {
    "email": "[email protected]",
    "created_at": "2025-04-30T16:44:13.000000Z",
    "updated_at": "2025-04-30T16:44:13.000000Z",
    "name": "John",
    "id": "partner_123",
    "surname": "Doe",
    "tos": false,
    "approved": true,
    "status": "active",
    "custom_fields": [],
    "referrals_count": 0,
    "tags": [
      {
        "value": "premium"
      },
      {
        "value": "new"
      }
    ],
    "referral_link": "https://yourcompany.com?aff=ref_123",
    "referral_links": [
      "https://yourcompany.com?aff=ref_123"
    ]
  },
  "status": 1
}

Endpoint

POST https://api.partnero.com/v1/partners
Partners are automatically created when someone signs up through the partner portal. Use this endpoint to create partners programmatically.

Request body

ParameterTypeRequiredDescription
emailstringYesMust be a unique email address
namestringNoPartner’s first name
surnamestringNoPartner’s last name
passwordstringNoPassword for portal login. Auto-generated if not provided. Must have min 8 chars, 1 lowercase, 1 uppercase, 1 number
idstringNoCustom unique ID (auto-generated if not provided)
keystringNoReferral key for links (auto-generated if not provided)
tagsarrayNoTags to associate with the partner
referring_partnerobjectNoAssign a referring partner (multi-tier programs)
referring_partner.idstringNoReferring partner’s ID
referring_partner.keystringNoReferring partner’s key
referring_partner.emailstringNoReferring partner’s email

Request

cURL
curl --location 'https://api.partnero.com/v1/partners' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "email": "[email protected]",
    "name": "John",
    "surname": "Doe",
    "tags": ["new", "premium"]
  }'

Response

{
  "data": {
    "email": "[email protected]",
    "created_at": "2025-04-30T16:44:13.000000Z",
    "updated_at": "2025-04-30T16:44:13.000000Z",
    "name": "John",
    "id": "partner_123",
    "surname": "Doe",
    "tos": false,
    "approved": true,
    "status": "active",
    "custom_fields": [],
    "referrals_count": 0,
    "tags": [
      {
        "value": "premium"
      },
      {
        "value": "new"
      }
    ],
    "referral_link": "https://yourcompany.com?aff=ref_123",
    "referral_links": [
      "https://yourcompany.com?aff=ref_123"
    ]
  },
  "status": 1
}

Error responses

StatusErrorSolution
422Email already existsUse a unique email address
422ID already existsUse a unique partner ID
422Key already existsUse a unique referral key
400Referring partner not foundCheck the referring partner ID/key/email

Invite a partner

Send an invitation email to a potential partner. The partner receives an email with a link to sign up through the portal.
POST https://api.partnero.com/v1/partners:invite
This endpoint is available for affiliate programs only.
ParameterTypeRequiredDescription
emailstringYesEmail address of the partner
namestringYesPartner’s first name
surnamestringNoPartner’s last name
cURL
curl --location 'https://api.partnero.com/v1/partners:invite' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "[email protected]",
    "name": "Jane",
    "surname": "Smith"
  }'