# Referly ## Docs - [Create an Affiliate](https://developers.referly.so/api-reference/affiliates/create.md): Creates a new affiliate on your Afffiliate Program. - [Delete Affiliates](https://developers.referly.so/api-reference/affiliates/delete.md): Deletes an Affiliate based on the ID provided - [Get Affiliate(s)](https://developers.referly.so/api-reference/affiliates/get.md): Returns an Affiliate By ID or Email. If none is specified, all Affiliates from the Affiliate Program are returned. - [Update Affiliate](https://developers.referly.so/api-reference/affiliates/update.md): Updates an Affiliate based on their ID - [Create a Coupon](https://developers.referly.so/api-reference/coupons/create.md): Creates a new coupon definition that can be used to generate promotional codes. Coupons define the discount structure. - [Delete a Coupon](https://developers.referly.so/api-reference/coupons/delete.md): Deletes a coupon and all associated promotional codes. This action is permanent. - [Get Coupons](https://developers.referly.so/api-reference/coupons/get.md): Returns coupons based on the affiliate program. Coupons define the discount structure (amount, type, duration) that promotional codes will use. - [Update a Coupon](https://developers.referly.so/api-reference/coupons/update.md): Updates an existing coupon. Changes will affect all promotional codes using this coupon. - [Introduction](https://developers.referly.so/api-reference/introduction.md): Referly is an Affiliate Marketing Software and Network that lets you easily Track, Manage and Partner with Affiliates. This is the Custom API documentation that details how to use the API to track payments and attribute proper commissions. - [Create an Affiliate Link](https://developers.referly.so/api-reference/links/create.md): Creates a new affiliate link for the specified affiliate. Note: an Affiliate is required to create an Affiliate Link. - [Delete Affiliate Link](https://developers.referly.so/api-reference/links/delete.md): Deletes an affiliate link based on the ID or link string provided - [Get Affiliate Link(s)](https://developers.referly.so/api-reference/links/get.md): Returns a list of affiliate links based on the affiliate program, filtered by optional link ID, link string, affiliate ID, or affiliate email - [Update Affiliate Link](https://developers.referly.so/api-reference/links/update.md): Updates an affiliate link based on their ID or link string - [Create a Promotional Code](https://developers.referly.so/api-reference/promotional-codes/create.md): Creates a new promotional code linked to a coupon. Supports both manual codes and auto-generated codes based on structure. - [Delete a Promotional Code](https://developers.referly.so/api-reference/promotional-codes/delete.md): Deletes a promotional code. This action is permanent. - [Get Promotional Codes](https://developers.referly.so/api-reference/promotional-codes/get.md): Returns promotional codes based on the affiliate program. Promotional codes are the actual discount codes customers use at checkout. - [Update a Promotional Code](https://developers.referly.so/api-reference/promotional-codes/update.md): Updates an existing promotional code's properties like activation status, expiration, and limits. - [Create a Referral](https://developers.referly.so/api-reference/referrals/create.md): Creates a new referral under the specified affiliate program. You must provide either an affiliateId, affiliateEmail, or promoCode to identify the affiliate. When using a promo code, it will be validated for expiration, redemption limits, and active status. - [Delete Referrals](https://developers.referly.so/api-reference/referrals/delete.md): Deletes a referral based on the ID provided - [Get Referral(s)](https://developers.referly.so/api-reference/referrals/get.md): Returns a list of referrals based on the affiliate program, filtered by optional referral ID, affiliate ID, affiliate email, or external ID - [Update Referral](https://developers.referly.so/api-reference/referrals/update.md): Updates a referral based on their ID - [Create a Sale](https://developers.referly.so/api-reference/sales/create.md): 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. - [Delete Sale](https://developers.referly.so/api-reference/sales/delete.md): Deletes a sale based on the ID provided - [Get Sale(s)](https://developers.referly.so/api-reference/sales/get.md): Returns a list of sales based on the affiliate program, filtered by optional sale ID, affiliate ID, affiliate email, referral ID, or external ID - [Refund Sale](https://developers.referly.so/api-reference/sales/refund.md): Marks an existing sale as refunded when it is still eligible to be refunded. If the sale has already been refunded, the endpoint still returns a successful response indicating that state. - [Update Sale](https://developers.referly.so/api-reference/sales/update.md): Updates a sale based on their ID - [Zapier OAuth Integration](https://developers.referly.so/api-reference/zapier/oauth.md): Complete guide to integrating with Referly via Zapier using OAuth 2.0 authentication flow ## OpenAPI Specs - [openapi](https://developers.referly.so/api-reference/openapi.json) ## Optional - [Affiliate Programs Directory](https://www.referly.so/affiliate-programs) - [Affiliate Managers Directory](https://www.referly.so/affiliate-program-managers) - [Discord Community](https://discord.gg/Asfvb4uvHg)