subscriptionTrialExtend

Extend the subscription's trial period. The subscriptionTrialExtend mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: standard:write

mutation subscriptionTrialExtend ($id: ID!, $trialEndDate: ISO8601Date!) {
  subscriptionTrialExtend (id: $id, trialEndDate: $trialEndDate) {
      errors
      invoice {
        accountId
        aging
        amount
        amountDue
        amountPaid
        baseCurrencyId
        baseCurrencyTotal
        couponApplied
        createdAt
        credits
        currencyId
        description
        dueAt
        fromChildAccountId
        hasPaymentMethod
        id
        internalNotes
        isLegacy
        issuedAt
        kind
        netPaymentDays
        notes
        number
        paidAt
        payableId
        paymentFailedAt
        paymentFailureReason
        poNumber
        portalUrl
        quoteId
        sendInvoiceTo
        smallUnitAmountDue
        subtotal
        taxAmount
        taxRate
        updatedAt
        url
        uuid
      }
      subscription {
        accountId
        cancellationDate
        createdAt
        currencyId
        currentPeriod
        customFieldsData
        daysLeftInTrial
        endDate
        entityId
        evergreen
        hasCustomFields
        id
        licenseKey
        name
        period
        priceAdjustmentAllowed
        priceAdjustmentLastDate
        priceAdjustmentPercentage
        priceListId
        provisioningRequired
        rampIntervalMonths
        renewalSummary
        renewalTermMonths
        startDate
        trialEndDate
        trialPeriod
        trialStartDate
        updatedAt
      }
  }
}

ArgumentsLink to Arguments section

{
  "id": "456123",
  "trialEndDate": "2022-06-01"
}
Name Type Description
id ID  
trialEndDate ISO8601Date  

ResponseLink to Response section

Name Type Description
errors List (String)  
invoice Invoice  
subscription Subscription