CreateSubscriptionRequest

data class CreateSubscriptionRequest(val customer: String, val product: String, val currency: String, val defaultPaymentMethod: String, val description: String?)

Request body for creating a new subscription.

Constructors

Link copied to clipboard
constructor(customer: String, product: String, currency: String, defaultPaymentMethod: String, description: String?)

Properties

Link copied to clipboard

Three-letter ISO currency code for billing. Required.

Link copied to clipboard

The ID of the customer to subscribe. Required.

Link copied to clipboard
@SerializedName(value = "default_payment_method")
val defaultPaymentMethod: String

The ID of the payment method to charge on each billing cycle. Required.

Link copied to clipboard

Optional description for the subscription.

Link copied to clipboard

The ID of the product the subscription is for. Required.