确认代您提交的入会申请(来自邮件中的链接)
const url = 'https://api.vimine.network/v1/enroll/confirm';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example","identification":{"dob":"2026-04-15","birthplace":"example","birth_country":"example","codicefiscale":"example","codicefiscale_confirmed":true},"address":{"kind":"residence","line":"example","postal_code":"example","city":"example","province":"example","country":"IT"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vimine.network/v1/enroll/confirm \ --header 'Content-Type: application/json' \ --data '{ "token": "example", "identification": { "dob": "2026-04-15", "birthplace": "example", "birth_country": "example", "codicefiscale": "example", "codicefiscale_confirmed": true }, "address": { "kind": "residence", "line": "example", "postal_code": "example", "city": "example", "province": "example", "country": "IT" } }'使用确认链接所携带的令牌,并创建待处理的入会申请。重放是幂等的:链接使用两次只会返回当前状态。
请求体必填
章节“请求体必填”object
仅在收到 409 identification_required 之后提供:账户仍然缺少的信息——税号,或出生日期、出生地和出生国。只补全个人资料中为空的字段,绝不覆盖已有内容
object
仅在收到 409 address_required 之后提供:协会要求每位会员提供地址(其公开资料中为 member_address: required)。协会声明为 optional 时可选;协会不收集地址时则忽略
object
街道和门牌号
仅限意大利地址(两个字母);国外地址则舍弃
ISO 3166-1 alpha-2
响应
章节“响应”200
章节“200”该协会中的入会申请
object
当事人在此已有入会申请或会员资格
会员资格仍在等待的原因,按顺序排列:先是协会的批准(当协会由理事会决定是否接纳时),然后是会费。生效后为空
现在可以缴纳会费了吗?在等待批准期间为 false:获得批准后才开放缴费
会员卡何时可以使用,适用于处于协会设定的可用间隔内的有效会员资格;否则为 null
object
仅当链接由协会托管的入会页面发出,且该页面是从协会的某个公开活动打开时提供:当事人随入会申请一起申请的名额结果如何。其他所有链接均为 null
object
object
0 = 免费
confirmed:名额归其所有。reserved:已保留,参见 waiting。held:入会申请本身仍在等待邮箱地址确认,尚未申请名额。unavailable:没有名额,参见 reasons
reserved 名额在等待什么:会员资格生效(届时若免费则自动确认)、参与费,或两者皆有
名额为何为 unavailable:即 GET /v1/events/{slug}/eligibility 给出的原因
如何缴纳应付的参与费,采用协会自己的表述
在使用链接之前,当事人已持有此名额
示例
{ "status": "pending", "pending_reasons": [ "approval" ], "event": { "state": "confirmed", "waiting": [ "membership" ] }}400
章节“400”链接无效或已过期(invalid_token)
404
章节“404”未找到
object
object
示例自动生成
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}409
章节“409”链接发出后章程已变更(statuto_outdated);账户尚未识别身份(identification_required,errors[] 列出缺少的内容):请带上 identification 再次提交令牌;或者协会要求每位会员提供地址(address_required):请带上 address 再次提交令牌
422
章节“422”identification 信息块未通过校验(validation_failed)
429
章节“429”已触发速率限制
object
object
示例自动生成
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}500
章节“500”内部错误
object
object
示例自动生成
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}