pricingPlanSchedules

Copy a pricing plan schedule

Requires the QUOTE.PRICING_PLAN_SCHEDULE.CREATE or PRICING_PLAN_SCHEDULE.CREATE permission. Which one depends on the type of the subscription: QUOTE requires QUOTE.PRICING_PLAN_SCHEDULE.CREATE; BILLING and TEMPLATE require PRICING_PLAN_SCHEDULE.CREATE. A schedule of a BILLING or TEMPLATE subscription that is not DRAFT also requires PRICING_PLAN_SCHEDULE.WRITE_ACTIVE. Setting these fields also requires their own permission: discount requires PRICING_PLAN_SCHEDULE.DISCOUNT.EDIT; commitment requires PRICING_PLAN_SCHEDULE.COMMITMENT.EDIT; markup requires PRICING_PLAN_SCHEDULE.MARKUP.EDIT; override_pricings requires PRICING_PLAN_SCHEDULE.PRICING_OVERRIDE.EDIT.

post/v{version}/pricing-plan-schedules/{resourceId}/copy

Request

  • Base URL: https://test.api.solvimon.com
  • URL: https://test.api.solvimon.com/v{version}/pricing-plan-schedules/{resourceId}/copy
  • Auth: API key in header X-API-KEY

Path parameters

versionstring required

version

resourceIdstring required

The ID of the resource to be requested.

Query parameters

expand[]string[]

The id fields of the resources that are going to be expanded.

set_previous_end_atboolean

Setting the value to true will set the end of the previous schedule to the start of this schedule. Mutually exclusive with set_next_start_at

set_next_start_atboolean

Setting the value to true will set the start of the next schedule to the end of this schedule. Mutually exclusive with set_previous_end_at

Headers

x-platform-idstring

Platform ID.

Request body

start_atstring date-time
end_atstring date-time nullable
realign_invoice_date_to_pricing_plan_schedule_start_atboolean nullable

Realign the invoice date to the start of the new schedule. Only allowed for EXACT billing.

status'DRAFT' | 'ACTIVE'

The status of the schedule.

coupon_discount_behaviour'NONE' | 'CARRY_OVER'

What happens to the discounts of coupons that are still running on the original schedule. NONE (default) ends them with the original schedule. CARRY_OVER continues them on the new schedule for the remainder of their duration, without redeeming the coupons again.

Response

Created

object_typestring nullable
idstring nullable
type'TRIAL' | 'DEFAULT'

The type of the pricing plan schedule.

status'DRAFT' | 'ACTIVE'

The status of the pricing plan schedule. Defaults to ACTIVE.

approval_status'PENDING_REVIEW' | 'APPROVED' | 'DECLINED' | 'CANCELLED'

Approval status for schedules that are associated with an approval request

pricing_plan_subscription_idstring

Resource ID of type PRICING_PLAN_SUBSCRIPTION

pricing_plan_idstring nullable

The resource ID of the pricing plan.

pricing_plan_version_idstring nullable

The resource ID of the pricing plan version.

start_atstring date-time
end_atstring date-time nullable
pricing_currency'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UZS' | 'VEF' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL'

The default alphabetic currency code representing the type of currency used for the pricing.

promotion_codesstring[] nullable
coupon_idsstring[] nullable
realign_invoice_date_to_pricing_plan_schedule_start_atboolean nullable
created_atstring nullable
updated_atstring nullable
is_currentboolean nullable

Whether this schedule is currently in effect, based on its start_at/end_at and ACTIVE status.

Changes

No recorded changes to this operation across all 1 revision of this API.