{"info":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","description":"<html><head></head><body><p>The freely acceptance API is used to integrate applications to the freely payments ecosystem</p>\n<img src=\"https://content.pstmn.io/e2d06e5d-15cd-43c4-9694-b11b8dfaca00/ZnJlZWx5LWJhY2tncm91bmQucG5n\">\n\n<p><a href=\"https://www.postman.com/freelypayments\">Freely Payments Postman Team Bio</a></p>\n<h2 id=\"getting-started-with-freely-payment-api\">Getting Started With Freely Payment API</h2>\n<p>In order to work with freely payments API you will need to work with our support team to have a distrinbutor profile established and client credentials provisioned.</p>\n<p>Please reach out to mailto:<a href=\"https://mailto:DevSupport@freelypayments.com\">DevSupport@freelypayments.com</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"34196851","collectionId":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","publishedId":"2sAXqmCm7r","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-02-21T21:40:30.000Z"},"item":[{"name":"Security - Freely Auth","item":[{"name":"get self","event":[{"listen":"test","script":{"id":"0608d103-70cc-4cd7-850f-84697976d85c","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"78d7532f-6a40-48c2-9816-0f5784f47531","exec":[""],"type":"text/javascript","packages":{}}}],"id":"e29d1c54-717d-4d76-9309-2d5716f0bcc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/self","description":"<p>Retreives all customers from the freely system of record.</p>\n","urlObject":{"path":["self"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"d6087072-b76e-49e1-a2ce-69a219fa88f3","name":"Successful response","originalRequest":{"method":"GET","header":[{"key":"profileKey","value":"tHuhzexRG9r2kCMx","description":"The customer profile key.    If not specified it will use the default profile specified by user profile."},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":"https://accept.sandbox.freelypayments.com/api/customers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"companyName\": \"bobs taco shop\",\n        \"displayName\": \"Bobs Taco Shop\",\n        \"contactFirstName\": \"Bob\",\n        \"contactLastName\": \"smith\",\n        \"companyAccountNumber\": \"bad1231234\",\n        \"notes\": \" \\n\\n### Managed By Freely.  Customer ID: C00001000###\",\n        \"contactEmail\": \"bob@tacotime.com\",\n        \"processorId\": \"223329144177661127\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:26:59.286Z\",\n        \"id\": \"C00001000\",\n        \"lastModified\": \"2024-09-21T05:26:59.287Z\",\n        \"defaultPaymentToken\": null\n    },\n    {\n        \"companyName\": \"FTF\",\n        \"displayName\": \"FTF  - Fish Taco Friday\",\n        \"contactFirstName\": \"Andrew\",\n        \"contactLastName\": \"smith\",\n        \"companyAccountNumber\": \"ac test 123\",\n        \"notes\": \" \\n\\n### Managed By Freely.  Customer ID: C00001001###\",\n        \"contactEmail\": \"\",\n        \"processorId\": \"226980628556036622\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:26:59.558Z\",\n        \"id\": \"C00001001\",\n        \"lastModified\": \"2024-09-21T05:26:59.558Z\",\n        \"defaultPaymentToken\": null\n    },\n    {\n        \"companyName\": \"Jaskolski - Moen\",\n        \"displayName\": \"Jaskolski - Moen\",\n        \"contactFirstName\": \"Marge\",\n        \"contactLastName\": \"Blanda\",\n        \"companyAccountNumber\": \"EqGrf8BJOt\",\n        \"notes\": \"Conor tergiversatio suspendo conicio somnus.\\nTracto adaugeo caterva creber cetera thema tantum aegre ullus delicate.\\nTametsi canonicus solvo contabesco argentum. \\n\\n### Managed By Freely.  Customer ID: C00001002### \\n\\n### Managed By Freely.  Customer ID: C00001002###\",\n        \"contactEmail\": \"Marge.Blanda5@gmail.com\",\n        \"processorId\": \"227022161828469029\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:26:59.828Z\",\n        \"id\": \"C00001002\",\n        \"lastModified\": \"2024-09-21T05:26:59.828Z\",\n        \"defaultPaymentToken\": null\n    },\n    {\n        \"companyName\": \"Freely Test Customer\",\n        \"displayName\": \"Test Customer\",\n        \"contactFirstName\": \"James\",\n        \"contactLastName\": \"Dean\",\n        \"companyAccountNumber\": \"C00001003\",\n        \"notes\": \" \\n\\n### Managed By Freely.  Customer ID: C00001003###\",\n        \"contactEmail\": \"jdean@example.com\",\n        \"processorId\": \"227126047554950993\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:27:00.091Z\",\n        \"id\": \"C00001003\",\n        \"lastModified\": \"2024-09-21T05:27:00.091Z\",\n        \"defaultPaymentToken\": null\n    },\n    {\n        \"companyName\": \"Senger LLC\",\n        \"displayName\": \"Keeling, Rempel and Macejkovic\",\n        \"contactFirstName\": \"Anika\",\n        \"contactLastName\": \"Gislason\",\n        \"companyAccountNumber\": \"C00001004\",\n        \"notes\": \" \\n\\n### Managed By Freely.  Customer ID: C00001004###\",\n        \"contactEmail\": \"Zander.Stamm50@gmail.com\",\n        \"processorId\": \"227163224026110880\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:27:00.343Z\",\n        \"id\": \"C00001004\",\n        \"lastModified\": \"2024-09-21T05:27:00.343Z\",\n        \"defaultPaymentToken\": null\n    }\n]"},{"id":"45405cda-8261-4eed-ba8c-32f855307739","name":"Not Authorized","originalRequest":{"method":"GET","header":[{"key":"profileKey","value":"tHuhzexRG9r2kCMx","description":"The customer profile key.    If not specified it will use the default profile specified by user profile."},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":"{{baseUrl}}/customers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"ETag","value":"W/\"26-4WGx8alghPWyi23BjSF8qtNScqo\""},{"key":"Date","value":"Sun, 22 Sep 2024 04:42:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 403,\n    \"message\": \"ACCESS DENIED\"\n}"}],"_postman_id":"e29d1c54-717d-4d76-9309-2d5716f0bcc4"},{"name":"normal_auth","event":[{"listen":"test","script":{"id":"d55488da-adef-4cf7-bcaf-89141f3110b0","exec":["// Stores the freelyToken in an environment or global variable","var freelyToken = pm.response.json().freelyToken;","var refreshToken = pm.response.json().refreshToken;","pm.environment.set(\"bearerToken\", freelyToken);","pm.environment.set(\"refreshToken\", refreshToken );","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"fd4d9bb0-b4e0-4ca2-b924-4307c8ff5c5f","exec":[""],"type":"text/javascript","packages":{}}}],"id":"af1ed9c2-da9a-4f70-9373-c884cd7ad4e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\":\"{{auth_user}}\",\n    \"password\":\"{{auth_password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/auth/login","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"af1ed9c2-da9a-4f70-9373-c884cd7ad4e5"},{"name":"normal_auth - refresh token","event":[{"listen":"test","script":{"id":"d55488da-adef-4cf7-bcaf-89141f3110b0","exec":["// Stores the freelyToken in an environment or global variable","var freelyToken = pm.response.json().freelyToken;","var refreshToken = pm.response.json().refreshToken;","pm.environment.set(\"bearerToken\", freelyToken);","pm.environment.set(\"refreshToken\", refreshToken );","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"fd4d9bb0-b4e0-4ca2-b924-4307c8ff5c5f","exec":[""],"type":"text/javascript","packages":{}}}],"id":"5b6be32e-6a23-4e6b-b7d3-fc2e3cd3a9fb","protocolProfileBehavior":{"disableBodyPruning":true,"disableCookies":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{refreshToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/auth/refreshToken","urlObject":{"path":["auth","refreshToken"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b6be32e-6a23-4e6b-b7d3-fc2e3cd3a9fb"},{"name":"oauth - client_credentials","event":[{"listen":"test","script":{"id":"f08b856e-1342-4f67-88dd-4b46f94a6f4b","exec":["var access_token = pm.response.json().access_token;","pm.environment.set(\"bearerToken\", access_token);"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"3ef91f27-fe1f-43ba-a473-18c6cc8a5977","exec":[],"type":"text/javascript"}}],"id":"347d75b7-6801-452c-85ff-c60f48a71ef0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{clientId}}"},{"key":"password","value":"{{clientSecret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"scope","value":"","type":"text"}]},"url":"{{oauthUrl}}/oauth/token","urlObject":{"path":["oauth","token"],"host":["{{oauthUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"347d75b7-6801-452c-85ff-c60f48a71ef0"}],"id":"8532e842-ec44-4c6e-89e0-96ba579fcc96","description":"<p>These requests are used to create a regular user. To obtain credentials please contact <a href=\"mailto:devsupport@freelypayments.com\">devsupport@freelypayments.com</a></p>\n","_postman_id":"8532e842-ec44-4c6e-89e0-96ba579fcc96","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}},{"name":"Security - OAuth","item":[{"name":"oauth - client_credentials","event":[{"listen":"test","script":{"id":"f08b856e-1342-4f67-88dd-4b46f94a6f4b","exec":["var access_token = pm.response.json().access_token;","pm.environment.set(\"bearerToken\", access_token);"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"3ef91f27-fe1f-43ba-a473-18c6cc8a5977","exec":[],"type":"text/javascript"}}],"id":"cabae7c4-c70d-4845-b1bc-8037e3c542e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{clientId}}"},{"key":"password","value":"{{clientSecret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"scope","value":"","type":"text"}]},"url":"{{oauthUrl}}/oauth/token","urlObject":{"path":["oauth","token"],"host":["{{oauthUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cabae7c4-c70d-4845-b1bc-8037e3c542e9"}],"id":"aea40e2c-609e-4e13-bf73-2760e0639635","description":"<p>These requests are used for application to application authentication via standard OAUTH.</p>\n<p>To obtain an oauth client id and secret please contact <a href=\"mailto:devsupport@freelypayments.com\">devsupport@freelypayments.com</a></p>\n","_postman_id":"aea40e2c-609e-4e13-bf73-2760e0639635","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}},{"name":"customers","item":[{"name":"Get a list of customers","event":[{"listen":"test","script":{"id":"0608d103-70cc-4cd7-850f-84697976d85c","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response content type is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Validate the schema for the response includes the required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('array');","  ","  const requiredFields = [","    \"id\", \"displayName\", \"companyName\", \"contactFirstName\", \"contactLastName\",","    \"companyAccountNumber\", \"notes\", \"contactEmail\", \"contactPhoneNumber\",","    \"mobilePhoneNumber\", \"freelyProfileId\", \"processorId\", \"lastModified\", ","    \"defaultPaymentToken\"","  ];","  ","  responseData.forEach(function(customer) {","    requiredFields.forEach(function(field) {","      pm.expect(customer).to.have.property(field);","    });","  });","});","var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>Company Name</th>","        <th>Display Name</th>","        <th>Contact First Name</th>","        <th>Contact Last Name</th>","        <th>Company Account Number</th>","        <th>Notes</th>","        <th>Contact Email</th>","        <th>Processor ID</th>","        <th>Contact Phone Number</th>","        <th>Freely Profile ID</th>","        <th>Mobile Phone Number</th>","        <th>Processor Secondary ID</th>","        <th>Processor Primary Sync DateTime</th>","        <th>ID</th>","        <th>Last Modified</th>","        <th>Default Payment Token</th>","    </tr>","    ","    {{#each response}}","        <tr id=row_{{@key}}>","            <td>{{companyName}}</td>","            <td>{{displayName}}</td>","            <td>{{contactFirstName}}</td>","            <td>{{contactLastName}}</td>","            <td>{{companyAccountNumber}}</td>","            <td>{{notes}}</td>","            <td>{{contactEmail}}</td>","            <td>{{processorId}}</td>","            <td>{{contactPhoneNumber}}</td>","            <td>{{freelyProfileId}}</td>","            <td>{{mobilePhoneNumber}}</td>","            <td>{{processorSecondaryId}}</td>","            <td>{{processorPrimarySyncDateTime}}</td>","            <td>{{id}}</td>","            <td>{{lastModified}}</td>","            <td>{{defaultPaymentToken}}</td>","        </tr>","    {{/each}}","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()}","}","","pm.visualizer.set(template, constructVisualizerPayload());","","if(pm.response.code==200) {","    var customerId = pm.response.json()[0].id;","    pm.globals.set(\"customerId\", customerId);","    console.log(customerId)","}"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"78d7532f-6a40-48c2-9816-0f5784f47531","exec":[""],"type":"text/javascript","packages":{}}}],"id":"0c85001c-9416-4d71-b91f-f136147b624b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/customers","description":"<p>Retreives all customers from the freely system of record.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customers"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"c7c912e5-a543-4f29-a60a-b9a15bb3e096","name":"Successful response","originalRequest":{"method":"GET","header":[{"key":"profileKey","value":"tHuhzexRG9r2kCMx","description":"The customer profile key.    If not specified it will use the default profile specified by user profile."},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":"https://accept.sandbox.freelypayments.com/api/customers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"companyName\": \"bobs taco shop\",\n        \"displayName\": \"Bobs Taco Shop\",\n        \"contactFirstName\": \"Bob\",\n        \"contactLastName\": \"smith\",\n        \"companyAccountNumber\": \"bad1231234\",\n        \"notes\": \" \\n\\n### Managed By Freely.  Customer ID: C00001000###\",\n        \"contactEmail\": \"bob@tacotime.com\",\n        \"processorId\": \"223329144177661127\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:26:59.286Z\",\n        \"id\": \"C00001000\",\n        \"lastModified\": \"2024-09-21T05:26:59.287Z\",\n        \"defaultPaymentToken\": null\n    },\n    {\n        \"companyName\": \"FTF\",\n        \"displayName\": \"FTF  - Fish Taco Friday\",\n        \"contactFirstName\": \"Andrew\",\n        \"contactLastName\": \"smith\",\n        \"companyAccountNumber\": \"ac test 123\",\n        \"notes\": \" \\n\\n### Managed By Freely.  Customer ID: C00001001###\",\n        \"contactEmail\": \"\",\n        \"processorId\": \"226980628556036622\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:26:59.558Z\",\n        \"id\": \"C00001001\",\n        \"lastModified\": \"2024-09-21T05:26:59.558Z\",\n        \"defaultPaymentToken\": null\n    },\n    {\n        \"companyName\": \"Jaskolski - Moen\",\n        \"displayName\": \"Jaskolski - Moen\",\n        \"contactFirstName\": \"Marge\",\n        \"contactLastName\": \"Blanda\",\n        \"companyAccountNumber\": \"EqGrf8BJOt\",\n        \"notes\": \"Conor tergiversatio suspendo conicio somnus.\\nTracto adaugeo caterva creber cetera thema tantum aegre ullus delicate.\\nTametsi canonicus solvo contabesco argentum. \\n\\n### Managed By Freely.  Customer ID: C00001002### \\n\\n### Managed By Freely.  Customer ID: C00001002###\",\n        \"contactEmail\": \"Marge.Blanda5@gmail.com\",\n        \"processorId\": \"227022161828469029\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:26:59.828Z\",\n        \"id\": \"C00001002\",\n        \"lastModified\": \"2024-09-21T05:26:59.828Z\",\n        \"defaultPaymentToken\": null\n    },\n    {\n        \"companyName\": \"Freely Test Customer\",\n        \"displayName\": \"Test Customer\",\n        \"contactFirstName\": \"James\",\n        \"contactLastName\": \"Dean\",\n        \"companyAccountNumber\": \"C00001003\",\n        \"notes\": \" \\n\\n### Managed By Freely.  Customer ID: C00001003###\",\n        \"contactEmail\": \"jdean@example.com\",\n        \"processorId\": \"227126047554950993\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:27:00.091Z\",\n        \"id\": \"C00001003\",\n        \"lastModified\": \"2024-09-21T05:27:00.091Z\",\n        \"defaultPaymentToken\": null\n    },\n    {\n        \"companyName\": \"Senger LLC\",\n        \"displayName\": \"Keeling, Rempel and Macejkovic\",\n        \"contactFirstName\": \"Anika\",\n        \"contactLastName\": \"Gislason\",\n        \"companyAccountNumber\": \"C00001004\",\n        \"notes\": \" \\n\\n### Managed By Freely.  Customer ID: C00001004###\",\n        \"contactEmail\": \"Zander.Stamm50@gmail.com\",\n        \"processorId\": \"227163224026110880\",\n        \"contactPhoneNumber\": \"\",\n        \"freelyProfileId\": \"freely\",\n        \"mobilePhoneNumber\": \"\",\n        \"processorSecondaryId\": null,\n        \"processorPrimarySyncDateTime\": \"2024-09-21T05:27:00.343Z\",\n        \"id\": \"C00001004\",\n        \"lastModified\": \"2024-09-21T05:27:00.343Z\",\n        \"defaultPaymentToken\": null\n    }\n]"},{"id":"f14df482-97a3-4375-abb4-32630c0ba12e","name":"Not Authorized","originalRequest":{"method":"GET","header":[{"key":"profileKey","value":"tHuhzexRG9r2kCMx","description":"The customer profile key.    If not specified it will use the default profile specified by user profile."},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":"{{baseUrl}}/customers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"ETag","value":"W/\"26-4WGx8alghPWyi23BjSF8qtNScqo\""},{"key":"Date","value":"Sun, 22 Sep 2024 04:42:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 403,\n    \"message\": \"ACCESS DENIED\"\n}"}],"_postman_id":"0c85001c-9416-4d71-b91f-f136147b624b"},{"name":"creates a new customer","event":[{"listen":"prerequest","script":{"id":"5941fccc-6e6f-4232-9f8c-e9f8ae3b5ed9","exec":["if(!pm.iterationData.has(\"RestaurantName\")) {","    pm.variables.set(\"RestaurantName\", pm.variables.replaceIn(\"Lind, Gerlach and Rodriguez\"));","    pm.variables.set(\"OwnerLastName\", pm.variables.replaceIn(\"Grimes\"));","    pm.variables.set(\"OwnerFirstName\", pm.variables.replaceIn(\"Ada\"));","    pm.variables.set(\"AccountNumber\", pm.variables.replaceIn(\"41103267\"));","    pm.variables.set(\"EmailAddress\", pm.variables.replaceIn(\"Lelah49@yahoo.com\"));","    pm.variables.set(\"Notes\", pm.variables.replaceIn(\"Autem qui omnis reiciendis voluptatem quis.\"));","    pm.variables.set(\"RestaurantPhoneNumber\", pm.variables.replaceIn(\"372-381-4748\"));","    pm.variables.set('MobilePhoneNumber', pm.variables.replaceIn(\"933-451-4042\"));","}",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"141d81d1-6aee-4bb4-b4be-6056470ee240","exec":["// Stores the customerId in an environment or global variable","if(pm.response.code==200) {","    var customerId = pm.response.json().id;","    pm.globals.set(\"customerId\", customerId);","    console.log(customerId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(5000);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.companyName).to.exist;","    pm.expect(responseData.displayName).to.exist;","    pm.expect(responseData.contactFirstName).to.exist;","    pm.expect(responseData.contactLastName).to.exist;","    pm.expect(responseData.companyAccountNumber).to.exist;","    pm.expect(responseData.notes).to.exist;","    pm.expect(responseData.contactEmail).to.exist;","    pm.expect(responseData.processorId).to.exist;","    pm.expect(responseData.contactPhoneNumber).to.exist;","    pm.expect(responseData.freelyProfileId).to.exist;","    pm.expect(responseData.mobilePhoneNumber).to.exist;","    pm.expect(responseData.processorPrimarySyncDateTime).to.exist;","    pm.expect(responseData.id).to.exist;","    pm.expect(responseData.lastModified).to.exist;","});","","","pm.test(\"All required fields are non-empty strings\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    ","    const requiredFields = [\"id\", \"displayName\", \"companyName\", \"contactFirstName\", \"contactLastName\", \"companyAccountNumber\", \"notes\", \"contactEmail\", \"contactPhoneNumber\", \"mobilePhoneNumber\", \"freelyProfileId\", \"processorId\", \"processorPrimarySyncDateTime\", \"lastModified\"];","    ","    requiredFields.forEach(function(field) {","        pm.expect(responseData[field]).to.be.a('string').and.to.have.length.above(0, field + \" should be a non-empty string\");","    });","});","","","pm.test(\"Verify defaultPaymentToken is either null or an object\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.defaultPaymentToken).to.satisfy((value) => {","        return value === null || typeof value === 'object';","    });","});","","var template = `","<form>","    <label for=\"id\">ID:</label><br>","    \"{{response.id}}><br>","    <label for=\"displayName\">Display Name:</label><br>","    <input type=\"text\" id=\"displayName\" name=\"displayName\" value=\"{{response.displayName}}\"><br>","    <label for=\"companyName\">Company Name:</label><br>","    <input type=\"text\" id=\"companyName\" name=\"companyName\" value=\"{{response.companyName}}\"><br>","    <label for=\"contactFirstName\">Contact First Name:</label><br>","    <input type=\"text\" id=\"contactFirstName\" name=\"contactFirstName\" value=\"{{response.contactFirstName}}\"><br>","    <label for=\"contactLastName\">Contact Last Name:</label><br>","    <input type=\"text\" id=\"contactLastName\" name=\"contactLastName\" value=\"{{response.contactLastName}}\"><br>","    <label for=\"companyAccountNumber\">Company Account Number:</label><br>","    <input type=\"text\" id=\"companyAccountNumber\" name=\"companyAccountNumber\" value=\"{{response.companyAccountNumber}}\"><br>","    <label for=\"notes\">Notes:</label><br>","    <textarea id=\"notes\" name=\"notes\">{{response.notes}}</textarea><br>","    <label for=\"contactEmail\">Contact Email:</label><br>","    <input type=\"email\" id=\"contactEmail\" name=\"contactEmail\" value=\"{{response.contactEmail}}\"><br>","    <label for=\"contactPhoneNumber\">Contact Phone Number:</label><br>","    <input type=\"tel\" id=\"contactPhoneNumber\" name=\"contactPhoneNumber\" value=\"{{response.contactPhoneNumber}}\"><br>","    <label for=\"mobilePhoneNumber\">Mobile Phone Number:</label><br>","    <input type=\"tel\" id=\"mobilePhoneNumber\" name=\"mobilePhoneNumber\" value=\"{{response.mobilePhoneNumber}}\"><br>","    <label for=\"freelyProfileId\">Freely Profile ID:</label><br>","    <input type=\"text\" id=\"freelyProfileId\" name=\"freelyProfileId\" value=\"{{response.freelyProfileId}}\"><br>","    <label for=\"processorId\">Processor ID:</label><br>","    <input type=\"text\" id=\"processorId\" name=\"processorId\" value=\"{{response.processorId}}\"><br>","    <label for=\"processorPrimarySyncDateTime\">Processor Primary Sync DateTime:</label><br>","    {{response.processorPrimarySyncDateTime}}<br>","    <label for=\"lastModified\">Last Modified:</label><br>","    {{response.lastModified}}<br>","</form>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()};","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}}],"id":"4d79e094-2e65-4d64-96b9-ba0bbf0cf7fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"displayName\": \"{{RestaurantName}}\",\n  \"companyName\": \"{{RestaurantName}}\",\n  \"contactFirstName\": \"{{OwnerFirstName}}\",\n  \"contactLastName\": \"{{OwnerLastName}}\",\n  \"companyAccountNumber\": \"{{AccountNumber}}\",\n  \"contactEmail\": \"{{EmailAddress}}\",\n  \"notes\": \"{{Notes}}\",\n  \"contactPhoneNumber\": \"{{RestaurantPhoneNumber}}\",\n  \"mobilePhoneNumber\": \"{{MobilePhoneNumber}}\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer","description":"<p>Creates a new Customer in the Freely System of Record.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"19afe9b5-a2cb-457b-901b-d408e32e559e","name":"Successful response","originalRequest":{"method":"POST","header":[{"key":"profileKey","value":"tHuhzexRG9r2kCMx","description":"The customer profile key.    If not specified it will use the default profile specified by user profile."},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n  \"displayName\": \"Bobs Pizza and Submarine\",\n  \"companyName\": \"Bobs Pizza and Submarine\",\n  \"contactFirstName\": \"Robert\",\n  \"contactLastName\": \"Jones\",\n  \"companyAccountNumber\": \"CC-1234133\",\n  \"notes\": \"Bobs Pizza has the best sauce.\",\n  \"contactEmail\": \"info@BPAS.fun\",\n  \"contactPhoneNumber\": \"555-555-1212\",\n  \"mobilePhoneNumber\": \"555-555-3492\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"C000001232\",\n  \"displayName\": \"Bobs Pizza and Submarine\",\n  \"companyName\": \"Bobs Pizza and Submarine\",\n  \"contactFirstName\": \"Robert\",\n  \"contactLastName\": \"Jones\",\n  \"companyAccountNumber\": \"CC-1234133\",\n  \"notes\": \"Bobs Pizza has the best sauce.\",\n  \"contactEmail\": \"info@BPAS.fun\",\n  \"contactPhoneNumber\": \"555-555-1212\",\n  \"mobilePhoneNumber\": \"555-555-3492\",\n  \"freelyProfileId\": \"COOLCO\",\n  \"processorId\": \"1234123532\",\n  \"processorPrimarySyncDateTime\": \"<dateTime>\",\n  \"defaultPaymentToken\": null,\n  \"lastModified\": \"<dateTime>\"\n}"},{"id":"776e05f9-cecb-4a55-80dc-05f6ede9432c","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"displayName\": \"<string>\",\n  \"companyName\": \"<string>\",\n  \"contactFirstName\": \"<string>\",\n  \"contactLastName\": \"<string>\",\n  \"companyAccountNumber\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"contactEmail\": \"<string>\",\n  \"contactPhoneNumber\": \"<string>\",\n  \"mobilePhoneNumber\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"39dd7a11-a214-4145-af82-cc7a248ec8df","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"displayName\": \"<string>\",\n  \"companyName\": \"<string>\",\n  \"contactFirstName\": \"<string>\",\n  \"contactLastName\": \"<string>\",\n  \"companyAccountNumber\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"contactEmail\": \"<string>\",\n  \"contactPhoneNumber\": \"<string>\",\n  \"mobilePhoneNumber\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"4d79e094-2e65-4d64-96b9-ba0bbf0cf7fa"},{"name":"Get a single customer","event":[{"listen":"test","script":{"id":"6d1a9936-b23b-4798-a031-0de1ecceb925","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    const requiredFields = [\"companyName\", \"displayName\", \"contactFirstName\", \"contactLastName\", \"companyAccountNumber\", \"notes\", \"contactEmail\", \"processorId\", \"contactPhoneNumber\", \"freelyProfileId\", \"mobilePhoneNumber\", \"processorSecondaryId\", \"processorPrimarySyncDateTime\", \"id\", \"lastModified\", \"defaultPaymentToken\"];","    requiredFields.forEach(field => {","        pm.expect(responseData).to.have.property(field);","    });","});","","","","","pm.test(\"Verify properties in the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.id).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","    pm.expect(responseData.displayName).to.not.be.null;","    pm.expect(responseData.companyName).to.not.be.null;","    pm.expect(responseData.contactFirstName).to.not.be.null;","    pm.expect(responseData.contactLastName).to.not.be.null;","    pm.expect(responseData.companyAccountNumber).to.not.be.null;","    pm.expect(responseData.notes).to.not.be.null;","    pm.expect(responseData.contactEmail).to.not.be.null;","    pm.expect(responseData.processorId).to.not.be.null;","    pm.expect(responseData.contactPhoneNumber).to.not.be.null;","    pm.expect(responseData.freelyProfileId).to.not.be.null;","    pm.expect(responseData.mobilePhoneNumber).to.not.be.null;","    pm.expect(responseData.processorPrimarySyncDateTime).to.not.be.null;","    pm.expect(responseData.lastModified).to.not.be.null;","","});","","","","var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>ID</th>","        <th>Display Name</th>","        <th>Company Name</th>","        <th>Contact First Name</th>","        <th>Contact Last Name</th>","        <th>Company Account Number</th>","        <th>Notes</th>","        <th>Contact Email</th>","        <th>Contact Phone Number</th>","        <th>Mobile Phone Number</th>","        <th>Processor ID</th>","        <th>Processor Secondary ID</th>","        <th>Processor Primary Sync DateTime</th>","        <th>Last Modified</th>","        <th>Default Payment Token</th>","    </tr>","    <tr>","        <td>{{response.id}}</td>","        <td>{{response.displayName}}</td>","        <td>{{response.companyName}}</td>","        <td>{{response.contactFirstName}}</td>","        <td>{{response.contactLastName}}</td>","        <td>{{response.companyAccountNumber}}</td>","        <td>{{response.notes}}</td>","        <td>{{response.contactEmail}}</td>","        <td>{{response.contactPhoneNumber}}</td>","        <td>{{response.mobilePhoneNumber}}</td>","        <td>{{response.processorId}}</td>","        <td>{{response.processorSecondaryId}}</td>","        <td>{{response.processorPrimarySyncDateTime}}</td>","        <td>{{response.lastModified}}</td>","        <td>{{response.defaultPaymentToken}}</td>","    </tr>","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()}","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"b74a6acd-70fd-47ed-a386-bd09e1fa8da1","exec":[],"type":"text/javascript"}}],"id":"cdc0a850-78ca-458a-90d7-07cb9c6cfa97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/customer/:id","description":"<p>retrieves a single customer via their assigned freely customer id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"d011b571-fd5c-4381-bd06-1cf0bb84fba8","name":"Successful response","originalRequest":{"method":"GET","header":[{"key":"profileKey","value":"tHuhzexRG9r2kCMx","description":"The customer profile key.    If not specified it will use the default profile specified by user profile."},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"companyName\": \"Purdy and Sons\",\n    \"displayName\": \"Purdy and Sons\",\n    \"contactFirstName\": \"Maxwell\",\n    \"contactLastName\": \"Collins\",\n    \"companyAccountNumber\": \"33547218\",\n    \"notes\": \"Veniam laboriosam inventore.\",\n    \"contactEmail\": \"Lottie_Cormier@yahoo.com\",\n    \"processorId\": \"227741499717434166\",\n    \"contactPhoneNumber\": \"620-328-7461\",\n    \"freelyProfileId\": \"freely\",\n    \"mobilePhoneNumber\": \"450-325-1858\",\n    \"processorSecondaryId\": null,\n    \"processorPrimarySyncDateTime\": \"2024-09-23T12:47:04.313Z\",\n    \"id\": \"C00001046\",\n    \"lastModified\": \"2024-09-23T12:47:04.313Z\",\n    \"defaultPaymentToken\": null\n}"},{"id":"0042ff9c-15ab-4aa6-9438-b3ebe92d4cc2","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id","host":["{{baseUrl}}"],"path":["customer",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"310bab4c-1396-4845-9488-dabd5fce4b6b","name":"Record Not Found","originalRequest":{"method":"GET","header":[{"key":"profileKey","value":"tHuhzexRG9r2kCMx","description":"The customer profile key.    If not specified it will use the default profile specified by user profile."},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":{"raw":"{{baseUrl}}/customer/:id","host":["{{baseUrl}}"],"path":["customer",":id"],"variable":[{"key":"id","value":"asdf"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"404\",\n  \"message\": \"Customer Not Found\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"cdc0a850-78ca-458a-90d7-07cb9c6cfa97"},{"name":"updates a customer","event":[{"listen":"prerequest","script":{"id":"9fbcf393-f35f-4627-bd0f-6e71a24a1425","exec":["    pm.variables.set('UpdatedMobilePhoneNumber', pm.variables.replaceIn(\"598-385-8619\"));","    pm.variables.set(\"UpdatedRestaurantName\", pm.variables.replaceIn(\"Reilly - Ullrich\"));","    pm.variables.set(\"UpdatedOwnerLastName\", pm.variables.replaceIn(\"Collier\"));","    pm.variables.set(\"UpdatedOwnerFirstName\", pm.variables.replaceIn(\"Lera\"));","    pm.variables.set(\"UpdatedAccountNumber\", pm.variables.replaceIn(\"81517202\"));","    pm.variables.set(\"UpdatedEmailAddress\", pm.variables.replaceIn(\"Zelda60@hotmail.com\"));","    pm.variables.set(\"Notes\", pm.variables.replaceIn(\"Ex occaecati inventore est qui iste amet.\"));","    pm.variables.set(\"UpdatedRestaurantPhoneNumber\", pm.variables.replaceIn(\"270-366-9746\"));"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"2b4638a4-3d5a-4349-9d4e-39c55a659a71","exec":["pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    const requiredFields = [","        \"id\", \"displayName\", \"companyName\", \"contactFirstName\", \"contactLastName\",","        \"companyAccountNumber\", \"notes\", \"contactEmail\", \"contactPhoneNumber\",","        \"mobilePhoneNumber\", \"freelyProfileId\", \"processorId\", ","        \"processorPrimarySyncDateTime\", \"lastModified\"","    ];","    requiredFields.forEach(field => {","        pm.expect(responseData).to.have.property(field);","    });","});","","","var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-collapse: collapse;}","    .tftable tr {display: flex; flex-direction: row;}","    .tftable td {border: 1px solid #87ceeb; padding: 8px;}","</style>","","<table class=\"tftable\">","    <tr>","        <td>ID</td>","        <td>{{response.id}}</td>","    </tr>","    <tr>","        <td>Display Name</td>","        <td>{{response.displayName}}</td>","    </tr>","    <tr>","        <td>Company Name</td>","        <td>{{response.companyName}}</td>","    </tr>","    <tr>","        <td>Contact First Name</td>","        <td>{{response.contactFirstName}}</td>","    </tr>","    <tr>","        <td>Contact Last Name</td>","        <td>{{response.contactLastName}}</td>","    </tr>","    <tr>","        <td>Company Account Number</td>","        <td>{{response.companyAccountNumber}}</td>","    </tr>","    <tr>","        <td>Notes</td>","        <td>{{response.notes}}</td>","    </tr>","    <tr>","        <td>Contact Email</td>","        <td>{{response.contactEmail}}</td>","    </tr>","    <tr>","        <td>Contact Phone Number</td>","        <td>{{response.contactPhoneNumber}}</td>","    </tr>","    <tr>","        <td>Mobile Phone Number</td>","        <td>{{response.mobilePhoneNumber}}</td>","    </tr>","    <tr>","        <td>Processor ID</td>","        <td>{{response.processorId}}</td>","    </tr>","    <tr>","        <td>Processor Secondary ID</td>","        <td>{{response.processorSecondaryId}}</td>","    </tr>","    <tr>","        <td>Processor Primary Sync Date Time</td>","        <td>{{response.processorPrimarySyncDateTime}}</td>","    </tr>","    <tr>","        <td>Last Modified</td>","        <td>{{response.lastModified}}</td>","    </tr>","    <tr>","        <td>Default Payment Token</td>","        <td>{{response.defaultPaymentToken}}</td>","    </tr>","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()};","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}}],"id":"982f1997-f03d-420c-960e-e6803404b63e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{customerId}}\",\n  \"displayName\": \"{{UpdatedRestaurantName}}\",\n  \"companyName\": \"{{UpdatedRestaurantName}}\",\n  \"contactFirstName\": \"{{UpdatedOwnerFirstName}}\",\n  \"contactLastName\": \"{{UpdatedOwnerLastName}}\",\n  \"companyAccountNumber\": \"{{UpdatedAccountNumber}}\",\n  \"contactEmail\": \"{{UpdatedEmailAddress}}\",\n  \"contactPhoneNumber\": \"{{UpdatedRestaurantPhoneNumber}}\",\n  \"notes\": \"\",\n  \"mobilePhoneNumber\": \"{{UpdatedMobilePhoneNumber}}\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer/:id","description":"<p>Updates a customer record in the freely system of Record.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"30244cfd-4a32-4e2b-ad35-9ffcbda18010","name":"Successful response","originalRequest":{"method":"PUT","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"COOLCO"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"displayName\": \"<string>\",\n  \"companyName\": \"<string>\",\n  \"contactFirstName\": \"<string>\",\n  \"contactLastName\": \"<string>\",\n  \"companyAccountNumber\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"contactEmail\": \"<string>\",\n  \"contactPhoneNumber\": \"<string>\",\n  \"mobilePhoneNumber\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<string>\",\n  \"displayName\": \"<string>\",\n  \"companyName\": \"<string>\",\n  \"contactFirstName\": \"<string>\",\n  \"contactLastName\": \"<string>\",\n  \"companyAccountNumber\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"contactEmail\": \"<string>\",\n  \"contactPhoneNumber\": \"<string>\",\n  \"mobilePhoneNumber\": \"<string>\",\n  \"freelyProfileId\": \"<string>\",\n  \"processorId\": \"<string>\",\n  \"processorSecondaryId\": \"<string>\",\n  \"processorPrimarySyncDateTime\": \"<dateTime>\",\n  \"processorSecondarySyncDateTime\": \"<dateTime>\",\n  \"defaultPaymentToken\": \"<string>\",\n  \"lastModified\": \"<dateTime>\"\n}"},{"id":"4e3a96dc-612a-4985-9e5f-9e1fdc352e4c","name":"Invalid Input","originalRequest":{"method":"PUT","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"displayName\": \"<string>\",\n  \"companyName\": \"<string>\",\n  \"contactFirstName\": \"<string>\",\n  \"contactLastName\": \"<string>\",\n  \"companyAccountNumber\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"contactEmail\": \"<string>\",\n  \"contactPhoneNumber\": \"<string>\",\n  \"mobilePhoneNumber\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id","host":["{{baseUrl}}"],"path":["customer",":id"],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"98a77a95-1f2e-4045-9e76-85c59b1de39f","name":"Not authorized","originalRequest":{"method":"PUT","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"displayName\": \"<string>\",\n  \"companyName\": \"<string>\",\n  \"contactFirstName\": \"<string>\",\n  \"contactLastName\": \"<string>\",\n  \"companyAccountNumber\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"contactEmail\": \"<string>\",\n  \"contactPhoneNumber\": \"<string>\",\n  \"mobilePhoneNumber\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id","host":["{{baseUrl}}"],"path":["customer",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"3f84c2c9-8815-4dee-808b-07ee90f73ef4","name":"Record Not Found","originalRequest":{"method":"PUT","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"displayName\": \"<string>\",\n  \"companyName\": \"<string>\",\n  \"contactFirstName\": \"<string>\",\n  \"contactLastName\": \"<string>\",\n  \"companyAccountNumber\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"contactEmail\": \"<string>\",\n  \"contactPhoneNumber\": \"<string>\",\n  \"mobilePhoneNumber\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id","host":["{{baseUrl}}"],"path":["customer",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"982f1997-f03d-420c-960e-e6803404b63e"},{"name":"delete a single customer","event":[{"listen":"test","script":{"id":"65cfb779-20fa-4078-88f7-e09d0eb15c4c","exec":["pm.test(\"Response status code is 201\", function () {","    pm.expect(pm.response.code).to.equal(201);","});","","","pm.test(\"Response has the required fields - code, message, and details\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.code).to.exist;","    pm.expect(responseData.message).to.exist;","    pm.expect(responseData.details).to.exist;","});","","","pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Validate the format of customerId, profileKey, deletedPrimary, deletedSecondary, and deletedDatabase\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.details.customerId).to.be.a('string');","    pm.expect(responseData.details.profileKey).to.be.a('string');","    pm.expect(responseData.details.deletedPrimary).to.be.a('boolean');","    pm.expect(responseData.details.deletedSecondary).to.be.a('boolean');","    pm.expect(responseData.details.deletedDatabase).to.be.a('boolean');","});","","","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"a5a86644-0a27-4e0e-8f0d-2f106a26086e","exec":[],"type":"text/javascript"}}],"id":"2b5f292d-4b13-4f18-8730-f71c9c540bb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/customer/:id","description":"<p>Deletes a single customer from the freely system of record.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"446f1dfd-d25e-4c4a-b96a-d74d257308a8","name":"Successful response","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"908de817-3c5d-41f0-8fdf-2465f8d69a9d","name":"Not authorized","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id","host":["{{baseUrl}}"],"path":["customer",":id"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"21958924-4d3a-4151-adad-5b3e3eab7c92","name":"Record Not Found","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id","host":["{{baseUrl}}"],"path":["customer",":id"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"2b5f292d-4b13-4f18-8730-f71c9c540bb2"}],"id":"0209d563-1097-4e4b-838f-64d1997ec3e3","description":"<p>Customers are typically the restaurants which purchase food from the distributors. These APIS are for creating, getting, updating and deleting customer records.</p>\n","_postman_id":"0209d563-1097-4e4b-838f-64d1997ec3e3","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}},{"name":"paymentTokens","item":[{"name":"Freely Accept Secure Frame","item":[{"name":"create tokenizer session","id":"61b35db0-d6f9-4484-94ed-68e174a3ff75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ProfileKey","value":"coolco","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customerId\": \"{{customerId}}\",\n    \"tokenType\": \"CARD\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/auth/tokenizer","description":"<p>This request is meant to be executed server side to create an authorized session that can be passed back to the browser to initialize the SDK. This request returns a secure guid</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["auth","tokenizer"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"61b35db0-d6f9-4484-94ed-68e174a3ff75"}],"id":"682ff8ea-9e70-4942-80ce-c048c19b632a","description":"<p>The freely accept secure frame is freely payments SDK allowing third parties to limit their PCI exposure. The freely accept secure frame is meant to be used in combination with the Freely Payments API.</p>\n<p>The SDK allows third parties to embed a customized iframe that handles all tokenization of card data. Once a card are tokenized... the tokens can be used via the rest of the API ecosystem.</p>\n<h2 id=\"how-to-embed-the-freely-accept-secure-frame-in-a-web-site\">How to embed the Freely Accept Secure Frame in a Web Site</h2>\n<h4 id=\"step-1-create-a-tokenizer-session-from-your-server-side-environment\">Step 1. Create a \"tokenizer session\" from your server side environment.</h4>\n<p>As part of this</p>\n<p><a href=\"https://go.postman.co/workspace/b218c853-627f-4e50-85e8-b3faa9fe5c15/documentation/34196851-ee090ebb-0e96-47a8-9b5c-beddf66c21ec?entity=request-61b35db0-d6f9-4484-94ed-68e174a3ff75\">Request</a></p>\n<p>This request will return a \"tokenizerSession\" that must be passed back to the brower. The session is specific to the CUSTOMER.</p>\n<h4 id=\"step-2-embed-the-sdk-into-your-html\">Step 2. Embed the SDK into your HTML</h4>\n<h4 id=\"step-3-embed-container-for-your-iframe\">Step 3. Embed container for your IFRAME</h4>\n<p>This is where the entry iframe will be embedded inside your experience.</p>\n<h4 id=\"step-4-initialize-the-sdk-in-browser-javascript\">Step 4. Initialize the SDK in browser javascript.</h4>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const tokenSDK = new AcceptTokenSDK({\n  containerId: 'token-form-container',\n  tokenizerSession: '{session created on step 1}',\n  onValidation: handleOnValidation,\n  onTokenization: handleTokenization,\n  onError: handleError\n});\npaymentSDK.initialize();\n\n</code></pre><h4 id=\"step-5-customize-the-experience\">Step 5. customize the experience</h4>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>tokenSDK.setStyles({\n    cardInput: css\n    cvvInput: css\n    cardExpireInput: css\n    cvvExpireInput: css\n    zipInput: css\n    addressInput: css\n    errorFeedBack: css\n    });\n\n</code></pre><h4 id=\"step-6-define-callback-functions\">Step 6. Define callback functions</h4>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>function handleOnValidation(isValid) {\n  if (isValid) {\n    console.log('Form data is valid. Ready for submission.');\n    // Enable submit button or proceed with tokenization\n  } else {\n    console.log('Form data is invalid. Please check the fields.');\n    // Display error messages to the user\n  }\n}\nfunction handleTokenization(tokenData) {\n  console.log('Card successfully tokenized:', tokenData.token);\n  // Process the payment using the token\n}\nfunction handleError(error) {\n  console.error('An error occurred:', error.message);\n  // Display error message to the user\n}\n\n</code></pre><p>Notes: The callback functions are called interactively leaving your application able to customize the experience including calling the .tokenize function. The handleTokenization passes back the tokenData with the tokenId that has now been added to the customer profile.</p>\n<h4 id=\"step-7-call-functions-on-sdk\">Step 7. Call functions on SDK</h4>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>//Shows the tokenizer iframe.     Initially the iframe is not displayed.\ntokenSDK.showTokenizer();\n//submits the validated input to be tokenized\n//This will throw an exception if the data is not valid.   \ntokenSDK.tokenize();\n//hide the tokenizer iframe\ntokenSDK.hideTokenizer();\n//reset the tokenizer iframe \ntokenSdK.resetForm();\n\n</code></pre>","_postman_id":"682ff8ea-9e70-4942-80ce-c048c19b632a","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}},{"name":"retrieves ALL payment tokens for the current profile","event":[{"listen":"test","script":{"id":"8e86044c-3efe-457d-b7ac-2e19830d0363","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('array').that.is.not.empty;","","    responseData.forEach(function(token) {","        pm.expect(token).to.have.property('id').that.is.a('string');","        pm.expect(token).to.have.property('account').that.is.a('string');","        pm.expect(token).to.have.property('accountType').that.is.a('string');","        pm.expect(token).to.have.property('cardHolderName').that.is.a('string');","        pm.expect(token).to.have.property('expirationDate').that.is.a('string');","        pm.expect(token).to.have.property('streetAddress').that.is.a('string');","        pm.expect(token).to.have.property('zipCode').that.is.a('string');","        pm.expect(token).to.have.property('isDefault').that.is.a('boolean');","        pm.expect(token).to.have.property('processorToken').that.is.a('string');","        pm.expect(token).to.have.property('processorProfile').that.is.a('string');","        pm.expect(token).to.have.property('createdDateTime').that.is.a('string');","        pm.expect(token).to.have.property('updatedDateTime').that.is.a('string');","        pm.expect(token).to.have.property('customerId').that.is.a('string');","    });","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Account number is redacted and displayed as 'XXXXXXXXXXXX1234'\", function () {","    const responseData = pm.response.json();","    ","    responseData.forEach(function(token) {","        pm.expect(token.account).to.be.a('string');","        pm.expect(token.account).to.match(/^X{12}\\d{4}$/);","    });","});","","","pm.test(\"Response is in JSON format\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","if(pm.response.code==200) {","    var tokenId = pm.response.json()[0].id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\",tokenId)","}",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"39a8b152-a52d-49fa-9bd0-5f30ca9246d3","exec":[],"type":"text/javascript"}}],"id":"99956d62-c47f-49a4-b243-d626997f8bf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/tokens","description":"<p>Gets a full list of all payment tokens that are currently on Freely for a given profile.</p>\n<p>The returned list of tokens card information is redacted. For example: Account Numbers would display as \"XXXXXXXXXXXX1234\".</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["tokens"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"ba3d6a9d-6c1e-45b8-9250-7e1696b7b813","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"https://accept.sandbox.freelypayments.com/api/tokens"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"CUP\",\n    \"cardHolderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\",\n    \"isDefault\": \"<boolean>\",\n    \"createdDateTime\": \"<dateTime>\",\n    \"updatedDateTime\": \"<dateTime>\",\n    \"customerId\": \"<string>\",\n    \"notes\": \"<string>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"DINERS\",\n    \"cardHolderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\",\n    \"isDefault\": \"<boolean>\",\n    \"createdDateTime\": \"<dateTime>\",\n    \"updatedDateTime\": \"<dateTime>\",\n    \"customerId\": \"<string>\",\n    \"notes\": \"<string>\"\n  }\n]"},{"id":"cc45fe15-6987-45a6-8f4d-c7e8f43880d0","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"{{baseUrl}}/tokens"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"99956d62-c47f-49a4-b243-d626997f8bf2"},{"name":"Validate Card (Visa Consumer)","event":[{"listen":"test","script":{"id":"a5879ec2-8146-483d-b36b-9c2dd174e703","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('type');","    pm.expect(responseData).to.have.property('accountNumber');","    pm.expect(responseData).to.have.property('purchaseCardLevel');","    pm.expect(responseData).to.have.property('prepaid');","    pm.expect(responseData).to.have.property('fSA');","    pm.expect(responseData).to.have.property('reloadable');","    pm.expect(responseData).to.have.property('signatureDebit');","    pm.expect(responseData).to.have.property('code');","    pm.expect(responseData).to.have.property('softCode');","    pm.expect(responseData).to.have.property('hardCode');","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Type is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should be a non-empty string\");","});","","pm.test(\"Account number is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.accountNumber).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Account number should be a non-empty string\");","});","","pm.test(\"Purchase card level is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.purchaseCardLevel).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Purchase card level should be a non-empty string\");","});","","pm.test(\"Code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.code).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Code should be a non-empty string\");","});","","pm.test(\"Soft code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.softCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Soft code should be a non-empty string\");","});","","pm.test(\"Hard code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.hardCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Hard code should be a non-empty string\");","});","","","pm.test(\"Prepaid, FSA, Reloadable, and SignatureDebit are boolean values\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.prepaid).to.be.a('boolean');","    pm.expect(responseData.fSA).to.be.a('boolean');","    pm.expect(responseData.reloadable).to.be.a('boolean');","    pm.expect(responseData.signatureDebit).to.be.a('boolean');","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"6d692d60-9f57-4519-97ab-61d260c8eef6","exec":[""],"type":"text/javascript","packages":{}}}],"id":"8048163e-5db1-41f8-ba5c-361f5f406947","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"paymentAccount\": {\n        \"requestType\": \"CARD\",\n          \"account\": \"5405222222222226\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"123\"\n\n    }\n\n}\n\n\n\n","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard","description":"<p>Validates a payment card information including the AVS (Address Verification) and CV (Card Verification). The return payload will return details on the card.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["validateCard"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"30532b7d-305f-4baf-a2de-7d1664825c9f","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/validateCard"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"type\": \"<string>\",\n  \"accountNumber\": \"<string>\",\n  \"class\": \"<string>\",\n  \"level\": \"<string>\",\n  \"purchaseCardLevel\": \"<string>\",\n  \"countryCode\": \"<string>\",\n  \"currency\": \"<string>\",\n  \"fundingSource\": \"<string>\",\n  \"issuerBank\": \"<string>\",\n  \"mSRVerificationMethods\": \"<string>\",\n  \"debitNetwork\": \"<string>\",\n  \"prepaid\": \"<boolean>\",\n  \"fSA\": \"<boolean>\",\n  \"reloadable\": \"<boolean>\",\n  \"signatureDebit\": \"<boolean>\"\n}"},{"id":"638d666d-408f-470e-92af-f03560088ea0","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"3121f6cd-d210-42ac-a9c7-c23dadb452b0","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"8b0a6b67-793c-49a2-9315-40a86f54682b","name":"Failed Validation","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"8048163e-5db1-41f8-ba5c-361f5f406947"},{"name":"Validate Card (Visa Corporate)","event":[{"listen":"test","script":{"id":"a5879ec2-8146-483d-b36b-9c2dd174e703","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('type');","    pm.expect(responseData).to.have.property('accountNumber');","    pm.expect(responseData).to.have.property('purchaseCardLevel');","    pm.expect(responseData).to.have.property('prepaid');","    pm.expect(responseData).to.have.property('fSA');","    pm.expect(responseData).to.have.property('reloadable');","    pm.expect(responseData).to.have.property('signatureDebit');","    pm.expect(responseData).to.have.property('code');","    pm.expect(responseData).to.have.property('softCode');","    pm.expect(responseData).to.have.property('hardCode');","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Type is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should be a non-empty string\");","});","","pm.test(\"Account number is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.accountNumber).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Account number should be a non-empty string\");","});","","pm.test(\"Purchase card level is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.purchaseCardLevel).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Purchase card level should be a non-empty string\");","});","","pm.test(\"Code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.code).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Code should be a non-empty string\");","});","","pm.test(\"Soft code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.softCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Soft code should be a non-empty string\");","});","","pm.test(\"Hard code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.hardCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Hard code should be a non-empty string\");","});","","","pm.test(\"Prepaid, FSA, Reloadable, and SignatureDebit are boolean values\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.prepaid).to.be.a('boolean');","    pm.expect(responseData.fSA).to.be.a('boolean');","    pm.expect(responseData.reloadable).to.be.a('boolean');","    pm.expect(responseData.signatureDebit).to.be.a('boolean');","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"6d692d60-9f57-4519-97ab-61d260c8eef6","exec":[""],"type":"text/javascript","packages":{}}}],"id":"3c169b62-962f-4570-b60a-1bb5e7e4517d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"4055011111111111\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"999\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard","description":"<p>Validates a payment card information including the AVS (Address Verification) and CV (Card Verification). The return payload will return details on the card.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["validateCard"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"b40aa4db-acfa-42ac-8f28-34e89c3f6500","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/validateCard"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"type\": \"<string>\",\n  \"accountNumber\": \"<string>\",\n  \"class\": \"<string>\",\n  \"level\": \"<string>\",\n  \"purchaseCardLevel\": \"<string>\",\n  \"countryCode\": \"<string>\",\n  \"currency\": \"<string>\",\n  \"fundingSource\": \"<string>\",\n  \"issuerBank\": \"<string>\",\n  \"mSRVerificationMethods\": \"<string>\",\n  \"debitNetwork\": \"<string>\",\n  \"prepaid\": \"<boolean>\",\n  \"fSA\": \"<boolean>\",\n  \"reloadable\": \"<boolean>\",\n  \"signatureDebit\": \"<boolean>\"\n}"},{"id":"7f6631ce-7c98-4127-80a4-26e6d8f1c625","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"ec5885b8-f52e-4c1b-9cc0-175ff7fa97d7","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"491a78d4-f7fd-43ee-9fd2-2324fb029e00","name":"Failed Validation","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"3c169b62-962f-4570-b60a-1bb5e7e4517d"},{"name":"Validate Card (MC Personal)","event":[{"listen":"test","script":{"id":"a5879ec2-8146-483d-b36b-9c2dd174e703","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('type');","    pm.expect(responseData).to.have.property('accountNumber');","    pm.expect(responseData).to.have.property('purchaseCardLevel');","    pm.expect(responseData).to.have.property('prepaid');","    pm.expect(responseData).to.have.property('fSA');","    pm.expect(responseData).to.have.property('reloadable');","    pm.expect(responseData).to.have.property('signatureDebit');","    pm.expect(responseData).to.have.property('code');","    pm.expect(responseData).to.have.property('softCode');","    pm.expect(responseData).to.have.property('hardCode');","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Type is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should be a non-empty string\");","});","","pm.test(\"Account number is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.accountNumber).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Account number should be a non-empty string\");","});","","pm.test(\"Purchase card level is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.purchaseCardLevel).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Purchase card level should be a non-empty string\");","});","","pm.test(\"Code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.code).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Code should be a non-empty string\");","});","","pm.test(\"Soft code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.softCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Soft code should be a non-empty string\");","});","","pm.test(\"Hard code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.hardCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Hard code should be a non-empty string\");","});","","","pm.test(\"Prepaid, FSA, Reloadable, and SignatureDebit are boolean values\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.prepaid).to.be.a('boolean');","    pm.expect(responseData.fSA).to.be.a('boolean');","    pm.expect(responseData.reloadable).to.be.a('boolean');","    pm.expect(responseData.signatureDebit).to.be.a('boolean');","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"6d692d60-9f57-4519-97ab-61d260c8eef6","exec":[""],"type":"text/javascript","packages":{}}}],"id":"8a987dab-4342-43e4-b470-30d31119b7c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"5454545454545454\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"999\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard","description":"<p>Validates a payment card information including the AVS (Address Verification) and CV (Card Verification). The return payload will return details on the card.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["validateCard"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"16a39ca9-db8b-47e7-a840-edab7480bccb","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/validateCard"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"type\": \"<string>\",\n  \"accountNumber\": \"<string>\",\n  \"class\": \"<string>\",\n  \"level\": \"<string>\",\n  \"purchaseCardLevel\": \"<string>\",\n  \"countryCode\": \"<string>\",\n  \"currency\": \"<string>\",\n  \"fundingSource\": \"<string>\",\n  \"issuerBank\": \"<string>\",\n  \"mSRVerificationMethods\": \"<string>\",\n  \"debitNetwork\": \"<string>\",\n  \"prepaid\": \"<boolean>\",\n  \"fSA\": \"<boolean>\",\n  \"reloadable\": \"<boolean>\",\n  \"signatureDebit\": \"<boolean>\"\n}"},{"id":"1a30f9da-8133-46c2-b3e8-e67758b8df85","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"0166a959-0f1a-480d-81c9-7cd6aed79cf3","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"9ffd6f24-8e3d-4095-811c-50a3ef7fec62","name":"Failed Validation","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"8a987dab-4342-43e4-b470-30d31119b7c0"},{"name":"Validate Card (MC Corporate)","event":[{"listen":"test","script":{"id":"a5879ec2-8146-483d-b36b-9c2dd174e703","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('type');","    pm.expect(responseData).to.have.property('accountNumber');","    pm.expect(responseData).to.have.property('purchaseCardLevel');","    pm.expect(responseData).to.have.property('prepaid');","    pm.expect(responseData).to.have.property('fSA');","    pm.expect(responseData).to.have.property('reloadable');","    pm.expect(responseData).to.have.property('signatureDebit');","    pm.expect(responseData).to.have.property('code');","    pm.expect(responseData).to.have.property('softCode');","    pm.expect(responseData).to.have.property('hardCode');","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Type is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should be a non-empty string\");","});","","pm.test(\"Account number is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.accountNumber).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Account number should be a non-empty string\");","});","","pm.test(\"Purchase card level is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.purchaseCardLevel).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Purchase card level should be a non-empty string\");","});","","pm.test(\"Code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.code).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Code should be a non-empty string\");","});","","pm.test(\"Soft code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.softCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Soft code should be a non-empty string\");","});","","pm.test(\"Hard code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.hardCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Hard code should be a non-empty string\");","});","","","pm.test(\"Prepaid, FSA, Reloadable, and SignatureDebit are boolean values\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.prepaid).to.be.a('boolean');","    pm.expect(responseData.fSA).to.be.a('boolean');","    pm.expect(responseData.reloadable).to.be.a('boolean');","    pm.expect(responseData.signatureDebit).to.be.a('boolean');","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"6d692d60-9f57-4519-97ab-61d260c8eef6","exec":[""],"type":"text/javascript","packages":{}}}],"id":"80876cca-31ed-47d5-964e-88abc79a9ab4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"5405222222222226\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"999\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard","description":"<p>Validates a payment card information including the AVS (Address Verification) and CV (Card Verification). The return payload will return details on the card.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["validateCard"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"0f0c1ce9-886e-45fa-a28f-da95ecc55a06","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/validateCard"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"type\": \"<string>\",\n  \"accountNumber\": \"<string>\",\n  \"class\": \"<string>\",\n  \"level\": \"<string>\",\n  \"purchaseCardLevel\": \"<string>\",\n  \"countryCode\": \"<string>\",\n  \"currency\": \"<string>\",\n  \"fundingSource\": \"<string>\",\n  \"issuerBank\": \"<string>\",\n  \"mSRVerificationMethods\": \"<string>\",\n  \"debitNetwork\": \"<string>\",\n  \"prepaid\": \"<boolean>\",\n  \"fSA\": \"<boolean>\",\n  \"reloadable\": \"<boolean>\",\n  \"signatureDebit\": \"<boolean>\"\n}"},{"id":"d97b5057-260b-4b34-b504-4dadf8c9a0de","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"14adb77f-8697-4fbd-9958-ffc7b351c283","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"d58ab2d4-5782-4aa0-b961-9d36d4240dd7","name":"Failed Validation","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"80876cca-31ed-47d5-964e-88abc79a9ab4"},{"name":"Validate Card (AMEX)","event":[{"listen":"test","script":{"id":"a5879ec2-8146-483d-b36b-9c2dd174e703","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('type');","    pm.expect(responseData).to.have.property('accountNumber');","    pm.expect(responseData).to.have.property('purchaseCardLevel');","    pm.expect(responseData).to.have.property('prepaid');","    pm.expect(responseData).to.have.property('fSA');","    pm.expect(responseData).to.have.property('reloadable');","    pm.expect(responseData).to.have.property('signatureDebit');","    pm.expect(responseData).to.have.property('code');","    pm.expect(responseData).to.have.property('softCode');","    pm.expect(responseData).to.have.property('hardCode');","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Type is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should be a non-empty string\");","});","","pm.test(\"Account number is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.accountNumber).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Account number should be a non-empty string\");","});","","pm.test(\"Purchase card level is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.purchaseCardLevel).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Purchase card level should be a non-empty string\");","});","","pm.test(\"Code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.code).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Code should be a non-empty string\");","});","","pm.test(\"Soft code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.softCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Soft code should be a non-empty string\");","});","","pm.test(\"Hard code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.hardCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Hard code should be a non-empty string\");","});","","","pm.test(\"Prepaid, FSA, Reloadable, and SignatureDebit are boolean values\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.prepaid).to.be.a('boolean');","    pm.expect(responseData.fSA).to.be.a('boolean');","    pm.expect(responseData.reloadable).to.be.a('boolean');","    pm.expect(responseData.signatureDebit).to.be.a('boolean');","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"6d692d60-9f57-4519-97ab-61d260c8eef6","exec":[""],"type":"text/javascript","packages":{}}}],"id":"b8fba9c0-e440-482f-bbba-cf1247d66f87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"371449635398431\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"1234\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard","description":"<p>Validates a payment card information including the AVS (Address Verification) and CV (Card Verification). The return payload will return details on the card.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["validateCard"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"435f6ef6-6521-40e2-83e2-491a63e388c1","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/validateCard"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"type\": \"<string>\",\n  \"accountNumber\": \"<string>\",\n  \"class\": \"<string>\",\n  \"level\": \"<string>\",\n  \"purchaseCardLevel\": \"<string>\",\n  \"countryCode\": \"<string>\",\n  \"currency\": \"<string>\",\n  \"fundingSource\": \"<string>\",\n  \"issuerBank\": \"<string>\",\n  \"mSRVerificationMethods\": \"<string>\",\n  \"debitNetwork\": \"<string>\",\n  \"prepaid\": \"<boolean>\",\n  \"fSA\": \"<boolean>\",\n  \"reloadable\": \"<boolean>\",\n  \"signatureDebit\": \"<boolean>\"\n}"},{"id":"880d7924-4951-4bae-a2e4-957d34782c8f","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"0285e628-3eac-443b-a55e-4e8e53a92af1","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"3508731a-8805-4cad-8501-00a5702fa55c","name":"Failed Validation","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"b8fba9c0-e440-482f-bbba-cf1247d66f87"},{"name":"Validate Card (DISCOVER)","event":[{"listen":"test","script":{"id":"a5879ec2-8146-483d-b36b-9c2dd174e703","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('type');","    pm.expect(responseData).to.have.property('accountNumber');","    pm.expect(responseData).to.have.property('purchaseCardLevel');","    pm.expect(responseData).to.have.property('prepaid');","    pm.expect(responseData).to.have.property('fSA');","    pm.expect(responseData).to.have.property('reloadable');","    pm.expect(responseData).to.have.property('signatureDebit');","    pm.expect(responseData).to.have.property('code');","    pm.expect(responseData).to.have.property('softCode');","    pm.expect(responseData).to.have.property('hardCode');","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Type is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.type).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Type should be a non-empty string\");","});","","pm.test(\"Account number is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.accountNumber).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Account number should be a non-empty string\");","});","","pm.test(\"Purchase card level is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.purchaseCardLevel).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Purchase card level should be a non-empty string\");","});","","pm.test(\"Code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.code).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Code should be a non-empty string\");","});","","pm.test(\"Soft code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.softCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Soft code should be a non-empty string\");","});","","pm.test(\"Hard code is a non-empty string\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.hardCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Hard code should be a non-empty string\");","});","","","pm.test(\"Prepaid, FSA, Reloadable, and SignatureDebit are boolean values\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.prepaid).to.be.a('boolean');","    pm.expect(responseData.fSA).to.be.a('boolean');","    pm.expect(responseData.reloadable).to.be.a('boolean');","    pm.expect(responseData.signatureDebit).to.be.a('boolean');","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"6d692d60-9f57-4519-97ab-61d260c8eef6","exec":[""],"type":"text/javascript","packages":{}}}],"id":"2932f0e1-e34b-4373-961e-5f157081322a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"6011000995500000\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"999\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard","description":"<p>Validates a payment card information including the AVS (Address Verification) and CV (Card Verification). The return payload will return details on the card.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["validateCard"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"f3f97fdd-7fb3-4915-88f2-308803e31635","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/validateCard"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"type\": \"<string>\",\n  \"accountNumber\": \"<string>\",\n  \"class\": \"<string>\",\n  \"level\": \"<string>\",\n  \"purchaseCardLevel\": \"<string>\",\n  \"countryCode\": \"<string>\",\n  \"currency\": \"<string>\",\n  \"fundingSource\": \"<string>\",\n  \"issuerBank\": \"<string>\",\n  \"mSRVerificationMethods\": \"<string>\",\n  \"debitNetwork\": \"<string>\",\n  \"prepaid\": \"<boolean>\",\n  \"fSA\": \"<boolean>\",\n  \"reloadable\": \"<boolean>\",\n  \"signatureDebit\": \"<boolean>\"\n}"},{"id":"c93be437-3443-463f-8038-34ecd9f02d3f","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"3978ad9c-23a5-43ab-850d-343694a0d3ea","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"e769e28a-02ad-4314-9c43-1e791fe6586e","name":"Failed Validation","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"216007929717842\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/validateCard"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"2932f0e1-e34b-4373-961e-5f157081322a"},{"name":"Creates a payment token.(Visa Consumer)","event":[{"listen":"test","script":{"id":"21faf1b5-2ff1-46e1-a203-3629f4d23217","exec":["if(pm.response.code==200) {","    var tokenId = pm.response.json().id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\", tokenId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.id).to.exist;","    pm.expect(responseData.account).to.exist;","    pm.expect(responseData.accountType).to.exist;","    pm.expect(responseData.cardHolderName).to.exist;","    pm.expect(responseData.expirationDate).to.exist;","    pm.expect(responseData.streetAddress).to.exist;","    pm.expect(responseData.zipCode).to.exist;","    pm.expect(responseData.isDefault).to.exist;","    pm.expect(responseData.processorToken).to.exist;","    pm.expect(responseData.processorProfile).to.exist;","    pm.expect(responseData.createdDateTime).to.exist;","    pm.expect(responseData.updatedDateTime).to.exist;","    pm.expect(responseData.customerId).to.exist;","});","","","pm.test(\"Id is a non-empty string\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.id).to.be.a('string').and.to.have.lengthOf.at.least(1, \"ID should be a non-empty string\");","});","","","pm.test(\"Expiration date is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.expirationDate).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"5169d05d-f8c2-4c4d-8302-99165f808b84","exec":[],"type":"text/javascript"}}],"id":"ebb8f2b6-d344-4ebe-a35f-116c349612d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"4111111111111111\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"999\",\n  \"notes\": \"Visa Personal\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer/:id/token?encrypted=false","description":"<p>Creates a payment token for a given customer id. The payment token is what is used for processing transactions.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","token"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>payload is encrypted</p>\n","type":"text/plain"},"key":"encrypted","value":"false"}],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"bc2ecad1-73f4-4908-9c91-78d23a3cec76","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token?encrypted=<boolean>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"account\": \"<string>\",\n  \"accountType\": \"MCDEBIT\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"isDefault\": \"<boolean>\",\n  \"createdDateTime\": \"<dateTime>\",\n  \"updatedDateTime\": \"<dateTime>\",\n  \"customerId\": \"<string>\",\n  \"notes\": \"<string>\"\n}"},{"id":"767b6d96-1aab-438d-81e1-ef2243d15965","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"897473ab-1e6b-4b97-bdff-3618d5c41ede","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"efc78dc6-06dc-47bb-8acf-207fd9867aeb","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"ebb8f2b6-d344-4ebe-a35f-116c349612d2"},{"name":"Creates a payment token.(Visa Corporate)","event":[{"listen":"test","script":{"id":"21faf1b5-2ff1-46e1-a203-3629f4d23217","exec":["if(pm.response.code==200) {","    var tokenId = pm.response.json().id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\", tokenId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.id).to.exist;","    pm.expect(responseData.account).to.exist;","    pm.expect(responseData.accountType).to.exist;","    pm.expect(responseData.cardHolderName).to.exist;","    pm.expect(responseData.expirationDate).to.exist;","    pm.expect(responseData.streetAddress).to.exist;","    pm.expect(responseData.zipCode).to.exist;","    pm.expect(responseData.isDefault).to.exist;","    pm.expect(responseData.processorToken).to.exist;","    pm.expect(responseData.processorProfile).to.exist;","    pm.expect(responseData.createdDateTime).to.exist;","    pm.expect(responseData.updatedDateTime).to.exist;","    pm.expect(responseData.customerId).to.exist;","});","","","pm.test(\"Id is a non-empty string\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.id).to.be.a('string').and.to.have.lengthOf.at.least(1, \"ID should be a non-empty string\");","});","","","pm.test(\"Expiration date is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.expirationDate).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"5169d05d-f8c2-4c4d-8302-99165f808b84","exec":[""],"type":"text/javascript","packages":{}}}],"id":"3496679f-299b-4519-9c62-2d199be17a82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"4055011111111111\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"999\",\n  \"notes\": \"Visa Corporate\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer/:id/token?encrypted=false","description":"<p>Creates a payment token for a given customer id. The payment token is what is used for processing transactions.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","token"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>payload is encrypted</p>\n","type":"text/plain"},"key":"encrypted","value":"false"}],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"e1548bf6-62a8-4da8-a95c-8fae8c344c2e","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token?encrypted=<boolean>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"account\": \"<string>\",\n  \"accountType\": \"MCDEBIT\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"isDefault\": \"<boolean>\",\n  \"createdDateTime\": \"<dateTime>\",\n  \"updatedDateTime\": \"<dateTime>\",\n  \"customerId\": \"<string>\",\n  \"notes\": \"<string>\"\n}"},{"id":"b06faa20-fcd9-4f68-8623-6be84dce7af2","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"994924fb-4f20-4bbe-baf8-a09e522423aa","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"4edb4f88-d4a0-404e-ac4c-4d085579fbc0","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"3496679f-299b-4519-9c62-2d199be17a82"},{"name":"Creates a payment token.(MC Consumer)","event":[{"listen":"test","script":{"id":"21faf1b5-2ff1-46e1-a203-3629f4d23217","exec":["if(pm.response.code==200) {","    var tokenId = pm.response.json().id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\", tokenId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.id).to.exist;","    pm.expect(responseData.account).to.exist;","    pm.expect(responseData.accountType).to.exist;","    pm.expect(responseData.cardHolderName).to.exist;","    pm.expect(responseData.expirationDate).to.exist;","    pm.expect(responseData.streetAddress).to.exist;","    pm.expect(responseData.zipCode).to.exist;","    pm.expect(responseData.isDefault).to.exist;","    pm.expect(responseData.processorToken).to.exist;","    pm.expect(responseData.processorProfile).to.exist;","    pm.expect(responseData.createdDateTime).to.exist;","    pm.expect(responseData.updatedDateTime).to.exist;","    pm.expect(responseData.customerId).to.exist;","});","","","pm.test(\"Id is a non-empty string\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.id).to.be.a('string').and.to.have.lengthOf.at.least(1, \"ID should be a non-empty string\");","});","","","pm.test(\"Expiration date is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.expirationDate).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"5169d05d-f8c2-4c4d-8302-99165f808b84","exec":[""],"type":"text/javascript","packages":{}}}],"id":"f4f0544d-9153-4556-b850-9e62003a37bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"5454545454545454\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"999\",\n  \"notes\": \"MC Consumer\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer/:id/token?encrypted=false","description":"<p>Creates a payment token for a given customer id. The payment token is what is used for processing transactions.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","token"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>payload is encrypted</p>\n","type":"text/plain"},"key":"encrypted","value":"false"}],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"d8ffc274-4bb2-4020-8dbf-96347cd74e48","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token?encrypted=<boolean>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"account\": \"<string>\",\n  \"accountType\": \"MCDEBIT\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"isDefault\": \"<boolean>\",\n  \"createdDateTime\": \"<dateTime>\",\n  \"updatedDateTime\": \"<dateTime>\",\n  \"customerId\": \"<string>\",\n  \"notes\": \"<string>\"\n}"},{"id":"cdff7f00-d078-4e4c-affe-553921a30fb6","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"5a1ceea8-0d1f-48fa-af0f-c175d8916e19","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"9cd02718-3107-4a8d-91bb-c3174514b500","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"f4f0544d-9153-4556-b850-9e62003a37bc"},{"name":"Creates a payment token.(MC Corporate)","event":[{"listen":"test","script":{"id":"21faf1b5-2ff1-46e1-a203-3629f4d23217","exec":["if(pm.response.code==200) {","    var tokenId = pm.response.json().id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\", tokenId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.id).to.exist;","    pm.expect(responseData.account).to.exist;","    pm.expect(responseData.accountType).to.exist;","    pm.expect(responseData.cardHolderName).to.exist;","    pm.expect(responseData.expirationDate).to.exist;","    pm.expect(responseData.streetAddress).to.exist;","    pm.expect(responseData.zipCode).to.exist;","    pm.expect(responseData.isDefault).to.exist;","    pm.expect(responseData.processorToken).to.exist;","    pm.expect(responseData.processorProfile).to.exist;","    pm.expect(responseData.createdDateTime).to.exist;","    pm.expect(responseData.updatedDateTime).to.exist;","    pm.expect(responseData.customerId).to.exist;","});","","","pm.test(\"Id is a non-empty string\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.id).to.be.a('string').and.to.have.lengthOf.at.least(1, \"ID should be a non-empty string\");","});","","","pm.test(\"Expiration date is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.expirationDate).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"5169d05d-f8c2-4c4d-8302-99165f808b84","exec":[""],"type":"text/javascript","packages":{}}}],"id":"46abf94a-1413-4984-acb5-43a060f4dfee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"5405222222222226\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"999\",\n  \"notes\": \"MC Corporate\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer/:id/token?encrypted=false","description":"<p>Creates a payment token for a given customer id. The payment token is what is used for processing transactions.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","token"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>payload is encrypted</p>\n","type":"text/plain"},"key":"encrypted","value":"false"}],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"6d72a438-ea8e-4c56-89ab-a177728b29ef","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token?encrypted=<boolean>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"account\": \"<string>\",\n  \"accountType\": \"MCDEBIT\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"isDefault\": \"<boolean>\",\n  \"createdDateTime\": \"<dateTime>\",\n  \"updatedDateTime\": \"<dateTime>\",\n  \"customerId\": \"<string>\",\n  \"notes\": \"<string>\"\n}"},{"id":"95928807-cc14-404b-aeb9-f64202cddb0e","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"f5620543-4120-4b7e-bbcb-9819845c1cf5","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"099e2a2f-7ddd-4f6b-ad7d-79a840acb618","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"46abf94a-1413-4984-acb5-43a060f4dfee"},{"name":"Creates a payment token.(AMEX)","event":[{"listen":"test","script":{"id":"21faf1b5-2ff1-46e1-a203-3629f4d23217","exec":["if(pm.response.code==200) {","    var tokenId = pm.response.json().id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\", tokenId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.id).to.exist;","    pm.expect(responseData.account).to.exist;","    pm.expect(responseData.accountType).to.exist;","    pm.expect(responseData.cardHolderName).to.exist;","    pm.expect(responseData.expirationDate).to.exist;","    pm.expect(responseData.streetAddress).to.exist;","    pm.expect(responseData.zipCode).to.exist;","    pm.expect(responseData.isDefault).to.exist;","    pm.expect(responseData.processorToken).to.exist;","    pm.expect(responseData.processorProfile).to.exist;","    pm.expect(responseData.createdDateTime).to.exist;","    pm.expect(responseData.updatedDateTime).to.exist;","    pm.expect(responseData.customerId).to.exist;","});","","","pm.test(\"Id is a non-empty string\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.id).to.be.a('string').and.to.have.lengthOf.at.least(1, \"ID should be a non-empty string\");","});","","","pm.test(\"Expiration date is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.expirationDate).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"5169d05d-f8c2-4c4d-8302-99165f808b84","exec":[""],"type":"text/javascript","packages":{}}}],"id":"eacb1d57-e65e-4469-a9cc-80ba8b4c9f9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"371449635398431\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"1234\",\n  \"notes\": \"MC Corporate\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer/:id/token?encrypted=false","description":"<p>Creates a payment token for a given customer id. The payment token is what is used for processing transactions.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","token"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>payload is encrypted</p>\n","type":"text/plain"},"key":"encrypted","value":"false"}],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"ddba6307-a201-46b2-be72-fcaefbc1ac5b","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token?encrypted=<boolean>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"account\": \"<string>\",\n  \"accountType\": \"MCDEBIT\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"isDefault\": \"<boolean>\",\n  \"createdDateTime\": \"<dateTime>\",\n  \"updatedDateTime\": \"<dateTime>\",\n  \"customerId\": \"<string>\",\n  \"notes\": \"<string>\"\n}"},{"id":"60090332-8604-4c5f-a06d-65967097c16d","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"5e546ec4-9302-4169-ae01-a98f301d75f8","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"43969774-534c-4e94-a8d3-0d569c1ae09e","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"eacb1d57-e65e-4469-a9cc-80ba8b4c9f9c"},{"name":"Creates a payment token.(DISCOVER)","event":[{"listen":"test","script":{"id":"21faf1b5-2ff1-46e1-a203-3629f4d23217","exec":["if(pm.response.code==200) {","    var tokenId = pm.response.json().id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\", tokenId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.id).to.exist;","    pm.expect(responseData.account).to.exist;","    pm.expect(responseData.accountType).to.exist;","    pm.expect(responseData.cardHolderName).to.exist;","    pm.expect(responseData.expirationDate).to.exist;","    pm.expect(responseData.streetAddress).to.exist;","    pm.expect(responseData.zipCode).to.exist;","    pm.expect(responseData.isDefault).to.exist;","    pm.expect(responseData.processorToken).to.exist;","    pm.expect(responseData.processorProfile).to.exist;","    pm.expect(responseData.createdDateTime).to.exist;","    pm.expect(responseData.updatedDateTime).to.exist;","    pm.expect(responseData.customerId).to.exist;","});","","","pm.test(\"Id is a non-empty string\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.id).to.be.a('string').and.to.have.lengthOf.at.least(1, \"ID should be a non-empty string\");","});","","","pm.test(\"Expiration date is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.expirationDate).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"5169d05d-f8c2-4c4d-8302-99165f808b84","exec":[""],"type":"text/javascript","packages":{}}}],"id":"705306aa-9f44-4dfe-b89b-36b70e66cff1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"6011000995500000\",\n  \"cardHolderName\": \"John Doe\",\n  \"expirationDate\": \"0925\",\n  \"streetAddress\": \"5800 NW 39th AVE\",\n  \"zipCode\": \"32606\",\n  \"cvv\": \"999\",\n  \"notes\": \"MC Corporate\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer/:id/token?encrypted=false","description":"<p>Creates a payment token for a given customer id. The payment token is what is used for processing transactions.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","token"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>payload is encrypted</p>\n","type":"text/plain"},"key":"encrypted","value":"false"}],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"5871b18d-a537-45b9-a4b8-271a436fbe96","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token?encrypted=<boolean>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"account\": \"<string>\",\n  \"accountType\": \"MCDEBIT\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"isDefault\": \"<boolean>\",\n  \"createdDateTime\": \"<dateTime>\",\n  \"updatedDateTime\": \"<dateTime>\",\n  \"customerId\": \"<string>\",\n  \"notes\": \"<string>\"\n}"},{"id":"98c9b160-063f-43b4-b6c6-b767c9319b6e","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"0256913a-1bf7-4ff3-9ca3-95b454db1175","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"3a84eebd-cbdb-4b20-b76a-d5dbb0e15d83","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"705306aa-9f44-4dfe-b89b-36b70e66cff1"},{"name":"Creates an ACH Payment Token","event":[{"listen":"test","script":{"id":"21faf1b5-2ff1-46e1-a203-3629f4d23217","exec":["if(pm.response.code==200) {","    var tokenId = pm.response.json().id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\", tokenId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.id).to.exist;","    pm.expect(responseData.account).to.exist;","    pm.expect(responseData.accountType).to.exist;","    pm.expect(responseData.cardHolderName).to.exist;","    pm.expect(responseData.expirationDate).to.exist;","    pm.expect(responseData.streetAddress).to.exist;","    pm.expect(responseData.zipCode).to.exist;","    pm.expect(responseData.isDefault).to.exist;","    pm.expect(responseData.processorToken).to.exist;","    pm.expect(responseData.processorProfile).to.exist;","    pm.expect(responseData.createdDateTime).to.exist;","    pm.expect(responseData.updatedDateTime).to.exist;","    pm.expect(responseData.customerId).to.exist;","});","","","pm.test(\"Id is a non-empty string\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.id).to.be.a('string').and.to.have.lengthOf.at.least(1, \"ID should be a non-empty string\");","});","","","pm.test(\"Expiration date is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.expirationDate).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"5169d05d-f8c2-4c4d-8302-99165f808b84","exec":[""],"type":"text/javascript","packages":{}}}],"id":"4360ec71-904e-450c-83a7-c14bbbecc9ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"6011123432\",\n  \"abaRoute\": \"041000124\",\n  \"accountType\": \"CHECKING\",\n  \"accountHolderName\": \"Bob Smith\",\n  \"description\": \"this is a test\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/customer/:id/achtoken","description":"<p>Creates a payment token for a given customer id. The payment token is what is used for processing transactions.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","achtoken"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"9f814cfa-6a31-4a4a-913e-f1d51ced82d5","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token?encrypted=<boolean>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"account\": \"<string>\",\n  \"accountType\": \"MCDEBIT\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"isDefault\": \"<boolean>\",\n  \"createdDateTime\": \"<dateTime>\",\n  \"updatedDateTime\": \"<dateTime>\",\n  \"customerId\": \"<string>\",\n  \"notes\": \"<string>\"\n}"},{"id":"824ed4b0-2ab7-4d83-a5fd-6efb07b6482a","name":"Invalid Input","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"47c6b818-24e8-4896-a577-23c468e18762","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"9453063b-1eb7-4af3-b4b8-853954348eee","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"account\": \"0776118007287502\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"cvv\": \"<string>\",\n  \"notes\": \"<string>\",\n  \"isDefault\": \"<boolean>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/customer/:id/token?encrypted=<boolean>","host":["{{baseUrl}}"],"path":["customer",":id","token"],"query":[{"description":"payload is encrypted","key":"encrypted","value":"<boolean>"}],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"4360ec71-904e-450c-83a7-c14bbbecc9ff"},{"name":"gets all payment tokens for customer","event":[{"listen":"test","script":{"id":"d61c1c1c-ec9a-47de-8c6c-93196bc36ceb","exec":["if(pm.response.code==200) {","    var tokenId = pm.response.json()[0].id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\", tokenId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array');","    ","    responseData.forEach(function(token) {","        pm.expect(token).to.include.all.keys(","            'id', 'account', 'accountType', 'cardHolderName', 'expirationDate', ","            'streetAddress', 'zipCode', 'isDefault', 'processorToken', ","            'processorProfile', 'createdDateTime', 'updatedDateTime', 'customerId'","        );","    });","});","","","pm.test(\"Verify that the isDefault field is a boolean value\", function () {","    const responseData = pm.response.json();","    ","    responseData.forEach(function(token) {","        pm.expect(token.isDefault).to.be.a('boolean');","    });","});","","","pm.test(\"Expiration date is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    responseData.forEach(function(token) {","        pm.expect(token.expirationDate).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    });","});","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"1d0d9446-c01b-478c-82ec-ea01aba358cd","exec":[""],"type":"text/javascript","packages":{}}}],"id":"450c079f-0013-4104-b1ac-98aa6ac63f72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/customer/:id/tokens","description":"<p>Returns a list of all payment tokens attached to a given customer record on Freely.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","tokens"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"0385d631-b07a-4712-9bdd-f531208fea7f","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/tokens","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","tokens"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"CUP\",\n    \"cardHolderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\",\n    \"isDefault\": \"<boolean>\",\n    \"createdDateTime\": \"<dateTime>\",\n    \"updatedDateTime\": \"<dateTime>\",\n    \"customerId\": \"<string>\",\n    \"notes\": \"<string>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"DINERS\",\n    \"cardHolderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\",\n    \"isDefault\": \"<boolean>\",\n    \"createdDateTime\": \"<dateTime>\",\n    \"updatedDateTime\": \"<dateTime>\",\n    \"customerId\": \"<string>\",\n    \"notes\": \"<string>\"\n  }\n]"},{"id":"037452b8-4b00-477e-8fd9-b4b1937804ce","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/tokens","host":["{{baseUrl}}"],"path":["customer",":id","tokens"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"4e6f95c0-8e37-424e-acab-40a8e4b565bb","name":"Record Not Found","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/tokens","host":["{{baseUrl}}"],"path":["customer",":id","tokens"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"450c079f-0013-4104-b1ac-98aa6ac63f72"},{"name":"gets all ach payment tokens for customer","event":[{"listen":"test","script":{"id":"d61c1c1c-ec9a-47de-8c6c-93196bc36ceb","exec":["if(pm.response.code==200) {","    var tokenId = pm.response.json()[0].id;","    pm.globals.set(\"tokenId\", tokenId);","    console.log(\"tokenId\", tokenId)","}","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});","","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array');","    ","    responseData.forEach(function(token) {","        pm.expect(token).to.include.all.keys(","            'id', 'account', 'accountType', 'cardHolderName', 'expirationDate', ","            'streetAddress', 'zipCode', 'isDefault', 'processorToken', ","            'processorProfile', 'createdDateTime', 'updatedDateTime', 'customerId'","        );","    });","});","","","pm.test(\"Verify that the isDefault field is a boolean value\", function () {","    const responseData = pm.response.json();","    ","    responseData.forEach(function(token) {","        pm.expect(token.isDefault).to.be.a('boolean');","    });","});","","","pm.test(\"Expiration date is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    responseData.forEach(function(token) {","        pm.expect(token.expirationDate).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    });","});","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"1d0d9446-c01b-478c-82ec-ea01aba358cd","exec":[""],"type":"text/javascript","packages":{}}}],"id":"a6f23ec9-8b09-4182-998e-f95a8d418334","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/customer/:id/achtokens","description":"<p>Returns a list of all payment tokens attached to a given customer record on Freely.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","achtokens"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"65524465-165a-499a-9bad-63de7f8f66c3","description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"}]}},"response":[{"id":"a44b3a2f-f96e-42c9-8960-a2ebcd058cee","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/tokens","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","tokens"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"CUP\",\n    \"cardHolderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\",\n    \"isDefault\": \"<boolean>\",\n    \"createdDateTime\": \"<dateTime>\",\n    \"updatedDateTime\": \"<dateTime>\",\n    \"customerId\": \"<string>\",\n    \"notes\": \"<string>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"DINERS\",\n    \"cardHolderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\",\n    \"isDefault\": \"<boolean>\",\n    \"createdDateTime\": \"<dateTime>\",\n    \"updatedDateTime\": \"<dateTime>\",\n    \"customerId\": \"<string>\",\n    \"notes\": \"<string>\"\n  }\n]"},{"id":"cd8d21a3-0b5f-4694-bed6-2fc1082bf1b9","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/tokens","host":["{{baseUrl}}"],"path":["customer",":id","tokens"],"variable":[{"key":"id"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"1cd0a695-0cfd-4415-b534-7d360dd809f8","name":"Record Not Found","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/tokens","host":["{{baseUrl}}"],"path":["customer",":id","tokens"],"variable":[{"key":"id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"a6f23ec9-8b09-4182-998e-f95a8d418334"},{"name":"Sets the default payent token for a given customer id.","id":"2cb6d97c-2201-4708-b1d8-a9986f8c8f05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/customer/:id/token/:tokenId/default","description":"<p>Sets the default payment token to the specified tokenid for a given customerId. The default payment token can be used by a given integration to automatically select that payment card to apply a customer payment.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","token",":tokenId","default"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"},{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{tokenId}}","key":"tokenId"}]}},"response":[{"id":"32709497-224d-4266-9abc-87128bf50327","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token/:tokenId/default","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token",":tokenId","default"],"variable":[{"key":"id"},{"key":"tokenId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<uuid>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"CUP\",\n    \"cardHolderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\",\n    \"isDefault\": \"<boolean>\",\n    \"createdDateTime\": \"<dateTime>\",\n    \"updatedDateTime\": \"<dateTime>\",\n    \"customerId\": \"<string>\",\n    \"notes\": \"<string>\"\n  },\n  {\n    \"id\": \"<uuid>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"DINERS\",\n    \"cardHolderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\",\n    \"isDefault\": \"<boolean>\",\n    \"createdDateTime\": \"<dateTime>\",\n    \"updatedDateTime\": \"<dateTime>\",\n    \"customerId\": \"<string>\",\n    \"notes\": \"<string>\"\n  }\n]"},{"id":"58c596ef-d18c-4a18-b4a1-498b9e4033e6","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/token/:tokenId/default","host":["{{baseUrl}}"],"path":["customer",":id","token",":tokenId","default"],"variable":[{"key":"id"},{"key":"tokenId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"2342ddc0-25d8-4bc8-8194-9feac297d5d6","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/token/:tokenId/default","host":["{{baseUrl}}"],"path":["customer",":id","token",":tokenId","default"],"variable":[{"key":"id"},{"key":"tokenId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"2cb6d97c-2201-4708-b1d8-a9986f8c8f05"},{"name":"deletes a payment token for a given customer id","event":[{"listen":"test","script":{"id":"c42d8127-c1f6-419c-8806-df7b530d11f5","exec":["pm.test(\"Response status code is 201\", function () {","    pm.expect(pm.response.code).to.equal(201);","});","","","pm.test(\"Response has the required fields - code, message, and details\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.code).to.exist;","    pm.expect(responseData.message).to.exist;","    pm.expect(responseData.details).to.exist;","});","","","pm.test(\"Details object should have non-empty strings for token, customer, and profile\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.details).to.be.an('object');","    pm.expect(responseData.details.token).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Token should not be empty\");","    pm.expect(responseData.details.customer).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Customer should not be empty\");","    pm.expect(responseData.details.profile).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Profile should not be empty\");","});","","","pm.test(\"Response time is less than 2000ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(2000);","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"6a4fbd5b-e3eb-4497-be4e-10262031fe37","exec":[""],"type":"text/javascript","packages":{}}}],"id":"26c2228c-0300-4067-9346-79954f2826f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/customer/:id/token/:tokenId","description":"<p>deletes a payment token for the specified customer id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","token",":tokenId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"},{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{tokenId}}","key":"tokenId"}]}},"response":[{"id":"68b885a8-b9e6-4660-8583-01a3db2130d9","name":"Successful response","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token/:tokenId","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token",":tokenId"],"variable":[{"key":"id"},{"key":"tokenId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"e659c733-2855-4ef6-a184-5fd6258509e7","name":"Not authorized","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/token/:tokenId","host":["{{baseUrl}}"],"path":["customer",":id","token",":tokenId"],"variable":[{"key":"id"},{"key":"tokenId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"fcbb501c-2b29-4c5c-ad4c-a8956b283680","name":"Record Not Found","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/token/:tokenId","host":["{{baseUrl}}"],"path":["customer",":id","token",":tokenId"],"variable":[{"key":"id"},{"key":"tokenId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"26c2228c-0300-4067-9346-79954f2826f9"},{"name":"Gets a payment token for a given customer id.","id":"726a86d3-c310-431f-af5f-9834eefe9c01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/customer/:id/token/:tokenId","description":"<p>Gets a payment token for a given customer id. Note that the account information will be redacted.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["customer",":id","token",":tokenId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{customerId}}","key":"id"},{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{tokenId}}","key":"tokenId"}]}},"response":[{"id":"2e27c71f-14f3-458f-ace7-40a6df58445d","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/customer/:id/token/:tokenId","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","customer",":id","token",":tokenId"],"variable":[{"key":"id"},{"key":"tokenId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<uuid>\",\n  \"account\": \"<string>\",\n  \"accountType\": \"MCDEBIT\",\n  \"cardHolderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"streetAddress\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"isDefault\": \"<boolean>\",\n  \"createdDateTime\": \"<dateTime>\",\n  \"updatedDateTime\": \"<dateTime>\",\n  \"customerId\": \"<string>\",\n  \"notes\": \"<string>\"\n}"},{"id":"88eb0cee-283a-4e36-9588-0f2fa759dd22","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/token/:tokenId","host":["{{baseUrl}}"],"path":["customer",":id","token",":tokenId"],"variable":[{"key":"id"},{"key":"tokenId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"bd38ba5d-fef7-489a-8815-2207ad9f371b","name":"Record Not Found","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/customer/:id/token/:tokenId","host":["{{baseUrl}}"],"path":["customer",":id","token",":tokenId"],"variable":[{"key":"id"},{"key":"tokenId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"726a86d3-c310-431f-af5f-9834eefe9c01"}],"id":"6c1c6a3f-bb89-42eb-bf1b-6f7c5b74dac8","description":"<p>A \"Payment\" Card attached to a customer is referred to as a Payment Token. The Card information is encrypted and stored by the processor for enhanced customer security. A Token is returned that can then be used to complete transactions for the payment card.</p>\n<p>These API's are used to create. get (a redacred record) or delete payment tokens.</p>\n<p>In Freely all payment tokens must be attached to a customer record.</p>\n","_postman_id":"6c1c6a3f-bb89-42eb-bf1b-6f7c5b74dac8","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}},{"name":"transactions","item":[{"name":"processes a sale transaction","event":[{"listen":"test","script":{"id":"489b2225-f7db-4b8b-9c5d-934f8611bf7c","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(5000);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.statusCode).to.exist;","    pm.expect(responseData.statusCodeMessage).to.exist;","    pm.expect(responseData.code).to.exist;","    pm.expect(responseData.softCode).to.exist;","    pm.expect(responseData.hardCode).to.exist;","    pm.expect(responseData.verbiage).to.exist;","    pm.expect(responseData.transactionId).to.exist;","    pm.expect(responseData.freelyPaymentId).to.exist;","    pm.expect(responseData.timestamp).to.exist;","});","","","pm.test(\"Validate statusCode, code, softCode, and hardCode are non-empty strings\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.statusCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"statusCode should be a non-empty string\");","    pm.expect(responseData.code).to.be.a('string').and.to.have.lengthOf.at.least(1, \"code should be a non-empty string\");","    pm.expect(responseData.softCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"softCode should be a non-empty string\");","    pm.expect(responseData.hardCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"hardCode should be a non-empty string\");","});","","","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"49b98d51-d280-4a00-9c9b-b3656325e9c5","exec":[""],"type":"text/javascript","packages":{}}}],"id":"0c6700d8-9482-44c2-98f3-9c79406826bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"{{customerId}}\",\n  \"totalRequestedAmount\": {{totalAmount}},\n  \"amounts\": {\n    \"amount\": {{totalAmount}}\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": {{totalAmount}},\n    \"totalAmountLineItemDetails\": {{totalAmount}},\n    \"LineItems\": [\n      {\n        \"amount\": {{totalAmount}},\n        \"accountingReference\": \"{{APReference}}\"\n      }\n    ]\n  },\n  \"token\": \"{{tokenId}}\",\n  \"account_data\": {\n    \n    \n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase","description":"<p>process a sale transaction</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction","purchase"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"740bdab0-0098-44bd-a7d9-5f62c4e017f7","name":"Successfully Processed","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/transaction/purchase"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"},{"id":"dbe4bb5c-1ac9-41ee-9b68-a4f40c8d679b","name":"Invalid Request","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"e268cf27-8045-44e6-91bc-f278eabde370","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"fe9c2f0e-1e32-4b44-be31-71a4fb51be8f","name":"Payment Declined","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"}],"_postman_id":"0c6700d8-9482-44c2-98f3-9c79406826bc"},{"name":"processes a simple sale transaction","event":[{"listen":"test","script":{"id":"489b2225-f7db-4b8b-9c5d-934f8611bf7c","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(5000);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.statusCode).to.exist;","    pm.expect(responseData.statusCodeMessage).to.exist;","    pm.expect(responseData.code).to.exist;","    pm.expect(responseData.softCode).to.exist;","    pm.expect(responseData.hardCode).to.exist;","    pm.expect(responseData.verbiage).to.exist;","    pm.expect(responseData.transactionId).to.exist;","    pm.expect(responseData.freelyPaymentId).to.exist;","    pm.expect(responseData.timestamp).to.exist;","});","","","pm.test(\"Validate statusCode, code, softCode, and hardCode are non-empty strings\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.statusCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"statusCode should be a non-empty string\");","    pm.expect(responseData.code).to.be.a('string').and.to.have.lengthOf.at.least(1, \"code should be a non-empty string\");","    pm.expect(responseData.softCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"softCode should be a non-empty string\");","    pm.expect(responseData.hardCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"hardCode should be a non-empty string\");","});","","","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"49b98d51-d280-4a00-9c9b-b3656325e9c5","exec":[""],"type":"text/javascript","packages":{}}}],"id":"b23c13c8-3409-497d-8d40-b0205ec242ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"{{customerId}}\",\n  \"tokenId\":\"{{tokenId}}\",\n  \"reference\":\"myref123\",\n  \"amount\":{{totalAmount}},\n  \"cvv\":\"999\",\n  \"avsAddress\": \"123 anystreet\",\n  \"avzZip\": \"44212\",\n  \"taxAmount\": 1.00,\n  \"shippngAmount\": 1.00,\n  \"costOfCapitalAmount\": 1.00\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/sale","description":"<p>process a sale transaction</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction","sale"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"8aaf4f4b-e23c-43a8-85d2-c3ec6eb41724","name":"Successfully Processed","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/transaction/purchase"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"},{"id":"30e6fe63-7879-4aac-9dff-0a10360dc367","name":"Invalid Request","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"079a05ee-fe0c-43e5-a6b5-716f77aa9b0a","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"4401aa54-b13d-486a-8851-9e8733b4b8a8","name":"Payment Declined","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"}],"_postman_id":"b23c13c8-3409-497d-8d40-b0205ec242ee"},{"name":"authorize only a payment","id":"6c242f5a-244d-4742-8de8-e4fa6d718cd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"{{customerId}}\",\n  \"tokenId\":\"{{tokenId}}\",\n  \"requestedAmount\": 10.00,\n  \"accountingReference\":\"1234\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/authorize","description":"<p>authorize a payment</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction","authorize"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"a347d619-6307-4d49-851c-dacec6e635f5","name":"Successfully Processed","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"<string>\",\n  \"invoiceAmount\": \"<number>\",\n  \"totalCharge\": \"<number>\",\n  \"taxable\": \"<boolean>\",\n  \"taxableAmount\": \"<number>\",\n  \"costOfCapitalApplied\": \"<boolean>\",\n  \"costOfCapitalAmount\": \"<number>\",\n  \"customerId\": \"<string>\",\n  \"tokenId\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/transaction/authorize"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"},{"id":"0427e9f6-42ae-4c78-acb3-c71e204ed100","name":"Invalid Request","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"<string>\",\n  \"invoiceAmount\": \"<number>\",\n  \"totalCharge\": \"<number>\",\n  \"taxable\": \"<boolean>\",\n  \"taxableAmount\": \"<number>\",\n  \"costOfCapitalApplied\": \"<boolean>\",\n  \"costOfCapitalAmount\": \"<number>\",\n  \"customerId\": \"<string>\",\n  \"tokenId\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/authorize"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"e3356717-0f8a-4439-aa63-3022a1d1027e","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"<string>\",\n  \"invoiceAmount\": \"<number>\",\n  \"totalCharge\": \"<number>\",\n  \"taxable\": \"<boolean>\",\n  \"taxableAmount\": \"<number>\",\n  \"costOfCapitalApplied\": \"<boolean>\",\n  \"costOfCapitalAmount\": \"<number>\",\n  \"customerId\": \"<string>\",\n  \"tokenId\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/authorize"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"5bb222ef-50ff-4681-bd5c-869edfdee10c","name":"Payment Declined","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"<string>\",\n  \"invoiceAmount\": \"<number>\",\n  \"totalCharge\": \"<number>\",\n  \"taxable\": \"<boolean>\",\n  \"taxableAmount\": \"<number>\",\n  \"costOfCapitalApplied\": \"<boolean>\",\n  \"costOfCapitalAmount\": \"<number>\",\n  \"customerId\": \"<string>\",\n  \"tokenId\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/authorize"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"}],"_postman_id":"6c242f5a-244d-4742-8de8-e4fa6d718cd1"},{"name":"gets a transactions full details","id":"440c9967-badd-449f-8fa4-8c31072edd24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>the profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/transaction/:transactionId","description":"<p>gets a transactions details</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction",":transactionId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) the transaction id for the transaction</p>\n","type":"text/plain"},"type":"any","value":"235870029972868","key":"transactionId"}]}},"response":[{"id":"c82d54bc-8b17-47c0-a6e5-56ede8a51ad0","name":"Successfully retrieved transaction","originalRequest":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"the profile key.    If not specified it will use the default profile specified by user profile."},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":{"raw":"{{baseUrl}}/transaction/:transactionId","host":["{{baseUrl}}"],"path":["transaction",":transactionId"],"variable":[{"key":"transactionId","value":"230585418854736"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"transactionId\": \"<string>\",\n  \"transactionType\": \"<string>\",\n  \"timestamp\": \"<dateTime>\",\n  \"statusDeclined\": \"<boolean>\",\n  \"statusCaptured\": \"<boolean>\",\n  \"statusComplete\": \"<boolean>\",\n  \"statusVoided\": \"<boolean>\",\n  \"statusSuccess\": \"<boolean>\",\n  \"statusSettled\": \"<boolean>\",\n  \"statusReversable\": \"<boolean>\",\n  \"statusAuthOnly\": \"<boolean>\",\n  \"statusHasL3\": \"<boolean>\",\n  \"batch\": \"<string>\",\n  \"batchItem\": \"<string>\",\n  \"resultCode\": \"<string>\",\n  \"resultCodeVerbaige\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"authorization\": \"<string>\",\n  \"avsResponse\": \"<string>\",\n  \"cvResponse\": \"<string>\",\n  \"account\": \"<string>\",\n  \"accountType\": \"<string>\",\n  \"cardType\": \"<string>\",\n  \"cardholderName\": \"<string>\",\n  \"expirationDate\": \"<string>\",\n  \"amount\": \"<number>\",\n  \"supplementalFee\": \"<number>\",\n  \"amountDetails\": {\n    \"amount\": \"<number>\",\n    \"authorizedAmount\": \"<number>\",\n    \"originalAmount\": \"<number>\",\n    \"requestedAmount\": \"<number>\",\n    \"taxAmount\": \"<number>\",\n    \"convenienceFee\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"shippingAmount\": \"<number>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"freelyCustomerId\": \"<string>\",\n  \"freelyCustomer\": {\n    \"id\": \"<string>\",\n    \"companyName\": \"<string>\",\n    \"displayName\": \"<string>\",\n    \"contactFirstName\": \"<string>\",\n    \"contactLastName\": \"<string>\",\n    \"companyAccountNumber\": \"<string>\",\n    \"contactEmail\": \"<string>\",\n    \"contactPhoneNumber\": \"<string>\",\n    \"mobilePhoneNumber\": \"<string>\",\n    \"freelyProfileId\": \"<string>\"\n  },\n  \"freelyPaymentId\": \"<string>\",\n  \"freelyProfileId\": \"<string>\",\n  \"freelyPaymentDetails\": {\n    \"freelyPaymentId\": \"<string>\",\n    \"totalPaymentAmount\": \"<number>\",\n    \"totalAmountLineItemDetails\": \"<number>\",\n    \"totalShippingAmount\": \"<number>\",\n    \"totalTaxAmount\": \"<number>\",\n    \"costOfCapitalAmount\": \"<number>\",\n    \"customerAccountingReference\": [\n      \"<string>\",\n      \"<string>\"\n    ]\n  },\n  \"processorCustRef\": \"<string>\",\n  \"transactionReferenceNumber\": \"<string>\",\n  \"refundedAmount\": \"<number>\",\n  \"nonCustomerTransaction\": \"<boolean>\",\n  \"cardClass\": \"EBT\",\n  \"cardCountryCode\": \"<string>\",\n  \"cardCurrency\": \"<string>\",\n  \"cardNetwork\": \"<string>\",\n  \"cardFundingSource\": \"CREDIT\",\n  \"cardIssueBank\": \"<string>\",\n  \"cardMsrCVM\": \"pinsig\",\n  \"cardPrepaid\": \"<boolean>\",\n  \"cardReloadable\": \"<boolean>\",\n  \"cardSignatureDebit\": \"<boolean>\",\n  \"cardLevel\": \"<string>\",\n  \"zipCode\": \"<string>\",\n  \"isReversible\": \"<boolean>\",\n  \"receiptNote\": \"<string>\",\n  \"merchantName\": \"<string>\",\n  \"merchantAddress1\": \"<string>\",\n  \"merchantAddress2\": \"<string>\",\n  \"merchantAddress3\": \"<string>\",\n  \"merchantPhoneNumber\": \"<string>\",\n  \"merchantEmail\": \"<string>\"\n}"},{"id":"a3572a0d-c8c8-4c85-9c26-a3d640ab9036","name":"Unauthorized","originalRequest":{"method":"GET","header":[{"description":"the profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transaction/:transactionId","host":["{{baseUrl}}"],"path":["transaction",":transactionId"],"variable":[{"key":"transactionId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"1a6cbe61-809b-4ebc-9afe-dfb29d1cc0ca","name":"Transaction Not Found","originalRequest":{"method":"GET","header":[{"description":"the profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transaction/:transactionId","host":["{{baseUrl}}"],"path":["transaction",":transactionId"],"variable":[{"key":"transactionId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"440c9967-badd-449f-8fa4-8c31072edd24"},{"name":"reverses (voids) an unsettled transaction","id":"35e61aca-4538-47d5-a75e-4c0992984cb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/transaction/:transactionId","description":"<p>reverses (voids) an unsettled transaction</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction",":transactionId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) the transaction id for the transaction</p>\n","type":"text/plain"},"type":"any","value":"229404131367873","key":"transactionId"}]}},"response":[{"id":"f8e0d6fe-cae4-4b04-914e-b9644e005120","name":"Successfully Processed","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/transaction/:transactionId","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","transaction",":transactionId"],"variable":[{"key":"transactionId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"},{"id":"bf8078d1-9caa-4a2b-949d-8ae91b30eba6","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transaction/:transactionId","host":["{{baseUrl}}"],"path":["transaction",":transactionId"],"variable":[{"key":"transactionId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"f1b99e9d-c69f-449d-9a94-fe1486b262b0","name":"Declined","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transaction/:transactionId","host":["{{baseUrl}}"],"path":["transaction",":transactionId"],"variable":[{"key":"transactionId"}]}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"},{"id":"cefee8d0-f565-4ab7-a9da-6678f040ff10","name":"Transaction Not Found","originalRequest":{"method":"DELETE","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transaction/:transactionId","host":["{{baseUrl}}"],"path":["transaction",":transactionId"],"variable":[{"key":"transactionId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"35e61aca-4538-47d5-a75e-4c0992984cb1"},{"name":"refunds a previously settled transaction","id":"845f79fc-5ea8-4586-9f66-351f1c68e932","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"{{customerId}}\",\n  //\"token\":\"{{tokenId}}\",\n  \"relatedTransactionId\":\"232647826933610\",\n  \"amounts\": {\n    \"amount\": {{totalAmount}}\n  },\n  \"totalRequestedAmount\": 49\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/:transactionId/refund","description":"<p>refunds a previously settled transaction</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction",":transactionId","refund"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"string","value":"<string>","key":"transactionId"}]}},"response":[{"id":"27adede7-aa75-4403-a064-1f6c06e3ee44","name":"Successfully Processed","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"relatedTransactionId\": \"<string>\",\n  \"relatedFreelyPaymentId\": \"<string>\",\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/transaction/:transactionId/refund","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","transaction",":transactionId","refund"],"variable":[{"key":"transactionId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"},{"id":"9a608d4f-7fc6-4bff-8e8c-5e0635f558c5","name":"Invalid Request","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"relatedTransactionId\": \"<string>\",\n  \"relatedFreelyPaymentId\": \"<string>\",\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/refund","host":["{{baseUrl}}"],"path":["transaction",":transactionId","refund"],"variable":[{"key":"transactionId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"15919993-00ab-42d7-8bd5-6f32169fb679","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"relatedTransactionId\": \"<string>\",\n  \"relatedFreelyPaymentId\": \"<string>\",\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/refund","host":["{{baseUrl}}"],"path":["transaction",":transactionId","refund"],"variable":[{"key":"transactionId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"c6da06fb-0085-4984-8d10-8226d1f2a1d6","name":"Payment Declined","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"relatedTransactionId\": \"<string>\",\n  \"relatedFreelyPaymentId\": \"<string>\",\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/refund","host":["{{baseUrl}}"],"path":["transaction",":transactionId","refund"],"variable":[{"key":"transactionId"}]}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"},{"id":"d3619bdc-939e-4385-bc18-f1888d4560f9","name":"Transaction Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"relatedTransactionId\": \"<string>\",\n  \"relatedFreelyPaymentId\": \"<string>\",\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/refund","host":["{{baseUrl}}"],"path":["transaction",":transactionId","refund"],"variable":[{"key":"transactionId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"845f79fc-5ea8-4586-9f66-351f1c68e932"},{"name":"preauth a transaction","id":"f98845e4-23ce-42c5-bd82-15ceb252d821","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"{{customerId}}\",\n  \"token\":\"{{tokenId}}\",\n  \"requestedAmount\": 10.00,\n  \"accountingReference\":\"1234\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/preauth","description":"<p>authorize a payment</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction","preauth"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"27386f67-2546-42f5-8c7b-f4b23c887eb1","name":"Successfully Processed","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"<string>\",\n  \"invoiceAmount\": \"<number>\",\n  \"totalCharge\": \"<number>\",\n  \"taxable\": \"<boolean>\",\n  \"taxableAmount\": \"<number>\",\n  \"costOfCapitalApplied\": \"<boolean>\",\n  \"costOfCapitalAmount\": \"<number>\",\n  \"customerId\": \"<string>\",\n  \"tokenId\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/transaction/authorize"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"},{"id":"7b2ad29a-a431-4942-8aec-23b1e69437e4","name":"Invalid Request","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"<string>\",\n  \"invoiceAmount\": \"<number>\",\n  \"totalCharge\": \"<number>\",\n  \"taxable\": \"<boolean>\",\n  \"taxableAmount\": \"<number>\",\n  \"costOfCapitalApplied\": \"<boolean>\",\n  \"costOfCapitalAmount\": \"<number>\",\n  \"customerId\": \"<string>\",\n  \"tokenId\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/authorize"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"16b9fb03-ee16-4312-bd9f-27e3e16b019c","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"<string>\",\n  \"invoiceAmount\": \"<number>\",\n  \"totalCharge\": \"<number>\",\n  \"taxable\": \"<boolean>\",\n  \"taxableAmount\": \"<number>\",\n  \"costOfCapitalApplied\": \"<boolean>\",\n  \"costOfCapitalAmount\": \"<number>\",\n  \"customerId\": \"<string>\",\n  \"tokenId\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/authorize"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"281a9cb0-8858-4d0e-9382-bcea82fb5162","name":"Payment Declined","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"<string>\",\n  \"invoiceAmount\": \"<number>\",\n  \"totalCharge\": \"<number>\",\n  \"taxable\": \"<boolean>\",\n  \"taxableAmount\": \"<number>\",\n  \"costOfCapitalApplied\": \"<boolean>\",\n  \"costOfCapitalAmount\": \"<number>\",\n  \"customerId\": \"<string>\",\n  \"tokenId\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/authorize"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"}],"_postman_id":"f98845e4-23ce-42c5-bd82-15ceb252d821"},{"name":"completes a preauthorized transaction","id":"a19f22fc-1c2c-4f6f-9b02-14ca1ad63249","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"AuthPaymentRequest\": {\n        \"customerId\": \"{{customerId}}\",\n        \"preauthTransactionId\": \"232713881444620\",\n        \"totalRequestedAmount\": \"{{totalAmount}}\",\n        \"amounts\": {\n            \"amount\": \"{{totalAmount}}\"\n        },\n        \"freelyPayment\": {\n            \"totalPaymentAmount\": \"{{totalAmount}}\",\n            \"totalAmountLineItemDetails\": \"{{totalAmount}}\",\n            \"LineItems\": []\n        }\n    }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/:transactionId/complete","description":"<p>completes a previously pre-authorized transaction</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction",":transactionId","complete"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) the unique transaction id to associate with</p>\n","type":"text/plain"},"type":"any","value":"<string>","key":"transactionId"}]}},"response":[{"id":"a580c49a-6246-4cae-8d37-6a44470c6bdb","name":"Successfully Processed","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"property\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/transaction/:transactionId/complete","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","transaction",":transactionId","complete"],"variable":[{"key":"transactionId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"transactionId\": \"<string>\",\n  \"account\": \"<string>\",\n  \"auth\": \"<string>\",\n  \"batch\": \"<string>\",\n  \"cardType\": \"<string>\",\n  \"code\": \"<string>\",\n  \"item\": \"<string>\",\n  \"verbaige\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"cvResponse\": \"<string>\",\n  \"avsResponse\": \"<string>\"\n}"},{"id":"c1a9277c-6e49-4a89-91ab-4b9cd4ec0e11","name":"Invalid Request","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"property\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/complete","host":["{{baseUrl}}"],"path":["transaction",":transactionId","complete"],"variable":[{"key":"transactionId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"d77239b6-cb08-4f7c-b8c3-45707a9026cc","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"property\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/complete","host":["{{baseUrl}}"],"path":["transaction",":transactionId","complete"],"variable":[{"key":"transactionId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"904e9c37-7753-4278-bb6d-d56bb97fd04a","name":"Transaction Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"tHuhzexRG9r2kCMx"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"property\": \"<integer>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/complete","host":["{{baseUrl}}"],"path":["transaction",":transactionId","complete"],"variable":[{"key":"transactionId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"a19f22fc-1c2c-4f6f-9b02-14ca1ad63249"},{"name":"sends a transaction receipt","id":"bcddde0e-e3c0-4426-bdce-98b1b43e5fd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"emailReceipt\": true,\n  \"emailReceiptAddress\": \"andrewclarkmobile@gmail.com\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/:transactionId/receipt?duplicate=true","description":"<p>sends a transaction receipt</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction",":transactionId","receipt"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>sends as a duplicate copy</p>\n","type":"text/plain"},"key":"duplicate","value":"true"}],"variable":[{"description":{"content":"<p>(Required) the unique transaction id to associate with</p>\n","type":"text/plain"},"type":"any","value":"235949849766844","key":"transactionId"}]}},"response":[{"id":"b1ddd959-68f7-4648-a254-bf59899619f4","name":"Successfully Processed","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"textReceipt\": \"<boolean>\",\n  \"textReceiptNumber\": \"<string>\",\n  \"emailReceipt\": \"<boolean>\",\n  \"emailReceiptAddress\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://accept.sandbox.freelypayments.com/api/transaction/:transactionId/receipt?duplicate=<boolean>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","transaction",":transactionId","receipt"],"query":[{"description":"sends as a duplicate copy","key":"duplicate","value":"<boolean>"}],"variable":[{"key":"transactionId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<string>\",\n  \"message\": \"<string>\",\n  \"receiptId\": \"<string>\"\n}"},{"id":"7be3ab7c-d7a7-4f1d-a094-b541e38e0f12","name":"Invalid Request","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"textReceipt\": \"<boolean>\",\n  \"textReceiptNumber\": \"<string>\",\n  \"emailReceipt\": \"<boolean>\",\n  \"emailReceiptAddress\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/receipt?duplicate=<boolean>","host":["{{baseUrl}}"],"path":["transaction",":transactionId","receipt"],"query":[{"description":"sends as a duplicate copy","key":"duplicate","value":"<boolean>"}],"variable":[{"key":"transactionId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"1c57b151-9e68-4032-8b00-85dfac32812e","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"textReceipt\": \"<boolean>\",\n  \"textReceiptNumber\": \"<string>\",\n  \"emailReceipt\": \"<boolean>\",\n  \"emailReceiptAddress\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/receipt?duplicate=<boolean>","host":["{{baseUrl}}"],"path":["transaction",":transactionId","receipt"],"query":[{"description":"sends as a duplicate copy","key":"duplicate","value":"<boolean>"}],"variable":[{"key":"transactionId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"7fdd329c-b86a-4161-b6f6-323de63a8b30","name":"Transaction Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"textReceipt\": \"<boolean>\",\n  \"textReceiptNumber\": \"<string>\",\n  \"emailReceipt\": \"<boolean>\",\n  \"emailReceiptAddress\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/transaction/:transactionId/receipt?duplicate=<boolean>","host":["{{baseUrl}}"],"path":["transaction",":transactionId","receipt"],"query":[{"description":"sends as a duplicate copy","key":"duplicate","value":"<boolean>"}],"variable":[{"key":"transactionId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"bcddde0e-e3c0-4426-bdce-98b1b43e5fd6"},{"name":"process one time payment","event":[{"listen":"test","script":{"id":"489b2225-f7db-4b8b-9c5d-934f8611bf7c","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(5000);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.statusCode).to.exist;","    pm.expect(responseData.statusCodeMessage).to.exist;","    pm.expect(responseData.code).to.exist;","    pm.expect(responseData.softCode).to.exist;","    pm.expect(responseData.hardCode).to.exist;","    pm.expect(responseData.verbiage).to.exist;","    pm.expect(responseData.transactionId).to.exist;","    pm.expect(responseData.freelyPaymentId).to.exist;","    pm.expect(responseData.timestamp).to.exist;","});","","","pm.test(\"Validate statusCode, code, softCode, and hardCode are non-empty strings\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.statusCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"statusCode should be a non-empty string\");","    pm.expect(responseData.code).to.be.a('string').and.to.have.lengthOf.at.least(1, \"code should be a non-empty string\");","    pm.expect(responseData.softCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"softCode should be a non-empty string\");","    pm.expect(responseData.hardCode).to.be.a('string').and.to.have.lengthOf.at.least(1, \"hardCode should be a non-empty string\");","});","","","",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"49b98d51-d280-4a00-9c9b-b3656325e9c5","exec":[""],"type":"text/javascript","packages":{}}}],"id":"349a6dd8-fa9b-4fef-bd01-75241f294779","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"token\":\"{{tokenId}}\",\n  \"reference\":\"myref123\",\n  \"amount\":{{totalAmount}},\n  \"avsAddress\": \"123 anystreet\",\n  \"avzZip\": \"44212\",\n  \"taxAmount\": 1.00,\n  \"shippngAmount\": 1.00,\n  \"costOfCapitalAmount\": 1.00\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/sale","description":"<p>process a sale transaction</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction","sale"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"31f0dce2-7633-4f32-b4b1-a06ae679e0d7","name":"Successfully Processed","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://accept.sandbox.freelypayments.com/api/transaction/purchase"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"},{"id":"2d05f853-522a-4a86-9973-0029bdbcd0de","name":"Invalid Request","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"46e467ce-64d4-40e1-9f1e-854c7a0f17f6","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"0bd23405-4e81-4646-aabf-b12569e9f200","name":"Payment Declined","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"LltN5kQArzkv"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"customerId\": \"<string>\",\n  \"totalRequestedAmount\": \"<float>\",\n  \"amounts\": {\n    \"amount\": \"<float>\",\n    \"taxAmount\": \"<float>\",\n    \"convenienceFee\": \"<float>\",\n    \"supplementalFee\": \"<float>\"\n  },\n  \"freelyPayment\": {\n    \"totalPaymentAmount\": \"<float>\",\n    \"totalAmountLineItemDetails\": \"<float>\",\n    \"LineItems\": [\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      },\n      {\n        \"amount\": \"<float>\",\n        \"accountingReference\": \"<string>\",\n        \"shippingZip\": \"<string>\",\n        \"shippingAmount\": \"<float>\",\n        \"taxAmount\": \"<float>\",\n        \"notes\": \"<string>\",\n        \"l3Details\": [\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          },\n          {\n            \"commodityCode\": \"<string>\",\n            \"description\": \"<string>\",\n            \"productCode\": \"<string>\",\n            \"quantity\": \"<number>\",\n            \"unitOfMeasure\": \"<string>\",\n            \"unitCost\": \"<float>\",\n            \"totalAmount\": \"<float>\",\n            \"discountRate\": \"<float>\",\n            \"discountAmount\": \"<float>\"\n          }\n        ]\n      }\n    ],\n    \"totalShippingAmount\": \"<float>\",\n    \"shippingZip\": \"<string>\",\n    \"totalTaxAmount\": \"<float>\",\n    \"costOfCapitalAmount\": \"<float>\"\n  },\n  \"token\": \"<string>\",\n  \"preauthTransactionId\": \"<string>\",\n  \"verification\": {\n    \"cvCode\": \"<string>\",\n    \"streetAddress\": \"<string>\",\n    \"zipCode\": \"<string>\"\n  },\n  \"shippingDetail\": {\n    \"shippingAmount\": \"<float>\",\n    \"shipZip\": \"<string>\"\n  },\n  \"receiptRequest\": {\n    \"textReceipt\": \"<boolean>\",\n    \"textReceiptNumber\": \"<string>\",\n    \"emailReceipt\": \"<boolean>\",\n    \"emailReceiptAddress\": \"<string>\"\n  },\n  \"comments\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/transaction/purchase"},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": \"<string>\",\n  \"statusCodeMessage\": \"<string>\",\n  \"code\": \"<string>\",\n  \"softCode\": \"<string>\",\n  \"hardCode\": \"<string>\",\n  \"verbiage\": \"<string>\",\n  \"transactionId\": \"<string>\",\n  \"freelyPaymentId\": \"<string>\",\n  \"timestamp\": \"<dateTime>\"\n}"}],"_postman_id":"349a6dd8-fa9b-4fef-bd01-75241f294779"}],"id":"81326daf-fe00-4905-9eef-eb73a580cfec","description":"<p>These API's are for Pefrforming transactions against freely transaction engine. Freely's rransaction engine is built to ensure that the transaction is routed to minimize all fees and interchange costs.</p>\n<p>Freely Adds metadata to each transaction. This includes:</p>\n<ul>\n<li><p>The Freely Payment ID. This is an ID that is uniquely is assigned to each transaction. It is meant to be ingested as a payment identifier to be attached to an ERP</p>\n</li>\n<li><p>The Freely Payment Details. This is a json structure that maps what accounting details the payment is for. This also helps the freely transaction engine apply line item data to the processor (known as L3 data) required for lowering interchange fees.</p>\n</li>\n</ul>\n","_postman_id":"81326daf-fe00-4905-9eef-eb73a580cfec","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}},{"name":"flashpay","item":[],"id":"eb43ff76-1dad-4c49-b507-3f5a464a55bf","_postman_id":"eb43ff76-1dad-4c49-b507-3f5a464a55bf","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}},{"name":"transactionView","item":[{"name":"gets a transaction receipt","id":"a8415d49-8d08-426a-952a-1e407b291f7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/transaction/:transactionId/receipt","description":"<p>gets a transaction receipt</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transaction",":transactionId","receipt"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"711b0aff-af9d-4285-8082-79d523e528c4","description":{"content":"<p>(Required) the unique transaction id to associate with</p>\n","type":"text/plain"},"type":"any","value":"<string>","key":"transactionId"}]}},"response":[{"id":"29f3faf5-b12c-4a16-99e1-2931de6e5f81","name":"Successfully Processed","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/transaction/:transactionId/receipt","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","transaction",":transactionId","receipt"],"variable":[{"key":"transactionId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"property\": \"<integer>\"\n}"},{"id":"829d1559-9122-4414-a3c2-ac97e19e689c","name":"Invalid Request","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transaction/:transactionId/receipt","host":["{{baseUrl}}"],"path":["transaction",":transactionId","receipt"],"variable":[{"key":"transactionId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"88a59a48-bbf9-44b7-9b40-01ac2a6807ed","name":"Unauthorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transaction/:transactionId/receipt","host":["{{baseUrl}}"],"path":["transaction",":transactionId","receipt"],"variable":[{"key":"transactionId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"f318cacf-e5f3-4475-baeb-1978b3f15655","name":"Transaction Not Found","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transaction/:transactionId/receipt","host":["{{baseUrl}}"],"path":["transaction",":transactionId","receipt"],"variable":[{"key":"transactionId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"a8415d49-8d08-426a-952a-1e407b291f7d"},{"name":"search Transactions","id":"2dd777e1-6555-44c9-916a-f6f012d00711","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/transactions/search?transactionType=<string>&from=<dateTime>&to=<dateTime>&customerId=<uuid>&cardType=<string>&amount=<number>&invoice=<string>","description":"<p>search for transactions</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transactions","search"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>The type of transaction</p>\n","type":"text/plain"},"key":"transactionType","value":"<string>"},{"description":{"content":"<p>search for transaction from date</p>\n","type":"text/plain"},"key":"from","value":"<dateTime>"},{"description":{"content":"<p>search for transaction to date</p>\n","type":"text/plain"},"key":"to","value":"<dateTime>"},{"description":{"content":"<p>customerid to search for transactions</p>\n","type":"text/plain"},"key":"customerId","value":"<uuid>"},{"description":{"content":"<p>card type</p>\n","type":"text/plain"},"key":"cardType","value":"<string>"},{"description":{"content":"<p>anount of transaction</p>\n","type":"text/plain"},"key":"amount","value":"<number>"},{"description":{"content":"<p>invoice amount</p>\n","type":"text/plain"},"key":"invoice","value":"<string>"}],"variable":[]}},"response":[{"id":"a764a410-13c3-41ea-98c0-458552ad4d57","name":"Successful response","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/transactions/search?transactionType=<string>&from=<dateTime>&to=<dateTime>&customerId=<uuid>&cardType=<string>&amount=<number>&invoice=<string>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","transactions","search"],"query":[{"description":"The type of transaction","key":"transactionType","value":"<string>"},{"description":"search for transaction from date","key":"from","value":"<dateTime>"},{"description":"search for transaction to date","key":"to","value":"<dateTime>"},{"description":"customerid to search for transactions","key":"customerId","value":"<uuid>"},{"description":"card type","key":"cardType","value":"<string>"},{"description":"anount of transaction","key":"amount","value":"<number>"},{"description":"invoice amount","key":"invoice","value":"<string>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  },\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  }\n]"},{"id":"006501f3-da2c-484f-9a2e-3f1cda4b241d","name":"Invalid Request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transactions/search?transactionType=<string>&from=<dateTime>&to=<dateTime>&customerId=<uuid>&cardType=<string>&amount=<number>&invoice=<string>","host":["{{baseUrl}}"],"path":["transactions","search"],"query":[{"description":"The type of transaction","key":"transactionType","value":"<string>"},{"description":"search for transaction from date","key":"from","value":"<dateTime>"},{"description":"search for transaction to date","key":"to","value":"<dateTime>"},{"description":"customerid to search for transactions","key":"customerId","value":"<uuid>"},{"description":"card type","key":"cardType","value":"<string>"},{"description":"anount of transaction","key":"amount","value":"<number>"},{"description":"invoice amount","key":"invoice","value":"<string>"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"e0bd23fe-a599-4528-9b73-43f96c45824b","name":"Not authorized","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transactions/search?transactionType=<string>&from=<dateTime>&to=<dateTime>&customerId=<uuid>&cardType=<string>&amount=<number>&invoice=<string>","host":["{{baseUrl}}"],"path":["transactions","search"],"query":[{"description":"The type of transaction","key":"transactionType","value":"<string>"},{"description":"search for transaction from date","key":"from","value":"<dateTime>"},{"description":"search for transaction to date","key":"to","value":"<dateTime>"},{"description":"customerid to search for transactions","key":"customerId","value":"<uuid>"},{"description":"card type","key":"cardType","value":"<string>"},{"description":"anount of transaction","key":"amount","value":"<number>"},{"description":"invoice amount","key":"invoice","value":"<string>"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"2dd777e1-6555-44c9-916a-f6f012d00711"},{"name":"retrieves all open (unsettled) transactions","event":[{"listen":"test","script":{"id":"50322715-647a-42af-99d2-3eb45b5d95c8","exec":["var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>Transaction ID</th>","        <th>Transaction Type</th>","        <th>Timestamp</th>","        <th>Status Declined</th>","        <th>Status Voided</th>","        <th>Status Complete</th>","        <th>Status Success</th>","        <th>Status Settled</th>","        <th>Status Reversable</th>","        <th>Status Auth Only</th>","        <th>Status Has L3</th>","        <th>Status Captured</th>","        <th>Batch</th>","        <th>Batch Item</th>","        <th>Result Code</th>","        <th>Result Code Verbaige</th>","        <th>Soft Code</th>","        <th>Hard Code</th>","        <th>Authorization</th>","        <th>AVS Response</th>","        <th>CV Response</th>","        <th>Account</th>","        <th>Account Type</th>","        <th>Card Type</th>","        <th>Cardholder Name</th>","        <th>Expiration Date</th>","        <th>Amount</th>","        <th>Supplemental Fee</th>","        <th>Freely Profile ID</th>","        <th>Freely Payment ID</th>","        <th>Freely Customer ID</th>","        <th>Non-Customer Transaction</th>","    </tr>","    ","    {{#each response}}","        <tr>","            <td>{{transactionId}}</td>","            <td>{{transactionType}}</td>","            <td>{{timestamp}}</td>","            <td>{{statusDeclined}}</td>","            <td>{{statusVoided}}</td>","            <td>{{statusComplete}}</td>","            <td>{{statusSuccess}}</td>","            <td>{{statusSettled}}</td>","            <td>{{statusReversable}}</td>","            <td>{{statusAuthOnly}}</td>","            <td>{{statusHasL3}}</td>","            <td>{{statusCaptured}}</td>","            <td>{{batch}}</td>","            <td>{{batchItem}}</td>","            <td>{{resultCode}}</td>","            <td>{{resultCodeVerbaige}}</td>","            <td>{{softCode}}</td>","            <td>{{hardCode}}</td>","            <td>{{authorization}}</td>","            <td>{{avsResponse}}</td>","            <td>{{cvResponse}}</td>","            <td>{{account}}</td>","            <td>{{accountType}}</td>","            <td>{{cardType}}</td>","            <td>{{cardholderName}}</td>","            <td>{{expirationDate}}</td>","            <td>{{amount}}</td>","            <td>{{supplementalFee}}</td>","            <td>{{freelyProfileId}}</td>","            <td>{{freelyPaymentId}}</td>","            <td>{{freelyCustomerId}}</td>","            <td>{{nonCustomerTransaction}}</td>","        </tr>","    {{/each}}","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()}","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"aca83002-6c1e-47c5-b16b-caef5cf078f1","exec":[""],"type":"text/javascript","packages":{}}}],"id":"53da0d04-f8b5-4876-8301-e545dd13d0d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/transactions/open?includeAuthOnly=false","description":"<p>gets all open (unsettled) transactions</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transactions","open"],"host":["{{baseUrl}}"],"query":[{"key":"includeAuthOnly","value":"false"}],"variable":[]}},"response":[{"id":"f3500a8c-579e-4a3f-856a-80d4f5dd244d","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"https://accept.sandbox.freelypayments.com/api/transactions/open"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  },\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  }\n]"},{"id":"68e134ab-ce54-4776-af4b-8178d1d992e0","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"{{baseUrl}}/transactions/open"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"53da0d04-f8b5-4876-8301-e545dd13d0d9"},{"name":"get all preauthorized","event":[{"listen":"test","script":{"id":"50322715-647a-42af-99d2-3eb45b5d95c8","exec":["var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>Transaction ID</th>","        <th>Transaction Type</th>","        <th>Timestamp</th>","        <th>Status Declined</th>","        <th>Status Voided</th>","        <th>Status Complete</th>","        <th>Status Success</th>","        <th>Status Settled</th>","        <th>Status Reversable</th>","        <th>Status Auth Only</th>","        <th>Status Has L3</th>","        <th>Status Captured</th>","        <th>Batch</th>","        <th>Batch Item</th>","        <th>Result Code</th>","        <th>Result Code Verbaige</th>","        <th>Soft Code</th>","        <th>Hard Code</th>","        <th>Authorization</th>","        <th>AVS Response</th>","        <th>CV Response</th>","        <th>Account</th>","        <th>Account Type</th>","        <th>Card Type</th>","        <th>Cardholder Name</th>","        <th>Expiration Date</th>","        <th>Amount</th>","        <th>Supplemental Fee</th>","        <th>Freely Profile ID</th>","        <th>Freely Payment ID</th>","        <th>Freely Customer ID</th>","        <th>Non-Customer Transaction</th>","    </tr>","    ","    {{#each response}}","        <tr>","            <td>{{transactionId}}</td>","            <td>{{transactionType}}</td>","            <td>{{timestamp}}</td>","            <td>{{statusDeclined}}</td>","            <td>{{statusVoided}}</td>","            <td>{{statusComplete}}</td>","            <td>{{statusSuccess}}</td>","            <td>{{statusSettled}}</td>","            <td>{{statusReversable}}</td>","            <td>{{statusAuthOnly}}</td>","            <td>{{statusHasL3}}</td>","            <td>{{statusCaptured}}</td>","            <td>{{batch}}</td>","            <td>{{batchItem}}</td>","            <td>{{resultCode}}</td>","            <td>{{resultCodeVerbaige}}</td>","            <td>{{softCode}}</td>","            <td>{{hardCode}}</td>","            <td>{{authorization}}</td>","            <td>{{avsResponse}}</td>","            <td>{{cvResponse}}</td>","            <td>{{account}}</td>","            <td>{{accountType}}</td>","            <td>{{cardType}}</td>","            <td>{{cardholderName}}</td>","            <td>{{expirationDate}}</td>","            <td>{{amount}}</td>","            <td>{{supplementalFee}}</td>","            <td>{{freelyProfileId}}</td>","            <td>{{freelyPaymentId}}</td>","            <td>{{freelyCustomerId}}</td>","            <td>{{nonCustomerTransaction}}</td>","        </tr>","    {{/each}}","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()}","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"aca83002-6c1e-47c5-b16b-caef5cf078f1","exec":[""],"type":"text/javascript","packages":{}}}],"id":"a55a04c5-c4d6-4685-b05c-b83a3385c772","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/transactions/preauthorized","description":"<p>gets all open (unsettled) transactions</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transactions","preauthorized"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"b4ba258f-55de-4674-a437-9b295718427d","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"https://accept.sandbox.freelypayments.com/api/transactions/open"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  },\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  }\n]"},{"id":"63936300-3e46-4c1a-868b-b079a17542c0","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"{{baseUrl}}/transactions/open"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"a55a04c5-c4d6-4685-b05c-b83a3385c772"},{"name":"retrieves all open (unsettled) transactions Copy","event":[{"listen":"test","script":{"id":"50322715-647a-42af-99d2-3eb45b5d95c8","exec":["var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>Transaction ID</th>","        <th>Transaction Type</th>","        <th>Timestamp</th>","        <th>Status Declined</th>","        <th>Status Voided</th>","        <th>Status Complete</th>","        <th>Status Success</th>","        <th>Status Settled</th>","        <th>Status Reversable</th>","        <th>Status Auth Only</th>","        <th>Status Has L3</th>","        <th>Status Captured</th>","        <th>Batch</th>","        <th>Batch Item</th>","        <th>Result Code</th>","        <th>Result Code Verbaige</th>","        <th>Soft Code</th>","        <th>Hard Code</th>","        <th>Authorization</th>","        <th>AVS Response</th>","        <th>CV Response</th>","        <th>Account</th>","        <th>Account Type</th>","        <th>Card Type</th>","        <th>Cardholder Name</th>","        <th>Expiration Date</th>","        <th>Amount</th>","        <th>Supplemental Fee</th>","        <th>Freely Profile ID</th>","        <th>Freely Payment ID</th>","        <th>Freely Customer ID</th>","        <th>Non-Customer Transaction</th>","    </tr>","    ","    {{#each response}}","        <tr>","            <td>{{transactionId}}</td>","            <td>{{transactionType}}</td>","            <td>{{timestamp}}</td>","            <td>{{statusDeclined}}</td>","            <td>{{statusVoided}}</td>","            <td>{{statusComplete}}</td>","            <td>{{statusSuccess}}</td>","            <td>{{statusSettled}}</td>","            <td>{{statusReversable}}</td>","            <td>{{statusAuthOnly}}</td>","            <td>{{statusHasL3}}</td>","            <td>{{statusCaptured}}</td>","            <td>{{batch}}</td>","            <td>{{batchItem}}</td>","            <td>{{resultCode}}</td>","            <td>{{resultCodeVerbaige}}</td>","            <td>{{softCode}}</td>","            <td>{{hardCode}}</td>","            <td>{{authorization}}</td>","            <td>{{avsResponse}}</td>","            <td>{{cvResponse}}</td>","            <td>{{account}}</td>","            <td>{{accountType}}</td>","            <td>{{cardType}}</td>","            <td>{{cardholderName}}</td>","            <td>{{expirationDate}}</td>","            <td>{{amount}}</td>","            <td>{{supplementalFee}}</td>","            <td>{{freelyProfileId}}</td>","            <td>{{freelyPaymentId}}</td>","            <td>{{freelyCustomerId}}</td>","            <td>{{nonCustomerTransaction}}</td>","        </tr>","    {{/each}}","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()}","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"aca83002-6c1e-47c5-b16b-caef5cf078f1","exec":[""],"type":"text/javascript","packages":{}}}],"id":"3985106c-6177-4c23-b301-1a57f7e94fa3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"BMF","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/batches","description":"<p>gets all open (unsettled) transactions</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["batches"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"040a49e6-6abd-4fbd-92b0-d03b770e08a4","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"https://accept.sandbox.freelypayments.com/api/transactions/open"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  },\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  }\n]"},{"id":"fa9d9e40-019a-440f-8121-0eedc4d3dd14","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"{{baseUrl}}/transactions/open"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"3985106c-6177-4c23-b301-1a57f7e94fa3"},{"name":"retrieves all open (unsettled) transactions Copy","event":[{"listen":"test","script":{"id":"50322715-647a-42af-99d2-3eb45b5d95c8","exec":["var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>Transaction ID</th>","        <th>Transaction Type</th>","        <th>Timestamp</th>","        <th>Status Declined</th>","        <th>Status Voided</th>","        <th>Status Complete</th>","        <th>Status Success</th>","        <th>Status Settled</th>","        <th>Status Reversable</th>","        <th>Status Auth Only</th>","        <th>Status Has L3</th>","        <th>Status Captured</th>","        <th>Batch</th>","        <th>Batch Item</th>","        <th>Result Code</th>","        <th>Result Code Verbaige</th>","        <th>Soft Code</th>","        <th>Hard Code</th>","        <th>Authorization</th>","        <th>AVS Response</th>","        <th>CV Response</th>","        <th>Account</th>","        <th>Account Type</th>","        <th>Card Type</th>","        <th>Cardholder Name</th>","        <th>Expiration Date</th>","        <th>Amount</th>","        <th>Supplemental Fee</th>","        <th>Freely Profile ID</th>","        <th>Freely Payment ID</th>","        <th>Freely Customer ID</th>","        <th>Non-Customer Transaction</th>","    </tr>","    ","    {{#each response}}","        <tr>","            <td>{{transactionId}}</td>","            <td>{{transactionType}}</td>","            <td>{{timestamp}}</td>","            <td>{{statusDeclined}}</td>","            <td>{{statusVoided}}</td>","            <td>{{statusComplete}}</td>","            <td>{{statusSuccess}}</td>","            <td>{{statusSettled}}</td>","            <td>{{statusReversable}}</td>","            <td>{{statusAuthOnly}}</td>","            <td>{{statusHasL3}}</td>","            <td>{{statusCaptured}}</td>","            <td>{{batch}}</td>","            <td>{{batchItem}}</td>","            <td>{{resultCode}}</td>","            <td>{{resultCodeVerbaige}}</td>","            <td>{{softCode}}</td>","            <td>{{hardCode}}</td>","            <td>{{authorization}}</td>","            <td>{{avsResponse}}</td>","            <td>{{cvResponse}}</td>","            <td>{{account}}</td>","            <td>{{accountType}}</td>","            <td>{{cardType}}</td>","            <td>{{cardholderName}}</td>","            <td>{{expirationDate}}</td>","            <td>{{amount}}</td>","            <td>{{supplementalFee}}</td>","            <td>{{freelyProfileId}}</td>","            <td>{{freelyPaymentId}}</td>","            <td>{{freelyCustomerId}}</td>","            <td>{{nonCustomerTransaction}}</td>","        </tr>","    {{/each}}","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()}","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"aca83002-6c1e-47c5-b16b-caef5cf078f1","exec":[""],"type":"text/javascript","packages":{}}}],"id":"9fee0d05-5e58-4e76-81ee-0239f2a072f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/stats/transactions?fromDate=2024-11-14&toDate=2024-11-30","description":"<p>gets all open (unsettled) transactions</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["stats","transactions"],"host":["{{baseUrl}}"],"query":[{"key":"fromDate","value":"2024-11-14"},{"key":"toDate","value":"2024-11-30"}],"variable":[]}},"response":[{"id":"76a90137-571b-4d8c-8032-3159a20f724e","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"https://accept.sandbox.freelypayments.com/api/transactions/open"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  },\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  }\n]"},{"id":"237e2ef1-bbd1-450c-b537-ca414aed8904","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"{{baseUrl}}/transactions/open"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"9fee0d05-5e58-4e76-81ee-0239f2a072f9"},{"name":"retrieves all closed (settled) transactions","id":"f6787811-94e1-4970-a1f4-97d3593b42c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/transactions/closed?includeVoided=true","description":"<p>gets all closed (settled) transactions</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transactions","closed"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>include voided transactions</p>\n","type":"text/plain"},"key":"includeVoided","value":"true"}],"variable":[]}},"response":[{"id":"829c55fd-98e4-45fc-84f3-2c9aaa87a42d","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/transactions/closed?includeVoided=<boolean>&fromDate=<date>&toDate=<date>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","transactions","closed"],"query":[{"description":"include voided transactions","key":"includeVoided","value":"<boolean>"},{"description":"from Date","key":"fromDate","value":"<date>"},{"description":"to date","key":"toDate","value":"<date>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  },\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  }\n]"},{"id":"81112d69-03f8-4cf2-ac8f-fa535d9961d8","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transactions/closed?includeVoided=<boolean>&fromDate=<date>&toDate=<date>","host":["{{baseUrl}}"],"path":["transactions","closed"],"query":[{"description":"include voided transactions","key":"includeVoided","value":"<boolean>"},{"description":"from Date","key":"fromDate","value":"<date>"},{"description":"to date","key":"toDate","value":"<date>"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"f6787811-94e1-4970-a1f4-97d3593b42c0"},{"name":"retrieves all declined or failed transactions","id":"d6b76363-e979-4627-b8fd-a2fba26b625e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/transactions/declined?fromDate=2023-01-01&toDate=2025-01-01","description":"<p>gets all declined or failed transactions</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["transactions","declined"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>from Date</p>\n","type":"text/plain"},"key":"fromDate","value":"2023-01-01"},{"description":{"content":"<p>to date</p>\n","type":"text/plain"},"key":"toDate","value":"2025-01-01"}],"variable":[]}},"response":[{"id":"c576e369-b9e3-42c8-846c-9483a4921b89","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/transactions/declined?fromDate=<date>&toDate=<date>","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","transactions","declined"],"query":[{"description":"from Date","key":"fromDate","value":"<date>"},{"description":"to date","key":"toDate","value":"<date>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  },\n  {\n    \"transactionId\": \"<string>\",\n    \"transactionType\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"statusDeclined\": \"<boolean>\",\n    \"statusCaptured\": \"<boolean>\",\n    \"statusComplete\": \"<boolean>\",\n    \"statusVoided\": \"<boolean>\",\n    \"statusSuccess\": \"<boolean>\",\n    \"statusSettled\": \"<boolean>\",\n    \"statusReversable\": \"<boolean>\",\n    \"statusAuthOnly\": \"<boolean>\",\n    \"statusHasL3\": \"<boolean>\",\n    \"batch\": \"<string>\",\n    \"batchItem\": \"<string>\",\n    \"resultCode\": \"<string>\",\n    \"resultCodeVerbaige\": \"<string>\",\n    \"softCode\": \"<string>\",\n    \"hardCode\": \"<string>\",\n    \"authorization\": \"<string>\",\n    \"avsResponse\": \"<string>\",\n    \"cvResponse\": \"<string>\",\n    \"account\": \"<string>\",\n    \"accountType\": \"<string>\",\n    \"cardType\": \"<string>\",\n    \"cardholderName\": \"<string>\",\n    \"expirationDate\": \"<string>\",\n    \"amount\": \"<number>\",\n    \"supplementalFee\": \"<number>\",\n    \"amountDetails\": {\n      \"amount\": \"<number>\",\n      \"authorizedAmount\": \"<number>\",\n      \"originalAmount\": \"<number>\",\n      \"requestedAmount\": \"<number>\",\n      \"taxAmount\": \"<number>\",\n      \"convenienceFee\": \"<number>\",\n      \"supplementalFee\": \"<number>\",\n      \"shippingAmount\": \"<number>\",\n      \"shipZip\": \"<string>\"\n    },\n    \"freelyCustomerId\": \"<string>\",\n    \"freelyCustomer\": {\n      \"id\": \"<string>\",\n      \"companyName\": \"<string>\",\n      \"displayName\": \"<string>\",\n      \"contactFirstName\": \"<string>\",\n      \"contactLastName\": \"<string>\",\n      \"companyAccountNumber\": \"<string>\",\n      \"contactEmail\": \"<string>\",\n      \"contactPhoneNumber\": \"<string>\",\n      \"mobilePhoneNumber\": \"<string>\",\n      \"freelyProfileId\": \"<string>\"\n    },\n    \"freelyPaymentId\": \"<string>\",\n    \"freelyProfileId\": \"<string>\",\n    \"freelyPaymentDetails\": {\n      \"freelyPaymentId\": \"<string>\",\n      \"totalPaymentAmount\": \"<number>\",\n      \"totalAmountLineItemDetails\": \"<number>\",\n      \"totalShippingAmount\": \"<number>\",\n      \"totalTaxAmount\": \"<number>\",\n      \"costOfCapitalAmount\": \"<number>\",\n      \"customerAccountingReference\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"processorCustRef\": \"<string>\",\n    \"transactionReferenceNumber\": \"<string>\",\n    \"refundedAmount\": \"<number>\",\n    \"nonCustomerTransaction\": \"<boolean>\"\n  }\n]"},{"id":"78006da5-eda7-4cb4-8aeb-32422b488104","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/transactions/declined?fromDate=<date>&toDate=<date>","host":["{{baseUrl}}"],"path":["transactions","declined"],"query":[{"description":"from Date","key":"fromDate","value":"<date>"},{"description":"to date","key":"toDate","value":"<date>"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"d6b76363-e979-4627-b8fd-a2fba26b625e"}],"id":"efcc419b-3aa0-4c94-a6ee-7bade1087efd","description":"<p>These API's are for querying transactions.</p>\n<p>Transactions are either:</p>\n<ul>\n<li><p>Open (Unsettled). This means the transaction can be voided and will not show up on the customers statement. This includes refund transactions. Preauthorizations... By defination are always open transactions.</p>\n</li>\n<li><p>Closed (Settled/Declined/Failed). These transactions are finalized. If a purchase has been settled to reverse the transaction it must be ran as a seperate transaction \"refund\".</p>\n</li>\n</ul>\n","_postman_id":"efcc419b-3aa0-4c94-a6ee-7bade1087efd","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}},{"name":"operations","item":[{"name":"retrieves a settled batch details","id":"a7c26621-ea0a-4135-a5b9-ce4f0724d233","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"jGMu3ut8DcaA9n","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/batch/settled/:batch","description":"<p>retrieves a settled batch</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["batch","settled",":batch"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"3f0a3ad9-c8e6-4da6-8bfb-7edb87a8bbac","description":{"content":"<p>(Required) the batch id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"batch"}]}},"response":[{"id":"8a6f1c4d-ee87-4927-95f7-4806459e11df","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/batch/settled/:batch","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","batch","settled",":batch"],"variable":[{"key":"batch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch\": \"<integer>\",\n  \"routeId\": \"<string>\",\n  \"batchStatus\": \"<string>\",\n  \"timestamp\": \"<dateTime>\",\n  \"transactionCount\": \"<integer>\",\n  \"transactionTotal\": \"<number>\",\n  \"authorizedCount\": \"<integer>\",\n  \"authorizedTotal\": \"<number>\",\n  \"returnCount\": \"<integer>\",\n  \"returnTotal\": \"<number>\",\n  \"visaCount\": \"<integer>\",\n  \"visaTotal\": \"<number>\",\n  \"mcCount\": \"<integer>\",\n  \"mcTotal\": \"<number>\",\n  \"amexCount\": \"<integer>\",\n  \"amexTotal\": \"<number>\",\n  \"discoverCount\": \"<integer>\",\n  \"discoverTotal\": \"<number>\",\n  \"otherCardCount\": \"<integer>\",\n  \"otherCardTotal\": \"<number>\"\n}"},{"id":"dd4c4acc-6bd3-49b4-b518-4d5860fba87e","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/batch/settled/:batch","host":["{{baseUrl}}"],"path":["batch","settled",":batch"],"variable":[{"key":"batch"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"e0421a55-6e1c-4d3a-9b71-65700400b785","name":"Record Not Found","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/batch/settled/:batch","host":["{{baseUrl}}"],"path":["batch","settled",":batch"],"variable":[{"key":"batch"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"a7c26621-ea0a-4135-a5b9-ce4f0724d233"},{"name":"get all batches","id":"65ca061f-0ce5-4337-accc-7db3b1c7ffbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/batches","description":"<p>retrieves a settled batch</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["batches"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"af38b301-10ad-4313-8d1e-1ec04871e1fb","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/batch/settled/:batch","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","batch","settled",":batch"],"variable":[{"key":"batch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch\": \"<integer>\",\n  \"routeId\": \"<string>\",\n  \"batchStatus\": \"<string>\",\n  \"timestamp\": \"<dateTime>\",\n  \"transactionCount\": \"<integer>\",\n  \"transactionTotal\": \"<number>\",\n  \"authorizedCount\": \"<integer>\",\n  \"authorizedTotal\": \"<number>\",\n  \"returnCount\": \"<integer>\",\n  \"returnTotal\": \"<number>\",\n  \"visaCount\": \"<integer>\",\n  \"visaTotal\": \"<number>\",\n  \"mcCount\": \"<integer>\",\n  \"mcTotal\": \"<number>\",\n  \"amexCount\": \"<integer>\",\n  \"amexTotal\": \"<number>\",\n  \"discoverCount\": \"<integer>\",\n  \"discoverTotal\": \"<number>\",\n  \"otherCardCount\": \"<integer>\",\n  \"otherCardTotal\": \"<number>\"\n}"},{"id":"9f185480-c921-409b-8cf5-6228c6af684f","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/batch/settled/:batch","host":["{{baseUrl}}"],"path":["batch","settled",":batch"],"variable":[{"key":"batch"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"21ff3241-0a55-4d1a-a971-81d97a90656e","name":"Record Not Found","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/batch/settled/:batch","host":["{{baseUrl}}"],"path":["batch","settled",":batch"],"variable":[{"key":"batch"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"65ca061f-0ce5-4337-accc-7db3b1c7ffbe"},{"name":"retrieves the current unsettled batch details","id":"df82e359-26ea-46fb-96c8-98fe5e754229","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"jGMu3ut8DcaA9n","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/batch/current","description":"<p>retrieves the current unsettled batch</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["batch","current"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"1ae60bb7-1550-4852-90ca-ceef800b5f86","name":"Successful response","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"https://accept.sandbox.freelypayments.com/api/batch/current"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"batch\": \"<integer>\",\n    \"routeId\": \"<string>\",\n    \"batchStatus\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"transactionCount\": \"<integer>\",\n    \"transactionTotal\": \"<number>\",\n    \"authorizedCount\": \"<integer>\",\n    \"authorizedTotal\": \"<number>\",\n    \"returnCount\": \"<integer>\",\n    \"returnTotal\": \"<number>\",\n    \"visaCount\": \"<integer>\",\n    \"visaTotal\": \"<number>\",\n    \"mcCount\": \"<integer>\",\n    \"mcTotal\": \"<number>\",\n    \"amexCount\": \"<integer>\",\n    \"amexTotal\": \"<number>\",\n    \"discoverCount\": \"<integer>\",\n    \"discoverTotal\": \"<number>\",\n    \"otherCardCount\": \"<integer>\",\n    \"otherCardTotal\": \"<number>\"\n  },\n  {\n    \"batch\": \"<integer>\",\n    \"routeId\": \"<string>\",\n    \"batchStatus\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"transactionCount\": \"<integer>\",\n    \"transactionTotal\": \"<number>\",\n    \"authorizedCount\": \"<integer>\",\n    \"authorizedTotal\": \"<number>\",\n    \"returnCount\": \"<integer>\",\n    \"returnTotal\": \"<number>\",\n    \"visaCount\": \"<integer>\",\n    \"visaTotal\": \"<number>\",\n    \"mcCount\": \"<integer>\",\n    \"mcTotal\": \"<number>\",\n    \"amexCount\": \"<integer>\",\n    \"amexTotal\": \"<number>\",\n    \"discoverCount\": \"<integer>\",\n    \"discoverTotal\": \"<number>\",\n    \"otherCardCount\": \"<integer>\",\n    \"otherCardTotal\": \"<number>\"\n  }\n]"},{"id":"56c07fe6-40bc-4645-99d1-4a24ef734700","name":"Not authorized","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"{{baseUrl}}/batch/current"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"a175d16f-d27e-4bcf-9e2d-81412f7164e8","name":"Record Not Found","originalRequest":{"method":"GET","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"{{baseUrl}}/batch/current"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"df82e359-26ea-46fb-96c8-98fe5e754229"},{"name":"settles the current open batch","id":"04965f27-32b7-4156-8dfc-1251242e0d9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"jGMu3ut8DcaA9n","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/batch/current/:batch/settle","description":"<p>settles the current patch</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["batch","current",":batch","settle"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"a8ea0849-b5c7-4e24-bcfe-3f0c0e6bc39d","description":{"content":"<p>(Required) the batch id</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"batch"}]}},"response":[{"id":"355f9dae-3fc2-47ba-89d2-5e1060ddf08f","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/batch/current/:batch/settle","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","batch","current",":batch","settle"],"variable":[{"key":"batch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch\": \"<integer>\",\n  \"routeId\": \"<string>\",\n  \"batchStatus\": \"<string>\",\n  \"timestamp\": \"<dateTime>\",\n  \"transactionCount\": \"<integer>\",\n  \"transactionTotal\": \"<number>\",\n  \"authorizedCount\": \"<integer>\",\n  \"authorizedTotal\": \"<number>\",\n  \"returnCount\": \"<integer>\",\n  \"returnTotal\": \"<number>\",\n  \"visaCount\": \"<integer>\",\n  \"visaTotal\": \"<number>\",\n  \"mcCount\": \"<integer>\",\n  \"mcTotal\": \"<number>\",\n  \"amexCount\": \"<integer>\",\n  \"amexTotal\": \"<number>\",\n  \"discoverCount\": \"<integer>\",\n  \"discoverTotal\": \"<number>\",\n  \"otherCardCount\": \"<integer>\",\n  \"otherCardTotal\": \"<number>\"\n}"},{"id":"8c6cb47f-de11-4dd0-a784-dc5d7a90246a","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/batch/current/:batch/settle","host":["{{baseUrl}}"],"path":["batch","current",":batch","settle"],"variable":[{"key":"batch"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"e2b3eee2-cfd3-4316-b483-3e716ec0fafd","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/batch/current/:batch/settle","host":["{{baseUrl}}"],"path":["batch","current",":batch","settle"],"variable":[{"key":"batch"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"04965f27-32b7-4156-8dfc-1251242e0d9e"},{"name":"forceSettleBatch","id":"8180c3ee-1eb2-457d-87fd-2f7b44512bed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"profileKey","value":"jGMu3ut8DcaA9n","description":"<p>The customer profile key.    If not specified it will use the default profile specified by user profile.</p>\n"},{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/batch/:batch/close/:routeId","description":"<p>settles the current patch</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["batch",":batch","close",":routeId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"","key":"batch"},{"type":"any","value":"0","key":"routeId"}]}},"response":[{"id":"58bc61a3-b805-43ca-bf9c-21aaebba1842","name":"Successful response","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"https://accept.sandbox.freelypayments.com/api/batch/current/:batch/settle","protocol":"https","host":["accept","sandbox","freelypayments","com"],"path":["api","batch","current",":batch","settle"],"variable":[{"key":"batch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"batch\": \"<integer>\",\n  \"routeId\": \"<string>\",\n  \"batchStatus\": \"<string>\",\n  \"timestamp\": \"<dateTime>\",\n  \"transactionCount\": \"<integer>\",\n  \"transactionTotal\": \"<number>\",\n  \"authorizedCount\": \"<integer>\",\n  \"authorizedTotal\": \"<number>\",\n  \"returnCount\": \"<integer>\",\n  \"returnTotal\": \"<number>\",\n  \"visaCount\": \"<integer>\",\n  \"visaTotal\": \"<number>\",\n  \"mcCount\": \"<integer>\",\n  \"mcTotal\": \"<number>\",\n  \"amexCount\": \"<integer>\",\n  \"amexTotal\": \"<number>\",\n  \"discoverCount\": \"<integer>\",\n  \"discoverTotal\": \"<number>\",\n  \"otherCardCount\": \"<integer>\",\n  \"otherCardTotal\": \"<number>\"\n}"},{"id":"88e4eb87-54fc-4333-a1a6-29d79935a9ed","name":"Not authorized","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/batch/current/:batch/settle","host":["{{baseUrl}}"],"path":["batch","current",":batch","settle"],"variable":[{"key":"batch"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"},{"id":"83cb2c20-b1cf-47d1-a510-85d04bcae28b","name":"Record Not Found","originalRequest":{"method":"POST","header":[{"description":"The customer profile key.    If not specified it will use the default profile specified by user profile.","key":"profileKey","value":"jGMu3ut8DcaA9n"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":{"raw":"{{baseUrl}}/batch/current/:batch/settle","host":["{{baseUrl}}"],"path":["batch","current",":batch","settle"],"variable":[{"key":"batch"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<number>\",\n  \"message\": \"<string>\",\n  \"details\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"}],"_postman_id":"8180c3ee-1eb2-457d-87fd-2f7b44512bed"}],"id":"7b652d22-9bbb-4072-8f44-df86f69a0581","_postman_id":"7b652d22-9bbb-4072-8f44-df86f69a0581","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}},{"name":"reports","item":[{"name":"report metadata","id":"c20eb2b5-6953-4000-8507-7c8a55c7e985","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/reports/:reportType/metadata","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["reports",":reportType","metadata"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"transaction","key":"reportType"}]}},"response":[],"_postman_id":"c20eb2b5-6953-4000-8507-7c8a55c7e985"},{"name":"all reports","id":"40ccf785-c7b3-4903-b66d-43f288fb0ec8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","type":"text"}],"url":"{{baseUrl}}/reports","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["reports"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"40ccf785-c7b3-4903-b66d-43f288fb0ec8"},{"name":"createReport","event":[{"listen":"test","script":{"id":"5df1b60e-1ddc-4fc3-80ba-2c13010231cb","exec":["if(pm.response.code==201) {","    var reportId = pm.response.json().reportId;","    pm.globals.set(\"reportId\", reportId);","    console.log(reportId)","}"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"cf67dfbb-4ff3-4502-8de1-3c4e63378402","exec":[""],"type":"text/javascript","packages":{}}}],"id":"0d325f70-2bd2-4ed4-83ed-20930d5fa68b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"profileKey","value":"coolco","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"reportName\": \"Transaction Till Dec 12\",\n    \"reportType\": \"Transaction\",\n    \"reportFields\": [\n        \"transactionId\", \n        \"statusFlags\", \n        \"transactionType\", \n        \"cardDetails\"\n        ],\n        \"from\": \"2024-11-01\",\n        \"to\": \"2024-12-12\",\n        \"profileId\": \"coolco\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/report","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["report"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d325f70-2bd2-4ed4-83ed-20930d5fa68b"},{"name":"update report","event":[{"listen":"test","script":{"id":"5df1b60e-1ddc-4fc3-80ba-2c13010231cb","exec":["if(pm.response.code==201) {","    var reportId = pm.response.json().reportId;","    pm.globals.set(\"reportId\", reportId);","    console.log(reportId)","}"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"cf67dfbb-4ff3-4502-8de1-3c4e63378402","exec":[""],"type":"text/javascript","packages":{}}}],"id":"b9b62e0e-409e-4466-bded-a6991480b3f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"profileKey","value":"coolco","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"reportName\": \"Transaction November\",\n    \"reportType\": \"Transaction\",\n    \"reportFields\": [\n        \"transactionId\", \n        \"statusFlags\", \n        \"transactionType\", \n        \"cardDetails\",\n        \"freelyPaymentDetails\"\n        ],\n        \"from\": \"2024-11-01\",\n        \"to\": \"2024-11-30\",\n        \"profileId\": \"coolco\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/report/:reportId","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["report",":reportId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{reportId}}","key":"reportId"}]}},"response":[],"_postman_id":"b9b62e0e-409e-4466-bded-a6991480b3f8"},{"name":"get report","id":"be3a9df6-18a3-4b06-bb42-62ad703aa009","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"profileKey","value":"coolco","type":"text"}],"url":"{{baseUrl}}/report/:reportId","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["report",":reportId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{reportId}}","key":"reportId"}]}},"response":[],"_postman_id":"be3a9df6-18a3-4b06-bb42-62ad703aa009"},{"name":"delete report","id":"75852536-3a02-4822-8490-ed81fdd92701","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"profileKey","value":"coolco","type":"text"}],"url":"{{baseUrl}}/report/:reportId","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"path":["report",":reportId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"76357402-804f-4e0c-9ad0-1c1095c0fb66","type":"any","value":"{{reportId}}","key":"reportId"}]}},"response":[],"_postman_id":"75852536-3a02-4822-8490-ed81fdd92701"},{"name":"stats","id":"3d258e28-d57a-45b9-9d6e-2c8caf4af4ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"3d258e28-d57a-45b9-9d6e-2c8caf4af4ec"}],"id":"02bc537d-307e-4b9c-bc13-8bcf66527e95","_postman_id":"02bc537d-307e-4b9c-bc13-8bcf66527e95","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","id":"ee090ebb-0e96-47a8-9b5c-beddf66c21ec","name":"Public Freely Payment - Public Documentation","type":"collection"}}}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"dfe1e245-fd41-46c2-b3bd-e353f47eb513","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"3effc3ea-f01d-47a6-8336-572fcd3266fa","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://accept.sandbox.freelypayments.com/api","disabled":true},{"key":"profileKey","value":"coolco","type":"string"},{"key":"bearerToken","value":""},{"key":"user","value":"{{normal_auth_user}}","type":"string"},{"key":"password","value":"{{normal_auth_password}}","type":"string"}]}