{"info":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","description":"<html><head></head><body><blockquote>\n<p>Reference Documentation is a catalog of all your predefined API components—requests, documentation, authorization, variables, and examples—into an organized asset library for faster onboarding of new team members. </p>\n</blockquote>\n<h3 id=\"table-of-contents\"><strong>Table of contents:</strong></h3>\n<blockquote>\n<p>🪐 Get Started<br>📢 Recent Updates<br>🔐 Authorization<br>⏱ Rate and usage limits<br>✍️ Example Responses<br>🤔 Need Help? </p>\n</blockquote>\n<h2 id=\"🪐-get-started\">🪐 <strong>Get Started</strong></h2>\n<p>Steps to get started with the Intergalactic Bank API:</p>\n<ol>\n<li><p><strong>Authorization</strong>: Use a valid API Key to send requests to the API endpoints. For this API, everyone will use a temporary API key (prefilled as a collection variable).</p>\n</li>\n<li><p><strong>Access</strong>: If you need elevated access to perform actions like creating new accounts, contact the Intergalactic Bank API product owner.</p>\n</li>\n</ol>\n<blockquote>\n<p>Some endpoints are for Admin Users only. These are noted in the request's documentation. </p>\n</blockquote>\n<p>For more details, check out the additional sections below, and click <code>View Complete Documentation</code> for the complete documentation. If you have questions about the folder or request, look for the documentation icon for documentation-in-context.</p>\n<h2 id=\"📢-recent-updates\">📢 Recent Updates</h2>\n<p>February 2024</p>\n<ul>\n<li>Added optional <code>createdAt</code> parameter to <code>List Transactions</code> endpoint to filter for transactions created on or after a given date.</li>\n</ul>\n<p>January 2024</p>\n<ul>\n<li>We're live! 🎉 The Intergalactic Bank API is now out of beta and available for our internal users. \"Watch\" this collection by clicking the 👁️ icon to be alerted to new updates.</li>\n</ul>\n<h2 id=\"🔐-authorization\">🔐 Authorization</h2>\n<ul>\n<li><p>The Intergalactic Bank API uses an API Key for authorization.</p>\n</li>\n<li><p>You must include an API key in each request to the Postman API with the <code>x-api-key</code> request header.</p>\n</li>\n<li><p>The API key has been pre-filled as a <a href=\"https://learning.postman.com/docs/sending-requests/variables/\">collection variable</a>. The authorization has been set up at the collection level, so all requests in this collection will automatically inherit the needed header.</p>\n</li>\n</ul>\n<blockquote>\n<p>⚠ Don’t leak your secrets! Initial values are saved, and can be shared with others in team workspaces. Current values are local values that are not saved, and won't be persisted in the original shared collection, environment, or globals. <a href=\"https://learning.postman.com/docs/sending-requests/variables/#initial-and-current-values\">Learn more about variables in Postman</a> </p>\n</blockquote>\n<img src=\"https://content.pstmn.io/bba75cfc-45c4-409e-9b1d-d604cbdf51a2/UmVmZXJlbmNlIHZhcmlhYmxlcy5naWY=\" width=\"486\" height=\"297\">\n\n<h2 id=\"rate-and-usage-limits\">Rate and usage limits</h2>\n<p>API access rate limits apply at a per-API key basis in unit time. The limit is 300 requests per minute.</p>\n<p>If you exceed either limit, your request will return an HTTP <code>429 Too Many Requests</code> status code. If your team is consistently hitting these limits, contact the Intergalactic API Product Owner, and we will work to accommodate you.</p>\n<p>Each API response returns the following set of headers to help you identify your use status:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>X-RateLimit-Limit</code></td>\n<td>The maximum number of requests that the consumer is permitted to make per minute.</td>\n</tr>\n<tr>\n<td><code>X-RateLimit-Remaining</code></td>\n<td>The number of requests remaining in the current rate limit window.</td>\n</tr>\n<tr>\n<td><code>X-RateLimit-Reset</code></td>\n<td>The time at which the current rate limit window resets in UTC epoch seconds.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"✍️-example-responses\">✍️ Example Responses</h2>\n<p>We have documented many of the possible responses you might encounter using <a href=\"https://learning.postman.com/docs/sending-requests/examples/\">Examples</a> under each request.</p>\n<h3 id=\"🤔-need-help\">🤔 <strong>Need Help?</strong></h3>\n<p>The Bank Services team wants to ensure that your team has everything they need to successfully integrate our services into your applications and services. Don't hesitate to reach out to us on our internal Slack by tagging <code>@bank-services</code>.</p>\n<blockquote>\n<p>Is your team utilizing this API in a use case not represented here? We want to know about it! Add a comment with your suggestions and feedback! </p>\n</blockquote>\n<p>For ideas on how to use these different requests to accomplish common banking tasks, check out the <a href=\"https://www.postman.com/templates/53736124-ad4d-4cc9-a57a-f7e83402fbe7/Workflow-Documentation\">Workflows Documentation</a> collection. To design your own custom integration, check out the <a href=\"https://www.postman.com/templates/75394e82-fb5d-4421-94cf-8799b1bb4af3/Blueprint-Documentation\">Blueprint Documentation</a> collection.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"43833346","collectionId":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","publishedId":"2sB2cVeMpT","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-04-07T15:53:17.000Z"},"item":[{"name":"Transactions","item":[{"name":"List Transactions","id":"0c96d307-c955-44eb-a7e3-3811310be9f3","request":{"method":"GET","header":[],"url":"https://template.postman-echo.com/api/v1/transactions","description":"<p>This endpoint retrieves transactions for a given account, optionally filtering on the date created (<code>createdAt</code>) and the account receiving the transaction (<code>toAccountId</code>).</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the response will contain an array of transaction objects matching the search criteria.</p>\n<p>If no matching transactions are found, the transactions object will contain an empty array.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}},"urlObject":{"path":["api","v1","transactions"],"host":["https://template.postman-echo.com"],"query":[{"disabled":true,"description":{"content":"<p>(Optional) filter for transactions created on or after date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"createdAt","value":"2024-01-10"},{"disabled":true,"description":{"content":"<p>(Optional) filter for the account that initiated the transaction</p>\n","type":"text/plain"},"key":"toAccountId","value":"19"},{"disabled":true,"description":{"content":"<p>(Optional) filter for the account that received the transaction</p>\n","type":"text/plain"},"key":"fromAccountId","value":"17"}],"variable":[]}},"response":[{"id":"5ddaf666-845f-409d-832b-a2792e95badd","name":"Successful Repsonse","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/transactions","host":["https://template.postman-echo.com"],"path":["api","v1","transactions"],"query":[{"key":"createdAt","value":"2024-01-10","description":"(Optional) filter for transactions created on or after date (YYYY-MM-DD)","disabled":true},{"key":"toAccountId","value":"19","description":"(Optional) filter for the account that initiated the transaction","disabled":true},{"key":"fromAccountId","value":"17","description":"(Optional) filter for the account that received the transaction","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:47:41 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"759"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"transactions\": [\n        {\n            \"id\": 9,\n            \"createdAt\": \"2024-02-17T13:41:26.000Z\",\n            \"fromAccountId\": 17,\n            \"toAccountId\": 19,\n            \"currency\": \"COSMIC_COINS\",\n            \"amount\": 1000\n        },\n        {\n            \"id\": 8,\n            \"createdAt\": \"2024-02-17T13:39:10.000Z\",\n            \"fromAccountId\": 17,\n            \"toAccountId\": 19,\n            \"currency\": \"COSMIC_COINS\",\n            \"amount\": 1000\n        },\n        {\n            \"id\": 7,\n            \"createdAt\": \"2024-02-17T13:12:40.000Z\",\n            \"fromAccountId\": 22,\n            \"toAccountId\": 23,\n            \"currency\": \"COSMIC_COINS\",\n            \"amount\": 250\n        },\n        {\n            \"id\": 6,\n            \"createdAt\": \"2024-02-17T13:12:10.000Z\",\n            \"fromAccountId\": 18,\n            \"toAccountId\": 19,\n            \"currency\": \"COSMIC_COINS\",\n            \"amount\": 250\n        },\n        {\n            \"id\": 4,\n            \"createdAt\": \"2024-02-16T22:30:32.000Z\",\n            \"fromAccountId\": 17,\n            \"toAccountId\": 19,\n            \"currency\": \"COSMIC_COINS\",\n            \"amount\": 1000\n        },\n        {\n            \"id\": 3,\n            \"createdAt\": \"2024-02-16T22:22:22.000Z\",\n            \"fromAccountId\": 18,\n            \"toAccountId\": 19,\n            \"currency\": \"COSMIC_COINS\",\n            \"amount\": 250\n        }\n    ]\n}"},{"id":"1595ec70-6177-475b-96ab-0570ee56ae2e","name":"No matching transactions found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/transactions?createdAt=2024-01-10&toAccountId=18974440&fromAccountId=9999999","host":["https://template.postman-echo.com"],"path":["api","v1","transactions"],"query":[{"key":"createdAt","value":"2024-01-10","description":"(Optional) filter for transactions created on or after date (YYYY-MM-DD)"},{"key":"toAccountId","value":"18974440","description":"(Optional) filter for the account that initiated the transaction"},{"key":"fromAccountId","value":"9999999","description":"(Optional) filter for the account that initiated the transaction"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"transactions\": []\n}"},{"id":"a7e12c89-a931-4193-9abf-ca84ac70ad52","name":"Forbidden","originalRequest":{"method":"GET","header":[],"url":"https://template.postman-echo.com/api/v1/transactions"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:21:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"},{"id":"e7618ec6-641b-4c9f-b136-55a3e9fd456d","name":"List Transactions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/transactions","host":["https://template.postman-echo.com"],"path":["api","v1","transactions"],"query":[{"key":"createdAt","value":"2024-01-10","description":"(Optional) filter for transactions created on or after date (YYYY-MM-DD)","disabled":true},{"key":"toAccountId","value":"19","description":"(Optional) filter for the account that initiated the transaction","disabled":true},{"key":"fromAccountId","value":"17","description":"(Optional) filter for the account that received the transaction","disabled":true}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"0c96d307-c955-44eb-a7e3-3811310be9f3"},{"name":"Get a transaction","id":"1d876002-c8a5-4e97-b597-9b24ee26a8d2","request":{"method":"GET","header":[],"url":"https://template.postman-echo.com/api/v1/transactions/:id","description":"<p>This endpoint retrieves details of a specific transaction by providing the transaction ID as a path parameter.</p>\n<p>If you are looking to retrieve more than one transaction, check out the <strong>List Transactions</strong> request.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the response will contain a single transaction object matching the search criteria.</p>\n<p>If no transaction with the given ID is found, the request will return a <code>Not Found</code> error.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}},"urlObject":{"path":["api","v1","transactions",":id"],"host":["https://template.postman-echo.com"],"query":[],"variable":[{"id":"8d6b3132-4fe7-4e5e-888d-24166e776313","description":{"content":"<p>(Required) ID of transaction</p>\n","type":"text/plain"},"type":"any","value":"163","key":"id"}]}},"response":[{"id":"c814ac39-4aec-4a0e-ab6d-ec21c1e3832e","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/transactions/:id","host":["https://template.postman-echo.com"],"path":["api","v1","transactions",":id"],"variable":[{"key":"id","value":"4","description":"(Required) transaction ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:48:21 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"139"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"transaction\": {\n        \"id\": 4,\n        \"createdAt\": \"2024-02-16T22:30:32.000Z\",\n        \"fromAccountId\": 17,\n        \"toAccountId\": 19,\n        \"currency\": \"COSMIC_COINS\",\n        \"amount\": 1000\n    }\n}"},{"id":"327669d3-ad7c-4592-9c46-a704674613cb","name":"Not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/transactions/:id","host":["https://template.postman-echo.com"],"path":["api","v1","transactions",":id"],"variable":[{"key":"id","value":"999","description":"(Required) transaction id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:33:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"instanceNotFound\",\n    \"message\": \"Transaction does not exist.\"\n}"},{"id":"4cce255c-722a-47fa-9d8c-7c5cb1e33e5c","name":"Forbidden","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/transactions/:id","host":["https://template.postman-echo.com"],"path":["api","v1","transactions",":id"],"variable":[{"key":"id","value":"999"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:21:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"}],"_postman_id":"1d876002-c8a5-4e97-b597-9b24ee26a8d2"},{"name":"Create New Transaction","id":"e9fb67e5-77a5-4f36-aefb-ed3c5aaec500","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fromAccountId\" : 458,\n    \"toAccountId\" : 460,\n    \"amount\" : 1000,\n    \"currency\" : \"COSMIC_COINS\"\n}","options":{"raw":{"language":"json"}}},"url":"https://template.postman-echo.com/api/v1/transactions","description":"<p>Creates a new transaction. You can transfer funds between accounts by providing two account IDs in the <code>fromAccountId</code> and <code>toAccountId</code> fields.</p>\n<h3 id=\"response\">Response</h3>\n<p>A successful request will contain a single transaction object with the newly created transaction <code>id</code></p>\n<p>If there are not enough funds in the originator's account to complete the transaction, the request will return a <code>400 Insufficient Funds</code> error.</p>\n<h3 id=\"important\">Important!</h3>\n<p>Transactions cannot be edited once created, so use this endpoint with caution.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}},"urlObject":{"path":["api","v1","transactions"],"host":["https://template.postman-echo.com"],"query":[],"variable":[]}},"response":[{"id":"36892106-2e6c-4d43-822f-822772a76352","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fromAccountId\" : \"12345678\",\n    \"toAccountId\" : \"87654321\",\n    \"amount\" : 10000,\n    \"currency\" : \"COSMIC_COINS\"\n}","options":{"raw":{"language":"json"}}},"url":"https://template.postman-echo.com/api/v1/transactions"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"transaction\": {\n        \"id\": 8\n    }\n}"},{"id":"f2db7246-1af9-4daa-ae5c-ac9e85b34024","name":"Insufficient funds","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fromAccountId\" : 17,\n    \"toAccountId\" : 19,\n    \"amount\" : 1000000000000000000000,\n    \"currency\" : \"COSMIC_COINS\"\n}","options":{"raw":{"language":"json"}}},"url":"https://template.postman-echo.com/api/v1/transactions"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:16:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"101"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"invalidBody\",\n    \"message\": \"Insufficient balance in fromAccountId to initiate the transaction.\"\n}"},{"id":"68f954b9-faf8-43af-a963-576e21379f92","name":"Forbidden","originalRequest":{"method":"POST","header":[],"url":"https://template.postman-echo.com/api/v1/transactions"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:21:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"}],"_postman_id":"e9fb67e5-77a5-4f36-aefb-ed3c5aaec500"}],"id":"d83e0afe-2c37-49c5-a2c1-14b567e7e871","description":"<img src=\"https://content.pstmn.io/2f912e6a-6eb0-410f-b74e-788c5bac6735/Q29pbi5wbmc=\" alt=\"Cosmic%20Coin\" width=\"112\" height=\"130\" />\n\n<p>A <em><strong>transaction</strong></em> records money moving in or out of an account. Transactions at the Intergalactic Bank follow a blockchain-like approach. Once created, they cannot be updated or deleted.</p>\n<p>Use the <strong>transaction</strong> endpoints contained in this folder to...</p>\n<ul>\n<li><p>List transactions  - get all transactions from an account, with options to filter by date, or the account they were delivered to.</p>\n</li>\n<li><p>Get a single transaction - If you are looking to retrieve information about a specific transaction, provide a transaction <code>id</code> and receive information about the transaction.</p>\n</li>\n<li><p>Create a new transaction - create a new transfer or deposit transaction for a given account.</p>\n</li>\n</ul>\n<p>Transactions do not contain any information about the account balance. To inquire about account balances and other account-related details, please refer to the requests in the <strong>Accounts</strong> folder.</p>\n","_postman_id":"d83e0afe-2c37-49c5-a2c1-14b567e7e871","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}}},{"name":"Accounts","item":[{"name":"List Accounts","id":"fea3b6d4-0a87-47ea-a0f3-d7147d649912","request":{"method":"GET","header":[],"url":"https://template.postman-echo.com/api/v1/accounts","description":"<p>List all accounts that exist at the the Intergalactic Bank. Optionally, filter by <code>owner</code> (using a full name), or the <code>createdAt</code> date (using <code>YYYY-MM-DD</code> format).</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the response will return an <code>accounts</code> object that contains an array of nested accounts matching the search criteria.</p>\n<p>If no accounts are found to match the search criteria, the <code>accounts</code> object will contain an empty array.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}},"urlObject":{"path":["api","v1","accounts"],"host":["https://template.postman-echo.com"],"query":[{"disabled":true,"description":{"content":"<p>(Optional) filter by full name of the account owner</p>\n","type":"text/plain"},"key":"owner","value":"Nova Newman"},{"disabled":true,"description":{"content":"<p>(Optional) filter for accounts created on or after date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"createdAt","value":"2023-04-10"}],"variable":[]}},"response":[{"id":"3a265b56-0385-4443-a0ec-95748ff4c8e0","name":"Successful Response (filter by date)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts?createdAt=2023-04-10","host":["https://template.postman-echo.com"],"path":["api","v1","accounts"],"query":[{"key":"owner","value":"Nova Newman","disabled":true},{"key":"createdAt","value":"2023-04-10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"accounts\": [\n        {\n            \"id\": \"1\",\n            \"owner\": \"Nova Newman\",\n            \"createdAt\": \"2024-01-10T14:54:29.739Z\",\n            \"balance\": 10000,\n            \"currency\" : \"COSMIC_COINS\"\n        },\n        {\n            \"id\": \"2\",\n            \"owner\": \"Gary Galaxy\",\n            \"createdAt\": \"2024-01-10T14:54:29.739Z\",\n            \"balance\": 237,\n            \"currency\" : \"COSMIC_COINS\"\n        }\n    ]\n}"},{"id":"b991345c-7576-402d-9f80-040674316517","name":"Successful Response (filter by owner)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts?owner=Nova Newman","host":["https://template.postman-echo.com"],"path":["api","v1","accounts"],"query":[{"key":"owner","value":"Nova Newman"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"accounts\": [\n        {\n            \"id\": \"1\",\n            \"owner\": \"Nova Newman\",\n            \"createdAt\": \"2023-04-10\",\n            \"balance\": 10000,\n            \"currency\" : \"COSMIC_COINS\"\n        }\n    ]\n}"},{"id":"3029e4c5-ee58-4697-8136-129e5d5f1d23","name":"No matching accounts found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts?owner=Norman Nobody&createdAt=2023-04-10","host":["https://template.postman-echo.com"],"path":["api","v1","accounts"],"query":[{"key":"owner","value":"Norman Nobody"},{"key":"createdAt","value":"2023-04-10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"accounts\": []\n}"},{"id":"89088cea-15fb-4451-9e2a-7f5e61daa7e2","name":"Forbidden","originalRequest":{"method":"GET","header":[],"url":"https://template.postman-echo.com/api/v1/accounts"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:21:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"}],"_postman_id":"fea3b6d4-0a87-47ea-a0f3-d7147d649912"},{"name":"Get Account","id":"94b9a0a3-be7b-4c0c-b5d6-33bd6edf6ab1","request":{"method":"GET","header":[],"url":"https://template.postman-echo.com/api/v1/accounts/:id","description":"<p>Get information about an account by passing the account <code>id</code> as a path parameter.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the response will contain an <code>account</code> object matching the search criteria.</p>\n<p>If no account with that ID is found, the request will return a <code>Not Found</code> error.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}},"urlObject":{"path":["api","v1","accounts",":id"],"host":["https://template.postman-echo.com"],"query":[],"variable":[{"id":"68e2fb59-0b44-4417-a1c2-fbca29bd0238","description":{"content":"<p>(Required) ID of account</p>\n","type":"text/plain"},"type":"any","value":"458","key":"id"}]}},"response":[{"id":"0335471c-7201-416a-ac8e-7f80fcdd7601","name":"Succesful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts/:id","host":["https://template.postman-echo.com"],"path":["api","v1","accounts",":id"],"variable":[{"key":"id","value":"26","description":"(Required) ID of account"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 14:46:30 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"84"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": {\n        \"id\": 26,\n        \"owner\": \"Nova Newman\",\n        \"balance\": 5100,\n        \"currency\": \"COSMIC_COINS\"\n    }\n}"},{"id":"32e0fb83-6030-4d09-999a-e569bebd0545","name":"Not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts/:id","host":["https://template.postman-echo.com"],"path":["api","v1","accounts",":id"],"variable":[{"key":"id","value":"999"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:18:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"63"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"instanceNotFound\",\n    \"message\": \"Account does not exist.\"\n}"},{"id":"cb64dfab-e966-4561-a141-185b081431b6","name":"Forbidden","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts/:id","host":["https://template.postman-echo.com"],"path":["api","v1","accounts",":id"],"variable":[{"key":"id","value":"22"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:21:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"}],"_postman_id":"94b9a0a3-be7b-4c0c-b5d6-33bd6edf6ab1"},{"name":"Update Account","id":"fabc1bca-c06a-4757-bad1-747dd451e897","request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"owner\": \"Paul Stars\",\n \t\"balance\" : 57000,\n    \"currency\" : \"COSMIC_COINS\"\n}","options":{"raw":{"language":"json"}}},"url":"https://template.postman-echo.com/api/v1/accounts/:id","description":"<p>Update information about an account by passing the <code>accountId</code> as a path parameter and additional information through the Request Body.</p>\n<h3 id=\"request-body-properties\">Request Body Properties</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Property Name</strong></th>\n<th><strong>Data Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required?</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>owner</td>\n<td>String</td>\n<td>Full Name</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the response will contain an <code>account</code> object matching the search criteria.</p>\n<p>If no account with that ID is found, the request will return a <code>Not Found</code> error.</p>\n<p>If the requesting party does not have Admin permissions, the request will return a <code>403 Forbidden</code> Error.</p>\n<h3 id=\"important\">Important!</h3>\n<p>Only Bank Admins have permission to update an account. You may encounter a <code>403 Forbidden Error</code> if you try to update an account without the correct permissions.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}},"urlObject":{"path":["api","v1","accounts",":id"],"host":["https://template.postman-echo.com"],"query":[],"variable":[{"id":"14679658-5811-48a4-b75e-6fa52f262deb","type":"any","value":"458","key":"id"}]}},"response":[{"id":"46729dd6-bc36-4a86-ae74-591e1c1fc9c8","name":"Successful Response","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"owner\":\"4\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://template.postman-echo.com/api/v1/accounts/:id","host":["https://template.postman-echo.com"],"path":["api","v1","accounts",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": {\n        \"id\": \"2\",\n        \"owner\" : \"Nova Newman\",\n        \"balance\" : 300,\n        \"currency\" : \"COSMIC_COINS\",\n        \"createdAt\" : \"2024-01-10T14:54:29.739Z\"\n    }\n}"},{"id":"8e21366f-51ed-41b3-af71-354ee34935b1","name":"Not found","originalRequest":{"method":"PATCH","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts/:id","host":["https://template.postman-echo.com"],"path":["api","v1","accounts",":id"],"variable":[{"key":"id","value":"999"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:18:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"63"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"instanceNotFound\",\n    \"message\": \"Account does not exist.\"\n}"},{"id":"998a4dc8-bcda-4eb0-bacb-fa48252d9516","name":"Forbidden","originalRequest":{"method":"PATCH","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts/:id","host":["https://template.postman-echo.com"],"path":["api","v1","accounts",":id"],"variable":[{"key":"id","value":"22"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:21:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"}],"_postman_id":"fabc1bca-c06a-4757-bad1-747dd451e897"},{"name":"Delete Account","id":"a0eb22d4-eceb-45c1-a929-3e6ef7eabc2a","request":{"method":"DELETE","header":[],"url":"https://template.postman-echo.com/api/v1/accounts/:id","description":"<p>Delete an account by passing in the account <code>id</code> as a path parameter.</p>\n<h3 id=\"response\">Response</h3>\n<p>A successful request will return an empty response.</p>\n<p>If no account with that ID is found, the request will return a <code>Not Found</code> error.</p>\n<p>If the requesting party does not have Admin permissions, the request will return a <code>403 Forbidden</code> Error.</p>\n<h3 id=\"important\">Important!</h3>\n<p>Once an account is deleted, it cannot be restored, so please use this endpoint with caution.</p>\n<p>Additionally, only Bank Admins have permission to update an account. You may encounter a <code>403 Forbidden</code> Error if you try to update an account without the correct permissions.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}},"urlObject":{"path":["api","v1","accounts",":id"],"host":["https://template.postman-echo.com"],"query":[],"variable":[{"id":"1d27a31f-c177-4c2a-83d9-31ba96afde4d","type":"any","value":"22","key":"id"}]}},"response":[{"id":"0cdd5934-4945-4dcc-8a74-6d0dd66a4a17","name":"Successful Response","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts/:id","host":["https://template.postman-echo.com"],"path":["api","v1","accounts",":id"],"variable":[{"key":"id","value":""}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null},{"id":"c3db8079-6bf6-46c5-aea6-ff4ed11cf654","name":"Not found","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts/:id","host":["https://template.postman-echo.com"],"path":["api","v1","accounts",":id"],"variable":[{"key":"id","value":"15"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:18:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"63"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"instanceNotFound\",\n    \"message\": \"Account does not exist.\"\n}"},{"id":"6d45d821-17e9-4b5f-9b9b-be8e8e9ecd93","name":"Forbidden","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://template.postman-echo.com/api/v1/accounts/:id","host":["https://template.postman-echo.com"],"path":["api","v1","accounts",":id"],"variable":[{"key":"id","value":"22"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:21:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"}],"_postman_id":"a0eb22d4-eceb-45c1-a929-3e6ef7eabc2a"},{"name":"Create New Account","id":"70f058ae-6abf-4c56-b9da-a3e82d013942","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"owner\": \"D'angelo Dach\",\n \t\"balance\" : 500,\n    \"currency\" : \"COSMIC_COINS\"\n}","options":{"raw":{"language":"json"}}},"url":"https://template.postman-echo.com/api/v1/accounts","description":"<p>Creates a new account at the Intergalactic Bank.</p>\n<h3 id=\"request-body-properties\">Request Body Properties</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property Name</th>\n<th>Property Type</th>\n<th><strong>Description</strong></th>\n<th><strong>Required?</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>owner</td>\n<td>String</td>\n<td>Full name of the person opening this account</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>balance</td>\n<td>Number</td>\n<td>The starting balance of the account</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String - Possible values: <code>COSMIC_COINS</code>, <code>GALAXY_GOLD</code>, <code>MOON_BUCKS</code></td>\n<td>The currency this account will be using for transactions. This cannot be changed once established.</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>A successful request will contain a single <code>account</code> object with the newly created transaction <code>id</code></p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}},"urlObject":{"path":["api","v1","accounts"],"host":["https://template.postman-echo.com"],"query":[],"variable":[]}},"response":[{"id":"2ac0c1de-03d6-495a-930c-4ef1f01cde16","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"owner\": \"Nova Newman\",\n \t\"balance\" : 500,\n    \"currency\" : \"COMET_COINS\"\n}","options":{"raw":{"language":"json"}}},"url":"https://template.postman-echo.com/api/v1/accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": {\n        \"id\": \"123\"\n    }\n}"},{"id":"4e6b78a1-49b3-4d6d-8584-0809a00644c6","name":"Forbidden","originalRequest":{"method":"POST","header":[],"url":"https://template.postman-echo.com/api/v1/accounts"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 17 Feb 2024 13:21:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"keep-alive"},{"key":"uWebSockets","value":"20"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"}],"_postman_id":"70f058ae-6abf-4c56-b9da-a3e82d013942"}],"id":"e68034d0-d65e-4fdd-bb02-037d0ad56e43","description":"<img src=\"https://content.pstmn.io/c1995eee-896d-4c9f-891a-a206bc16cc0b/c2F2ZS1tb25leS5wbmc=\" alt=\"Intergalactic%20Bank%20Accounts%20are%20a%20great%20way%20to%20store%20your%20currency%20of%20choice.\" width=\"249\" height=\"158\" />\n\n<p>An Account at the Intergalactic Bank allows you to store funds.</p>\n<p>Use the <em><strong>account</strong></em> endpoints contained in this folder to...</p>\n<ul>\n<li><p>List accounts  - get all accounts that meet your search criteria.</p>\n</li>\n<li><p>Get a single account - If you are looking to retrieve information about a specific account, provide an account <code>id</code> and receive information about the account.</p>\n</li>\n<li><p>Create a new account - Create a new account</p>\n</li>\n<li><p>Update an account - Update account information (admin only)</p>\n</li>\n<li><p>Delete an Account - Delete an account (admin only)</p>\n</li>\n</ul>\n<p>Account endpoints do not return information about transactions. To retrieve transaction information, check out the requests in the <strong>Transactions</strong> folder.</p>\n","_postman_id":"e68034d0-d65e-4fdd-bb02-037d0ad56e43","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]},"isInherited":true,"source":{"_postman_id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","id":"99c93b7f-dcb6-44e0-9917-07d55d0b8535","name":"Reference Documentation","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"id":"8978b4fa-b12f-4620-a49a-b28972048edb","key":"baseUrl","value":"https://template.postman-echo.com","type":"string"},{"id":"a7648077-8f37-4c20-80d0-5a493f520f74","key":"apiKey","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr","type":"string"}]}