API Reference

Customer

字段类型描述是否必填
idstring唯一idY
emailstring邮箱Y
phonestring手机号码N
country_codestring国家二代码,如果手机号不为空,该值必填N
first_namestringFIrst nameN
last_namestringLast nameN
email_marketing_consentobject邮件订阅状态 MarketingConsentN
sms_marketing_consentobject短信订阅状态 MarketingConsentN
default_addressobject默认地址 Default AddressN
citystring所在城市N
localestring语言N
created_atnumber创建时间,10位时间戳精确到秒Y
tagsarray用户标签 例子: ["vip","loyal"]N
tag_valuestring用户分类标签 目前且支持默认放到sys_api目录下面 eg:vip:buyN
genderstring性别:boy/girl/unknownN
birth_datestring生日YYYY-MM-DDN

Default Address

字段类型描述是否必填
first_namestringFIrst nameN
last_namestringLast nameN
phonestring手机号码N
country_codestring国家二代代码N
country_namestring国家名称N
province_codestring洲/省编码N
provincestring洲/省N
citystring城市N
zipstring邮编N
address1string详细地址1N
address2string详细地址2N

MarketingConsent

字段类型描述是否必填
statestring订阅状态取值变量 subscribed(订阅),undefined(未定义),not_subscribed(退订,退订状态只可以修改一次)Y
updatedAtnumber创建时间,10位时间戳精确到秒Y

JSON结构

{
    "id": "2",
    "email": "[email protected]",
    "first_name": "testing",
    "last_name": "2",
    "created_at": "1686973206",
    "email_marketing_consent": {
        "state": "subscribed",
        "updatedAt": 1717577626
    },
    "sms_marketing_consent": {

    },
    "default_address": {

    }
}