Pay: offers add code
pay_offers_add_codeAdd a promo or referral code to an offer so users can redeem it. Omit owner user ID for a shared code; include it to tie a personal code to that user.
Instructions
Add a promo/referral code to an offer. Creates a code users enter to redeem the offer: a shared promo code, or with an owner user id, a personal referral code tied to that user. Returns the new code. There is no tool to remove a single code; codes go only when the offer is deleted with pay_offers_delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Offer id (guid). Find it with pay_offers_list. | |
| slug | No | Code slug (e.g. LAUNCH50); prompted for if omitted | |
| owner_user_id | No | Attach the code to a user (personal/referral code). Omit for a shared promo code. |