Skip to content

Instantly share code, notes, and snippets.

@j3k0
Created October 22, 2019 06:25
Show Gist options
  • Save j3k0/8917ed3e8d671c51cc3eda94073781ec to your computer and use it in GitHub Desktop.
Save j3k0/8917ed3e8d671c51cc3eda94073781ec to your computer and use it in GitHub Desktop.
Example Fovea.Billing webhook request
{
"type": "purchases.updated",
"applicationUsername": "my_username",
"purchases": {
"apple:cc.fovea.purchase.subscription1sx": {
"productId": "apple:cc.fovea.purchase.subscription1sx",
"platform": "apple",
"sandbox": true,
"purchaseId": "apple:1000000573800707",
"purchaseDate": "2019-09-29T14:15:44.000Z",
"lastRenewalDate": "2019-09-29T14:18:43.000Z",
"expirationDate": "2019-09-29T14:21:43.000Z",
"cancelationReason": "Customer",
"renewalIntent": "Lapse",
"isExpired": true
},
"apple:cc.fovea.purchase.subscription2sx": {
"productId": "apple:cc.fovea.purchase.subscription2sx",
"platform": "apple",
"sandbox": true,
"purchaseId": "apple:1000000573800707",
"purchaseDate": "2019-09-29T14:15:44.000Z",
"lastRenewalDate": "2019-09-29T14:52:34.000Z",
"expirationDate": "2019-09-29T14:57:34.000Z",
"isIntroPeriod": true,
"isExpired": true
},
"apple:1_token": {
"productId": "apple:1_token",
"platform": "apple",
"sandbox": true,
"purchaseId": "apple:1000000581984730",
"purchaseDate": "2019-10-21T18:37:48.000Z"
}
},
"password": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment