Skip to main content
POST
Purchase a gift subscription

Body Parameters

Example Request

Response

Response Fields

Notes

  • The buyer is charged immediately for the full duration of the gift subscription.
  • The recipient receives an email with the redemption code and instructions. If deliver_at is set, the email is scheduled accordingly.
  • Gift codes expire one year after purchase if not redeemed.
  • The recipient does not need an existing account. Redeeming a gift code creates an account if one does not exist.
Refunds for gift subscriptions are only available before the gift is redeemed. Once redeemed, standard cancellation policies apply.

Authorizations

Authorization
string
header
required

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

Body

application/json
buyer_customer_id
string<uuid>
required
plan_id
string<uuid>
required
duration_months
integer
required
Required range: x >= 1
recipient_email
string<email>

Response

Gift purchased.

id
string<uuid>
tenant_id
string<uuid>
code
string

Redemption code.

plan_id
string<uuid>
buyer_customer_id
string<uuid>
recipient_email
string
status
enum<string>
Available options:
purchased,
redeemed
redeemed_by_customer_id
string<uuid> | null
redeemed_at
string<date-time> | null
duration_months
integer
created_at
string<date-time>
updated_at
string<date-time>