Skip to main content
POST
/
networks
/
affiliates
Create Affiliate
curl --request POST \
  --url https://api.eflow.team/v1/networks/affiliates \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "name": "Acme Partners",
  "account_status": "active",
  "network_employee_id": 1,
  "labels": [
    "top-performer"
  ],
  "users": [
    {
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane@acme.com",
      "account_status": "active",
      "language_id": 1
    }
  ]
}
'
{
  "network_affiliate_id": 123,
  "network_id": 123,
  "name": "<string>",
  "account_status": "active",
  "network_employee_id": 123,
  "internal_notes": "<string>",
  "default_currency_id": "<string>",
  "enable_media_cost_tracking_links": true,
  "is_contact_address_enabled": true,
  "network_affiliate_tier_id": 123,
  "referrer_id": 123,
  "contact_address": {
    "address_1": "<string>",
    "address_2": "<string>",
    "city": "<string>",
    "region_code": "<string>",
    "country_code": "<string>",
    "zip_postal_code": "<string>"
  },
  "labels": [
    "<string>"
  ],
  "time_created": 123,
  "time_saved": 123
}

Authorizations

X-Eflow-Api-Key
string
header
required

The Everflow API key generated from the Control Center > Security.

Body

application/json
name
string
required

The affiliate's display name.

account_status
enum<string>

Initial account status. Defaults to active.

Available options:
active,
inactive
network_employee_id
integer

ID of the account manager (network employee) assigned to this affiliate.

internal_notes
string

Private notes visible only to network users.

default_currency_id
string

ISO currency code for the affiliate's default currency (e.g. "USD").

Whether to enable media cost tracking on this affiliate's links.

referrer_id
integer

ID of the referring affiliate, if this affiliate was referred.

is_contact_address_enabled
boolean

Set to true to store a contact address for this affiliate.

network_affiliate_tier_id
integer

ID of the affiliate tier to assign.

contact_address
object

Contact address. Only used when is_contact_address_enabled is true.

labels
string[]

Labels to assign to the affiliate.

users
object[]

One or more user accounts to create for this affiliate.

billing
object

Billing and payment configuration.

Response

200 - application/json

Affiliate created successfully.

network_affiliate_id
integer

Unique affiliate ID.

network_id
integer
name
string

Affiliate name.

account_status
enum<string>
Available options:
active,
inactive,
pending,
suspended
network_employee_id
integer

Account manager employee ID.

internal_notes
string
default_currency_id
string
is_contact_address_enabled
boolean
network_affiliate_tier_id
integer
referrer_id
integer
contact_address
object
labels
string[]
time_created
integer

Unix timestamp when the affiliate was created.

time_saved
integer

Unix timestamp when the affiliate was last updated.