I’m currently working with the recurringApplicationCharge API and had a quick question. Is there any field or mechanism available that indicates the status of each billing cycle for an active charge? So far, it seems that on each billing date, only the billing_on field is updated, and there’s no clear indicator confirming whether the previous cycle was successfully charged.
Any clarification or recommended approach would be greatly appreciated.
Thank you!
Transactions would likely be your best bet, just wanted to add some extra context for clarity though!
Basically, like Dylan mentioned, with the Partner API’s transactions query, you should be able to pull a record for every transaction that was made related your app along with a “created_at” timestamp. Here’s a quick way you’d set up that API call, just as an example in case it helps:
{
transactions (first:10) {
edges {
node {
id
createdAt
... on AppSubscriptionSale {
app {
id
}
shop {
myshopifyDomain
}
}
... on AppUsageSale {
app {
id
}
shop {
myshopifyDomain
}
}
}
}
}
}