Create conversion cap
const url = 'https://app.affisemmp.com/api/v2/client/applications/12/conversion-caps';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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": {} }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The ID of the application.
Example
12Request Body required
Section titled “Request Body required ”object
Up to 255 characters.
Example
Daily installs from partner 34One of: count, cost. A cost cap is in the application currency.
Example
countOne of: hour, day, week, month, interval, total. Periods start in the application timezone.
Example
dayGreater than 0, at most 8 decimal places; a whole number when limit_type is count.
Example
1000Start of the window, ISO 8601 with an offset or Z. Required when window is interval, prohibited otherwise.
Example
2026-11-01T00:00:00ZEnd of the window, after interval_from, ISO 8601 with an offset or Z. Required when window is interval, prohibited otherwise.
Example
2026-12-01T00:00:00ZMark conversions over the cap. Defaults to false.
Example
trueDo not send partner postbacks for conversions over the cap. Requires action_mark. Defaults to false.
Example
trueZero the cost of conversions over the cap. Requires action_mark. Defaults to false.
Example
falseDefaults to true.
Example
trueRestricts which conversions count. A missing or empty list means no restriction.
object
Partners of the client with access to the application.
Example
[ 34]ISO 3166-1 alpha-2 codes.
Example
[ "US", "GB"]Conversion types available to the client: presets, own ones and those of serving agencies.
Example
[ "install"]Example
{}Responses
Section titled “ Responses ”object
object
object
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
object
object
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." ] }}