{ "opencollection": "1.0.0", "info": { "name": "Paypal Subscriptions Authorizations Products API", "version": "1.6" }, "items": [ { "info": { "name": "Products", "type": "folder" }, "items": [ { "info": { "name": "Paypal List products", "type": "http" }, "http": { "method": "GET", "url": "https://api-m.sandbox.paypal.com/v1/catalogs/products", "params": [ { "name": "page_size", "value": "", "type": "query", "description": "The number of items to return in the response." }, { "name": "page", "value": "", "type": "query", "description": "A non-zero integer which is the start index of the entire list of items that are returned in the response. So, the combination of `page=1` and `page_size=20` returns the first 20 items. The combination of `page=2` and `page_size=20` returns the next 20 items." }, { "name": "total_required", "value": "", "type": "query", "description": "Indicates whether to show the total items and total pages in the response." } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/v1/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Lists products." }, { "info": { "name": "Paypal Create product", "type": "http" }, "http": { "method": "POST", "url": "https://api-m.sandbox.paypal.com/v1/catalogs/products", "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 product." }, { "info": { "name": "Paypal Show product details", "type": "http" }, "http": { "method": "GET", "url": "https://api-m.sandbox.paypal.com/v1/catalogs/products/:product_id", "params": [ { "name": "product_id", "value": "", "type": "path", "description": "The product ID." } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/v1/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Shows details for a product, by ID." }, { "info": { "name": "Paypal Update product", "type": "http" }, "http": { "method": "PATCH", "url": "https://api-m.sandbox.paypal.com/v1/catalogs/products/:product_id", "params": [ { "name": "product_id", "value": "", "type": "path", "description": "The product ID." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/v1/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Updates a product, by ID. You can patch these attributes and objects:
| Attribute or object | Operations |
|---|---|
description | add, replace, remove |
category | add, replace, remove |
image_url | add, replace, remove |
home_url | add, replace, remove |