{
"opencollection": "1.0.0",
"info": {
"name": "Paypal Authorizations Subscriptions API",
"version": "1.6"
},
"items": [
{
"info": {
"name": "Subscriptions",
"type": "folder"
},
"items": [
{
"info": {
"name": "Create subscription",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api-m.sandbox.paypal.com/v1/billing/subscriptions",
"headers": [
{
"name": "Prefer",
"value": ""
},
{
"name": "PayPal-Request-Id",
"value": ""
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Creates a subscription."
},
{
"info": {
"name": "Show subscription details",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api-m.sandbox.paypal.com/v1/billing/subscriptions/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the subscription."
},
{
"name": "fields",
"value": "",
"type": "query",
"description": "List of fields that are to be returned in the response. Possible value for fields are last_failed_payment and plan."
}
],
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Shows details for a subscription, by ID."
},
{
"info": {
"name": "Update subscription",
"type": "http"
},
"http": {
"method": "PATCH",
"url": "https://api-m.sandbox.paypal.com/v1/billing/subscriptions/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the subscription."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Updates a subscription which could be in ACTIVE or SUSPENDED status. You can override plan level default attributes by providing customised values for plan path in the patch request.