Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Free trial for subscriptions

Solved

Free trial for subscriptions

sophief
Shopify Partner
11 0 0

I built a subscriptions app that uses Shopify GraphQL, and now I got a requirement to have a free trial period for some subscriptions that we want to sell at my company.

 

Ideally I would like to have a selling plan that has the first payment at 0$, or has the first payment delayed.

How can I do something like that?

Accepted Solution (1)

qc11
Shopify Staff (Retired)
47 14 12

This is an accepted solution.

Hi,

 

You could achieve this by setting the fixed pricing policy with PRICE 0 or PERCENTAGE 100 and recurring pricing policy with PERCENTAGE 0 or FIXED AMOUNT 0.

Reference on definition of each adjustment type 

 

 

pricingPolicies: [
        {
          fixed: {
            adjustmentType: PRICE
            adjustmentValue : {
              fixedValue: 0
            },
          }
        },
        {
          recurring: {
            adjustmentType: FIXED_AMOUNT
            adjustmentValue: {
              fixedValue: 0
            }
            afterCycle: 1
          }
        }
      ]

# or

pricingPolicies: [
        {
          fixed: {
            adjustmentType: PRICE
            adjustmentValue : {
              fixedValue: 0
            },
          }
        },
        {
          recurring: {
            adjustmentType: PERCENTAGE
            adjustmentValue: {
              percentage: 0
            }
            afterCycle: 1
          }
        }
      ]

# or

pricingPolicies: [
        {
          fixed: {
            adjustmentType: PERCENTAGE
            adjustmentValue : {
              percentage: 100
            },
          }
        },
        {
          recurring: {
            adjustmentType: FIXED_AMOUNT
            adjustmentValue: {
              fixedValue: 0
            }
            afterCycle: 1
          }
        }
      ]

# or

pricingPolicies: [
        {
          fixed: {
            adjustmentType: PERCENTAGE
            adjustmentValue : {
              percentage: 100
            },
          }
        },
        {
          recurring: {
            adjustmentType: PERCENTAGE
            adjustmentValue: {
              percentage: 0
            }
            afterCycle: 1
          }
        }
      ]

 

 

 

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)

qc11
Shopify Staff (Retired)
47 14 12

This is an accepted solution.

Hi,

 

You could achieve this by setting the fixed pricing policy with PRICE 0 or PERCENTAGE 100 and recurring pricing policy with PERCENTAGE 0 or FIXED AMOUNT 0.

Reference on definition of each adjustment type 

 

 

pricingPolicies: [
        {
          fixed: {
            adjustmentType: PRICE
            adjustmentValue : {
              fixedValue: 0
            },
          }
        },
        {
          recurring: {
            adjustmentType: FIXED_AMOUNT
            adjustmentValue: {
              fixedValue: 0
            }
            afterCycle: 1
          }
        }
      ]

# or

pricingPolicies: [
        {
          fixed: {
            adjustmentType: PRICE
            adjustmentValue : {
              fixedValue: 0
            },
          }
        },
        {
          recurring: {
            adjustmentType: PERCENTAGE
            adjustmentValue: {
              percentage: 0
            }
            afterCycle: 1
          }
        }
      ]

# or

pricingPolicies: [
        {
          fixed: {
            adjustmentType: PERCENTAGE
            adjustmentValue : {
              percentage: 100
            },
          }
        },
        {
          recurring: {
            adjustmentType: FIXED_AMOUNT
            adjustmentValue: {
              fixedValue: 0
            }
            afterCycle: 1
          }
        }
      ]

# or

pricingPolicies: [
        {
          fixed: {
            adjustmentType: PERCENTAGE
            adjustmentValue : {
              percentage: 100
            },
          }
        },
        {
          recurring: {
            adjustmentType: PERCENTAGE
            adjustmentValue: {
              percentage: 0
            }
            afterCycle: 1
          }
        }
      ]

 

 

 

To learn more visit the Shopify Help Center or the Community Blog.

sophief
Shopify Partner
11 0 0

@qc11 Thanks a lot! It worked