Events on itunes

0

Is it possible to do that when someone makes the payment of a subscription to my app through itunes this can connect to an endpoint and send me the information of the purchase in a Json by body as do the webhooks of stripe ? I have researched and I have not found anything, I expect information similar to the following:

"{
  "created": 1326853478,
  "livemode": false,
  "id": "evt_00000000000000",
  "type": "account.external_account.created",
  "object": "event",
  "request": null,
  "pending_webhooks": 1,
       "api_version": "2015-04-07",
     "data": {
      "object": {
      "id": "ba_00000000000000",
      "object": "bank_account",
      "account": "acct_00000000000000",
     "account_holder_name": "Jane Austen",
      "account_holder_type": "individual",
     "bank_name": "STRIPE TEST BANK",
     "country": "US",
     "currency": "usd",
     "default_for_currency": false,
     "fingerprint": "XPGzUTVJja4EBM9A",
      "last4": "6789",
     "metadata": {
      },
      "routing_number": "110000000",
      "status": "new"
    }
  }
}"

I do not add the code of what I have tried since I consider that how I made the endpoint is irrelevant because what I need is to know if at least there is a way to do what I want.

    
asked by gibran alexis moreno zuñiga 03.01.2018 в 18:26
source

1 answer

0

You must go to the this link and log in, select the app to which we want to add the endpoint and in the part of down where it says something like " URL of the subscription status "we add it and save it. The Json that the Itunes service sends has the following structure:

{
"latest_receipt": "ewoJInNpZ25hdHVyZCI7Cn0=...",
"latest_receipt_info": {
"original_purchase_date_pst": "2018-01-09 12:05:24 America/Los_Angeles",
"quantity": "1",
"unique_vendor_identifier": "xxxxxxxxxxxxxxxxxxxxxx",
"original_purchase_date_ms": "1515528324000",
"expires_date_formatted": "2018-01-16 20:05:24 Etc/GMT",
"is_in_intro_offer_period": "false",
"purchase_date_ms": "xxxxxxxxxxxxxxxxx",
"expires_date_formatted_pst": "2018-01-16 12:05:24 America/Los_Angeles",
"is_trial_period": "true",
"item_id": "xxxxxxxxxxxxxxxxxxx",
"unique_identifier": "xxxxxxxxxxxxxxxxxxxxx",
"original_transaction_id": "xxxxxxxxxxxxxxxxxx",
"expires_date": "xxxxxxxxxxx",
"app_item_id": "xxxxxxxxx",
"transaction_id": "xxxxxxxxxxxxxx",
"bvrs": "2017.12.181617",
"web_order_line_item_id": "xxxxxxxxxxxxxxx",
"version_external_identifier": "825341650",
"bid": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"product_id": "xxxxxxxxxxxxxxxxxxxxxxx",
"purchase_date": "2018-01-09 20:05:24 Etc/GMT",
"purchase_date_pst": "2018-01-09 12:05:24 America/Los_Angeles",
"original_purchase_date": "2018-01-09 20:05:24 Etc/GMT"
 },
  "environment": "PROD",
  "auto_renew_status": "true",
  "password": "xxxxxxxxxxxxxx",
  "auto_renew_product_id": "xxxxxxxxxxxxxxxx",
  "notification_type": "INITIAL_BUY"
}
    
answered by 17.01.2018 / 22:30
source