Hi All,
Busy Migrating the recurring charge rest api to graphQL and seem to be having trouble creating a test charge.
Here is my query value payload for the appSubscriptionCreate mutation
{
"test": true,
"name": "Basic",
"returnUrl": "https://ecommercify.ngrok.io/?action=merchant.subscriptioncallback&plan=Basic&_token=CFC74B54F51CDCF42FDAA58EAB277F36",
"lineItems": [
{
"plan": {
"appRecurringPricingDetails": {
"price": {
"currencyCode": "USD",
"amount": 9
}
}
}
},
{
"plan": {
"appUsagePricingDetails": {
"cappedAmount": {
"currencyCode": "USD",
"amount": 1000
},
"terms": "0.1 per label"
}
}
}
]
}
And here is the result:
"data": {
"appSubscriptionCreate": {
"userErrors": [],
"appSubscription": {
"id": "gid://shopify/AppSubscription/29848142078",
"test": false,
"lineItems": [
{
"id": "gid://shopify/AppSubscriptionLineItem/29848142078?v=1&index=0",
"plan": {
"pricingDetails": {
"__typename": "AppRecurringPricing"
}
}
},
{
"id": "gid://shopify/AppSubscriptionLineItem/29848142078?v=1&index=1",
"plan": {
"pricingDetails": {
"__typename": "AppUsagePricing"
}
}
}
]
},
"confirmationUrl": "https://devshopch.myshopify.com/admin/charges/147227443201/29848142078/RecurringApplicationCharge/confirm_recurring_application_charge?signature=BAh7BzoHaWRsKwj%2BgBbzBgA6EmF1dG9fYWN0aXZhdGVU--426cae8894ea2e21ae9f4654fa5f45670dbe3563"
}
}
The way I see it “test” should be true and not false.
x-request-id is:71918f27-f9fb-4968-82a0-fa5576d9323b-1736345103
Anyone see anything obviously wrong with my payload?
Cheers,
Gary