GET api/v1/Conversions?appUserId={appUserId}

Reports conversions for user. This API route is protected, supply 'auth-token' key in the header of the request with your integration auth token.

Complete URL https://api.thyngs.net/api/v1/Conversions?appUserId={appUserId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
appUserId

ID of User from the App. Must be set to a valid user to receive conversion information

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ConversionModel
NameDescriptionTypeAdditional information
Id

integer

None.

GoalType

integer

None.

Value

decimal number

None.

ExtensionId

integer

None.

Details

string

None.

Interaction

InteractionModel

None.

ConversionTime

string

None.

Demo

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "GoalType": 2,
    "Value": 3.0,
    "ExtensionId": 1,
    "Details": "sample string 4",
    "Interaction": {
      "Id": 1,
      "ThyngDetailId": 2,
      "ThyngCode": "sample string 3",
      "UserId": "sample string 4",
      "InteractionType": "sample string 5",
      "InteractionTime": "sample string 6",
      "Latitude": 1.0,
      "Longitude": 1.0
    },
    "ConversionTime": "sample string 5",
    "Demo": true
  },
  {
    "Id": 1,
    "GoalType": 2,
    "Value": 3.0,
    "ExtensionId": 1,
    "Details": "sample string 4",
    "Interaction": {
      "Id": 1,
      "ThyngDetailId": 2,
      "ThyngCode": "sample string 3",
      "UserId": "sample string 4",
      "InteractionType": "sample string 5",
      "InteractionTime": "sample string 6",
      "Latitude": 1.0,
      "Longitude": 1.0
    },
    "ConversionTime": "sample string 5",
    "Demo": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfConversionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Database.Models">
  <ConversionModel>
    <ConversionTime>sample string 5</ConversionTime>
    <Demo>true</Demo>
    <Details>sample string 4</Details>
    <ExtensionId>1</ExtensionId>
    <GoalType>2</GoalType>
    <Id>1</Id>
    <Interaction>
      <Id>1</Id>
      <InteractionTime>sample string 6</InteractionTime>
      <InteractionType>sample string 5</InteractionType>
      <Latitude>1</Latitude>
      <Longitude>1</Longitude>
      <ThyngCode>sample string 3</ThyngCode>
      <ThyngDetailId>2</ThyngDetailId>
      <UserId>sample string 4</UserId>
    </Interaction>
    <Value>3</Value>
  </ConversionModel>
  <ConversionModel>
    <ConversionTime>sample string 5</ConversionTime>
    <Demo>true</Demo>
    <Details>sample string 4</Details>
    <ExtensionId>1</ExtensionId>
    <GoalType>2</GoalType>
    <Id>1</Id>
    <Interaction>
      <Id>1</Id>
      <InteractionTime>sample string 6</InteractionTime>
      <InteractionType>sample string 5</InteractionType>
      <Latitude>1</Latitude>
      <Longitude>1</Longitude>
      <ThyngCode>sample string 3</ThyngCode>
      <ThyngDetailId>2</ThyngDetailId>
      <UserId>sample string 4</UserId>
    </Interaction>
    <Value>3</Value>
  </ConversionModel>
</ArrayOfConversionModel>