Didn't getting Products/ Plans / Subscription that created by API with same account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I created some products with plans and subscribe to them by using API but I didn't get them on UI in my account.
Please help where I can find that plans, products, and subscriptions.
I am using the below URL with basic / bearer token authentication.
https://api-m.sandbox.paypal.com/v1/billing/subscriptions
Request
{
"plan_id": "P-7T110903SV267615EMA2O2MI",
"start_time": "2021-02-24T00:00:00Z",
"quantity": "1",
"discount_amount":"1",
"subscriber": {
"name": {
"given_name": "John",
"surname": "<removed>"
},
"email_address": "mymail",
"shipping_address": {
"name": {
"full_name": "Kishan <removed>"
},
"address": {
"address_line_1": "<removed>",
"address_line_2": "<removed>",
"admin_area_2": "<removed>",
"admin_area_1": "<removed>",
"postal_code": "<removed>",
"country_code": "<removed>"
}
}
},
"application_context": {
"brand_name": "walmart",
"locale": "en-US",
"shipping_preference": "SET_PROVIDED_ADDRESS",
"user_action": "SUBSCRIBE_NOW",
"payment_method": {
"payer_selected": "PAYPAL",
"payee_preferred": "IMMEDIATE_PAYMENT_REQUIRED"
},
"return_url": "https://example.com/returnUrl",
"cancel_url": "https://example.com/cancelUrl"
}
}
Response
{
"status": "APPROVAL_PENDING",
"id": "I-1CWE1DSEFT7R",
"create_time": "2021-02-23T13:05:35Z",
"links": [
{
"href": "https://www.sandbox.paypal.com/webapps/billing/subscriptions?ba_token=BA-01C271902Y509232G",
"rel": "approve",
"method": "GET"
},
{
"href": "https://api-m.sandbox.paypal.com/v1/billing/subscriptions/I-1CWE1DSEFT7R",
"rel": "edit",
"method": "PATCH"
},
{
"href": "https://api-m.sandbox.paypal.com/v1/billing/subscriptions/I-1CWE1DSEFT7R",
"rel": "self",
"method": "GET"
}
]
}
My Account activities look like this.
I didn't get that subscription on UI after activation.
Also, I am unable to refund payment for the subscription.
Can anyone please, How I refund the subscription last payment using API?
Thanks in Advanced.
- Labels:
-
API
-
Recurring Payments
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- App selection for Subscription Button in Sandbox Environment
- can we assign a unique detail to every subscription creation? in NVP/SOAP APIs
- Mandatory Account Creation Hindering Customer Experience in REST APIs
- Remove PayPal Pay Later option from paypal checkout page. in PayPal Upgrade Community
- Simple Paypal button integration results in 404 error in Sandbox Environment