Create appUsagePricingDetails - "terms" formatting

I am able to successfully create a recurring subscription with a usage pricing tier -- see snippet below

 

mutation {
  appSubscriptionCreate(
    name: "Growth Subscription"
    returnUrl: "http://localhost:5000"
    test: true
    trialDays: 15
    lineItems: [
      {
        plan: {
          appUsagePricingDetails: {
            terms: "Tier 1 order count < 1,000: $99\nTier 2 order count 1000 - 2500: $249\nTier 3 order count 2500+: $399"
            cappedAmount: { amount: 399.00, currencyCode: USD }
          } 
        }
      },
      {
        plan: {
          appRecurringPricingDetails: {
           price: { amount: 99.00, currencyCode: USD }
          }
        } 
      }                   
    ]
  ) 
.  .  .
}

 

 

I would like to format the "text" of the appUsagePricingDetails to be formatted a bit better - e.g. have newlines to separate the price tiers to be more clear.  Is there any way to add any markup?  I've tried \n and <br> neither work.

0 Likes
Highlighted
Shopify Partner
674 109 148

Hello @JoeRzep, replace \n with \\n and try 

0 Likes
Highlighted

Thanks @Wahab_Ahmad , I did try that... no luck.  The UI just shows \n

JoeRzep_0-1596556016741.png

If you use \n (not escaped) it displays the same, however in the HTML there are new lines:

JoeRzep_1-1596556078329.png

JoeRzep_2-1596556103682.png

The docs state its just a string -- appears not to support formatting

 

 

 

0 Likes