Redeem subscription

Redeem a gift 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

The unique identifier of the site associated with your account.

Body Params
string
required

The gift code used to redeem the subscription. The gift code must be existing and valid (not redeemed) -.

int32
required

The unique identifier of the gift recipient. The gift recipient must be an existing customer on the associated site -.

int32

The unique identifier of an existing subscription on which you would like to redeem this gift as a future phase on. If not provided, the gift will be created as a new subscription - Optional.

int32

The unique identifier of user's shipping address - Optional, unless taxes are enabled on the account, the gift product requires an address or validated against specific countries.

Responses

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