Get Target Completion Details

The API retrieves target completion details for the event log IDs related to TargetCompleted events.

🚧

Note

This is a private API and is accessible only through Neo dataflows.

Prerequisites

  • Access to Neo
  • Basic or OAuth authentication details
  • Access group resource - NA

Resource information

URI to be used in Neo dataflow/das/getTargetCompletedExplodeLedger
HTTP methodGET
Pagination supported?Yes
Rate limitBased on Neo
Batch supportNA

Request query parameters

Parameter (Parameters marked with * are mandatory)Data TypeDescription
ledgerEntryTypes*StringType of entry recorded in a customer's points ledger. Allowed values: CREDIT, DEBIT
userId*LongUnique customer ID of the customer
endDate*DateLast date to which you want to retrieve the ledger information. Format: YYYY-MM-DD. Example: 2025-06-22
startDate*DateStart date to which you want to retrieve the ledger information. Format: YYYY-MM-DD. Example: 2025-06-01
alternateCurrencyNamesStringName of the alternate currency for which ledger information is retrieved.
pageIntegerRetrieve details of a specific page. Page count starts from 1. Example: page=2 retrieves data on page 2.
countIntegerNumber of results to display per page. The default value is 10. The maximum supported value is 100.

Response parameters

ParameterData TypeDescription
sourceIdLongID of the source that triggered the event
parentEventLogIdLongID of the parent event log
periodIdLongID of the period (null if not applicable)
returnEventLogIdLongEvent log ID linked to a return (value -1 if not a return)
targetAchievedEventLogIdLongEvent log ID where the target was achieved
targetGroupNameStringName of the target group
processingTimeLongTime when the event was processed, in epoch milliseconds
targetGroupDescriptionStringDescription of the target group
eventTypeIdIntegerType of the event
sourceTypeStringType of the source Example: USERTARGET
billIdLongAssociated bill ID
customerIdLongUnique identifier of the customer
eventTimeLongTime when the event occurred expressed in epoch milliseconds
targetAchievedEventLogCreatedOnLongTime when the target-achieved event log was created expressed in epoch milliseconds
targetGroupIdLongID of the target group
eventLogIdLongUnique identifier for the event log
tillIdLongID of the till where the event occurred
uniqueIdStringUnique identifier for the event
unifiedTargetsAchievedCreatedOnLongTimestamp when unified targets were achieved (null if not applicable)

Sample response

    [
      {
        "sourceId": 2476935,
        "parentEventLogId": 38731902,
        "periodId": null,
        "returnEventLogId": -1,
        "targetAchievedEventLogId": 468000,
        "targetGroupName": "Test_Behavioural_Event_Target",
        "processingTime": 1748950111000,
        "targetGroupDescription": "Test_Behavioural_Event_Target",
        "eventTypeId": 25,
        "sourceType": "USERTARGET",
        "billId": 468000,
        "customerId": 387970841,
        "eventTime": 1748950110000,
        "targetAchievedEventLogCreatedOn": 1748950111000,
        "targetGroupId": 74503,
        "eventLogId": 38731904,
        "tillId": 50692627,
        "uniqueId": "1ff9d4953610d8aa0924b24676b34c8c86f6502c",
        "unifiedTargetsAchievedCreatedOn": null
      }
    ]

Error code

Error CodeDescription
400Bad Request
404Not Found
500Internal Server Error