Skip to main content
POST
Redeem a gift code

Body Parameters

Example Request

Response

Returns the subscription object created from the redeemed gift.
Each gift code can only be redeemed once. Attempting to redeem an already-used code returns a 422 validation error.
Gift subscriptions automatically expire at the end of the gifted period. The cancel_at_period_end flag is set to true by default. The recipient can convert to a paid subscription before the gift period ends.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Body

application/json
code
string
required
recipient_customer_id
string<uuid>
required

Response

The subscription created by the redemption.

data
object