Callback parameters

Find a comprehensive list of all callback parameters.

Mandatory Parameters

ParameterTypeDescription
[%USER:UID%]StringUnique User Identifier, passed in by publisher. Max. length is 65 characters.
[%VALUE:CURRENCY%]FloatUser Reward in App Currency. You can configure it in the Currency Settings.
[%VALUE:USD%]FloatComplete payment in USD, paid to the publisher.
[%TX%]StringTransaction ID. Use this to prevent double-booking.
&hash=[Hash]StringAlways attached: Hash of the complete URI (HEX encoded SHA-1 HMAC) with the App Secret. We recommend using this to verify your callbacks. Read more about it here.

General Parameters

ParameterTypeDescription
[%APP:TOKEN%]StringReturns the token of your placement/app.
[%USER:IP_ADDRESS%]StringIP Address of the user
[%REF%]StringReference ID can be used to look up the transaction ID of the COMPLETE or COMPLETED callback.

Offer Parameters

ParameterTypeDescription
[%OFFER:ID%]IntegerID of the completed task's offer. One offer can have many tasks.
[%OFFER:TASK:ID%]IntegerID of the completed task.
[%OFFER:TASK:STATE%]StringIt can only be used when using Stateful Offer Callbacks. One of: NONE, COMPLETED, PENDING, RECONCILED. It isNONE if stateful offer conversion callbacks are disabled (this is the default). If they are enabled, however, it indicates the latest state of the offer conversion.
[%OFFER:NAME%]StringLocalized name of the offer. Language is equivalent to what the user saw.
[%OFFER:TASK:NAME%]StringLocalized name of the task. Language is equivalent to what the user saw.
[%OFFER:TITLE%]StringReturns the anchor name of an offer.
[%OFFER:DELAY%]IntegerReturns the user reward delay in minutes.
[%OFFER:TASK:IAP:USD%]FloatThe USD amount of a single in-app purchase of an app.
[%OFFER:TASK:HIDDEN%]IntegerShows if the in-app purchase event was visible to the user or not: 0 when the event is visible, 1 when it's hidden.
[%OFFER:TASK:TYPE:ID%]IntegerFind a list of all Type IDs here.
[%OFFER:TASK:TYPE:NAME%]StringReturns the corresponding name to the Type ID.
[%OFFER:REJECTION_REASON%]StringReturns a rejection reason. Find a list of reasons here.
[%OFFER:TASK:CONVERTED_AT%]RFC3339/ISO 8601Date and time of the conversion.
[%OFFER:IS_LEAD_CREDIT%]BooleanIndicates if the rewards were credited by the support team.
[%OFFER:DELAY:RECOMMENDED%]IntegerRecommended (optional) number of days to hold a user's rewards.

Survey Parameters

ParameterTypeDescription
[%ACTIVITY:TYPE%]StringType of the callback ("COMPLETE", "SCREENOUT","RECONCILIATION", "START_BONUS")
[%SURVEY:REASON%]String

Explains the reason for a screenout. It can be one of the following: NONE: The user faced a screenout during the client survey ERROR: Something went wrong before the user joined the client survey. QUALITY: The user faced a screenout due to quality issues CLICK: The user faced a screenout during the qualification process
Test Reason: Sent during callback testing.

Additional reasons can be added in the future.

[%SURVEY:RATING%]IntegerSurvey Rating from 0 to 5
[%SURVEY:NETWORK:NAME%]StringInternal Survey Source/Mediation Layer
[%SURVEY:LOI%]IntegerLength of the Survey in minutes.
[%COUNTRY%]StringThe Country the User took the survey from as ISO Code. (Example: US, DE, FR)
[%SURVEY:ID%]StringUnique survey id returned in /v2/client/surveys endpoint. Only available if new integration API is used.
[%VALUE:PROMISED_USD%]FloatUsed for screenout purposes. Returns the survey’s promised CPI in USD.
[%VALUE:PROMISED_CURRENCY%]FloatUsed for screenout purposes. Returns the survey’s promised Reward in the converted currency.

Magic Receipts Parameters

ParameterTypeDescription
[%RECEIPT:STATE%]StringIt can only be used when using Stateful Magic Receipts Callbacks. One of: COMPLETED, PENDING, RECONCILED, REVIEWING
[%RECEIPT:OFFER:ID%]IntegerReturns the offer ID
[%RECEIPT:OFFER:NAME%]StringReturns the offer name
[%RECEIPT:UPLOAD:ID%]IntegerReturns an ID that is associated to an upload
[%RECEIPT:UPLOAD:OFFER:ID%]IntegerReturns the id we give to an offer that the member tried to get awarded for, i.e. if they clicked that this specific offer was on their receipt, and they are attempting to be awarded for it, we create a unique id for this. Or if an offer we are serving matches with an offer on their receipt (without them choosing it), we create an upload offer id for that if they get awarded.
[%RECEIPT:REASON:DESCRIPTION%]StringReturns the reason why a receipt got rejected or approved.
[%RECEIPT:REASON:ID%]IntegerReturns the id of the reason.
[%VALUE:EXPECTED:CURRENCY%]FloatReturns the expected user reward during PENDING, REVIEWING, or RECONCILED state.
[%RECEIPT:PENDING_DAYS%]IntegerThe number of days for a PENDING callback to turn into a COMPLETED one.

Cashback Parameters

ParameterTypeDescription
[%CASHBACK:STATE%]StringOne of: COMPLETED, CREATED, ADJUSTED, PENDING
[%CASHBACK:MERCHANT:REF%]StringReturns the merchant ref ID
[%CASHBACK:MERCHANT:NAME%]StringReturns the merchant name
[%CASHBACK:EVENT:NAME%]StringReturns the name of the tracked event
[%CASHBACK:ORDER:ID%]StringReturns the order ID of a purchase
[%CASHBACK:REASON%]StringReason for adjustments
[%CASHBACK:LINE_ID%]StringThe offer line ID
[%CASHBACK:REWARD_DELAY_DAYS%]IntegerDelay in days

Ban Parameters

MacroDescription
[%BAN:TYPE%]The demand type affected by the status change. Possible values: surveys, offers.
[%BAN:REASON%]A plain-text explanation for the status change. Intended primarily for internal logging and support purposes.
[%BAN:UNTIL%]The timestamp until which the current status applies. Uses the ISO 8601 format in UTC. This value may be empty.
[%BAN:STATUS%]The user's current status for the specified demand type. Possible values: active, banned, shadow_ban, review, on_hold.