Creates a new sale under the specified affiliate program. You must provide either a referralId, email, or promoCode to identify the affiliate and referral. When using a promo code, it will be validated for expiration, redemption limits, and active status.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Sale details
Total amount earned from the sale
The referral ID, or affiliate link or affiliate ID associated with the sale (required if email and promoCode are not provided)
Email associated with the sale (required if referralId and promoCode are not provided)
The promotional code associated with an affiliate (required if referralId and email are not provided). When used, the promo code will be validated and its redemption count will be incremented.
Name of the customer (required if not found via referralId or email)
The external ID of the sale. This is the ID of the sale in the external system or your database.
The external invoice ID of the sale. This is the ID of the invoice in the external system or your database (Useful if you invoice your customers when they purchase your product).
Commission rate for the sale (optional, defaults to affiliate's commission rate)
Sale created successfully
The sale ID
The affiliate ID associated with the sale
The referral ID associated with the sale
The external ID of the sale. This is the ID of the sale in the external system or your database.
The external invoice ID of the sale. This is the ID of the invoice in the external system or your database (Useful if you invoice your customers when they purchase your product)
Name of the customer who made the sale
Email associated with the sale
Total amount earned from the sale
Commission rate for the sale
Creation timestamp of the sale