Redeem subscription

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Redeem a gift subscription for a customer. This activates a gifted subscription that was purchased by another user. Two modes: create a new subscription for the recipient, or add the gift as a renewal phase to an existing subscription.

Example: A customer receives a gift code from a friend. Use this endpoint to activate the gift and start their subscription.


Conditional Requirements

ConditionRequired Fields
Alwaysgift_code, user_id
Adding to existing subscriptionsubscription_id
Plan requires shipping addressaddress_id
Gift must be paidis_paid must be true on the donor subscription
Gift must not be redeemedis_redeemed must not be true

Behavior

  • New subscription (no subscription_id): Creates a new subscription with a system gift coupon (100% discount), set to cancel at period end
  • Add to existing (subscription_id provided): Adds a renewal phase to the existing subscription using the gift plan and coupon
  • Gift donor subscription is marked as is_redeemed: true after successful redemption
  • A gift code can only be redeemed once

Webhook

New subscriptions trigger subscription.created. Adding to an existing subscription triggers subscription.renewed.

Query Params
int32
required
Body Params
string
required
int32
required
int32
int32
Headers
string
required
Defaults to Bearer eyJ***
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json