{ "opencollection": "1.0.0", "info": { "name": "LearnWorlds Courses Payments API", "version": "2.0" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://yourschool.learnworlds.com/admin/api/oauth2/access_token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Payments", "type": "folder" }, "items": [ { "info": { "name": "List payments", "type": "http" }, "http": { "method": "GET", "url": "https://{school}.learnworlds.com/admin/api/v2/payments", "params": [ { "name": "page", "value": "", "type": "query", "description": "The page number to retrieve." }, { "name": "items_per_page", "value": "", "type": "query", "description": "The number of items to return per page." } ] }, "docs": "Lists payment transactions for the school. A payment may include multiple products (for cart orders and bundle purchases)." }, { "info": { "name": "List subscriptions", "type": "http" }, "http": { "method": "GET", "url": "https://{school}.learnworlds.com/admin/api/v2/subscriptions", "params": [ { "name": "page", "value": "", "type": "query", "description": "The page number to retrieve." }, { "name": "items_per_page", "value": "", "type": "query", "description": "The number of items to return per page." } ] }, "docs": "Lists the school's subscriptions, including status and billing period." } ] } ], "bundled": true }