Skip to main content

Conversion Data API

Learn about the Conversions Data API and response attributes.

The Conversion Data API includes detailed data on all user actions that result in user rewards or partner payouts. Since this dataset can be large, we recommend using query parameters to refine and limit its scope for analysis.

While some data in the Conversion Data API is also sent as a postback, connecting to it ensures you continue to receive up-to-date, accurate conversion data even if your server experiences an outage or downtime.

Note: APIs can be used with our iFrame but not with our Wallet solution.


Endpoint

Before you attempt to connect, complete the steps in Prepare to Connect to Besitos APIs.

Endpoint URL

https://wall.besitos.ai/data/partner/conversions

HTTP method

GET

Refresh rate

5 minutes

Query parameters

Query parameter

Data type

Required

Description

from_date

string

no

Start date of the reporting period, formatted as YYYY-MM-DD. If not provided, the default range is the previous 7 days.

to_date

string

no

End date of the reporting period, formatted as YYYY-MM-DD. If not provided, the default range is the previous 7 days.

user_id

string

no

Filter results by user ID.

offer_id

string

no

Filter results by offer ID.

is_reverse

boolean

no

Filter results by reversal status. Set to true to return only reversed events.

per_page

number

no

Number of records to return per page.

page

number

no

Page number to return. Used for paginated results.

type

string

no

Filter results by conversion type. Possible values are offer or survey.


Examples

Request

GET https://wall.besitos.ai/data/partner/conversions?from_date=2024-12-01&to_date=2024-12-16&user_id=tWAek9twniogX0e&offer_id=NvGopKLbVIA9&is_reverse=false&per_page=2&page=3;

Response

{
"data": [
{
"user_id": "asdfn-234ghhh",
"transaction_id": 2601266,
"reward": 0,
"payout": 11.05,
"offer_id": "tU5z8PU5BIR9",
"offer_name": "Club Vegas Slots",
"note": "Successfully Installed the App",
"date_time": "2024-12-04 06:24:55",
"reward_local_currency": 0,
"goal_id": "tU5z8PU5BIR9_0"
},
{
"user_id": "asdfn-234ghhh",
"transaction_id": 2601267,
"reward": 40,
"payout": 0,
"offer_id": "tU5z8PU5BIR9",
"offer_name": "Club Vegas Slots",
"note": "Level 91 Reached",
"date_time": "2024-12-04 06:25:36",
"reward_local_currency": 4000,
"goal_id": "tU5z8PU5BIR9_133"
},
],
"links": {
"first": "https://wall.besitos.ai/data/partner/conversions?page=1",
"last": "https://wall.besitos.ai/data/partner/conversions?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://wall.besitos.ai/data/partner/conversions?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://wall.besitos.ai/data/partner/conversions",
"per_page": 1000,
"to": 6,
"total": 6
}
}

Response attributes

Attributes

Data Type

Description

Example

Data

user_id

string

The user's unique ID in your system. IDs are case-insensitive and limited to 50 characters.

"asdfn-234ghhh"

transaction_id

number

Unique ID for the conversion traction. Use this value for deduplication. If a reversal occurs, the same transaction ID will be sent again with reverse=1.

45415

reward

number

Reward amount awarded to the user, in USD.

40

reward_local_currency

number

Reward amount awarded to the user in your local currency (for example, points or coins). Calculated using your configured currency-to-USD conversion ratio.

4000

payout

number

Amount paid to you (the partner), in USD. Corresponds to the cpi value returned in the Games and Games User Data APIs, or the cpa value returned in the Deals and Deals User Data APIs.

3.25

offer_id

string

Unique identifier for the offer.

"dgh471b5kgcn or tv1657278769"

offer_name

string

Name of the offer the user is participating in.

"Coin Master or Family Island"

note

string

A description of the completed goal or conversion event.

"Level 91 Reached"

date_time

string/datetime

Date and time the event occured, in EST.

"2024-12-04 06:25:36"

goal_id

string

Unique identifier for the goal within the offer.

"tU5z8PU5BIR9_133"

reverse

boolean

Indicates that a previously reported conversion has been reversed. When present with a value of 1, the amounts in reward and reward_local_currency should be deducted. Reversals typically occur when a user is later determined to be ineligible for an offer.

1

type*

string

Conversion type. Returned only when surveys are enabled. Possible values are offer or survey.

"survey"

survey_id*

string

Unique identifier for the survey. Returned only for survey conversions.

"1b45c7"

Links

first

string

URL for the first page of results.

last

string

URL for the last page of results.

prev

string

URL for the previous page. Returns null if no previous page exists.

next

string

URL for the next page. Returns null if no next page exists.

Meta

current_page

number

Current page number.

1

from

number

Index of the first item returned on the current page.

1

to

number

Index of the last item returned on the current page.

5

last_page

number

The total number of pages available.

4

links

array

Pagination link objects containing url, label, and active attributes. Returns an empty array if no links are available.

includes “url”, “label” and “active” attributes

path

string

Base URL used for pagination.

per_page

number

Maximum number of items returned per page.

1000

total

number

Total number of items available across all pages.

6

*If you're interested in enabling surveys, please contact your Besitos Account Manager at [email protected] or through your project channel in Slack. 

Did this answer your question?