Skip to main content
PUT
Update minimum cycles for a subscription contract

Headers

X-API-Key
string

Query Parameters

contractId
integer<int64>
required

Contract ID

api_key
string

API Key (Deprecated - Use Header X-API-Key instead)

minCycles
integer | null

Minimum Number of Orders. The minimum number of billing cycles a customer must complete before being allowed to cancel. Set to null to remove the minimum commitment. Common values:

  • 3: Three-month commitment
  • 6: Six-month commitment
  • 12: Annual commitment
  • null: No commitment
Required range: 1 <= x <= 9999

Response

Minimum cycles updated successfully

billingAttempts
object
billingPolicy
object
createdAt
object
customAttributes
object[]
customer
object
customerPaymentMethod
object
deliveryMethod
object
deliveryPolicy
object
deliveryPrice
object
discounts
object
get__typename
string
id
string
lastPaymentStatus
enum<string>
Available options:
SUCCEEDED,
FAILED,
$UNKNOWN
lines
object
nextBillingDate
object
note
string
originOrder
object
status
enum<string>
Available options:
ACTIVE,
PAUSED,
CANCELLED,
EXPIRED,
FAILED,
$UNKNOWN
updatedAt
object