Open API Specification
Last updated
Last updated
Here you will find our OpenAPI specification for the Chainvine API.
Always call this method early on in your flows to fetch a user's Chainvine ID.
Note: the SDK handles calling this endpoint for your when using the SDK to call the methods in the ChainvineUser section.
This endpoint can also be used to update the user's information.
These endpoints can also be covered via the SDK. Please see methods outlined there as needed or examples of how to use these endpoints to suit your needs.
If you would like to generate custom code for the endpoints above, please visit our swaggerhub page and select the "Export" drop down at the top right of the page.
Create a referral between a referrer and a claimer
/api/v2/user/{user_id}/campaign/{campaign_id}/link/referral
The campaign id you want to create a referral in
The campaign id you want to create a referral in
joidj2odkd
The referring user's Chainvine Id, obtained via the referral link r parameter
fjdopwdp2pmosjo2ds
0x03jkd0ij2od
No body
Records a click on a user's referral URL
/v1/chainvine/community/{community_id}/campaign/{campaign_id}/record-click
The campaign id to track the link click against
The referrer's referral code (found in the URL)
The campaign id you want to create a referral in
joidj2odkd
The referring user's Chainvine Id, obtained via the referral link r parameter
fjdopwdp2pmosjo2ds
0x03jkd0ij2od
No body
/api/v2/users
^(wallet|email|externalId)
Generates your user's referral url for the program id provided
/api/v2/user/{user_id}/campaign/{campaign_id}/referral/url
The campaign id you want to generate a referral url for
No body
Send a custom transfer event with a monetary payload to apply to credit as a reward to the referrer who referrer the user
/api/v2/user/{user_id}/campaign/{campaign_id}/events/transfer
The campaign id you want to generate a transfer event in
12443.43
anId123
Ok
134.32
Ok
Ok
134.32
Ok
Ok
Completes a requirement for a user within a referral program/campaign
https://docs.chainvine.xyz/technical/sdk/use-cases/requirements/completing-a-requirement-for-a-user
/api/v2/user/{user_id}/requirements/complete
The id of the requirement your wish to complete for the user
d0djj9dj9dj0jk