Skip to content

Instantly share code, notes, and snippets.

@j3k0
Created June 21, 2019 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j3k0/a131501e502ee738e3117ea786f547a3 to your computer and use it in GitHub Desktop.
Save j3k0/a131501e502ee738e3117ea786f547a3 to your computer and use it in GitHub Desktop.
Response from fovea.billing customers receipts API
[{
"type": "android-appstore",
"appName": "test",
"bundleId": "cc.fovea.purchase.demo",
"receipt": {
"orderId": "GPA.3312-8483-xxxx-xxxxx..1",
"packageName": "cc.fovea.purchase.demo",
"productId": "cc.fovea.purchase.subscription1",
"purchaseTime": 1549447850144,
"purchaseState": 0,
"purchaseToken": "fgnflighxcodikndxxxxxxxx.XO-X1O...",
"autoRenewing": true,
"kind": "androidpublisher#subscriptionPurchase",
"startTimeMillis": "1549447850144",
"expiryTimeMillis": "1549448866358",
"priceCurrencyCode": "EUR",
"priceAmountMicros": "500000",
"countryCode": "FR",
"developerPayload": "",
"paymentState": 1,
"purchaseType": 0
},
"applicationUsername": "my_user_id_AD",
"createdAt": "2019-02-06T10:10:57.663Z",
"updatedAt": "2019-02-06T10:24:52.480Z",
"id": "android:cc.fovea.purchase.demo:purchaseToken:fgnflighxcodikndxxxxxxxx...",
"rev": "2-a413512ca0b96d68228c1b625b1f8f51"
},
{
"id": "ios:cc.fovea.purchase.demo:download_id:375912345678",
"rev": "1-145270f8b4455b4eb909d669cae4518c",
"type": "ios-appstore",
"appName": "cucumber.test",
"bundleId": "cc.fovea.purchase.demo",
"currency": "USD",
"receipt": {
"receipt_type": "Production",
"adam_id": 377612345678,
"app_item_id": 377612345678,
"bundle_id": "cc.fovea.purchase.demo",
"application_version": "4",
"download_id": 375912345678,
"version_external_identifier": 828584632,
"receipt_creation_date": "2018-09-15 21:49:48 Etc/GMT",
"receipt_creation_date_ms": "1537048188000",
"receipt_creation_date_pst": "2018-09-15 14:49:48 America/Los_Angeles",
"request_date": "2018-09-23 14:47:02 Etc/GMT",
"request_date_ms": "1537714022749",
"request_date_pst": "2018-09-23 07:47:02 America/Los_Angeles",
"original_purchase_date": "2018-09-04 01:35:10 Etc/GMT",
"original_purchase_date_ms": "1536024910000",
"original_purchase_date_pst": "2018-09-03 18:35:10 America/Los_Angeles",
"original_application_version": "2",
"in_app": [{
"quantity": "1",
"product_id": "cc.fovea.purchase.subscription1",
"transaction_id": "17000012345678",
"original_transaction_id": "17000012345678",
"purchase_date": "2018-09-05 02:06:13 Etc/GMT",
"purchase_date_ms": "1536113173000",
"purchase_date_pst": "2018-09-04 19:06:13 America/Los_Angeles",
"original_purchase_date": "2018-09-05 02:06:16 Etc/GMT",
"original_purchase_date_ms": "1536113176000",
"original_purchase_date_pst": "2018-09-04 19:06:16 America/Los_Angeles",
"expires_date": "2019-01-31T09:55:43.404Z",
"expires_date_ms": 1548928543404,
"expires_date_pst": "2018-10-04 19:06:13 America/Los_Angeles",
"web_order_line_item_id": "17000012345678",
"is_trial_period": "false",
"is_in_intro_offer_period": "false"
}],
"ineligible_for_intro_price": [],
"latest_receipt": "MIIUxxxxxxxxxx/JtVe4DgHIQnw=="
},
"createdAt": "2019-01-30T09:55:44.353Z",
"updatedAt": "2019-01-30T09:55:44.353Z"
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment