Skip to content

Instantly share code, notes, and snippets.

@j3k0
Last active May 25, 2020 09:08
Show Gist options
  • Save j3k0/97c189921da4bf08f1d469780e9330d1 to your computer and use it in GitHub Desktop.
Save j3k0/97c189921da4bf08f1d469780e9330d1 to your computer and use it in GitHub Desktop.
POST /v1/validate Response Body
{
"ok": true,
"data": {
"ineligible_for_intro_price": [
"my_subscription"
],
"transaction": { "platform-specific transaction data": "can be ignored" },
"collection": [
{
"id": "my_subscription",
"isBillingRetryPeriod": false,
"isTrialPeriod": false,
"isIntroPeriod": false,
"renewalIntent": "Lapse",
"purchaseDate": 1569766544000,
"expiryDate": 1583749446000,
"cancelationReason": "Customer",
"lastRenewalDate": 1583749266000,
"isExpired": true
},
{
"id": "my_subscription",
"isTrialPeriod": false,
"isIntroPeriod": true,
"purchaseDate": 1569766544000,
"expiryDate": 1569769054000,
"lastRenewalDate": 1569768754000,
"isExpired": true
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment