Skip to content

Instantly share code, notes, and snippets.

@sahilrajput03
Last active December 6, 2022 13:49
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 sahilrajput03/ff7fadb102afab047432564f71dfd20e to your computer and use it in GitHub Desktop.
Save sahilrajput03/ff7fadb102afab047432564f71dfd20e to your computer and use it in GitHub Desktop.
{
"subscriber": {
"email_address": "barbuyer@gmail.com",
"payer_id": "VZXRX2AG4RY6G",
"name": {
"given_name": "BarBuyer",
"surname": "Jones"
},
"shipping_address": {
"name": {
"full_name": "John Doe"
},
"address": {
"address_line_1": "2211 N First Street",
"address_line_2": "Building 17",
"admin_area_2": "San Jose",
"admin_area_1": "CA",
"postal_code": "95131",
"country_code": "US"
}
}
},
"start_time": "2022-11-01T00:00:00Z",
"shipping_amount": {
"currency_code": "USD",
"value": "10.0"
},
"plan_id": "P-7YC896222K2322022MIBO7QQ",
"status": "ACTIVE",
"quantity": "1",
"billing_info": {
"outstanding_balance": {
"currency_code": "USD",
"value": "0.0"
},
"cycle_executions": [
{
"tenure_type": "TRIAL",
"sequence": 1,
"cycles_completed": 0,
"cycles_remaining": 1,
"current_pricing_scheme_version": 1,
"total_cycles": 1
},
{
"tenure_type": "REGULAR",
"sequence": 2,
"cycles_completed": 0,
"cycles_remaining": 12,
"current_pricing_scheme_version": 1,
"total_cycles": 12
}
],
"last_payment": {
"amount": {
"currency_code": "USD",
"value": "11.0"
},
"time": "2022-02-08T22:37:39Z"
},
"next_billing_time": "2022-10-31T10:00:00Z",
"final_payment_time": "2023-10-30T10:00:00Z",
"failed_payments_count": 0
},
"create_time": "2022-02-08T22:37:38Z",
"update_time": "2022-02-08T22:37:39Z",
// ABOVE FIELDS SEEMS USEFUL
"status_update_time": "2022-02-08T22:37:39Z",
"id": "I-N9S8GLKKFH66",
"plan_overridden": false,
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/billing/subscriptions/I-N9S8GLKKFH66/cancel",
"rel": "cancel",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/billing/subscriptions/I-N9S8GLKKFH66",
"rel": "edit",
"method": "PATCH"
},
{
"href": "https://api.sandbox.paypal.com/v1/billing/subscriptions/I-N9S8GLKKFH66",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/billing/subscriptions/I-N9S8GLKKFH66/suspend",
"rel": "suspend",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/billing/subscriptions/I-N9S8GLKKFH66/capture",
"rel": "capture",
"method": "POST"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment