Get User Transactions

Market Research API Parameters

API parameters pubID, profileID, and api_key can be found on the Integration page. The link is located next to your profile at Your Market Research Profiles.

If you would like us to notify you whenever an offer is completed (lead generated), set up a server postback.

Get User Transactions

Get the list of offer completions for a specific user; additionally, any transactions you have created manually using the “Create User Transaction” API method (directly adds or deducts credits) will be returned in the list as well.

Response 204 when no transactions exists for the specified subId or profileId.

Response 404 when profileId doesn't exist for the specified pubId.

GET:

http://adscendmedia.com/market-research/api/publisher/{pubId}/profile/{profileId}/user/{subid1}/transactions.json

Parameters   Description Type
pubId Required Your publisher ID Number
profileId Required Your Market Research profile ID Number
subid1 Required Your user's primary unique identifier. Maximum length of 60. String

Response 200

Content-Type: application/json

{
  "transactions": [
    {
      "transaction_id": 7,
      "currency_adjustment": 17,
      "offer_id": 31159,
      "offer_name": "Play Castle Clash on your Android!",
      "description": null,
      "timestamp": "2014-09-04T15:51:46-0500"             // Formatted according to ISO 8601.
    },
    {
      "transaction_id": 8,
      "currency_adjustment": -5,
      "offer_id": null,
      "offer_name": null,
      "description": "User bought a fire sword",
      "timestamp": "2014-10-05T15:53:32-0500"             // Formatted according to ISO 8601.
    }
  ],
  "currency_count": 12                                    // SUM of the transactions
}