Gift subscription

This endpoint can be used to create a gift subscription.

This is a protected endpoint which requires proper authorization header to authenticate the customerand returns a Customer resource.

Query Params
int32
required

The unique identifier of the site associated with your account.

Body Params
string
required

The unique identifier of plan. If you associated a customer segment to the plan, a validation will be performed. Therefore, it is recommended to validate against eligible plans for the customer first. Always required.

string
required

The gift recipient email address. Always required.

string
required

The gift recipient first name. Always required.

string
required

The gift recipient last name. Always required.

string
required

The gift recipient full name. Always required.

string
enum
Defaults to stripe

The optional payment gateway, one of stripe, braintree, vantiv, tap or cybersource. Always defaults to stripe.

Allowed:
string

The single-use token that represents the payment method details. Typically generated using the payment gateway's tools and libraries. This payment method will be used to attempt payments for the subscription.

string

An optional coupon code to apply a discount to the subscription. If you associated a customer segment to the coupon, a validation will be performed. Therefore, it is recommended to validate against eligible coupons for the customer first.

int32

The identifier of the shipping address to associate with the subscription. Required if related product requires an address, if product is available only in certain countries, or if tax feature is enabled under your account.

int32
Defaults to 1

Quantity for this subscription, always 1 by default.

Headers
string
required
Defaults to Bearer eyJ***
string
Defaults to application/json
Responses

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