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

arturmihno
Tourist
6 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

 

Replies 0 (0)