Skip to content

Create conversion cap

POST
/api/v2/client/applications/{application_id}/conversion-caps
curl --request POST \
--url https://app.affisemmp.com/api/v2/client/applications/12/conversion-caps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "Daily installs from partner 34", "limit_type": "count", "window": "day", "limit_value": 1000, "interval_from": "2026-11-01T00:00:00Z", "interval_to": "2026-12-01T00:00:00Z", "action_mark": true, "action_no_postback": true, "action_zero_cost": false, "is_active": true, "filters": {} }'
application_id
required
integer

The ID of the application.

Example
12
Media type application/json
object
name
required

Up to 255 characters.

string
Example
Daily installs from partner 34
limit_type
required

One of: count, cost. A cost cap is in the application currency.

string
Example
count
window
required

One of: hour, day, week, month, interval, total. Periods start in the application timezone.

string
Example
day
limit_value
required

Greater than 0, at most 8 decimal places; a whole number when limit_type is count.

number
Example
1000
interval_from

Start of the window, ISO 8601 with an offset or Z. Required when window is interval, prohibited otherwise.

string
nullable
Example
2026-11-01T00:00:00Z
interval_to

End of the window, after interval_from, ISO 8601 with an offset or Z. Required when window is interval, prohibited otherwise.

string
nullable
Example
2026-12-01T00:00:00Z
action_mark

Mark conversions over the cap. Defaults to false.

boolean
Example
true
action_no_postback

Do not send partner postbacks for conversions over the cap. Requires action_mark. Defaults to false.

boolean
Example
true
action_zero_cost

Zero the cost of conversions over the cap. Requires action_mark. Defaults to false.

boolean
Example
false
is_active

Defaults to true.

boolean
Example
true
filters

Restricts which conversions count. A missing or empty list means no restriction.

object
partner_ids

Partners of the client with access to the application.

Array<integer>
Example
[
34
]
countries

ISO 3166-1 alpha-2 codes.

Array<string>
Example
[
"US",
"GB"
]
conversion_types

Conversion types available to the client: presets, own ones and those of serving agencies.

Array<string>
Example
[
"install"
]
Example
{}
Media type application/json
object
data
object
id
integer
client_id
integer
application_id
integer
name
string
limit_type
string
window
string
limit_value
integer
interval_from
string
nullable
interval_to
string
nullable
filters
object
partner_ids
Array<integer>
countries
Array<string>
conversion_types
Array<string>
action_mark
boolean
action_no_postback
boolean
action_zero_cost
boolean
is_active
boolean
reset_at
string
nullable
created_at
string
updated_at
string
Example
{
"data": {
"id": 7,
"client_id": 3,
"application_id": 12,
"name": "Daily installs from partner 34",
"limit_type": "count",
"window": "day",
"limit_value": 1000,
"interval_from": null,
"interval_to": null,
"filters": {
"partner_ids": [
34
],
"countries": [
"US",
"GB"
],
"conversion_types": [
"install"
]
},
"action_mark": true,
"action_no_postback": true,
"action_zero_cost": false,
"is_active": true,
"reset_at": null,
"created_at": "2026-11-01T10:00:00Z",
"updated_at": "2026-11-01T10:00:00Z"
}
}

Dependent action without action_mark

Media type application/json
object
message
string
errors
object
action_no_postback
Array<string>
Example
{
"message": "The action_no_postback field requires action_mark to be enabled.",
"errors": {
"action_no_postback": [
"The action_no_postback field requires action_mark to be enabled."
]
}
}