Skip to content

Instantly share code, notes, and snippets.

@julienfastre
Created November 10, 2017 09:45
Show Gist options
  • Save julienfastre/2ea9b8c175c244e5178e885879caa1d0 to your computer and use it in GitHub Desktop.
Save julienfastre/2ea9b8c175c244e5178e885879caa1d0 to your computer and use it in GitHub Desktop.
killbill Failed to load overridden plan for tenant
curl -X POST \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-Killbill-CreatedBy: Swagger' \
--header 'X-Killbill-ApiKey: comedien' \
--header 'X-Killbill-ApiSecret: comedien' \
--header 'Authorization: Basic xxxxxxxxxxxx' \
-d '{ "accountId": "6f25f276-ce92-4065-a8c3-ddcce8da0960", "planName": "standard-abonnement-annual-21" }' \
'http://localhost:8087/1.0/kb/subscriptions?entitlementDate=2017-11-09&migrated=false&callCompletion=false&callTime
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="catalog.xsd ">
<effectiveDate>2017-11-09T21:49:00+00:00</effectiveDate>
<catalogName>Comedien.be</catalogName>
<recurringBillingMode>IN_ADVANCE</recurringBillingMode>
<currencies>
<currency>EUR</currency>
</currencies>
<units>
<unit name="annonce-publication" />
</units>
<products>
<product name="abonnement-21">
<category>BASE</category>
</product>
<!-- <product name="abonnement-annonces-21">
<category>BASE</category>
<included>
<addonProduct>annonce-addon-21</addonProduct>
</included>
</product> -->
<!-- <product name="annonce-standalone-21">
<category>STANDALONE</category>
</product>
<product name="stage-6">
<category>STANDALONE</category>
</product> -->
<!-- <product name="annonce-addon-21">
<category>ADD_ON</category>
</product> -->
</products>
<rules>
<changePolicy>
<changePolicyCase>
<policy>IMMEDIATE</policy>
</changePolicyCase>
</changePolicy>
<changeAlignment>
<changeAlignmentCase>
<alignment>START_OF_BUNDLE</alignment>
</changeAlignmentCase>
</changeAlignment>
<cancelPolicy>
<cancelPolicyCase>
<policy>IMMEDIATE</policy>
</cancelPolicyCase>
</cancelPolicy>
<createAlignment>
<createAlignmentCase>
<alignment>START_OF_BUNDLE</alignment>
</createAlignmentCase>
</createAlignment>
<billingAlignment>
<billingAlignmentCase>
<alignment>ACCOUNT</alignment>
</billingAlignmentCase>
</billingAlignment>
<priceList>
<priceListCase>
<toPriceList>DEFAULT</toPriceList>
</priceListCase>
</priceList>
</rules>
<plans>
<plan name="standard-abonnement-annual-21">
<product>abonnement-21</product>
<initialPhases>
<phase type="TRIAL">
<duration>
<unit>DAYS</unit>
<number>30</number>
</duration>
<fixed>
<fixedPrice> <!-- empty price implies $0 --></fixedPrice>
</fixed>
</phase>
</initialPhases>
<finalPhase type="EVERGREEN">
<duration>
<unit>UNLIMITED</unit>
</duration>
<recurring>
<billingPeriod>ANNUAL</billingPeriod>
<recurringPrice>
<price>
<currency>EUR</currency>
<value>45.00</value>
</price>
</recurringPrice>
</recurring>
</finalPhase>
</plan>
<plan name="student-abonnement-annual-21">
<product>abonnement-21</product>
<initialPhases>
<phase type="TRIAL">
<duration>
<unit>MONTHS</unit>
<number>6</number>
</duration>
<fixed>
<fixedPrice> <!-- empty price implies $0 --></fixedPrice>
</fixed>
</phase>
</initialPhases>
<finalPhase type="EVERGREEN">
<duration>
<unit>UNLIMITED</unit>
</duration>
<recurring>
<billingPeriod>ANNUAL</billingPeriod>
<recurringPrice>
<price>
<currency>EUR</currency>
<value>45.00</value>
</price>
</recurringPrice>
</recurring>
</finalPhase>
</plan>
<plan name="acteursgilde-abonnement-annual-21">
<product>abonnement-21</product>
<initialPhases>
<phase type="TRIAL">
<duration>
<unit>DAYS</unit>
<number>30</number>
</duration>
<fixed>
<fixedPrice> <!-- empty price implies $0 --></fixedPrice>
</fixed>
</phase>
</initialPhases>
<finalPhase type="EVERGREEN">
<duration>
<unit>UNLIMITED</unit>
</duration>
<recurring>
<billingPeriod>ANNUAL</billingPeriod>
<recurringPrice>
<price>
<currency>EUR</currency>
<value>20.00</value>
</price>
</recurringPrice>
</recurring>
</finalPhase>
</plan>
<plan name="free-abonnement-annual-21">
<product>abonnement-21</product>
<initialPhases>
<phase type="TRIAL">
<duration>
<unit>DAYS</unit>
<number>30</number>
</duration>
<fixed>
<fixedPrice> <!-- empty price implies $0 --></fixedPrice>
</fixed>
</phase>
</initialPhases>
<finalPhase type="EVERGREEN">
<duration>
<unit>UNLIMITED</unit>
</duration>
<recurring>
<billingPeriod>ANNUAL</billingPeriod>
<recurringPrice>
<price>
<currency>EUR</currency>
<value>0.00</value>
</price>
</recurringPrice>
</recurring>
</finalPhase>
</plan>
<!--
<plan name="annonce-abonnement-annual-21">
<product>abonnement-annonces-21</product>
<finalPhase type="EVERGREEN">
<duration>
<unit>UNLIMITED</unit>
</duration>
<recurring>
<billingPeriod>ANNUAL</billingPeriod>
<recurringPrice>
<price>
<currency>EUR</currency>
<value>130.00</value>
</price>
</recurringPrice>
</recurring>
<usages>
<usage name="abonnement-annonce-publication" billingMode="IN_ARREAR" usageType="CONSUMABLE">
<billingPeriod>NO_BILLING_PERIOD</billingPeriod>
<tiers>
<tier>
<blocks>
<tieredBlock>
<unit>annonce-publication</unit>
<size>1</size>
<prices></prices>
<max>10000</max>
</tieredBlock>
</blocks>
</tier>
</tiers>
</usage>
</usages>
</finalPhase>
</plan>
-->
</plans>
<priceLists>
<defaultPriceList name="DEFAULT">
<plans>
<plan>standard-abonnement-annual-21</plan>
<!-- <plan>annonce-abonnement-annual-21</plan> -->
</plans>
</defaultPriceList>
<childPriceList name="acteursgilde">
<plans>
<plan>acteursgilde-abonnement-annual-21</plan>
</plans>
</childPriceList>
<childPriceList name="free">
<plans>
<plan>free-abonnement-annual-21</plan>
</plans>
</childPriceList>
<childPriceList name="student">
<plans>
<plan>student-abonnement-annual-21</plan>
</plans>
</childPriceList>
</priceLists>
</catalog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment