Attach custom metadata to a partner and their events during signup using query parameters.
The Partner API allows attaching custom metadata fields to both:
This is done by including extra query parameters in the sign-up URL. These parameters are automatically parsed and stored as metaData
on the user and cascade to their events.
When sending a partner to your signup URL, include:
referral_code
<https://organizer.3common.com/auth?referral_code=><your_code>&<key1>=<value1>&<key2>=<value2>...
<https://organizer.3common.com/auth?referral_code=hello123&any=123&field=abc&you=123&want=abc>
referral_code=hello123
is required.any
, field
, you
, want
) are attached as metadata.This results in the following structure being saved:
metaData: {
"any": "123",
"field": "abc",
"you": "123",
"want": "abc"
}