Advertisement
Guest User

Webhook Payload

a guest
Aug 16th, 2018
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.80 KB | None | 0 0
  1. {
  2.   "id": "WH-0PT77256DE660593H-49695103W6353245D",
  3.   "event_version": "1.0",
  4.   "create_time": "2018-08-16T08:41:38.736Z",
  5.   "resource_type": "Agreement",
  6.   "event_type": "BILLING.SUBSCRIPTION.CREATED",
  7.   "summary": "A billing subscription was created",
  8.   "resource": {
  9.     "agreement_details": {
  10.       "outstanding_balance": {
  11.         "value": "0.00"
  12.       },
  13.       "num_cycles_remaining": "0",
  14.       "num_cycles_completed": "0",
  15.       "next_billing_date": "2018-08-17T10:00:00Z",
  16.       "final_payment_due_date": "1970-01-01T00:00:00Z",
  17.       "failed_payment_count": "0"
  18.     },
  19.     "description": "Description Super Plan",
  20.     "links": [
  21.       {
  22.         "href": "api.sandbox.paypal.com/v1/payments/billing-agreements/I-8XDDEX45F1LH",
  23.         "rel": "self",
  24.         "method": "GET"
  25.       }
  26.     ],
  27.     "shipping_address": {
  28.       "recipient_name": "super buyer",
  29.       "line1": "1 Main St",
  30.       "city": "San Jose",
  31.       "state": "CA",
  32.       "postal_code": "95131",
  33.       "country_code": "US"
  34.     },
  35.     "id": "I-8XDDEX45F1LH",
  36.     "state": "Active",
  37.     "payer": {
  38.       "payment_method": "paypal",
  39.       "status": "verified",
  40.       "payer_info": {
  41.         "email": "rogba-superbuyer@inbox.ru",
  42.         "first_name": "super",
  43.         "last_name": "buyer",
  44.         "payer_id": "8KBDDX9CRTDKN",
  45.         "shipping_address": {
  46.           "recipient_name": "super buyer",
  47.           "line1": "1 Main St",
  48.           "city": "San Jose",
  49.           "state": "CA",
  50.           "postal_code": "95131",
  51.           "country_code": "US"
  52.         }
  53.       }
  54.     },
  55.     "plan": {
  56.       "curr_code": "USD",
  57.       "links": [],
  58.       "payment_definitions": [
  59.         {
  60.           "type": "REGULAR",
  61.           "frequency": "Week",
  62.           "frequency_interval": "1",
  63.           "amount": {
  64.             "value": "20.00"
  65.           },
  66.           "cycles": "0",
  67.           "charge_models": [
  68.             {
  69.               "type": "TAX",
  70.               "amount": {
  71.                 "value": "0.00"
  72.               }
  73.             },
  74.             {
  75.               "type": "SHIPPING",
  76.               "amount": {
  77.                 "value": "0.00"
  78.               }
  79.             }
  80.           ]
  81.         }
  82.       ],
  83.       "merchant_preferences": {
  84.         "setup_fee": {
  85.           "value": "0.00"
  86.         },
  87.         "auto_bill_amount": "YES",
  88.         "max_fail_attempts": "3"
  89.       }
  90.     },
  91.     "start_date": "2018-08-17T07:00:00Z"
  92.   },
  93.   "links": [
  94.     {
  95.       "href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-0PT77256DE660593H-49695103W6353245D",
  96.       "rel": "self",
  97.       "method": "GET"
  98.     },
  99.     {
  100.       "href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-0PT77256DE660593H-49695103W6353245D/resend",
  101.       "rel": "resend",
  102.       "method": "POST"
  103.     }
  104.   ]
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement