Skip to main content
PUT
Update billing interval for a subscription contract

Headers

X-API-Key
string
required

API Key for authentication

Query Parameters

contractId
integer<int64>
required

Subscription contract ID to update. Provide the numeric ID without the gid:// prefix

Required range: x >= 1
api_key
string

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

intervalCount
integer
required

Number of intervals between billings. For example, intervalCount=2 with interval=WEEK means 'every 2 weeks'

Required range: 1 <= x <= 365
interval
enum<string>
required

Type of interval for billing frequency

Available options:
DAY,
WEEK,
MONTH,
YEAR,
$UNKNOWN

Response

Billing interval 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