How to get pricing, delivery and billing policies for selling plan in created subscriptions group?

arturmihno
Shopify Partner
7 1 1

Hi all! I faced an issue while developing app for subscriptions. My priority task for now is to edit subscriptions group frequency and policies. How can I get existing policies with graphql for current selling plan group as now If I want to edit group I can't get these previously configured policies. Or maybe Someone can propose another way to resolve this problem? I attach query for selling plan groups and data I want to query with it. I really need somebodys help as I am stuck now

	query {
		sellingPlanGroups(first: 5) {
			edges {
				node {
					merchantCode
					position
					appId
					id
					name
          options
					products(first: 20) {
						edges {
							node {
								id
								title
							}
						}
					}
					productVariants(first: 20) {
						edges {
							node {
								id
								title
							}
						}
					}
					sellingPlans(first: 5) {
						edges {
							node {
								id
								name
								options
								position
								description
                deliveryPolicy {
                  __typename
                  
                }
                billingPolicy {
                  __typename
                }
                pricingPolicies {
                  __typename
                }
							}
						}
					}
				}
			}
		}
	}

 

arturmihno_0-1635238938143.png

 

Reply 1 (1)

rajankumartpss
Shopify Partner
4 0 0

Hello, I hope you are doing.

I am also stuck on the same thing. Graphql is not returning these fields. 

Did you got any solution? 
Do we need to store this information in our app database against plan id?

A little help would be appreciated.

Thanks