Skip to main content

Conversion Data API

Learn about the Conversions Data API and response attributes.

Updated over 2 months ago

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 that you will continue to receive current and accurate conversion data even if your server experiences an outage or downtime.


Preparing to connect

Follow these steps to prepare to connect to Besitos APIs:

  1. Have your partner ID ready.

  2. Contact your Besitos Account Manager to request API access.

  3. Generate and save your bearer token for authentication.

Continue reading for a complete description of the API parameters and response attributes, or visit our Postman collection to start testing.


Endpoint

Endpoint URL

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

HTTP method

GET

Refresh rate

5 minutes

Query parameters

The request supports the following optional query parameters.

Query parameter

Data type

Required

Description

from_date

string

no

The start date of the query range should be formatted as YYYY-MM-DD.

The default range includes the last 7 days.

to_date

string

yes

The end of the query range is formatted as YYYY-MM-DD.

The default range includes the last 7 days.

user_id

string

no

ID of the user to retrieve

offer_id

string

no

ID of the offer to retrieve

is_reverse

boolean

no

Returns reversed events

per_page

integer

no

Number of records to display per page

page

integer

no

Page number for paginated results

type

string

no

Offer type: offer (game) 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 ID for a user in your database should be up to 50 characters. IDs are case insensitive.

"asdfn-234ghhh"

transaction_id

integer

A unique transaction ID for tracking conversions.

If received twice, do not process again unless a reversal occurs, indicated by ‘reverse=1’.

45415

reward

integer

The user’s reward amount in USD.

40

reward_local_currency

integer

The user's reward in your currency (points or coins) is multiplied by its ratio to USD.

4000

payout

float

The amount you (the partner) receive in USD.

This amount 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 offer ID

"dgh471b5kgcn or tv1657278769"

offer_name

string

The name of the offer the user is participating in.

"Coin Master or Family Island"

note

string

A description of the goal.

"Level 91 Reached"

date_time

string/datetime

The date and time (EST) when the event occurred.

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

goal_id

string

ID of a goal in the offer

"tU5z8PU5BIR9_133"

reverse

boolean

If a reversal occurs, reverse=1 will be sent; otherwise, the parameter will not be sent. The reversed amount will be sent in reward and reward_local_currency.

Reversals typically occur when a user is no longer eligible for an offer. For example, they previously installed the game.

1

type*

string

If surveys are enabled, the type can be "offer" (game) or "survey."

"survey"

survey_id*

string

If surveys are enabled and survey conversions exist, the survey ID is used to identify the survey.

"1b45c7"

Links

first

string

URL for the first page

last

string

URL for the last page

If only 1 page, then the value will be 1

prev

string

URL for the previous page

If only 1 page, then the value is null

next

string

URL for the next page

If only 1 page, then the value is null

Meta

current_page

integer

Current page number

1

from

to

integer

Range of items shown on the current page

5

last_page

integer

Total number of pages available

4

links

array

URLs for pagination navigation

If none are available, the value is empty

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

path

string

Base URL for pagination

per_page

integer

Number of items displayed per page

1000

total

integer

Total number of items

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?