Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of App Store receipt with 2 auto-renewable transactions (trial and renewal)
{
"status": 0,
"environment": "Sandbox",
"receipt": {
"receipt_type": "ProductionSandbox",
"adam_id": 0,
"app_item_id": 0,
"bundle_id": "com.apphud.subscriptionstest",
"application_version": "1",
"download_id": 0,
"version_external_identifier": 0,
"receipt_creation_date": "2019-10-14 22:00:55 Etc/GMT",
"receipt_creation_date_ms": "1571090455000",
"receipt_creation_date_pst": "2019-10-14 15:00:55 America/Los_Angeles",
"request_date": "2019-10-15 12:54:10 Etc/GMT",
"request_date_ms": "1571144050441",
"request_date_pst": "2019-10-15 05:54:10 America/Los_Angeles",
"original_purchase_date": "2013-08-01 07:00:00 Etc/GMT",
"original_purchase_date_ms": "1375340400000",
"original_purchase_date_pst": "2013-08-01 00:00:00 America/Los_Angeles",
"original_application_version": "1.0",
"in_app": [
{
"quantity": "1",
"product_id": "SixthWeekly",
"transaction_id": "1000000579060971",
"original_transaction_id": "1000000579060971",
"purchase_date": "2019-10-14 22:00:54 Etc/GMT",
"purchase_date_ms": "1571090454000",
"purchase_date_pst": "2019-10-14 15:00:54 America/Los_Angeles",
"original_purchase_date": "2019-10-14 22:00:55 Etc/GMT",
"original_purchase_date_ms": "1571090455000",
"original_purchase_date_pst": "2019-10-14 15:00:55 America/Los_Angeles",
"expires_date": "2019-10-14 22:03:54 Etc/GMT",
"expires_date_ms": "1571090634000",
"expires_date_pst": "2019-10-14 15:03:54 America/Los_Angeles",
"web_order_line_item_id": "1000000047532125",
"is_trial_period": "true",
"is_in_intro_offer_period": "false"
}
]
},
"latest_receipt_info": [
{
"quantity": "1",
"product_id": "SixthWeekly",
"transaction_id": "1000000579060971",
"original_transaction_id": "1000000579060971",
"purchase_date": "2019-10-14 22:00:54 Etc/GMT",
"purchase_date_ms": "1571090454000",
"purchase_date_pst": "2019-10-14 15:00:54 America/Los_Angeles",
"original_purchase_date": "2019-10-14 22:00:55 Etc/GMT",
"original_purchase_date_ms": "1571090455000",
"original_purchase_date_pst": "2019-10-14 15:00:55 America/Los_Angeles",
"expires_date": "2019-10-14 22:03:54 Etc/GMT",
"expires_date_ms": "1571090634000",
"expires_date_pst": "2019-10-14 15:03:54 America/Los_Angeles",
"web_order_line_item_id": "1000000047532125",
"is_trial_period": "true",
"is_in_intro_offer_period": "false",
"subscription_group_identifier": "20537620"
},
{
"quantity": "1",
"product_id": "SixthWeekly",
"transaction_id": "1000000579061533",
"original_transaction_id": "1000000579060971",
"purchase_date": "2019-10-14 22:03:54 Etc/GMT",
"purchase_date_ms": "1571090634000",
"purchase_date_pst": "2019-10-14 15:03:54 America/Los_Angeles",
"original_purchase_date": "2019-10-14 22:00:55 Etc/GMT",
"original_purchase_date_ms": "1571090455000",
"original_purchase_date_pst": "2019-10-14 15:00:55 America/Los_Angeles",
"expires_date": "2019-10-14 22:06:54 Etc/GMT",
"expires_date_ms": "1571090814000",
"expires_date_pst": "2019-10-14 15:06:54 America/Los_Angeles",
"web_order_line_item_id": "1000000047532126",
"is_trial_period": "false",
"is_in_intro_offer_period": "false",
"subscription_group_identifier": "20537620"
}
],
"latest_receipt": "...",
"pending_renewal_info": [
{
"expiration_intent": "1",
"auto_renew_product_id": "SixthWeekly",
"original_transaction_id": "1000000579060971",
"is_in_billing_retry_period": "0",
"product_id": "SixthWeekly",
"auto_renew_status": "0"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.