{ "opencollection": "1.0.0", "info": { "name": "Modern Treasury AccountCapability Return API", "version": "v1" }, "items": [ { "info": { "name": "Return", "type": "folder" }, "items": [ { "info": { "name": "list returns", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:3000/api/returns", "params": [ { "name": "after_cursor", "value": "", "type": "query" }, { "name": "per_page", "value": "", "type": "query" }, { "name": "internal_account_id", "value": "", "type": "query", "description": "Specify `internal_account_id` if you wish to see returns to/from a specific account." }, { "name": "counterparty_id", "value": "", "type": "query", "description": "Specify `counterparty_id` if you wish to see returns that occurred with a specific counterparty." }, { "name": "returnable_id", "value": "", "type": "query", "description": "The ID of a valid returnable. Must be accompanied by `returnable_type`." }, { "name": "returnable_type", "value": "", "type": "query", "description": "One of `payment_order`, `reversal`, or `incoming_payment_detail`. Must be accompanied by `returnable_id`." } ], "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Get a list of returns." }, { "info": { "name": "create return", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:3000/api/returns", "headers": [ { "name": "Idempotency-Key", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Create a return." }, { "info": { "name": "show return", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:3000/api/returns/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of an existing return." } ], "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Get a single return." } ] } ], "bundled": true }