{ "opencollection": "1.0.0", "info": { "name": "KOMOJU Barcodes Subscriptions API", "version": "1.0" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Subscriptions", "type": "folder" }, "items": [ { "info": { "name": "List subscriptions", "type": "http" }, "http": { "method": "GET", "url": "https://komoju.com/api/v1/subscriptions", "params": [ { "name": "page", "value": "", "type": "query" }, { "name": "per_page", "value": "", "type": "query" } ] }, "docs": "Lists existing subscriptions." }, { "info": { "name": "Create a subscription", "type": "http" }, "http": { "method": "POST", "url": "https://komoju.com/api/v1/subscriptions", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a subscription (recurring payment) against a saved `customer`. The `period` may be `weekly`, `monthly`, or `yearly`. Subscriptions are immutable once created - delete and recreate to change one." }, { "info": { "name": "Show a subscription", "type": "http" }, "http": { "method": "GET", "url": "https://komoju.com/api/v1/subscriptions/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Shows an existing subscription, including its customer and scrubbed payment details." }, { "info": { "name": "Delete a subscription", "type": "http" }, "http": { "method": "DELETE", "url": "https://komoju.com/api/v1/subscriptions/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Deletes a subscription. Its recurring payments stop once deleted." } ] } ], "bundled": true }