{"info":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","description":"<html><head></head><body><h2 id=\"getting-started\">Getting started</h2>\n<p>Each endpoint should include your generated <code>API Key</code> and <code>CLIENT ID</code> in the header of the request.</p>\n<h4 id=\"dev-environment-base-url\">Dev environment base URL</h4>\n<p><a href=\"https://dev-api.liberex.sv\"><code>https://dev-api.liberex.sv</code></a></p>\n<h4 id=\"production-environment-base-url\">Production environment base URL</h4>\n<p><code>https://api.liberex.sv</code></p>\n<h4 id=\"rate-limits\">Rate limits</h4>\n<p>Each endpoint has a preset rate limit; if you need your limits increased, please reach out.</p>\n<h2 id=\"authentication-pattern\">Authentication pattern</h2>\n<p>The APIs rely upon a secure authentication pattern both for integrators and users. The <strong>only</strong> endpoints that <strong>do not</strong> require user authentication are the Registration / Auth endpoints. All others will require a logged-in user.</p>\n<h4 id=\"collection-variables\">Collection variables</h4>\n<p>This Postman library is equipped with collection variables.</p>\n<p><strong>The following variables can be set by modifying the collection variables directly:</strong></p>\n<p><code>BASE_URL</code> = the Dev or Production environment URL.</p>\n<p><code>API_KEY</code> = the integrator's unique API Key.</p>\n<p><code>CLIENT_ID</code> = the integrator's unique Client ID.</p>\n<p><strong>The following variables will be set automatically once the</strong> <strong><code>/login</code></strong> <strong>a registered user successfully calls endpoint:</strong></p>\n<p><code>ACCESS_TOKEN</code> = the JWT set automatically when a user is logged in</p>\n<p><code>USER_ID</code> = the user's unique ID in the database</p>\n<h4 id=\"pre-request-and-post-request-scripts\">Pre-request and post-request scripts</h4>\n<p>For convenience, pre-request and post-request scripts are included as necessary across all endpoints in this Postman collection. However, integrators should replicate their request wrapper for production applications.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2801076","collectionId":"510a4503-d4f6-485b-85ae-37c4478b0425","publishedId":"2sAXxQds4K","public":true,"customColor":{"top-bar":"f1f0ed","right-sidebar":"303030","highlight":"6356e5"},"publishDate":"2024-10-10T17:04:09.000Z"},"item":[{"name":"Registration / Auth","item":[{"name":"Register","event":[{"listen":"prerequest","script":{"id":"40c18099-f449-4c9e-a8ee-9b0a1a484cad","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}}],"id":"e503167a-61d5-4363-991f-5fae9efdec83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Test\",\n  \"last_name\": \"User\",\n  \"email\": \"test.user@example.com\",\n  \"password\": \"password\",\n  \"individual\": {\n    \"residential_country_code\": \"USA\",\n    \"residential_address_line_one\": \"1715 Drury Ln\",\n    \"residential_address_line_two\": \"Unit B\",\n    \"residential_city\": \"Sacramento\",\n    \"residential_state\": \"CA\",\n    \"residential_postal_code\": \"90210\",\n    \"id_type\": \"ssn\",\n    \"id_number\": \"123456789\",\n    \"id_country_code\": \"USA\",\n    \"dob\": \"1991-01-16\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/register","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["api","v1","register"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"0c009b3b-bc03-4a33-a53e-f10d260fc55d","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Art\",\n  \"last_name\": \"Vandalay\",\n  \"email\": \"VandalayIndustries@example.com\",\n  \"password\": \"password\",\n  \"individual\": {\n    \"residential_country_code\": \"USA\",\n    \"residential_address_line_one\": \"1715 Drury Ln\",\n    \"residential_address_line_two\": \"Unit B\",\n    \"residential_city\": \"New York\",\n    \"residential_state\": \"NY\",\n    \"residential_postal_code\": \"10110\",\n    \"id_type\": \"ssn\",\n    \"id_number\": \"123456789\",\n    \"id_country_code\": \"USA\",\n    \"dob\": \"1991-01-16\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/register"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 09 Oct 2024 22:01:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"67"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"5"},{"key":"X-RateLimit-Remaining","value":"3"},{"key":"X-RateLimit-Reset","value":"1728511341"},{"key":"Retry-After","value":"28"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 121,\n    \"message\": \"Registered successfully.\",\n    \"status\": \"success\"\n}"}],"_postman_id":"e503167a-61d5-4363-991f-5fae9efdec83"},{"name":"Login","event":[{"listen":"prerequest","script":{"id":"1b05fc04-d22a-4b7b-8d26-d5b70caefc1d","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"2ef57579-dcbf-4b5d-b332-58824e8f4b81","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Set Access Token and User Id\", function () {","    if (pm.response.code == 200) {","        var jsonData = pm.response.json();","        pm.collectionVariables.set(\"USER_ID\", jsonData.user_id);","        pm.collectionVariables.set(\"ORGANIZATION_ID\", jsonData.organization_id);","        pm.collectionVariables.set(\"ACCESS_TOKEN\", jsonData.access_token);","    }","});"],"type":"text/javascript","packages":{}}}],"id":"d5f516d1-913b-4cbf-a0fd-691971cf11dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"bob.dole@example.com\",\n\t\"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["api","v1","login"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"aaf626a5-b014-4237-bee7-761e176e494c","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"VandalayIndustries@example.com\",\n\t\"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 09 Oct 2024 22:04:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"436"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"5"},{"key":"X-RateLimit-Remaining","value":"4"},{"key":"X-RateLimit-Reset","value":"1728511533"},{"key":"Retry-After","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Cookie"},{"key":"Set-Cookie","value":"session=.eJwlzrkNwkAQAMBeLibY5143Y-0rSG0cIXrHEg2M5lP2POJ8lu19XPEo-8vLVlZH8ahRE8REEEKbG4ukShssxqxdoHZvZGq2kGf3mmkabiOTbU3UwZ0VLBmHAcIQlslOlFOqTlomlajDugFy682dJ0JVLHfkOuP4b5CwfH_zKjFF.Zwb98g.HGrOhT3NBR5gpWkk9HndRszXSy0; HttpOnly; Path=/"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": ,\n    \"message\": \"Logged in successfully\",\n    \"organization_id\": null,\n    \"user_id\": 121\n}"}],"_postman_id":"d5f516d1-913b-4cbf-a0fd-691971cf11dd"},{"name":"Set Password","event":[{"listen":"prerequest","script":{"id":"9e29872e-a80a-4659-91a3-84b8a6f10a9e","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}}],"id":"f23fa215-6147-4541-849a-484a29690e27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"newpassword\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/set-password/:token","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["api","v1","set-password",":token"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"token"}]}},"response":[],"_postman_id":"f23fa215-6147-4541-849a-484a29690e27"},{"name":"Reset Password Email","event":[{"listen":"prerequest","script":{"id":"59733583-688d-413f-8b0b-a4a2682589cb","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}}],"id":"1724ab7c-de35-45ac-b128-9067eab0f8b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"bob.dole@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"/reset-password/:token","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["reset-password",":token"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"token"}]}},"response":[],"_postman_id":"1724ab7c-de35-45ac-b128-9067eab0f8b0"}],"id":"92de1aa8-c206-4a93-847b-1497262503de","description":"<p>All endpoints regarding a users registration and authentication</p>\n","_postman_id":"92de1aa8-c206-4a93-847b-1497262503de","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}}},{"name":"Payees","item":[{"name":"Create User Payee","event":[{"listen":"prerequest","script":{"id":"7b1a84f1-1408-4aa1-8b76-7900620ebcee","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}}],"id":"865037c8-0fb3-4a59-9737-861c3f16e1c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"new card\",\n    \"routing_number\": \"\",\n    \"account_number\": \"\",\n    \"debit_card\": {\n        \"number\": \"4242424242424242\",\n        \"expiration_month\": \"08\",\n        \"expiration_year\": \"2027\",\n        \"cvv\": \"455\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/users//payees","urlObject":{"path":["api","v1","users","","payees"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"e44762e8-5c2d-4312-a5b7-41f4c3743946","name":"Create User Payee","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"new card\",\n    \"routing_number\": \"\",\n    \"account_number\": \"\",\n    \"debit_card\": {\n        \"number\": \"4242424242424243\",\n        \"expiration_month\": \"08\",\n        \"expiration_year\": \"2027\",\n        \"cvv\": \"455\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/users//payees"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 09 Oct 2024 22:10:05 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"10"},{"key":"X-RateLimit-Remaining","value":"9"},{"key":"X-RateLimit-Reset","value":"1728511864"},{"key":"Retry-After","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"UserPayee created successfully.\",\n    \"payee_id\": 38,\n    \"status\": \"success\",\n    \"user_id\": 121\n}"}],"_postman_id":"865037c8-0fb3-4a59-9737-861c3f16e1c5"},{"name":"Get User Payees","event":[{"listen":"prerequest","script":{"id":"fe0caf37-6e9d-406c-8116-454f8f4aad5b","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}}],"id":"adb46f84-11d4-4e91-93f4-fc6b9af477c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v1/users/payees","description":"<p><strong>Note:</strong> Only an authenticated user or admin can see a user's Payees</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["api","v1","users","payees"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"f9cd56c3-7973-431c-afc1-e27c60861a0e","name":"Get User Payees","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v1/users/payees"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 09 Oct 2024 23:18:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"528"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"10"},{"key":"X-RateLimit-Remaining","value":"9"},{"key":"X-RateLimit-Reset","value":"1728515944"},{"key":"Retry-After","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"account_number\": null,\n        \"card_number\": \"************4243\",\n        \"checkbook_id\": \"checkbook_id\",\n        \"checkbook_key\": \"checkbook_key\",\n        \"checkbook_secret\": \"checkbook_secret\",\n        \"created_at\": \"2024-10-09T22:10:03.553711\",\n        \"error\": null,\n        \"expiration_date\": \"2027-08\",\n        \"id\": 38,\n        \"is_default\": true,\n        \"name\": \"new card\",\n        \"payee_metadata\": null,\n        \"routing_number\": null,\n        \"status\": null,\n        \"type\": \"DEBIT_CARD\",\n        \"updated_at\": \"2024-10-09T22:10:03.553711\",\n        \"user_payee_metadata\": null,\n        \"uuid\": \"6ef8480136204a1997e313bccddc9d1b\"\n    }\n]"}],"_postman_id":"adb46f84-11d4-4e91-93f4-fc6b9af477c0"},{"name":"Set Default Payee","event":[{"listen":"prerequest","script":{"id":"3837fa47-0024-47d0-bd0e-38101088c7c5","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}}],"id":"b4acad45-58e8-4cc8-9c8e-a8348c20132a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"payee_id\": 38\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/users/payees","description":"<p>Sets a specified Payee as the user's default</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["api","v1","users","payees"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"6ec91f32-d962-4293-824b-f148303e658a","name":"Set Default Payee","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"payee_id\": 38\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/users/payees"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 09 Oct 2024 22:10:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"10"},{"key":"X-RateLimit-Remaining","value":"9"},{"key":"X-RateLimit-Reset","value":"1728511875"},{"key":"Retry-After","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Default payee set successfully\"\n}"}],"_postman_id":"b4acad45-58e8-4cc8-9c8e-a8348c20132a"},{"name":"Delete User Payee","event":[{"listen":"prerequest","script":{"id":"e6587c38-cf52-4695-9ea5-8a9105256b81","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}}],"id":"25bb9246-3c33-4688-8830-e433816bef22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"/api/v1/users/payees/:payee_id","description":"<p>Delete's a Payee from the user's account.</p>\n<p><strong>Note:</strong> This endpoint's propagation is delayed and may not take immediate effect</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["api","v1","users","payees",":payee_id"],"host":[""],"query":[],"variable":[{"type":"any","value":"PASS PAYEE ID HERE","key":"payee_id"}]}},"response":[{"id":"3a1dcc97-a1e4-4a4d-b241-7f471877f449","name":"Delete User Payee","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"/api/v1/users/payees/:payee_id","host":[""],"path":["api","v1","users","payees",":payee_id"],"variable":[{"key":"payee_id","value":"PASS PAYEE ID HERE"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 09 Oct 2024 22:08:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"10"},{"key":"X-RateLimit-Remaining","value":"9"},{"key":"X-RateLimit-Reset","value":"1728511749"},{"key":"Retry-After","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"UserPayee deleted successfully\"\n}"}],"_postman_id":"25bb9246-3c33-4688-8830-e433816bef22"}],"id":"41f60413-3709-4f34-b59a-e6657cc21415","description":"<p>Payees are the payment methods a user can add to receive or send funds. Bank accounts or debit cards are currently supported.</p>\n","_postman_id":"41f60413-3709-4f34-b59a-e6657cc21415","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}}},{"name":"Transactions","item":[{"name":"Fetch User Transactions","event":[{"listen":"prerequest","script":{"id":"b35af634-6de7-4e1f-befc-99b4ebc20dee","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());",""],"type":"text/javascript","packages":{}}}],"id":"568106b0-0f1d-4520-9a18-308ca9b63e2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"/api/v1/users/transactions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["api","v1","users","transactions"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"9cd925e8-6892-4c4c-b07e-17e3f5a30f46","name":"Fetch User Transactions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"/api/v1/users/transactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 09 Oct 2024 23:17:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7952"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"X-RateLimit-Reset","value":"1728515898"},{"key":"Retry-After","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"created_at\": \"2024-10-09T22:12:01.371197\",\n        \"error\": null,\n        \"id\": 468,\n        \"organization_id\": null,\n        \"parent_id\": null,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"amount\": 1,\n            \"chain_id\": 1,\n            \"currency\": \"USDC\",\n            \"from_address\": \"0x111a945c1e60716bdeb4a451c25a82531116ae25\",\n            \"to_address\": \"0x1116a2e5f53a41116d4ead87ff6034fc032d4722\",\n            \"transaction_id\": 468,\n            \"tx_hash\": \"0xcc9345692c16340cb3e1111160f9b500b229c65c45d91f8abf2d38fa07d67bba\"\n        },\n        \"tx_type\": \"CRYPTO_DEPOSIT\",\n        \"updated_at\": \"2024-10-09T22:12:01.371197\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:12:02.070279\",\n        \"error\": null,\n        \"id\": 469,\n        \"organization_id\": null,\n        \"parent_id\": 468,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"from_amount\": 1,\n            \"from_currency\": \"usdc\",\n            \"to_amount\": 1,\n            \"to_currency\": \"USD\",\n            \"transaction_id\": 469\n        },\n        \"tx_type\": \"TRADE\",\n        \"updated_at\": \"2024-10-09T22:12:02.070279\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:15:39.630279\",\n        \"error\": null,\n        \"id\": 470,\n        \"organization_id\": null,\n        \"parent_id\": null,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"tx_type\": \"CRYPTO_DEPOSIT\",\n        \"updated_at\": \"2024-10-09T22:15:39.630279\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:16:04.806038\",\n        \"error\": null,\n        \"id\": 471,\n        \"organization_id\": null,\n        \"parent_id\": null,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"amount\": 1,\n            \"chain_id\": 1,\n            \"currency\": \"USDC\",\n            \"from_address\": \"0x111a945c1e60716bdeb4a451c25a82531116ae25\",\n            \"to_address\": \"0x1116a2e5f53a41116d4ead87ff6034fc032d4722\",\n            \"transaction_id\": 471,\n            \"tx_hash\": \"0xcc9345692c16340cb3e1111160f9b500b229c65c45d91f8abf2d38fa07d67bbl\"\n        },\n        \"tx_type\": \"CRYPTO_DEPOSIT\",\n        \"updated_at\": \"2024-10-09T22:16:04.806038\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:16:05.496029\",\n        \"error\": null,\n        \"id\": 472,\n        \"organization_id\": null,\n        \"parent_id\": 471,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"from_amount\": 1,\n            \"from_currency\": \"usdc\",\n            \"to_amount\": 1,\n            \"to_currency\": \"USD\",\n            \"transaction_id\": 472\n        },\n        \"tx_type\": \"TRADE\",\n        \"updated_at\": \"2024-10-09T22:16:05.496029\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:18:04.281141\",\n        \"error\": null,\n        \"id\": 473,\n        \"organization_id\": null,\n        \"parent_id\": null,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"amount\": 1,\n            \"chain_id\": 1,\n            \"currency\": \"USDC\",\n            \"from_address\": \"0x111a945c1e60716bdeb4a451c25a82531116ae25\",\n            \"to_address\": \"0x1116a2e5f53a41116d4ead87ff6034fc032d4722\",\n            \"transaction_id\": 473,\n            \"tx_hash\": \"0xcc9345692c16340cb3e1111160f9b500b229c65c45d91f8abf2d38fa07d67bbf\"\n        },\n        \"tx_type\": \"CRYPTO_DEPOSIT\",\n        \"updated_at\": \"2024-10-09T22:18:04.281141\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:18:04.964318\",\n        \"error\": null,\n        \"id\": 474,\n        \"organization_id\": null,\n        \"parent_id\": 473,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"from_amount\": 1,\n            \"from_currency\": \"usdc\",\n            \"to_amount\": 1,\n            \"to_currency\": \"USD\",\n            \"transaction_id\": 474\n        },\n        \"tx_type\": \"TRADE\",\n        \"updated_at\": \"2024-10-09T22:18:04.964318\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:37:34.473677\",\n        \"error\": null,\n        \"id\": 475,\n        \"organization_id\": null,\n        \"parent_id\": null,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"tx_type\": \"CRYPTO_DEPOSIT\",\n        \"updated_at\": \"2024-10-09T22:37:34.473677\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:37:42.592086\",\n        \"error\": null,\n        \"id\": 476,\n        \"organization_id\": null,\n        \"parent_id\": null,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"amount\": 1,\n            \"chain_id\": 1,\n            \"currency\": \"USDC\",\n            \"from_address\": \"0x111a945c1e60716bdeb4a451c25a82531116ae25\",\n            \"to_address\": \"0x1116a2e5f53a41116d4ead87ff6034fc032d4722\",\n            \"transaction_id\": 476,\n            \"tx_hash\": \"0xcc9345692c16340cb3e1111160f9b500b229c65c45d91f8abf2d38fa07d67bbx\"\n        },\n        \"tx_type\": \"CRYPTO_DEPOSIT\",\n        \"updated_at\": \"2024-10-09T22:37:42.592086\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:37:43.280176\",\n        \"error\": null,\n        \"id\": 477,\n        \"organization_id\": null,\n        \"parent_id\": 476,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"from_amount\": 1,\n            \"from_currency\": \"usdc\",\n            \"to_amount\": 1,\n            \"to_currency\": \"USD\",\n            \"transaction_id\": 477\n        },\n        \"tx_type\": \"TRADE\",\n        \"updated_at\": \"2024-10-09T22:37:43.280176\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:55:08.986315\",\n        \"error\": null,\n        \"id\": 478,\n        \"organization_id\": null,\n        \"parent_id\": null,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"amount\": 1,\n            \"chain_id\": 1,\n            \"currency\": \"USDC\",\n            \"from_address\": \"0x111a945c1e60716bdeb4a451c25a82531116ae25\",\n            \"to_address\": \"0x1116a2e5f53a41116d4ead87ff6034fc032d4722\",\n            \"transaction_id\": 478,\n            \"tx_hash\": \"0xcc9345692c16340cb3e1111160f9b500b229c65c45d91f8abf2d38fa07d67bbv\"\n        },\n        \"tx_type\": \"CRYPTO_DEPOSIT\",\n        \"updated_at\": \"2024-10-09T22:55:08.986315\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T22:55:09.705887\",\n        \"error\": null,\n        \"id\": 479,\n        \"organization_id\": null,\n        \"parent_id\": 478,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"from_amount\": 1,\n            \"from_currency\": \"usdc\",\n            \"to_amount\": 1,\n            \"to_currency\": \"USD\",\n            \"transaction_id\": 479\n        },\n        \"tx_type\": \"TRADE\",\n        \"updated_at\": \"2024-10-09T22:55:09.705887\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T23:11:24.658127\",\n        \"error\": null,\n        \"id\": 480,\n        \"organization_id\": null,\n        \"parent_id\": null,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"amount\": 1,\n            \"chain_id\": 1,\n            \"currency\": \"USDC\",\n            \"from_address\": \"0x111a945c1e60716bdeb4a451c25a82531116ae25\",\n            \"to_address\": \"0x1116a2e5f53a41116d4ead87ff6034fc032d4722\",\n            \"transaction_id\": 480,\n            \"tx_hash\": \"0xcc9345692c16340cb3e1111160f9b500b229c65c45d91f8abf2d38fa07d67ba5\"\n        },\n        \"tx_type\": \"CRYPTO_DEPOSIT\",\n        \"updated_at\": \"2024-10-09T23:11:24.658127\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T23:11:25.356006\",\n        \"error\": null,\n        \"id\": 481,\n        \"organization_id\": null,\n        \"parent_id\": 480,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"from_amount\": 1,\n            \"from_currency\": \"usdc\",\n            \"to_amount\": 1,\n            \"to_currency\": \"USD\",\n            \"transaction_id\": 481\n        },\n        \"tx_type\": \"TRADE\",\n        \"updated_at\": \"2024-10-09T23:11:25.356006\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T23:16:40.354457\",\n        \"error\": null,\n        \"id\": 482,\n        \"organization_id\": null,\n        \"parent_id\": null,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"amount\": 1,\n            \"chain_id\": 1,\n            \"currency\": \"USDC\",\n            \"from_address\": \"0x111a945c1e60716bdeb4a451c25a82531116ae25\",\n            \"to_address\": \"0x1116a2e5f53a41116d4ead87ff6034fc032d4722\",\n            \"transaction_id\": 482,\n            \"tx_hash\": \"0xcc9345692c16340cb3e1111160f9b500b229c65c45d91f8abf2d38fa07d67bd5\"\n        },\n        \"tx_type\": \"CRYPTO_DEPOSIT\",\n        \"updated_at\": \"2024-10-09T23:16:40.354457\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T23:16:41.082518\",\n        \"error\": null,\n        \"id\": 483,\n        \"organization_id\": null,\n        \"parent_id\": 482,\n        \"platform_fee\": null,\n        \"platform_fee_id\": null,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"from_amount\": 1,\n            \"from_currency\": \"usdc\",\n            \"to_amount\": 1,\n            \"to_currency\": \"USD\",\n            \"transaction_id\": 483\n        },\n        \"tx_type\": \"TRADE\",\n        \"updated_at\": \"2024-10-09T23:16:41.082518\",\n        \"user_id\": 121\n    },\n    {\n        \"created_at\": \"2024-10-09T23:16:42.519334\",\n        \"error\": null,\n        \"id\": 484,\n        \"organization_id\": null,\n        \"parent_id\": 483,\n        \"platform_fee\": 1.5,\n        \"platform_fee_id\": 55,\n        \"referral_fee\": null,\n        \"referral_fee_id\": null,\n        \"status\": \"COMPLETED\",\n        \"transaction_details\": {\n            \"amount\": 1,\n            \"currency\": \"USD\",\n            \"memo\": \"Test Transaction\",\n            \"payee_id\": 38,\n            \"payment_method\": \"\",\n            \"transaction_id\": 484\n        },\n        \"tx_type\": \"BANK_WITHDRAWAL\",\n        \"updated_at\": \"2024-10-09T23:16:43.397644\",\n        \"user_id\": 121\n    }\n]"}],"_postman_id":"568106b0-0f1d-4520-9a18-308ca9b63e2f"},{"name":"Create Offramp Transaction","event":[{"listen":"prerequest","script":{"id":"c9687567-529d-4937-b527-e91f81165dd9","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}}],"id":"a51abd77-1424-4425-b040-26042eed60dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"payee_id\": 38,\n    \"memo\": \"Test Transaction\",\n    \"tx_hash\": \"0xcc9345692c16340cb3e1111160f9b500b229c65c45d91f8abf2d38fa07d67bd5\",\n    \"chain_id\": 1, // 8453 for Base\n    \"to_address\": \"0x1116a2e5f53a41116d4ead87ff6034fc032d4722\",\n    \"from_address\": \"0x111a945c1e60716bdeb4a451c25a82531116ae25\",\n    \"currency\": \"USDC\",\n    \"amount\": \"1.00\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/users//offramp-transaction","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["api","v1","users","","offramp-transaction"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"0a2c0d3c-3e59-4b93-b150-72fe1862ca5a","name":"Create Offramp Transaction","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"payee_id\": 38,\n    \"memo\": \"Test Transaction\",\n    \"tx_hash\": \"0xcc9345692c16340cb3e1111160f9b500b229c65c45d91f8abf2d38fa07d67bd5\",\n    \"chain_id\": 1, // 8453 for Base\n    \"to_address\": \"0x1116a2e5f53a41116d4ead87ff6034fc032d4722\",\n    \"from_address\": \"0x111a945c1e60716bdeb4a451c25a82531116ae25\",\n    \"currency\": \"USDC\",\n    \"amount\": \"1.00\"\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/users//offramp-transaction"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 09 Oct 2024 23:16:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"106"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"X-RateLimit-Reset","value":"1728515859"},{"key":"Retry-After","value":"54"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Offramp transaction completed created successfully.\",\n    \"status\": \"success\",\n    \"transaction_id\": 484\n}"}],"_postman_id":"a51abd77-1424-4425-b040-26042eed60dd"}],"id":"1a32a4a7-e82b-4cf6-b8ac-95fe81dd9c8c","_postman_id":"1a32a4a7-e82b-4cf6-b8ac-95fe81dd9c8c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}}},{"name":"Fees","item":[{"name":"Create Fee","event":[{"listen":"prerequest","script":{"id":"469ddca1-d2f9-42e3-be26-b474b1af7e72","exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"],"type":"text/javascript","packages":{}}}],"id":"f382eb5c-b268-4085-8857-da0edd4ad75f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user_id\": 121,\n    \"fee_percentage\": 0.015 //Optional\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/fees","description":"<p>Creates a fee for a specific user.</p>\n<p><strong>Note:</strong> It is recommended that integrators apply this endpoint to their onboarding flow if each user will have the same fee structure.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"path":["api","v1","fees"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"babbaf5c-6882-43e6-a018-2f63e2b8456d","name":"Create Fee","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user_id\": 121,\n    \"fee_percentage\": 0.015 //Optional\n}","options":{"raw":{"language":"json"}}},"url":"/api/v1/fees"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.24.0 (Ubuntu)"},{"key":"Date","value":"Wed, 09 Oct 2024 23:18:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"161"},{"key":"Connection","value":"keep-alive"},{"key":"X-RateLimit-Limit","value":"10"},{"key":"X-RateLimit-Remaining","value":"9"},{"key":"X-RateLimit-Reset","value":"1728515980"},{"key":"Retry-After","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 56,\n    \"integrator_fee_percentage\": 0.015,\n    \"message\": \"Fee created successfully.\",\n    \"platform_fee_percentage\": 0.015,\n    \"status\": \"success\",\n    \"total_fee_percentage\": 0.03\n}"}],"_postman_id":"f382eb5c-b268-4085-8857-da0edd4ad75f"}],"id":"e2477e70-adaa-4b08-9ad0-60cdd925ec96","description":"<p>Enables integrators to set an additional fee.</p>\n","_postman_id":"e2477e70-adaa-4b08-9ad0-60cdd925ec96","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}}},{"name":"Debugging","item":[{"name":"Debug","event":[{"listen":"prerequest","script":{"id":"659c32c3-d4b6-4c8c-8ac4-8c9c9eb60eb4","exec":["pm.collectionVariables.set(\"CLIENT_ID\", \"YOUR CLIENT ID\")","pm.collectionVariables.set(\"API_KEY\", \"YOUR API KEY\")","// pm.collectionVariables.set(\"BASE_URL\", \"https://api.liberex.sv\");","","// Uncomment below to use dev environment","pm.collectionVariables.set(\"BASE_URL\", \"https://dev-api.liberex.sv\");"],"type":"text/javascript","packages":{}}}],"id":"b50febac-f12c-4e20-b6bb-cc49d2689f81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<p>Set your variables in the pre-request script and press <code>SEND</code>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}},"urlObject":{"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"b50febac-f12c-4e20-b6bb-cc49d2689f81"}],"id":"b710ef92-a5cb-4ca0-80f2-42c82f9a1fce","description":"<p>Purely for setting Postman collection variables locally.</p>\n","_postman_id":"b710ef92-a5cb-4ca0-80f2-42c82f9a1fce","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"510a4503-d4f6-485b-85ae-37c4478b0425","id":"510a4503-d4f6-485b-85ae-37c4478b0425","name":"LiberEx API v1","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"f291dfea-26b6-47bb-be7a-8b46068c043b","type":"text/javascript","packages":{},"exec":["// API Key stored as an environment variable in Postman","const API_KEY = pm.collectionVariables.get('API_KEY');","","// Client ID stored as an environment variable in Postman","const CLIENT_ID = pm.collectionVariables.get('CLIENT_ID');","","// Current timestamp","const timestamp = Math.floor(Date.now() / 1000);","","// Set headers for the request","pm.request.headers.add({ key: 'X-API-Key', value: API_KEY });","pm.request.headers.add({ key: 'X-CLIENT-ID', value: CLIENT_ID });","pm.request.headers.add({ key: 'X-Timestamp', value: timestamp.toString() });","","// Custom user agent for tracking integrator requests","pm.request.headers.add({ key: 'User-Agent', value: 'Integrator-Postman-Client/1.0' });","","// Log the headers being sent (for debugging purposes)","console.log('Headers being sent:', pm.request.headers.toObject());"]}},{"listen":"test","script":{"id":"b20a36d6-940b-4bdd-8ff2-df2bdc8b5213","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"CLIENT_ID","value":""},{"key":"API_KEY","value":""},{"key":"BASE_URL","value":""},{"key":"USER_ID","value":"","type":"default"},{"key":"ACCESS_TOKEN","value":"","type":"default"},{"key":"ORGANIZATION_ID","value":""}]}