Report thông tin chuyển đổi và hoa hồng

Base URL:

http://<host-name>/api/v2/publisher/conversion

Header:

X-Network-Id  :  2
X-Port-Type   :  PUB
Content-Type  :  application/x-www-form-urlencoded
Authorization :	Bearer {access_token}

Params Request

Param Name

Data Type

Required? (Y/N)

Description

identifier_id

String

Y

ID người giới thiệu (ID member của OCB)

campaign_id

String

N

ID của chiến dịch / chương trình

order_id

String

N

ID của order

page

Number

Y

Trang hiện tại

page_size

Number

N

Số lượng kết quả trả về / 1 trang, mặc định là 20

click_id

String

N

ID của click

status

String

N

Trạng thái chuyển đổi: pending, pre_approved, approved, rejected, hold

from_time

DateTime

Y

Từ ngày phát sinh chuyển đổi, định dạng yyyy-MM-dd HH:mm:ss

to_time

DateTime

Y

Đến ngày phát sinh chuyển đổi, định dạng yyyy-MM-dd HH:mm:ss

Response:

{
   "status":"success",
   "data": "eyJpdiI6ImwxS1pERkVpNlNWcS9vbHh1ZkxGa2c9PSIsInZhbHVlIjoib3dVZ2d3RkxBZEwyOWdQWWZ1cFM5TTNWOUQxOHFIL1hFVDBML3ZzZVhKY014SXJvbFBzaWhHWEFkbk1oREdIUGJBeDM5UGtQUUZUT1VVNHkrRHlvYk94Z2l0Mzk5T1kwdURHQ2dJUDBiNk1uNjc4ZEVrOTZ1SWhNckhFRlRVczJpcWlWMzFZb01tZkhkYnZiVUNxOWUrSDBMemRKNExBU1UyQ0RsM1NwR0NzdFV4UHY1eEdRbjF2TWdheFRtUHZOWjY4NUIzTk1jNWo3VzJkMitSS1JFVFg4RXgxTUduRDdpb2lGOFpxNWUxeVNhV0VOcHFoYXh4MGRwOVlLRFo2UDhiTENRUjJwZmF4TmxvMS9HTTlFYytuMmJ0VVNQZ1UrWWxvejU5VWxWa2gyN2w5Mjg3cnRZTG0yNzRPd2I0d2dLblhGUncrTU1WTjFCZ0E4b2pabXg1M0UrYUM3OXY1WVdZQzhpenB1K0hvMm1BL2xmSVlqRmZlVzZ5djM1dk1lV2JndU5LZmxUS0JKM21pSVJG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lZVVJlbWhoaVI4dnRiUk1mSExnPT0iLCJtYWMiOiI5OGNmNWUwM2JjOWI1YmM4OTYyZmVjOTE4ZTc3MTZmNGM2ZjZiMTVkMWIyZjkzZTExZGI5ZmU5YzExNWE3YjRhIn0="
}

Data sau giải mã

{
      "conversions":[
         {
            "conversion_id":"5eccdbfc6c906f1659c422f9",
            "click_id":"e269ae8f11a74deba332e0028b224e6d",
            "campaign_id":"254",
            "campaign_code":"CAM000000254",
            "order_id":"4aba2fa414ab40d093761130178db923",
            "action":"sale",
            "action_time":1590483964129,
            "action_date_time":"2020-05-26T16:06:04+0700",
            "total_discount":{
               "amount":0,
               "currency":"VND"
            },
            "total_sale_amount":{
               "amount":0,
               "currency":"VND"
            },
            "total_commission":{
               "amount":0,
               "currency":"VND"
            },
            "client_ip":"222.252.31.232",
            "user_agent":"PostmanRuntime\/7.25.0",
            "conversion_parts":[
               {
                  "id":"dang_ky_the_OCB_thanh_cong",
                  "sku":"dang_ky_the_OCB_thanh_cong",
                  "url":"http://ocb_omni/register/?clickid=12344455",
                  "price":0,
                  "discount":0,
                  "sale_amount":0,
                  "currency":"VND",
                  "name":"dang_ky_the_OCB_thanh_cong",
                  "category_name":"dang_ky_the_OCB_thanh_cong",
                  "category_id":"dang_ky_the_OCB_thanh_cong",
                  "quantity":1,
                  "commission":{
                     "amount":0,
                     "currency":"VND"
                  },
                  "calculate_by":"FIXED"
               }
            ],
            "status":"pre_approved",
            "reason":[               
               {
                  "log_time":"2020-05-26T16:36:05+0700",
                  "log_action":"edit[Conversion_Info by mp_api_d2c]",
                  "log_message":"g\u1ecdi l\u1ea7n 1 => b\u1eadn, thu\u00ea bao, kh\u00f4ng nghe m\u00e1y => g\u1ecdi l\u1ea7n 2 sau 60 ph\u00fat"
               },
               {
                  "log_time":"2020-05-26T17:36:17+0700",
                  "log_action":"edit[Conversion_Info by mp_api_d2c]",
                  "log_message":"g\u1ecdi l\u1ea7n 2"
               }
            ],
            "created_time":"2020-05-26T16:06:04+0700",
            "updated_time":"2020-05-26T17:36:40+0700",
            "identifier_id":"6477853091020073",
            "click_detail":{
               "click_id":"e269ae8f11a74deba332e0028b224e6d",
               "publisher_id":"9",
               "publisher_name":"4021ece215fc3d9f69a3f9b99fb740cf",
               "ad_space_code":"ADS000000002",
               "contract_no":"CON000000001",
               "advertiser_name":"ocb_omni",
               "campaign_name":"OCB OMNI",
               "campaign_id":"254",
               "campaign_code":"CAM000000254",
               "campaign_domain":"test23232.vn",
               "client":{
                  "clientId":"0dfc3afc463a80606ef988839d762c46",
                  "clientIp":"222.252.31.232",
                  "clientTimeZone":"GMT+07:00",
                  "clientLang":"vi",
                  "userAgent":"PostmanRuntime\/7.25.0",
                  "deviceModel":"Other",
                  "deviceFamily":"Unknown",
                  "deviceBrand":"unknown",
                  "deviceType":"Desktop",
                  "deviceName":"Unknown",
                  "deviceOs":"Unknown",
                  "deviceBrowserId":"16843022",
                  "deviceBrowserName":"Unknown",
                  "deviceBrowserVersion":null,
                  "location":"VN",
                  "mobileDevice":false,
                  "desktopDevice":true,
                  "tabletDevice":false
               },
               "click_uri":"Local API",
               "referer_uri":"#",
               "origin_uri":null,
               "target_uri":"#",
               "status":null,
               "version":"v1",
               "click_time":"2020-05-26T16:06:03+0700"
            },
            "cal_commission":{
               "total_cal_commission":{
                  "amount":0,
                  "currency":"VND"
               },
               "total_cal_commission_pub":{
                  "amount":0,
                  "currency":"VND"
               },
               "total_cal_commission_at":{
                  "amount":0,
                  "currency":"VND"
               },
               "total_cal_commission_agent":{
                  "amount":0,
                  "currency":"VND"
               },
               "cal_commission_parts":null
            },
            "adv_utm_param":{
               "utm_source":"accessTrade",
               "utm_medium":"CPO",
               "utm_campaign":"CAM000000254",
               "utm_term":"",
               "utm_content":""
            },
            "pub_utm_param":{
               "utm_source":"",
               "utm_medium":"",
               "utm_campaign":"",
               "utm_term":null,
               "utm_content":"",
               "sub":"",
               "sub1":"",
               "sub2":"",
               "sub3":"",
               "sub4":""
            }
         }
      ],
      "meta":{
         "page":1,
         "page_size":20,
         "total":1,
         "total_sale_amount":0,
         "total_pub_commission":0,
         "total_agent_commission":0,
         "total_at_commission":0,
         "total_commission":0,
         "total_conversion_part_quantity":1
      }
}

conversion_id

id của chuyển đổi

click_id

thông tin conversion đến từ click

action_date_time

Ngày tạo ra chuyển đổi

status

Trạng thái của conversion. Trạng thái mặc định khi tạo conversion là pending. Dùng API update status để thay đổi trạng thái

Last updated

Was this helpful?