[ENG] Reward Request Postback API Integration Guide
Since integrations in English isn’t common the guide may not be fully current. Please ask Buzzvil’s Tecnical Support Manager before integrating whether the API guide is up to date.
To reward users, it’s necessary to integrate the Reward Request Postback API. Postback requests are conducted in a Server-to-Server for security purposes.
Summary of Procedures
1. Establish a server endpoint capable of receiving reward requests from Buzzvil (we refer to this endpoint's URL as the postback URL
).
2. Perform Server-to-Server integration as instructed in this guide.
3. Provide the postback URL to Buzzvil's Technical Support Manager.
Index
Introduction
Reward Request API is designed to 1. inform publishers when users participate in an ad (event), 2. request publishers to reward users, and 3. inform Buzzvil whether the reward accrual was successful.
항목 | 내용 | |
---|---|---|
1 | Request Direction | Buzzvil → Publisher |
2 | HTTP Request method | POST - application/x-www-form-urlencoded |
3 | HTTP Request URL | Endpoint on the publisher’s server |
4 | HTTP Request Parameters | Refer to the below “HTTP Request Parameters” table |
5 | HTTP Response Code | The Buzzvil server determines whether the result of the reward request was successful based on the response code received from the publisher’s server.
Response codes other than 200: Refer to standard HTTP response codes |
HTTP Request Parameters
Field | Type | Description |
---|---|---|
REQUIRED | String | User identifier defined by the publisher |
REQUIRED | String | ID issued for the reward. Used to identify each reward and prevent duplicate point issuance. |
REQUIRED | Integer | Amount of reward that should given to the user |
REQUIRED | Long | Identifier for the specific area where ads are placed. For instance, if ads are placed on the lower banner area on an app’s “Home” tab, an ID will be issued for the ad placement area (view). This ID will be issued by Buzzvil. |
REQUIRED | String | Ad title
|
REQUIRED | String | Refers to the action type of the reward request
|
REQUIRED | Long (timestamp) | Timestamp of point issuance (UNIX Timestamp in seconds)
|
REQUIRED | String | If additional parameters need to be added, use this parameter (JSON serialized string value)
|
OPTIONAL | String | Parameter used if encrypting HTTP request parameters |
OPTIONAL | String | Parameter used when sending a Checksum to the HTTP request parameters |
OPTIONAL | String | Custom Parameter specified by the publisher when integrating S2S APIs
|
OPTIONAL | String | Custom Parameter specified by the publisher when integrating S2S APIs
|
OPTIONAL | String | Custom Parameter specified by the publisher when integrating S2S APIs
|
HTTP Request Parameter Postback Example
{
"user_id": "12345",
"point": 1,
"transaction_id": "126905422_10000001",
"event_at": 1641452397,
"unit_id": 5539189976900000,
"action_type": "l",
"title": "\uad11\uace0\u0020\ud2b9\uac00",
"extra": "{}"
}
IP Whitelist
To receive reward request postbacks from Buzzvil servers, please whitelist the following IPs on your firewall.
18.179.158.39
52.68.114.43
Request Parameter Verification OPTIONAL
It is possible to encrypt or add verifications for reward request postbacks sent from the Buzzvil server. This process is not mandatory but provides two methods if needed.
1. HTTP Request Parameter Encryption/Decryption
If you want to encrypt the HTTP request parameters sent from the Buzzvil server to the media, use this method. The encryption method provided is the Advanced Encryption Standard (AES), with AES-256
as the block encryption and using Cipher Block Chaining (CBC) mode and PKCS7
padding.
Sample Code
2. Add Checksum Parameter
Use this method if you want to add a checksum parameter to Request Parameters for postback data verification. The provided verification method is HMAC authentication using the SHA-256
algorithm.