Affiliates
Create an affiliate invitation
Changed onInvite someone to your affiliate program by email. They receive an invitation email and become an active affiliate once they accept. If program_id is omitted, the invitation is created for your store's affiliate program.
post/v1/affiliates/invites
Request
- Base URLhttps://api.creem.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"email": "partner@example.com",
"name": "Jane Partner",
"program_id": "prog_1234567890"
}Response
Successfully created the affiliate invitation
Example response
{
"object": "affiliate-invite",
"email": "partner@example.com",
"name": "Jane Partner",
"status": "pending"
}Changes
- info
endpoint added
- info