v4
latestOpenAPI 3.1.02026-08-08221179273.1 KBgifts
Create Gift Code
Create a new gift code for the authenticated user.
This endpoint creates a gift code that can be shared with others. The gift code grants 1 year of premium access when redeemed.
Args: request: CreateGiftCodeRequest with RevenueCat product and purchase IDs
Returns: CreateGiftCodeResponse with the generated gift code
post/api/gifts/code
Headers
x-user-idstring nullable
Request body
Response
Successful Response