API Reference
中文

MarketingCode

Event Type: marketing_code

  • marketing[* Object Marketing]: Marketing Information
    • marketing_id[* String]: Marketing ID
    • open_id[String]: Open ID
    • open_id_type[String]: Open ID Type
    • begin_time[Long]: Begin Time, timestamp (milliseconds), UTC, Jan 1, 1970
    • expire_time[Long]: Expire Time, timestamp (milliseconds), UTC, Jan 1, 1970
  • marketing_code[* Object MarketingCode]: Marketing Code Information
    • code_id[* String]: Code ID
    • code_image[String]: Code Image Content, image URL
    • is_valid[Boolean]: Is Valid? enumeration
      • true
      • false
    • is_used[Boolean]: Is Used? enumeration
      • true
      • false
  • marketing_address[Object Address]: Marketing Address
    • country[* String]: Country, 2-letter country code according to ISO 3166
    • region[* String]: Region
    • city[* String]: City
    • district[String]: District
    • detail[String]: Detailed Address
    • zip_code[String]: Zip Code
  • marketing_merchandise[Object Merchandise]: Marketing Merchandise
    • merchandise_id[* String]: Merchandise ID
    • category_1[* String]: The primary classification of Merchandise
    • category_2[String]: Secondary classification of Merchandise
    • category_3[String]: Three-level classification of Merchandise
    • name[String]: Merchandise Name
    • count[Integer]: Merchandise Count
    • unit_price[Object Amount]: Merchandise Unit Price
      • currency[* String]: Local Currency Type, 3-letter code according to ISO 4217
      • amount_local[* Double]: Amount ( Local Currency )
      • amount_usd[Double]: Amount ( USD ), The USD amount is converted from the original amount by the exchange rate, (required when not access to China Server)
      • amount_cny[Double]: Amount ( CNY ), The CNY amount is converted from the original amount by the exchange rate, (required when accessing a China Server)
{
    "marketing": {
        "marketing_id": "X08938",
        "open_id": "o6_bmjrPTlm6_2sgVt7hMZOPfL2M",
        "open_id_type": "wechat",
        "begin_time": 1596358039000,
        "expire_time": 1616358039000
    },
    "marketing_code": {
        "code_id": "XC08938",
        "code_image": "https://tdcode.com/a.jpg",
        "is_valid": true,
        "is_used": false
    },
    "marketing_address": {
        "country": "FR",
        "region": "Grand Est",
        "city": "Strasbourg City",
        "district": "Ketali Lorem",
        "detail": "3213 Building,lorem Street",
        "zip_code": "310000"
    },
    "marketing_merchandise": {
        "merchandise_id": "NFH837824432",
        "category_1": "3c",
        "category_2": "phone",
        "category_3": "android",
        "name": "huawei phone",
        "count": 1,
        "unit_price": {
            "currency": "USD",
            "amount_local": 1000,
            "amount_usd": 1000,
            "amount_cny": 6800
        }
    }
}