Apply to the referral program
POST
/me/referrals/application
const url = 'https://api.invogi.com/v1/me/referrals/application';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"company_name":"Example supplier","applicant_type":"OTHER","country":"example","referral_plan":"examplexxxxxxxxxxxxx","accept_terms":true}'};
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.invogi.com/v1/me/referrals/application \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "company_name": "Example supplier", "applicant_type": "OTHER", "country": "example", "referral_plan": "examplexxxxxxxxxxxxx", "accept_terms": true }'Requires a signed-in Clerk session; no workspace selection is needed.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
company_name
required
string
applicant_type
required
string
country
required
string
referral_plan
required
string
accept_terms
required
boolean
website
null | string
Example
{ "company_name": "Example supplier", "applicant_type": "OTHER", "country": "example", "referral_plan": "examplexxxxxxxxxxxxx", "accept_terms": true}Responses
Section titled “Responses”Successful response
Media typeapplication/json
Any of:
object
referrer
required
null
balances
Array<object>
object
currency
required
string
pending
required
string
payable
required
string
paid
required
string
referrals
Array<object>
object
label
required
string
signedUpOn
required
string
progress
required
string
commissionEndsOn
required
null | string
earned
required
Array<object>
object
currency
required
string
amount
required
string
object
referrer
required
object
status
required
string
code
required
null
appliedAt
required
string
companyName
required
string
approvedAt
null | string
balances
Array<object>
object
currency
required
string
pending
required
string
payable
required
string
paid
required
string
referrals
Array<object>
object
label
required
string
signedUpOn
required
string
progress
required
string
commissionEndsOn
required
null | string
earned
required
Array<object>
object
currency
required
string
amount
required
string
object
referrer
required
object
status
required
string
code
required
null | string
appliedAt
required
string
approvedAt
required
null | string
companyName
required
string
balances
required
Array<object>
object
currency
required
string
pending
required
string
payable
required
string
paid
required
string
referrals
required
Array<object>
object
label
required
string
signedUpOn
required
string
progress
required
string
commissionEndsOn
required
null | string
earned
required
Array<object>
object
currency
required
string
amount
required
string
Example
{ "referrals": [ { "progress": "SIGNED_UP" } ]}Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json