The rental's affiliate program: its affiliates, and the commissions their referrals earn. Needs a key made with the affiliate right.
The program's affiliates
Every member of the program, with what each has brought and is owed, all time.
path Parameters
slugquery Parameters
statusThe program's affiliates › Responses
OK
Add an affiliate
Active at once, as when a person adds one on the Affiliates screen. An affiliate with an email gets the welcome email. An email the organization already has is the same person, who keeps the details they have.
path Parameters
slugAdd an affiliate › Request Body
nameemailphonecompanyregistrationNoKennitala, ten digits.
vatNoVAT number.
codeThe code in the link. Made from the name when left out.
Add an affiliate › Responses
Added
One affiliate
path Parameters
slugidOne affiliate › Responses
OK
Commissions
What referred bookings earn, newest first. A commission is pending until the car is back, due once it is, approved after the approval wait, then paid. A cancelled booking makes it void, and a chargeback after payment makes it reversed.
path Parameters
slugquery Parameters
statusaffiliateIdlimitCommissions › Responses
OK
Approve a commission
The organization's key only: a channel's key answers 403 organization_only. Only a due commission, once the approval wait has passed: the same as Approve on the Affiliate commissions screen.
path Parameters
slugbookingIdApprove a commission › Responses
Done
Reject a commission
The organization's key only: a channel's key answers 403 organization_only. A pending, due or approved commission. It becomes void, with the reason rejected. A paid, void or reversed one answers 409 with not_open.
path Parameters
slugbookingIdReject a commission › Responses
Done