{
  "eventName": "order.created",
  "eventId": "3f5bffbc-369e-4599-8c4d-abfe0ae0ef96",
  "timestamp": 1632345000,
  "sessionId": "345397c6-d963-4aa4-a0ba-2aaca6c3ee05",
  "requestId": "23539478-c744-566a-c78c-c4cc7763ff62",
  "result": "success",
  "reason": "invalid_credentials",
  "attributes": {
    "persona": "non_payer",
    "blackFridayTest": "Base_group"
  },
  "customer": {
    "playerId": "671e81bb-55ef-428b-97ba-f67783971e0d",
    "email": "john.doe@gmail.com"
  },
  "offer": {
    "externalId": "22ae81bb-55ef-428b-97ba-f67783971e4a",
    "type": "PopUp",
    "subType": "DailyBonus",
    "name": "Spring Is Here",
    "indexToCollect": "1", 
    "products": [
      {
        "displayName": "Gold Coins",
        "productExternalId": "31ae81bb-55ef-428b-97ba-f67783971e553",
        "productQuantity": "1000"
      },
      {
        "displayName": "Silver Shield",
        "productExternalId": "9af1abb-55ef-428b-97ba-f677839716ac9",
        "productQuantity": "40"
      }
    ]
  },
  "order": {
    "subtotal": 1000,
    "discountAmount": 200,
    "totalPayment": 850,
    "taxAmount": 50,
    "currencyCode": "USD",
    "currencySymbol": 36,
    "paymentMethod": "credit_card",
    "pricePointMetadata": 999,
    "isSavedPaymentMethodUsed": true,
    "isNewPaymentMethodSaved": false
  },
  "storeMetadata": {
    "offerType": "Bundle",
    "offerSequenceIndex": "1"
  },
  "geolocation": {
    "countryCode2": "US",
    "region": "Florida",
    "ipAddress": "192.168.1.1.",
    "zipCode": "34997"
  },
  "sessionMetadata": { "abTest": "group1", "locale": "en-US" }
}
An event triggered when a new order session is initialized, either from the web store or via direct API call. Event Data
eventName
string
Event name.
eventId
string
Event ID.
timestamp
number
Event timestamp in Epoch time. Example: 1632345000.
sessionId
string
The session ID of the player’s current session. Example: 345397c6-d963-4aa4-a0ba-2aaca6c3ee05.
requestId
string
ID assigned by Appcharge to each request sent to the publisher. Helps the publisher identify and debug failed requests.
result
string
Event result. Example: success.
reason
string
Reason for the event result. Example: invalid_credentials.
attributes
map<any,any>
A key-value map used to label events for tracking personas or tests. Example: { "persona":"non_payer", "blackFridayTest":"Base_group" }
customer
object
Information about the player.
offer
object
List of offers.
order
object
storeMetadata
object
geolocation
object
Information about the player’s geolocation.
sessionMetadata
object
Session metadata.
{
  "eventName": "order.created",
  "eventId": "3f5bffbc-369e-4599-8c4d-abfe0ae0ef96",
  "timestamp": 1632345000,
  "sessionId": "345397c6-d963-4aa4-a0ba-2aaca6c3ee05",
  "requestId": "23539478-c744-566a-c78c-c4cc7763ff62",
  "result": "success",
  "reason": "invalid_credentials",
  "attributes": {
    "persona": "non_payer",
    "blackFridayTest": "Base_group"
  },
  "customer": {
    "playerId": "671e81bb-55ef-428b-97ba-f67783971e0d",
    "email": "john.doe@gmail.com"
  },
  "offer": {
    "externalId": "22ae81bb-55ef-428b-97ba-f67783971e4a",
    "type": "PopUp",
    "subType": "DailyBonus",
    "name": "Spring Is Here",
    "indexToCollect": "1", 
    "products": [
      {
        "displayName": "Gold Coins",
        "productExternalId": "31ae81bb-55ef-428b-97ba-f67783971e553",
        "productQuantity": "1000"
      },
      {
        "displayName": "Silver Shield",
        "productExternalId": "9af1abb-55ef-428b-97ba-f677839716ac9",
        "productQuantity": "40"
      }
    ]
  },
  "order": {
    "subtotal": 1000,
    "discountAmount": 200,
    "totalPayment": 850,
    "taxAmount": 50,
    "currencyCode": "USD",
    "currencySymbol": 36,
    "paymentMethod": "credit_card",
    "pricePointMetadata": 999,
    "isSavedPaymentMethodUsed": true,
    "isNewPaymentMethodSaved": false
  },
  "storeMetadata": {
    "offerType": "Bundle",
    "offerSequenceIndex": "1"
  },
  "geolocation": {
    "countryCode2": "US",
    "region": "Florida",
    "ipAddress": "192.168.1.1.",
    "zipCode": "34997"
  },
  "sessionMetadata": { "abTest": "group1", "locale": "en-US" }
}