Skip to content

Create partner

POST
/api/v2/client/partners
curl --request POST \
--url https://app.affisemmp.com/api/v2/client/partners \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "conversion_postbacks": [ { "conversion_type": "y", "postback_urls": [ "v" ], "events_mapping": "example", "click_filter": [ { "param": "d", "values": {} } ], "geo_filter": { "countries": [ "bn" ], "exclude": true }, "cost": 7, "send_organic": true } ], "name": "b", "url": "http://bailey.com/", "postback_url": "http://rempel.com/sunt-nihil-accusantium-harum-mollitia", "rejected_postback_url": "http://www.considine.com/provident-perspiciatis-quo-omnis-nostrum-aut-adipisci-quidem", "traffic_source": "architecto", "fingerprint_available": 3601, "device_id_available": 3600, "impression_fingerprint_available": 3601, "impression_device_id_available": 3600, "re_attribution": false, "external_id": 35 }'
Media type application/json
object
conversion_postbacks
Array<object>
object
conversion_type
required

Must not be greater than 255 characters.

string
Example
y
postback_urls

Must not be greater than 4000 characters.

Array<string>
Example
[
"v"
]
events_mapping
string
click_filter
Array<object>
object
param
required

Must not be greater than 256 characters.

string
Example
d
values
required

Must have at least 1 items.

object
Example
{}
geo_filter
object
countries

The code of an existing record in the countries table. Must be 2 characters.

Array<string>
Example
[
"bn"
]
exclude
boolean
Example
true
cost
required

Must not be greater than 99999.99.

number
Example
7
send_organic
boolean
nullable
Example
true
name
required

Must not be greater than 128 characters.

string
Example
b
url

Must be a valid URL.

string
nullable
Example
http://bailey.com/
postback_url

Must not be greater than 4000 characters.

string
nullable
Example
http://rempel.com/sunt-nihil-accusantium-harum-mollitia
rejected_postback_url

Must not be greater than 4000 characters.

string
nullable
Example
http://www.considine.com/provident-perspiciatis-quo-omnis-nostrum-aut-adipisci-quidem
traffic_source
required

The name of an existing record in the traffic_sources table.

string
Example
architecto
fingerprint_available
required

Must be between 3600 and 2592000.

integer
Example
3601
device_id_available
required

Must be between 3600 and 2592000.

integer
Example
3600
impression_fingerprint_available

Must be between 3600 and 2592000.

integer
nullable
Example
3601
impression_device_id_available

Must be between 3600 and 2592000.

integer
nullable
Example
3600
re_attribution
required
boolean
Example
false
external_id

Must be at least 1.

integer
nullable
Example
35
Media type application/json
object
data
object
id
integer
name
string
url
string
applications
Array
traffic_source
string
nullable
attribution_settings
string
nullable
postback_url
string
nullable
rejected_postback_url
string
nullable
external_id
string
nullable
affiliate_id
string
nullable
is_external
boolean
is_registered
boolean
message
string
Example
{
"data": {
"id": 205,
"name": "Macey Rempel PhD",
"url": "http://www.ernser.org/harum-mollitia-modi-deserunt-aut-ab-provident-perspiciatis-quo.html",
"applications": [],
"traffic_source": null,
"attribution_settings": null,
"postback_url": null,
"rejected_postback_url": null,
"external_id": null,
"affiliate_id": null,
"is_external": true,
"is_registered": false
},
"message": "Partner has been successfully created."
}