subscriptionTrialConvert

Convert an existing trial subscription into a paid subscription. The subscriptionTrialConvert mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: standard:write

mutation subscriptionTrialConvert ($subscriptionId: ID!, $paymentId: ID, $priceListId: ID, $priceListCode: String) {
  subscriptionTrialConvert (subscriptionId: $subscriptionId, paymentId: $paymentId, priceListId: $priceListId, priceListCode: $priceListCode) {
      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
      }
      paymentApplications
      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

{
  "subscriptionId": "456123",
  "paymentId": "456123",
  "priceListId": "456123",
  "priceListCode": ""
}
Name Type Description
subscriptionId ID  
paymentId ID  
priceListId ID  
priceListCode String  

ResponseLink to Response section

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