POST/partners/customers/{domainId}/option-products/{optionProductId}/paid-service

Converts a Trial option to a paid one.

  • Note
    • For a Trial subscription
      • Options are available on a trial basis only within the subscription period. When a Trial subscription ends, a Trial grace period begins; if the subscription is not converted to a paid one during the grace period, Trial options will be canceled when the period ends.
    • For a paid subscription
      • Options are available on a trial basis only within the subscription period. If Trial options are not converted to paid ones, they will be automatically canceled at the end of the Trial period.
      • The current subscription plan (contract type) automatically applies to options.
  • LINE WORKS Options
    • You can convert the Archive (Talk) and Drive options to paid ones.

Authorization

oauth2

OAuth 2.0 authentication. For more information, see Authentication and Authorization.

Scope

partner

HTTP Request

POSThttps://www.worksapis.com/v1.0/partners/customers/{domainId}/option-products/{optionProductId}/paid-service

Path Parameters

ParameterTypeDescription
domainId integer 

Domain ID


required
example : 10000001 
optionProductId string 

Option ID

  • ACV2: Archive (Talk)
  • DRV: Drive

required
Allowed values : ACV2, DRV 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Request Body

PropertyTypeDescription
subOptionId string 

Sub option ID that can be converted to paid

  • LINE WORKS options
    • If the option ID is ACV2
      • ACV201: Archive (Talk)
    • If the option ID is DRV
      • DRV01: Drive (for STD)
      • DRV_PS: Drive Plus (for STD)
      • DRV_PA: Drive Plus (for ADV)

required
Allowed values : ACV201, DRV01, DRV_PS, DRV_PA 
quantity integer 

Quantity

  • It is the quantity if optionProductId is one of the following addable options.
  • It is null if not.

nullable : true 

Request Example

Convert Trial Archive (Talk) to paid

1{2  "subOptionId": "ACV201"3}

Response

HTTP 200

OK

PropertyTypeDescription
subscriptionId integer 

Subscription ID


required 
optionProductId string 

Option ID

  • LINE WORKS options
    • ACV2: Archive (Talk)
    • DRV: Drive
    • SSTG2: Shared Storage
    • BCT: Extend contacts

required
Allowed values : ACV2, DRV, SSTG2, BCT 
subOptionId string 

Sub option ID

  • LINE WORKS options
    • If the option ID is ACV2
      • ACV200: Archive (Talk) Trial
      • ACV201: Archive (Talk)
    • If the option ID is DRV
      • DRV00: Drive Trial (for STD)
      • DRV01: Drive (for STD)
      • DRV_PS_T: Drive Plus Trial (for STD)
      • DRV_PS: Drive Plus (for STD)
      • DRV_PA_T: Drive Plus Trial (for ADV)
      • DRV_PA: Drive Plus (for ADV)
    • If the option ID is SSTG2
      • SSTG201: Shared Storage (1 TB)
      • SSTG202: Shared Storage (5 TB)
      • SSTG203: Shared Storage (10 TB)
      • SSTG204: Shared Storage (25 TB)
      • SSTG205: Shared Storage (50 TB)
      • SSTG206: Shared Storage (100 TB)
      • SSTG207: Shared Storage (500 TB)
    • If the option ID is BCT
      • BCT01: Extend contacts (up to 250,000 contacts)
      • BCT02: Extend contacts (up to 500,000 contacts)
      • BCT03: Extend contacts (up to 1,500,000 contacts)
      • BCT04: Extend contacts (up to 5,000,000 contacts)

required
Allowed values : ACV200, ACV201, DRV00, DRV01, DRV_PS_T, DRV_PS, DRV_PA_T, DRV_PA, SSTG201, SSTG202, SSTG203, SSTG204, SSTG205, SSTG206, SSTG207, BCT01, BCT02, BCT03, BCT04 
appliedTime string 

Date and time when the option is added (purchased)


required
format : date-time
readOnly : true 
quantity integer 

Quantity

  • It is 1 if optionProductId is SSTG2 or BCT.
  • It is null if not.

readOnly : true
nullable : true 
plan string 

Contract type

  • TRIAL: Trial
  • MONTHLY: Monthly contract postpay
  • ANNUAL_LICENSE: Annual contract monthly license
  • ANNUAL_PREPAY_LICENSE: Annual contract lump sum license

Applicable contract types by plan group

  • LINE WORKS Service
    • TRIAL: Trial
    • MONTHLY: Monthly contract postpay
    • ANNUAL_LICENSE: Annual contract monthly license
    • ANNUAL_PREPAY_LICENSE: Annual contract lump sum license

required
Allowed values : TRIAL, MONTHLY, ANNUAL_LICENSE, ANNUAL_PREPAY_LICENSE 
planStartDate string 

Start date


required
format : date
readOnly : true 
planEndDate string 

End date

  • For a paid plan, it is the plan end date.
  • For a Trial plan, it is when the Trial period ends.

required
format : date
readOnly : true