# Testing S2S API Integration

{% hint style="success" %}
**Note**

**When S2S API integration is required**&#x20;

It is suitable for linking **data** (POS data, external customer center data, offline data, etc.) **from areas other than the client (App & Web)** that are difficult to collect and analyze through SDK integration.
{% endhint %}

This document provides a step-by-step guide to verifying the success of your S2S API integration, covering the following three topics:

{% hint style="info" %}

1. **Event/Event Attribute Data Occurrence**\
   : Check whether the event set via the API has been collected normally.

2. **User identification information**\
   : Check whether user identification information such as external ID (user ID) and phone number is normally collected during the login or membership registration process.

3. **User profile attribute information**\
   : Check whether user profile attribute information such as name and gender has been collected normally.
   {% endhint %}

## **Check event** integration

You can check the event and event attribute data called by API directly in the console report.&#x20;

The report can be **checked about 30 minutes** after calling the event.

**Path**

Console left menu: Analysis > Reports

### **Click the 'Create Report' button**

Click the '+Create Report' button in the upper right corner to create a new report.

#### &#x20; <a href="#undefined-2" id="undefined-2"></a>

### **Metrics, Group by Settings**

In the right area of ​​the report creation page, set the metrics and group by as follows.

<figure><img src="https://content.gitbook.com/content/KGOeGww72vu5In7SeJ8c/blobs/TiuTaglqFwL27MrInfPT/image.png" alt=""><figcaption><p>예시</p></figcaption></figure>

* Metric: **Total events/count**
* Group By > Event/Event Attributes: **DFN Library Platform, Event Name, Event Attributes** (ex. Order Number (ID)).\
  \
  The data confirmed for each Group By item in the example screen is as follows.
  * DFN Library Platform: HTTP\_API
  * Event name: Login, Purchase, Add to Cart, etc.
  * Event property: Event property value

{% hint style="success" %}
You can set up to 3 group buys.
{% endhint %}

### **Click the Apply button**

Click the 'Apply' button at the bottom right to load the report data.

### **Check event name and event property values**

Select the generated report by hour (24 hours). Check the event and event property values ​​called at the time the test was performed.

## **Verify user identification information**

User identification information is data that distinguishes users, such as external ID (user ID), email, mobile phone number, Kakao ID, and Line ID. User identification information set in the app or web can be checked in **the user profile list** in the console **within about 5 minutes** after setting the user identification information.

**Path**

Console left menu: Customer > User Profile 360

### **Retrieve user identification information** <a href="#undefined-10" id="undefined-10"></a>

**Enter keyword > Filter all > Enter the identifier you set**

Search for user identification information set in the app or web.&#x20;

For example, if the external ID is set to *'DFNuser'* , search for the keyword *'DFNuser' .*

<figure><img src="https://docs.dfinery.ai/~gitbook/image?url=https%3A%2F%2F851339439-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fw80cM0G3UdX6uGwQB5zz%252Fuploads%252FA66kgPhuanBibSzruAOx%252Fimage.png%3Falt%3Dmedia%26token%3Dc4f0f19f-2be6-4301-9d90-4024109c5082&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=a5e431a&#x26;sv=2" alt=""><figcaption></figcaption></figure>

### **Verify user identifier** <a href="#undefined-11" id="undefined-11"></a>

Check the list of matches for your search keywords.

<figure><img src="https://docs.dfinery.ai/~gitbook/image?url=https%3A%2F%2F851339439-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fw80cM0G3UdX6uGwQB5zz%252Fuploads%252FRxCTgRG2g5sPMsHI6yho%252Fimage.png%3Falt%3Dmedia%26token%3Df1f659f4-5ddd-404e-b4ce-04aab83465a3&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=68809714&#x26;sv=2" alt=""><figcaption></figcaption></figure>

## **Check user profile information**

User profile attributes are user attribute information such as name and gender. You can check the user profile information set in the app or web in the console. User profile attribute data can be checked **within approximately 10 minutes** from the time of setting.

{% hint style="warning" %}
**Prerequisites**

The user profile property you want to set must be changed to **enabled in the console.** [\[Create User Profile Property\]](https://docs.dfinery.ai/user-guide/begin-to-use-dfinery/event-and-property#undefined-16)
{% endhint %}

**Path**

Console left menu: Customer > User Profile 360

### **Retrieve user identification information** <a href="#undefined-13" id="undefined-13"></a>

Searches for user identification information that has set a user profile by keyword. ex) **External ID: If the user profile** name **is** set to *DFINERY* in ***DFNuser, search for the DFNuser*** keyword.

{% hint style="danger" %} <mark style="color:red;">**※ For security purposes, please link a unique number used for internal management purposes.**</mark> <mark style="color:red;"></mark><mark style="color:red;">(Ex. Even if the external ID is dfinery123, data linking is required, such as 1230102301.)</mark>
{% endhint %}

### **Enter the basic information page** <a href="#undefined-14" id="undefined-14"></a>

Select the integrated ID from the keyword search results to enter **the basic information page.**

<figure><img src="https://docs.dfinery.ai/~gitbook/image?url=https%3A%2F%2F851339439-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fw80cM0G3UdX6uGwQB5zz%252Fuploads%252FDLsTDshz26GmBfONs8Ix%252Fimage.png%3Falt%3Dmedia%26token%3D3db1023a-1542-49a8-a862-056696077b52&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=c81d10a3&#x26;sv=2" alt=""><figcaption></figcaption></figure>

### **Check user profile information** <a href="#undefined-15" id="undefined-15"></a>

Check the user profile information set in the app or webpage. ex) Standard user properties - **Name:&#x20;*****DFINERY***

<figure><img src="https://docs.dfinery.ai/~gitbook/image?url=https%3A%2F%2F851339439-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fw80cM0G3UdX6uGwQB5zz%252Fuploads%252FDIaWnwC212VNF1TS04mb%252Fimage.png%3Falt%3Dmedia%26token%3D9c0cdeb6-3c02-4715-a878-dccf0381396e&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=7d726377&#x26;sv=2" alt=""><figcaption></figcaption></figure>
