{ "opencollection": "1.0.0", "info": { "name": "Modern Treasury AccountCapability Invoice API", "version": "v1" }, "items": [ { "info": { "name": "Invoice", "type": "folder" }, "items": [ { "info": { "name": "list invoices", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:3000/api/invoices", "params": [ { "name": "after_cursor", "value": "", "type": "query" }, { "name": "per_page", "value": "", "type": "query" }, { "name": "counterparty_id", "value": "", "type": "query" }, { "name": "originating_account_id", "value": "", "type": "query" }, { "name": "payment_order_id", "value": "", "type": "query" }, { "name": "expected_payment_id", "value": "", "type": "query" }, { "name": "status", "value": "", "type": "query" }, { "name": "number", "value": "", "type": "query", "description": "A unique record number assigned to each invoice that is issued." }, { "name": "due_date_start", "value": "", "type": "query", "description": "An inclusive lower bound for searching due_date" }, { "name": "due_date_end", "value": "", "type": "query", "description": "An inclusive upper bound for searching due_date" }, { "name": "created_at_start", "value": "", "type": "query", "description": "An inclusive lower bound for searching created_at" }, { "name": "created_at_end", "value": "", "type": "query", "description": "An inclusive upper bound for searching created_at" }, { "name": "metadata", "value": "", "type": "query", "description": "For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query parameters." } ], "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "list invoices" }, { "info": { "name": "create invoice", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:3000/api/invoices", "headers": [ { "name": "Idempotency-Key", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "create invoice" }, { "info": { "name": "get invoice", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:3000/api/invoices/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" } ], "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "get invoice" }, { "info": { "name": "update invoice", "type": "http" }, "http": { "method": "PATCH", "url": "http://localhost:3000/api/invoices/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "id" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "update invoice" } ] } ], "bundled": true }