合作方同步技术规范
骑手字段
只有 external_id 和 name 是必需的。其他字段有什么就发送什么。
| 键 | 类型和取值 | 在 BFF Pro 中 |
|---|---|---|
external_id |
1 到 64 个字符的字符串。按完全一致进行匹配。首尾空格会被去掉。不得包含换行符或其他控制字符。 | 外部 ID |
name |
字符串:适配师应看到的全名 | 姓名 |
nickname |
字符串 | 昵称 |
email |
字符串 | 联系信息:电子邮件 |
phone |
字符串。最好使用国际格式(+16125550142)。 |
联系信息:电话 |
whatsapp |
字符串 | 联系信息:WhatsApp |
address |
字符串,各行之间用 \n 分隔 |
联系信息:地址 |
birthdate |
日期,格式为 YYYY-MM-DD |
出生日期 |
gender |
male、female、other |
性别 |
height_cm |
数字,单位为 cm | 身高 |
weight_kg |
数字,单位为 kg | 体重 |
flexibility |
very_limited、limited、average、flexible、very_flexible |
柔韧性 |
ability |
novice、intermediate、advanced、elite |
能力 |
cycling_experience |
new、1_2_years、3_4_years、5_plus_years |
骑龄 |
interests |
由 road、gravel、mtb、commuting、touring、rec、tri、tt、track、cyclocross 组成的数组 |
兴趣 |
medical_notes |
字符串。它属于敏感信息,因此只有在适配师需要时才发送。它只会传入:BFF Pro 从不把它发送出去。 | 受伤 / 手术 |
notes |
字符串 | 备注 |
custom_data |
由 { "section", "label", "value", "unit" } 组成的数组。section 为 personal、cycling_profile、body 或 physical。value 为文本或数字。unit 可选。 |
自定义数据行 |
bike |
可选对象(见下文) | 这位骑手的一辆自行车 |
自行车(可选):
| 键 | 类型和取值 |
|---|---|
make, model, year |
字符串 |
type |
road、aero、mountain、spin、fitting、other |
type_other |
type 为 other 时的字符串 |
frame_size |
字符串,例如 "56" 或 "M" |
几何数据和自行车测量值不在这个列表中。它们在适配中测量。
示例:
{
"schema": "bff.riders",
"schema_version": 1,
"source": { "id": "lab", "name": "Example Lab" },
"generated_at": "2026-10-21T21:40:00Z",
"riders": [
{ "external_id": "0b7e3c52-8f1a-4d6e-9a2b-5c4f7d1e8a63", "name": "Ana Larsen" },
{
"external_id": "c9a41f07-2e5b-4b8d-a3f6-7d0e9b2c1f54",
"name": "Samuel Okafor",
"email": "sam.okafor@example.com",
"birthdate": "1988-04-17",
"gender": "male",
"height_cm": 182.5,
"weight_kg": 76.2,
"interests": ["road", "gravel"],
"custom_data": [
{ "section": "body", "label": "Inseam", "value": 84.0, "unit": "cm" }
],
"bike": { "make": "Specialized", "model": "Tarmac SL8", "year": "2024", "type": "road", "frame_size": "56" }
}
]
}
这部分内容对你有帮助吗?再多说一些