Let me try this again, this time double-checking my work as I go.
I was asking if there is some API record of a swap plan event – to be precise, a record of the date and subscription plan ids of the swap.
In your answer you retrieved for me subscriptionid abeef59a-e10f-4cb8-a4f1-ff03401129a
which contains this content:
Note that this info doesn’t include the date the swap was initiated, only the date that it’s scheduled to take effect.
Also, I think that even this sort of response may only exist in a pending but uninitiated swap? (note I retrieved this info on 19 August; swap is scheduled for 20 August – but I will definitely check back tomorrow to see how this record looks after the effective swap date).
As a counter example, please retrieve subscription [including actions]
(or search subscriptions for customer VM1JA3416CT8V1TPPZH941AG98 [including actions]
You may need to know locationid 91F1VEX85751A
I know this customer swapped her subscription. It is apparent from her changing invoices, which you can search (you may need locationid: 91F1VEX85751A)
It appears these invoices get returned in reverse chron order.
You can see that the newest invoice ( inv:0-ChBKS4qZv_ppXRvzIYtvr0YRELsJ ) is for $47, Live+4 Subscription. 2023-07-29
The customer’s previous invoice (inv:0-ChBHxgDRMGv9RYVxkBZNJgglELsJ) is for $25,
LIVE (bronze) Subscription, 2023-06-29
My conclusion is that this customer did a swap plan between June and July 29. I don’t know the date.
However, I cannot find the swap plan as an action on that subscription record.
Also I cannot find a swap plan in the logs.
This swap plan was initiated using a form on the website, which is using the Square swap plan code - all I change in my curl code are the correct variables in the subscription id and new plan variation id.
This customer’s swap data doesn’t appear in the API logs – it was probably initiated more than 28 days ago. (Also, the logs don’t show anything for subscriptionid abeef59a-e10f-4cb8-a4f1-ff03401129a, which does currently show a swap-plan action – but that may also have been initiated more than 28 days ago.)
So back to my question; let me ask more precisely –
in the event that a customer requests info about a swap plan action, and asks me about it 28+ days after the swap occurred, is there any record anywhere of the swap’s initiation date and new plan info-- knowing that it will not appear in the API log?
Or is the only option to do some sort of line by line search of invoices?