Development discussions around Shopify APIs
I have created a test subscription through a graphql mutations suggested in the documentation along with "test=true" parameter.
mutation {
appSubscriptionCreate(
name: "Super Deluxe Recurring Plan"
test: true,
returnUrl: "http://super-duper.shopifyapps.com"
lineItems: [{
plan: {
appRecurringPricingDetails: {
price: { amount: 1.00, currencyCode: USD }
interval: EVERY_30_DAYS
}
}
}]
) {
userErrors {
field
message
}
confirmationUrl
appSubscription {
id
}
}
}
When I query subscriptionContracts the response is empty. I do not see the created subscription on the response. How do you confirm the charge IDs from the return url? It doesn't work on test transactions?
query {
subscriptionContracts(first: 10) {
edges {
node {
id
createdAt
status
nextBillingDate
customer {
firstName
lastName
}
billingPolicy {
interval
intervalCount
}
}
}
}
}
User | RANK |
---|---|
44 | |
16 | |
9 | |
9 | |
7 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023