{"info":{"_postman_id":"bc297ff2-e3db-4da9-9f5e-3eeedfd3a781","name":"RAPID PAY COLLECT DebiCheck API Documentation","description":"<html><head></head><body><h1 id=\"about\">About</h1>\n<p>The RAPID PAY COLLECT Mandates API gives developers the opportunity to manage Debicheck Mandates and Collections using their own software solutions. The Mandates API functions differently to the original RAPID PAY COLLECT API in that it makes use of a RESTful service as opposed to the XML form post structure of the original API.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>Contact RAPID PAY COLLECT and request access to Mandates for a specific user account. Alternatively, RAPID PAY COLLECT can setup a new user account specifically for the purposes of accessing the Mandates API. Please note that the username and password this account uses to access the API can also be used to access the secure online portal.   </p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>The RAPID PAY COLLECT Mandates API makes use of Token Based Authentication, meaning that a preliminary call needs to be made to the /token endpoint in order to generate a bearer token, which will be used in authenticating all subsequent API Calls.</p>\n<h1 id=\"api-url\">API Url</h1>\n<p>The baseUrl variable value for all <strong>TEST</strong> API calls is;</p>\n<ul>\n<li><a href=\"https://api.sandbox.rapidpaycollect.co.za/\">https://api.sandbox.rapidpaycollect.co.za/</a></li>\n</ul>\n<p>The baseUrl variable value for all <strong>LIVE</strong> API calls is;</p>\n<ul>\n<li><a href=\"https://api.rapidpaycollect.co.za/\">https://api.rapidpaycollect.co.za/</a></li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"About","slug":"about"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"API Url","slug":"api-url"}],"owner":"6864947","collectionId":"bc297ff2-e3db-4da9-9f5e-3eeedfd3a781","publishedId":"TzRPj9NX","public":true,"customColor":{"top-bar":"000","right-sidebar":"f8f8f8","highlight":"EC1C24"},"publishDate":"2021-05-06T17:44:07.000Z"},"item":[{"name":"Authentication","item":[{"name":"Get Access Token","event":[{"listen":"test","script":{"id":"9f95173d-ee90-4b7e-be9f-66b40fbc4488","exec":["var data = JSON.parse(responseBody);","pm.globals.set(\"accessToken\", data.access_token);","pm.variables.get(\"accessToken\");"],"type":"text/javascript"}}],"id":"b4a73cbf-45fd-4b50-940e-87c8f797016f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"password","type":"text"},{"key":"userName","value":"","type":"text"},{"key":"password","value":"","type":"text"}]},"url":"https://api.rapidpaycollect.co.za/token","description":"<p>Is used for generating an access token. This access token is used as a bearer token when authenticating subsequent API requests.</p>\n<p>The {{username}} and  passed in the body of your authentication request are the username and password assigned to you by RapidCollect.</p>\n","urlObject":{"path":["token"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"9253c184-777b-42ba-8b7f-70785d41a37c","name":"400 Bad Request - Unsuccessful Get Access Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"password","type":"text"},{"key":"userName","value":"","type":"text"},{"key":"password","value":"","type":"text"}]},"url":"https://api.rapidpaycollect.co.za/token"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"87"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":""},{"key":"X-StackifyID","value":"V2|bd627c18-a94b-4046-a61d-9506fce4c2b9|C61560|CD1"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Powered-By","value":""},{"key":"Date","value":"Fri, 24 May 2019 08:42:36 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"invalid_grant\",\n    \"error_description\": \"The user name or password is incorrect.\"\n}"},{"id":"e5561895-2c33-48b9-a6fd-0b8d48031c55","name":"200 OK - Successful Get Access Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"password","type":"text"},{"key":"userName","value":"YourUserName","type":"text"},{"key":"password","value":"YourPassword","type":"text"}]},"url":"https://api.rapidpaycollect.co.za/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXHRva2Vu?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 08:28:03 GMT"},{"key":"Content-Length","value":"487"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"-zUCyPYZ3UluMqB2GTSBfzG4Vtxz7Zddo9ZyF-7On1TUijtKxGXDfPFuKN_3jWglC2xNxx_KD57jXr6jLiK7bXF1J6v0kGQbiTm0jxbF8jL38i73uFIyLRJLdXFTiN_ZTdBZx71cygRwELr9UD3bIIwaoRjnGUK8tktxWaDc-bqC0E-Kwxrikh5DHegeXCxmJrUAL9PuxfIT719rpE4CmjNgvltg5yrdzTJrrzFGTkNu57ERvSBfbIJFMoJruacL9fm55YI1KxsNUqZ7GASmH_I9AnactA7qOgx7oFgoMtTv-TLpCGxmdLiZSBRoN8LA_hy4K8ygOz_eLwBESyw3r7UUIwx7BeaOWZEqhRTvCldl7ONaRBZJrBhtfUj8qO3vt14IsF43DVdl8ios1ElbSE7-Yg-16thjYyoW1kFt5lE\",\n    \"token_type\": \"bearer\",\n    \"expires_in\": 86399\n}"}],"_postman_id":"b4a73cbf-45fd-4b50-940e-87c8f797016f"}],"id":"0e99b599-979b-4841-b5ee-0e416f934e32","description":"<p>The API makes use of a bearer token in order to authenticate all requests to the API. In order to obtain a token, submit a POST (x-www-form-urlencoded) request to the '/token' authentication end point.</p>\n","event":[{"listen":"prerequest","script":{"id":"5d423bee-3651-4132-a3e2-c1ff9f1a47c2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"240f4dd6-a215-44f6-87f1-62e4f1c68845","type":"text/javascript","exec":[""]}}],"_postman_id":"0e99b599-979b-4841-b5ee-0e416f934e32"},{"name":"Get Mandate Lookup Types","item":[{"name":"Get Initiation Transaction Types","id":"d7d20d66-2f4f-4806-8a3a-ac57f1769be5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/initiation-transaction-types","description":"<p>Returns a list of possible Transaction Types, which can be used when performing an initiation. Transaction Types, refer to the method with which the debtor will authenticate the mandate. </p>\n<ul>\n<li>Initiation Transaction types<ul>\n<li>TT1 - real-time - with cellphone authentication</li>\n<li>TT1 - real-time - without cellphone authentication</li>\n<li>TT1 - delayed authorisation - same day</li>\n<li>TT2 - batch delayed authorisation - 48 hours</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","initiation-transaction-types"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"8e20cff0-572d-4b2c-b067-fa20110fd586","name":"200 OK - Successful Get Initiation Transaction Types","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://api.rapidpaycollect.co.za/mandates/initiation-transaction-types"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGluaXRpYXRpb24tdHJhbnNhY3Rpb24tdHlwZXM=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:09:15 GMT"},{"key":"Content-Length","value":"269"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"TT1 - real-time - with cellphone authentication\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"TT1 - real-time - without cellphone authentication\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"TT1 - delayed authorisation - same day\"\n    },\n    {\n        \"value\": 10,\n        \"name\": \"TT2 - batch delayed authorisation - 48 hours\"\n    }\n]"}],"_postman_id":"d7d20d66-2f4f-4806-8a3a-ac57f1769be5"},{"name":"Get Amendment Transaction Types","id":"0c76f8ab-e2ec-4605-97df-f144b7cb881c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/amendment-transaction-types","description":"<p>Returns a list of possible Transaction Types, which can be used when performing an amendment. Transaction Types, refer to the method with which the debtor will authenticate the mandate. </p>\n<ul>\n<li>Amendment Transaction types<ul>\n<li>TT1 - real-time - with cellphone authentication</li>\n<li>TT1 - real-time - without cellphone authentication</li>\n<li>TT1 - delayed authorisation - same day</li>\n<li>TT2 - batch delayed authorisation - 48 hours</li>\n<li>No re-authentication required - Debtor will be notified</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","amendment-transaction-types"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"0e31f11e-beb8-4022-9a35-2de287102ff6","name":"200 OK - Successful Get Amendment Transaction Types","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://api.rapidpaycollect.co.za/mandates/amendment-transaction-types"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGFtZW5kbWVudC10cmFuc2FjdGlvbi10eXBlcw==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:10:15 GMT"},{"key":"Content-Length","value":"347"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"TT1 - real-time - with cellphone authentication\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"TT1 - real-time - without cellphone authentication\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"TT1 - delayed authorisation - same day\"\n    },\n    {\n        \"value\": 10,\n        \"name\": \"TT2 - batch delayed authorisation - 48 hours\"\n    },\n    {\n        \"value\": 50,\n        \"name\": \"No re-authentication required - Debtor will be notified\"\n    }\n]"}],"_postman_id":"0c76f8ab-e2ec-4605-97df-f144b7cb881c"},{"name":"Get Collection Occurrences","id":"940ac23c-dd74-4f77-8eba-e83268fd3bc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/occurrences","description":"<p>Returns a list of potential collection occurence types.</p>\n<ul>\n<li>Collection Occurences <ul>\n<li>Weekly</li>\n<li>Every two weeks</li>\n<li>Monthly</li>\n<li>Quarterly</li>\n<li>Every six months</li>\n<li>Yearly</li>\n<li>Ad hoc</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","occurrences"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"8ff97685-e4ef-4588-8879-96ea8ce75850","name":"200 OK - Successful Get Collection Occurences","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/occurrences?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","occurrences"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXG9jY3VycmVuY2Vz?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:10:33 GMT"},{"key":"Content-Length","value":"62"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"Once-off\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"Recurring\"\n    }\n]"}],"_postman_id":"940ac23c-dd74-4f77-8eba-e83268fd3bc0"},{"name":"Get Amendment Reasons","id":"892c4d4d-27a8-4b9b-8683-d9386340f696","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/amendment-reasons","description":"<p>Returns a list of potential amendment reasons, which can be assigned when amending a mandate.</p>\n<ul>\n<li>Amendment Reasons <ul>\n<li>Request by Customer</li>\n<li>Request by Initiating Party</li>\n<li>Unsuspend with Changes</li>\n<li>Unsuspend with No Changes</li>\n<li>No Reason Specified</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","amendment-reasons"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"c9f16ae8-5c59-46b7-9abb-ba8b5f1e10a5","name":"200 OK - Successful Get Amendment Reasons","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://api.rapidpaycollect.co.za/mandates/amendment-reasons"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGFtZW5kbWVudC1yZWFzb25z?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:10:47 GMT"},{"key":"Content-Length","value":"223"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"Request by Customer\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"Request by Initiating Party\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"Unsuspend with Changes\"\n    },\n    {\n        \"value\": 4,\n        \"name\": \"Unsuspend with No Changes\"\n    },\n    {\n        \"value\": 5,\n        \"name\": \"No Reason Specified\"\n    }\n]"}],"_postman_id":"892c4d4d-27a8-4b9b-8683-d9386340f696"},{"name":"Get Available Collection Days","id":"7c07b750-4bbe-4f5e-9a7b-2efdfe3aabf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/collection-days","description":"<p>Returns a list of available collection days, which can be assigned when posting a mandate initiation or amendment.</p>\n<ul>\n<li>Available Collection Days<ul>\n<li>1 to 31</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","collection-days"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"c731890e-572d-4b43-a769-0eaf52618867","name":"200 OK - Successful Get Available Collection Days","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/collection-days?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","collection-days"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGNvbGxlY3Rpb24tZGF5cw==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:11:04 GMT"},{"key":"Content-Length","value":"696"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": 1\n    },\n    {\n        \"value\": 2,\n        \"name\": 2\n    },\n    {\n        \"value\": 3,\n        \"name\": 3\n    },\n    {\n        \"value\": 4,\n        \"name\": 4\n    },\n    {\n        \"value\": 5,\n        \"name\": 5\n    },\n    {\n        \"value\": 6,\n        \"name\": 6\n    },\n    {\n        \"value\": 7,\n        \"name\": 7\n    },\n    {\n        \"value\": 8,\n        \"name\": 8\n    },\n    {\n        \"value\": 9,\n        \"name\": 9\n    },\n    {\n        \"value\": 10,\n        \"name\": 10\n    },\n    {\n        \"value\": 11,\n        \"name\": 11\n    },\n    {\n        \"value\": 12,\n        \"name\": 12\n    },\n    {\n        \"value\": 13,\n        \"name\": 13\n    },\n    {\n        \"value\": 14,\n        \"name\": 14\n    },\n    {\n        \"value\": 15,\n        \"name\": 15\n    },\n    {\n        \"value\": 16,\n        \"name\": 16\n    },\n    {\n        \"value\": 17,\n        \"name\": 17\n    },\n    {\n        \"value\": 18,\n        \"name\": 18\n    },\n    {\n        \"value\": 19,\n        \"name\": 19\n    },\n    {\n        \"value\": 20,\n        \"name\": 20\n    },\n    {\n        \"value\": 21,\n        \"name\": 21\n    },\n    {\n        \"value\": 22,\n        \"name\": 22\n    },\n    {\n        \"value\": 23,\n        \"name\": 23\n    },\n    {\n        \"value\": 24,\n        \"name\": 24\n    },\n    {\n        \"value\": 25,\n        \"name\": 25\n    },\n    {\n        \"value\": 26,\n        \"name\": 26\n    },\n    {\n        \"value\": 27,\n        \"name\": 27\n    },\n    {\n        \"value\": 28,\n        \"name\": 28\n    },\n    {\n        \"value\": 29,\n        \"name\": 29\n    },\n    {\n        \"value\": 30,\n        \"name\": 30\n    },\n    {\n        \"value\": 31,\n        \"name\": 31\n    }\n]"}],"_postman_id":"7c07b750-4bbe-4f5e-9a7b-2efdfe3aabf0"},{"name":"Get Adjustment Categories","id":"3035f322-8ee9-44c5-9142-6680a9ba8965","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/adjustment-categories","description":"<p>Returns a list of possible adjustment categories for making collection amount adjustments on mandates. </p>\n<ul>\n<li>Adjustment Categories <ul>\n<li>Never</li>\n<li>Quarterly</li>\n<li>Biannually</li>\n<li>Annually</li>\n<li>Repo</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","adjustment-categories"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"462908b3-7d72-4ce3-824c-c9f8353c34de","name":"200 OK - Successful Get Adjustment Categories","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://api.rapidpaycollect.co.za/mandates/adjustment-categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGFkanVzdG1lbnQtY2F0ZWdvcmllcw==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:11:22 GMT"},{"key":"Content-Length","value":"147"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"Never\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"Quarterly\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"Biannually\"\n    },\n    {\n        \"value\": 4,\n        \"name\": \"Annually\"\n    },\n    {\n        \"value\": 5,\n        \"name\": \"Repo\"\n    }\n]"}],"_postman_id":"3035f322-8ee9-44c5-9142-6680a9ba8965"},{"name":"Get Bank Account Types","id":"d34146fc-d032-4311-baf6-ecfb786ddc9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/account-types","description":"<p>Returns a list of available bank account types, which can be assigned when generating a mandate.</p>\n<ul>\n<li>Bank Account Types<ul>\n<li>Current/Cheque</li>\n<li>Savings</li>\n<li>Transmission</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","account-types"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"cb1c5619-f0bb-45f9-a4ce-62ce71c30ee2","name":"200 OK - Successful Get Bank Account Types","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/account-types?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","account-types"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGFjY291bnQtdHlwZXM=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:11:40 GMT"},{"key":"Content-Length","value":"129"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 0,\n        \"name\": \"Unknown\"\n    },\n    {\n        \"value\": 1,\n        \"name\": \"Current/Cheque\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"Savings\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"Transmission\"\n    }\n]"}],"_postman_id":"d34146fc-d032-4311-baf6-ecfb786ddc9a"},{"name":"Get Entry Classes","id":"42bf5d22-a10e-46cb-9f68-0cad2ba4ac34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/entry-classes","description":"<p>Returns a list of collection entry classes which can be assigned to a mandate.</p>\n<ul>\n<li>Entry Classes<ul>\n<li>Insurance Premium</li>\n<li>Pension Fund Contribution</li>\n<li>Medical Aid Fund Contribution</li>\n<li>Unit Trust Purchase</li>\n<li>Charitable Or Religious Contributions</li>\n<li>Hire Purchase Repayment</li>\n<li>Account Repayment</li>\n<li>Loan Repayment (Excluding Mortgage)</li>\n<li>Rental Lease (Excluding Property)</li>\n<li>Service Charge</li>\n<li>Service Charge - Variable Amounts</li>\n<li>Value Added Tax</li>\n<li>Rent For Property</li>\n<li>Bond Repayment</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","entry-classes"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"8754bd91-7476-4c2f-a6d1-52a5d354989c","name":"200 OK - Successful Get Entry Classes","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/entry-classes?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","entry-classes"],"query":[{"key":"Authorization","value":"Bearer {{token}}","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGVudHJ5LWNsYXNzZXM=?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:12:12 GMT"},{"key":"Content-Length","value":"642"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"Insurance Premium\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"Pension Fund Contribution\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"Medical Aid Fund Contribution\"\n    },\n    {\n        \"value\": 4,\n        \"name\": \"Unit Trust Purchase\"\n    },\n    {\n        \"value\": 5,\n        \"name\": \"Charitable Or Religious Contributions\"\n    },\n    {\n        \"value\": 6,\n        \"name\": \"Hire Purchase Repayment\"\n    },\n    {\n        \"value\": 7,\n        \"name\": \"Account Repayment\"\n    },\n    {\n        \"value\": 8,\n        \"name\": \"Loan Repayment (Excluding Mortgage)\"\n    },\n    {\n        \"value\": 9,\n        \"name\": \"Rental Lease (Excluding Property)\"\n    },\n    {\n        \"value\": 10,\n        \"name\": \"Service Charge\"\n    },\n    {\n        \"value\": 11,\n        \"name\": \"Service Charge - Variable Amounts\"\n    },\n    {\n        \"value\": 12,\n        \"name\": \"Value Added Tax\"\n    },\n    {\n        \"value\": 13,\n        \"name\": \"Rent For Property\"\n    },\n    {\n        \"value\": 14,\n        \"name\": \"Bond Repayment\"\n    }\n]"}],"_postman_id":"42bf5d22-a10e-46cb-9f68-0cad2ba4ac34"},{"name":"Get Cancellation Reasons","id":"6de14f58-940d-4eba-8cb1-130a240efb11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/cancellation-reasons","description":"<p>Returns a list of cancellation reasons which need to be assigned when submitting a mandate cancellation.</p>\n<ul>\n<li>Cancellation reasons<ul>\n<li>Early Settlement</li>\n<li>Contract Expired</li>\n<li>Fraud</li>\n<li>Requested By Creditor</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","cancellation-reasons"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"c431e3a1-caa9-43da-832e-ee2372532110","name":"200 OK - Successful Get Cancellation Reasons","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://api.rapidpaycollect.co.za/mandates/cancellation-reasons"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGNhbmNlbGxhdGlvbi1yZWFzb25z?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:12:45 GMT"},{"key":"Content-Length","value":"147"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"Early Settlement\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"Contract Expired\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"Fraud\"\n    },\n    {\n        \"value\": 4,\n        \"name\": \"Requested By Creditor\"\n    }\n]"}],"_postman_id":"6de14f58-940d-4eba-8cb1-130a240efb11"},{"name":"Get Statuses","id":"ad132c99-1b74-483b-8e1c-0f28c0240e73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/statuses","description":"<p>Returns a list of possible mandate statuses.</p>\n<ul>\n<li>Mandate Statuses<ul>\n<li>Saved</li>\n<li>Pending authentication</li>\n<li>Accepted</li>\n<li>Rejected</li>\n<li>No response</li>\n<li>Internal error</li>\n<li>System error</li>\n<li>Queued</li>\n<li>Cancelled</li>\n<li>Replaced with new mandate</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","statuses"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"f1494d2a-d112-4dee-a156-6255f8052cc2","name":"200 OK - Successful Get Statuses","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/statuses?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","statuses"],"query":[{"key":"Authorization","value":"Bearer {{token}}","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXHN0YXR1c2Vz?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:12:55 GMT"},{"key":"Content-Length","value":"342"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"Saved\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"Pending authentication\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"Accepted\"\n    },\n    {\n        \"value\": 4,\n        \"name\": \"Rejected\"\n    },\n    {\n        \"value\": 5,\n        \"name\": \"No response\"\n    },\n    {\n        \"value\": 6,\n        \"name\": \"Internal error\"\n    },\n    {\n        \"value\": 7,\n        \"name\": \"System error\"\n    },\n    {\n        \"value\": 8,\n        \"name\": \"Queued\"\n    },\n    {\n        \"value\": 9,\n        \"name\": \"Cancelled\"\n    },\n    {\n        \"value\": 50,\n        \"name\": \"Replaced with new mandate\"\n    }\n]"}],"_postman_id":"ad132c99-1b74-483b-8e1c-0f28c0240e73"},{"name":"Get Debit Value Types","id":"3ddccdb0-73c8-4f69-b6f8-2dd35667a8c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/debit-value-types","description":"<p>Returns a list of debit value types.</p>\n<ul>\n<li>Debit Value Types<ul>\n<li>Fixed</li>\n<li>Variable</li>\n<li>Usage Based</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","debit-value-types"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"4488ea14-06d1-4a6e-9529-70bf279f8146","name":"200 OK - Successful Get Debit Value Types","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/debit-value-types?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","debit-value-types"],"query":[{"key":"Authorization","value":null,"disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGRlYml0LXZhbHVlLXR5cGVz?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:13:08 GMT"},{"key":"Content-Length","value":"91"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"Fixed\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"Variable\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"Usage Based\"\n    }\n]"}],"_postman_id":"3ddccdb0-73c8-4f69-b6f8-2dd35667a8c9"},{"name":"Get Collection Frequencies","id":"c3c48eb6-0113-4bca-8d9b-2643003cbd1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/frequencies","description":"<p>Returns a list of collection frequency options which can be assigned to a mandate.</p>\n<ul>\n<li>Collection Frequencies<ul>\n<li>Weekly</li>\n<li>Every two weeks</li>\n<li>Monthly</li>\n<li>Quarterly</li>\n<li>Every six months</li>\n<li>Yearly</li>\n<li>Ad hoc</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["mandates","frequencies"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"dd0f9ebf-5b86-45d2-b15a-a6ee29aab81a","name":"200 OK - Successful Get Collection Frequencies","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/frequencies?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","frequencies"],"query":[{"key":"Authorization","value":null,"disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGZyZXF1ZW5jaWVz?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 09:13:18 GMT"},{"key":"Content-Length","value":"220"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"value\": 1,\n        \"name\": \"Weekly\"\n    },\n    {\n        \"value\": 2,\n        \"name\": \"Every two weeks\"\n    },\n    {\n        \"value\": 3,\n        \"name\": \"Monthly\"\n    },\n    {\n        \"value\": 4,\n        \"name\": \"Quarterly\"\n    },\n    {\n        \"value\": 5,\n        \"name\": \"Every six months\"\n    },\n    {\n        \"value\": 6,\n        \"name\": \"Yearly\"\n    },\n    {\n        \"value\": 7,\n        \"name\": \"Ad hoc\"\n    }\n]"}],"_postman_id":"c3c48eb6-0113-4bca-8d9b-2643003cbd1e"}],"id":"ff604976-931d-4e29-a955-36359f6078c5","description":"<h1 id=\"mandate-lookup-types\">Mandate Lookup Types</h1>\n<p>The Mandates API, makes use of multiple lookup types for defining mandate related type values. </p>\n<p>The API call for each of these types will return all available values along with their associated IDs. These Ids can then be assigned to their associated fields when performing subsequent API calls.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"a20299e4-754d-4c01-804a-f2b559b82a89","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"db224c0d-2f90-4d1e-9a54-006205171e2b","type":"text/javascript","exec":[""]}}],"_postman_id":"ff604976-931d-4e29-a955-36359f6078c5"},{"name":"Read Mandate Data","item":[{"name":"Search Mandates","id":"608908b0-01c1-4720-822d-fc096f186f92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates?clients&statuses=&types=&collectionFrequencies=&debtorIdNumber=&debtorAccountNumber=&createdStartDate&createdEndDate&debtorName&mandateReferenceNumber","description":"<p>This method is used for searching mandates which have already been submitted. Result sets are restricted to user/client access permissions.</p>\n","urlObject":{"path":["mandates"],"host":["https://api.rapidpaycollect.co.za"],"query":[{"description":{"content":"<p>A comma separated list of client codes. Should you have access to more than one client, and you want to restrict the result set to specifiic clients, you can indicate which clients' mandates you want returned here.</p>\n","type":"text/plain"},"key":"clients","value":null},{"description":{"content":"<p>A comma seperated list of mandate status Ids</p>\n","type":"text/plain"},"key":"statuses","value":""},{"description":{"content":"<p>A comma seperated list of debit value type Ids</p>\n","type":"text/plain"},"key":"types","value":""},{"description":{"content":"<p>A comma seperated list of collection frequency Ids</p>\n","type":"text/plain"},"key":"collectionFrequencies","value":""},{"description":{"content":"<p>The debtor Id number</p>\n","type":"text/plain"},"key":"debtorIdNumber","value":""},{"description":{"content":"<p>The debtor bank account number</p>\n","type":"text/plain"},"key":"debtorAccountNumber","value":""},{"description":{"content":"<p>The start date of  the period in which mandates being searched for  were created</p>\n","type":"text/plain"},"key":"createdStartDate","value":null},{"description":{"content":"<p>The end date of  the period in which mandates being searched for  were created</p>\n","type":"text/plain"},"key":"createdEndDate","value":null},{"description":{"content":"<p>The debtor's first, last or full name</p>\n","type":"text/plain"},"key":"debtorName","value":null},{"description":{"content":"<p>The mandate bank reference number of a specific mandate. </p>\n","type":"text/plain"},"key":"mandateReferenceNumber","value":null}],"variable":[]}},"response":[{"id":"d968f11e-5791-47f9-82a3-c107d24febed","name":"200 OK - Successful Search Mandates","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":{"raw":"https://api.rapidpaycollect.co.za/mandates?clients={{clientCode}}&statuses=1&types=2&collectionFrequencies=1&debtorIdNumber=&debtorAccountNumber=&createdStartDate=&createdEndDate=","host":["https://api.rapidpaycollect.co.za"],"path":["mandates"],"query":[{"key":"clients","value":"{{clientCode}}"},{"key":"statuses","value":"1"},{"key":"types","value":"2"},{"key":"collectionFrequencies","value":"1"},{"key":"debtorIdNumber","value":""},{"key":"debtorAccountNumber","value":""},{"key":"createdStartDate","value":""},{"key":"createdEndDate","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVz?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 10:24:05 GMT"},{"key":"Content-Length","value":"122846"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"mandateId\": \"050199071147170092233010084253052176214232190081\",\n            \"mandateReference\": \"\",\n            \"customerCode\": \"TEST456\",\n            \"contractReference\": \"MandateTest2\",\n            \"authenticationDate\": null,\n            \"initiationDate\": \"2019-05-23T13:00:20.617\",\n            \"creationDate\": \"2019-05-23T13:00:20.617\",\n            \"releaseDate\": null,\n            \"entryClass\": \"Value Added Tax\",\n            \"entryClassId\": 12,\n            \"status\": \"Pending authentication\",\n            \"statusId\": 2,\n            \"type\": \"Fixed\",\n            \"typeId\": 1,\n            \"transactionType\": \"TT1 - real-time - without cellphone authentication\",\n            \"transactionTypeId\": 2,\n            \"cancellationReason\": null,\n            \"clientName\": \"Test Client\",\n            \"replacedMandateId\": null,\n            \"amended\": false,\n            \"debtor\": {\n                \"name\": \"Joe Soap\",\n                \"accountNumber\": \"62421525489\",\n                \"branchCode\": \"250655\",\n                \"accountType\": null,\n                \"accountTypeId\": 0,\n                \"emailAddress\": null,\n                \"contactNumberInternationalCode\": null,\n                \"contactNumber\": null,\n                \"identificationNumber\": null,\n                \"passportNumber\": null\n            }\n        },\n        {\n            \"mandateId\": \"189084118181229192100066058070117065222177030069\",\n            \"mandateReference\": \"12341234132413412421\",\n            \"customerCode\": \"TEST123\",\n            \"contractReference\": \"123Insurance\",\n            \"authenticationDate\": null,\n            \"initiationDate\": \"2019-05-23T12:45:51.317\",\n            \"creationDate\": \"2019-05-23T12:45:51.317\",\n            \"releaseDate\": null,\n            \"entryClass\": \"Insurance Premium\",\n            \"entryClassId\": 1,\n            \"status\": \"Accepted\",\n            \"statusId\": 3,\n            \"type\": \"Variable\",\n            \"typeId\": 2,\n            \"transactionType\": \"TT1 - real-time - with cellphone authentication\",\n            \"transactionTypeId\": 1,\n            \"cancellationReason\": null,\n            \"clientName\": \"Test Client\",\n            \"replacedMandateId\": null,\n            \"amended\": false,\n            \"debtor\": {\n                \"name\": \"Joe Bloggs\",\n                \"accountNumber\": \"62421256487\",\n                \"branchCode\": \"250655\",\n                \"accountType\": null,\n                \"accountTypeId\": 0,\n                \"emailAddress\": null,\n                \"contactNumberInternationalCode\": null,\n                \"contactNumber\": null,\n                \"identificationNumber\": null,\n                \"passportNumber\": null\n            }\n        }\n    ],\n    \"pageData\": {\n        \"pageCount\": 1,\n        \"pageNumber\": 0,\n        \"pageSize\": 20,\n        \"totalResults\": 2,\n        \"showPreviousPage\": false,\n        \"showNextPage\": false,\n        \"previousPageNumber\": null,\n        \"nextPageNumber\": null,\n        \"pages\": [\n            {\n                \"pageNumber\": \"1\",\n                \"cssClass\": \"\",\n                \"pageUrl\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"608908b0-01c1-4720-822d-fc096f186f92"},{"name":"Get Mandate","event":[{"listen":"test","script":{"id":"c1ec97ce-60a4-47fd-9a12-0c5ca45de967","exec":["var data = JSON.parse(responseBody);","pm.globals.set(\"mandateReference\", data.mandateReference);","pm.variables.get(\"mandateReference\");",""],"type":"text/javascript"}}],"id":"405173b7-e4a1-48dc-b52f-64f153f58c89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/{{mandateId}}","description":"<p>This method allows integrators to fetch a single mandate using the mandate ID supplied in the search mandates request. </p>\n","urlObject":{"path":["mandates","{{mandateId}}"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"d46b1141-6ac1-4445-b113-aa49f686b9a6","name":"200 OK - Successful Get Mandate","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://api.rapidpaycollect.co.za/mandates/{{mandateId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXDIyNjA2NzA0MTI0MjE1NDE1NTEyMjE0MjE5MjA4NjI0NzAxMzA2NTA1NTE4NjA5Ng==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 10:29:47 GMT"},{"key":"Content-Length","value":"1312"}],"cookie":[],"responseTime":null,"body":"{\n    \"mandateId\": \"226067041242154155122142192086247013065055186096\",\n    \"mandateReference\": \"100000000378\",\n    \"customerCode\": \"SWM123\",\n    \"contractReference\": \"SWM123\",\n    \"authorisationDate\": null,\n    \"initiationDate\": null,\n    \"creationDate\": \"2019-04-12T11:35:56.78\",\n    \"releaseDate\": null,\n    \"entryClass\": \"Bond Repayment\",\n    \"entryClassId\": 14,\n    \"status\": \"Pending authentication\",\n    \"statusId\": 2,\n    \"replacedMandateId\": null,\n    \"amended\": true,\n    \"cancelled\": true,\n    \"canBeDeleted\": false,\n    \"canBeAmendedOrCancelled\": false,\n    \"type\": \"Fixed\",\n    \"typeId\": 1,\n    \"transactionType\": \"Unknown\",\n    \"transactionTypeId\": 0,\n    \"cancellationReason\": null,\n    \"debtor\": {\n        \"name\": \"Joe Soap\",\n        \"accountNumber\": \"12345678951\",\n        \"branchCode\": \"250655\",\n        \"accountType\": \"CurrentCheque\",\n        \"accountTypeId\": 1,\n        \"emailAddress\": \"joeemails@1234.co.za\",\n        \"contactNumberInternationalCode\": \"+27\",\n        \"contactNumber\": \"841234567\",\n        \"identificationNumber\": \"7502125054678\",\n        \"passportNumber\": null\n    },\n    \"collection\": {\n        \"occurrence\": \"OnceOff\",\n        \"occurrenceId\": 1,\n        \"collectionAmount\": 0.15,\n        \"maximumCollectionAmount\": 0.15,\n        \"firstCollectionAmount\": null,\n        \"adjustmentRate\": null,\n        \"frequency\": \"Monthly\",\n        \"frequencyId\": 3,\n        \"trackingAllowed\": true,\n        \"dateAdjustmentAllowed\": false,\n        \"collectionDay\": 27,\n        \"adjustmentCategory\": \"Never\",\n        \"adjustmentCategoryId\": 1,\n        \"adjustmentAmount\": null\n    },\n    \"client\": {\n        \"clientCode\": \"PSZer001\",\n        \"name\": \"Zero Zero One\"\n    },\n    \"batch\": {\n        \"batchNumber\": \"32\",\n        \"description\": \"\"\n    }\n}"}],"_postman_id":"405173b7-e4a1-48dc-b52f-64f153f58c89"},{"name":"Get Mandate History","id":"4b93fec5-8412-4978-80b6-5b4ed8c19277","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/mandates/history/{{mandateId}}","description":"<p>This method allows integrators to return the change history related to a mandate.</p>\n","urlObject":{"path":["mandates","history","{{mandateId}}"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"fe4544a4-4306-4c78-9db7-d9c222e4cd9e","name":"200 OK - Successful Get Mandate History","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://api.rapidpaycollect.co.za/mandates/history/{{mandateId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGhpc3RvcnlcMTAzMTUzMTU4MDQ3MjI2MjQzMTQyMjQyMDE2MjE1MDU4MTc4MDI5MDM4MjE4MTUx?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 29 May 2019 07:39:18 GMT"},{"key":"Content-Length","value":"1115"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"mandateId\": \"103153158047226243142242016215058178029038218151\",\n            \"timestamp\": \"2019-05-28T15:26:49.153\",\n            \"message\": \"Mandate Cancellation Saved\",\n            \"replacementMandateId\": \"211049116222107000163017184042037222192021169110\",\n            \"hasAmendment\": false\n        },\n        {\n            \"mandateId\": \"103153158047226243142242016215058178029038218151\",\n            \"timestamp\": \"2019-05-28T15:25:17.947\",\n            \"message\": \"Mandate Amended\",\n            \"replacementMandateId\": \"104024131053121104083002187014219131032126172146\",\n            \"hasAmendment\": true\n        },\n        {\n            \"mandateId\": \"103153158047226243142242016215058178029038218151\",\n            \"timestamp\": \"2019-05-28T15:24:36.82\",\n            \"message\": \"Mandate Pending authentication\",\n            \"replacementMandateId\": \"211049116222107000163017184042037222192021169110\",\n            \"hasAmendment\": false\n        },\n        {\n            \"mandateId\": \"103153158047226243142242016215058178029038218151\",\n            \"timestamp\": \"2019-05-28T15:24:36.8\",\n            \"message\": \"Mandate Saved\",\n            \"replacementMandateId\": \"211049116222107000163017184042037222192021169110\",\n            \"hasAmendment\": false\n        }\n    ],\n    \"pageData\": {\n        \"pageCount\": 1,\n        \"pageNumber\": 1,\n        \"pageSize\": 20,\n        \"totalResults\": 4,\n        \"showPreviousPage\": false,\n        \"showNextPage\": false,\n        \"previousPageNumber\": null,\n        \"nextPageNumber\": null,\n        \"pages\": []\n    }\n}"}],"_postman_id":"4b93fec5-8412-4978-80b6-5b4ed8c19277"}],"id":"0a085df3-3d31-4ed6-a6f7-ae80eb2c19c1","_postman_id":"0a085df3-3d31-4ed6-a6f7-ae80eb2c19c1","description":""},{"name":"Save/Update/Delete Mandates","item":[{"name":"Initiate Mandate","event":[{"listen":"test","script":{"id":"67091dbc-589d-4a0c-8631-00c9d7fb180f","exec":["var data = JSON.parse(responseBody);","pm.globals.set(\"mandateId\", data.mandateId);","pm.variables.get(\"mandateId\");",""],"type":"text/javascript"}}],"id":"499f7e4d-04e9-40cc-bde5-730f9177a88e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"10\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"1\",\n  \"releaseDate\": \"\",\n  \"callbackUrl\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"0.10\",\n    \"maximumCollectionAmount\": \"0.10\",\n    \"firstCollectionAmount\": \"\",\n    \"FirstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/initiate","description":"<p>This method is used for initiating a new mandate.</p>\n","urlObject":{"path":["mandates","initiate"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"671950a7-9666-485f-96c0-3cf141db28fd","name":"400 Bad Request - Unsuccessful (CDV Error) Initiate Mandate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"12\",\n  \"releaseDate\": \"\",\n  \"callbackUrl\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/initiate?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","initiate"],"query":[{"key":"","value":null},{"key":"returnUrl","value":"%252fmandates%252f","disabled":true}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The request is invalid.\",\n    \"errors\": {\n        \"debtor.accountNumber\": [\n            \"Account number is not valid for First National Bank\"\n        ]\n    }\n}"},{"id":"8b669b2d-654a-4544-b706-5daa1d3fe111","name":"200 OK - Successful Initiate Mandate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"1\",\n  \"releaseDate\": \"\",\n  \"callbackUrl\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/initiate?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","initiate"],"query":[{"key":"","value":null},{"key":"returnUrl","value":"%252fmandates%252f","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGluaXRpYXRl?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 10:32:24 GMT"},{"key":"Content-Length","value":"209"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestReference\": \"b6b87e1c-0ea9-4df9-b1e8-257c1beccd55\",\n    \"mandateReference\": \"\",\n    \"mandateId\": \"004151246032017019205100005030159132020000186049\",\n    \"statusId\": 10,\n    \"status\": \"Success\",\n    \"message\": \"Success\",\n    \"errors\": []\n}"},{"id":"ced2c23c-cd19-44ef-801d-776d317325ab","name":"400 Bad Request - Unsuccessful Initiate Mandate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"12\",\n  \"releaseDate\": \"\",\n  \"callbackUrl\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/initiate?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","initiate"],"query":[{"key":"","value":null},{"key":"returnUrl","value":"%252fmandates%252f","disabled":true}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The request is invalid.\",\n    \"errors\": {\n        \"contractReference\": [\n            \"Contract Reference cannot be longer than 14 characters\"\n        ]\n    }\n}"}],"_postman_id":"499f7e4d-04e9-40cc-bde5-730f9177a88e"},{"name":"Amend Mandate","event":[{"listen":"test","script":{"id":"6cc12338-5892-4b5f-93fd-395da19c1c96","exec":[""],"type":"text/javascript"}}],"id":"4fda05bf-82fb-4787-8860-a43617d0f674","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"mandateId\": \"{{mandateId}}\",\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandateReference\": \"{{mandateReference}}\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"transactionType\": \"50\",\n  \"amendmentReasonId\": \"1\",\n  \"callbackUrl\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"collectionDay\": \"1\",\n    \"collectionAmount\": \"0.16\",\n    \"maximumCollectionAmount\": \"0.16\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"1\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/amend","description":"<p>This method is used for submitting a mandate amendment. Most mandate changes will need to be reauthenticated by the debtor in question. </p>\n<p>Should the mandate being sent through for amendment already have an amendment pending, you will receve an Internal Server Error in response. </p>\n","urlObject":{"path":["mandates","amend"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"c1559cca-ee7d-4e72-bdf7-5c6d26ca77e1","name":"200 OK - Successful Amend Mandate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"mandateId\": \"{{mandateId}}\",\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandateReference\": \"{{mandateReference}}\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"transactionType\": \"50\",\n  \"amendmentReasonId\": \"1\",\n  \"callbackUrl\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"collectionDay\": \"1\",\n    \"collectionAmount\": \"0.16\",\n    \"maximumCollectionAmount\": \"0.16\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"1\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/amend"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGFtZW5k?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Tue, 28 May 2019 12:44:32 GMT"},{"key":"Content-Length","value":"216"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestReference\": \"a3e559ef-4f73-4f8d-bc8d-442cdff98a06\",\n    \"mandateId\": \"077213007242040028031170032023241142168202000105\",\n    \"mandateReference\": \"\",\n    \"statusId\": 30,\n    \"status\": \"DebtorNotified\",\n    \"message\": \"Success\",\n    \"errors\": []\n}"},{"id":"f0b379d0-9711-4db5-86c8-99573d2daeab","name":"500 Internal Server Error - Unsuccessful Amend Mandate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"mandateId\": \"{{mandateId}}\",\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandateReference\": \"{{mandateReference}}\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"transactionType\": \"50\",\n  \"amendmentReasonId\": \"1\",\n  \"callbackUrl\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"collectionDay\": \"1\",\n    \"collectionAmount\": \"0.16\",\n    \"maximumCollectionAmount\": \"0.16\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"1\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/amend"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGFtZW5k?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Tue, 28 May 2019 13:20:57 GMT"},{"key":"Content-Length","value":"618"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"An error has occurred.\",\n    \"exceptionMessage\": \"Mandate already has amendment pending.\",\n    \"exceptionType\": \"System.InvalidOperationException\",\n    \"stackTrace\": \"   at PaySoft.Api.Core.Services.MandateService.AmendMandate(AmendMandateModel mandate) in C:\\\\Work\\\\Projects\\\\Paysoft Front Office\\\\Code\\\\Paysoft\\\\Secure\\\\PaySoft.Api.Core\\\\Services\\\\MandateService.cs:line 480\\r\\n   at PaySoft.Api.Core.Controllers.Public.MandatesController.Amend(MandateAmendRequestViewModel mandate) in C:\\\\Work\\\\Projects\\\\Paysoft Front Office\\\\Code\\\\Paysoft\\\\Secure\\\\PaySoft.Api.Core\\\\Controllers\\\\Public\\\\MandatesController.cs:line 308\"\n}"}],"_postman_id":"4fda05bf-82fb-4787-8860-a43617d0f674"},{"name":"Cancel Mandate","id":"983f6e23-41e8-4131-be90-4208e9cc3b48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"id\":\"{{mandateId}}\",\n\t\"cancellationReasonId\":\"1\"\n}\n\n "},"url":"https://api.rapidpaycollect.co.za/mandates/cancel","description":"<p>This method is used for cancelling a mandate. Make certain to include a cancellation reason when submitting a mandate cancellation. </p>\n","urlObject":{"path":["mandates","cancel"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"1fde6532-adb9-418e-83c3-c1041069a508","name":"200 OK - Successful Cancel Mandate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"id\":\"{{mandateId}}\",\n\t\"cancellationReasonId\":\"1\"\n}\n\n "},"url":"https://api.rapidpaycollect.co.za/mandates/cancel"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGNhbmNlbA==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Tue, 28 May 2019 12:47:59 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"983f6e23-41e8-4131-be90-4208e9cc3b48"},{"name":"Import Mandates Batch","id":"daa5bb2e-0bde-410f-afd8-9f07281a9486","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandates\": [\n    {\n      \"status\": \"1\",\n      \"customerCode\": \"PSTEST12\",\n      \"contractReference\": \"Payment\",\n      \"type\": \"1\",\n      \"entryClass\": \"14\",\n      \"releaseDate\": \"6/29/19\",\n      \"collectionDay\": \"30\",\n      \"collectionFrequency\": \"3\",\n      \"collectionInstalmentAmount\": \"0.15\",\n      \"collectionInstalmentOccurrence\": \"1\",\n      \"collectionMaxAmount\": \"0.15\",\n      \"collectionAdjustmentCategory\": \"1\",\n      \"collectionCanTrack\": \"1\",\n      \"debtorName\": \"Joe Bloggs\",\n      \"debtorIdNumber\": \"4712245149011\",\n      \"debtorContactNumberInternationalCode\": \"+27\",\n      \"debtorContactNumber\": \"0721234657\",\n      \"debtorEmailAddress\": \"test@test.co.za\",\n      \"debtorAccountNumber\": \"98765432145\",\n      \"debtorBranchCode\": \"198765\",\n      \"debtorAccountType\": \"2\",\n      \"isMigratedNaedo\": 0\n    },\n    {\n      \"status\": \"1\",\n      \"customerCode\": \"PSTEST123\",\n      \"contractReference\": \"Insurance\",\n      \"type\": \"1\",\n      \"entryClass\": \"14\",\n      \"releaseDate\": \"6/29/19\",\n      \"collectionDay\": \"30\",\n      \"collectionFrequency\": \"3\",\n      \"collectionInstalmentAmount\": \"0.15\",\n      \"collectionInstalmentOccurrence\": \"1\",\n      \"collectionMaxAmount\": \"0.15\",\n      \"collectionAdjustmentCategory\": \"1\",\n      \"collectionCanTrack\": \"1\",\n      \"debtorName\": \"Joe Soap\",\n      \"debtorIdNumber\": \"4712245149011\",\n      \"debtorContactNumberInternationalCode\": \"+27\",\n      \"debtorContactNumber\": \"0841234567\",\n      \"debtorEmailAddress\": \"test@test\",\n      \"debtorAccountNumber\": \"1234567894\",\n      \"debtorBranchCode\": \"198765\",\n      \"debtorAccountType\": \"1\",\n      \"isMigratedNaedo\": 0\n    }\n  ]\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/import","description":"<p>Allows integrators to import a batch of mutliple mandates.</p>\n","urlObject":{"path":["mandates","import"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"711bd046-5dad-4d82-8825-52b20e004232","name":"200 OK - With Errors Import Mandates Batch","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandates\": [\n    {\n      \"status\": \"1\",\n      \"customerCode\": \"PSTEST12\",\n      \"contractReference\": \"Payment\",\n      \"type\": \"1\",\n      \"entryClass\": \"14\",\n      \"releaseDate\": \"4/29/19\",\n      \"collectionDay\": \"30\",\n      \"collectionFrequency\": \"3\",\n      \"collectionInstalmentAmount\": \"0.15\",\n      \"collectionInstalmentOccurrence\": \"1\",\n      \"collectionMaxAmount\": \"0.15\",\n      \"collectionAdjustmentCategory\": \"1\",\n      \"collectionCanTrack\": \"1\",\n      \"debtorName\": \"Joe Bloggs\",\n      \"debtorIdNumber\": \"4712245149011\",\n      \"debtorContactNumberInternationalCode\": \"+27\",\n      \"debtorContactNumber\": \"0721234657\",\n      \"debtorEmailAddress\": \"test@test.co.za\",\n      \"debtorAccountNumber\": \"98765432145\",\n      \"debtorBranchCode\": \"198765\",\n      \"debtorAccountType\": \"2\"\n    },\n    {\n      \"status\": \"1\",\n      \"customerCode\": \"PSTEST123\",\n      \"contractReference\": \"Insurance\",\n      \"type\": \"1\",\n      \"entryClass\": \"14\",\n      \"releaseDate\": \"4/29/19\",\n      \"collectionDay\": \"30\",\n      \"collectionFrequency\": \"3\",\n      \"collectionInstalmentAmount\": \"0.15\",\n      \"collectionInstalmentOccurrence\": \"1\",\n      \"collectionMaxAmount\": \"0.15\",\n      \"collectionAdjustmentCategory\": \"1\",\n      \"collectionCanTrack\": \"1\",\n      \"debtorName\": \"Joe Soap\",\n      \"debtorIdNumber\": \"4712245149011\",\n      \"debtorContactNumberInternationalCode\": \"+27\",\n      \"debtorContactNumber\": \"0841234567\",\n      \"debtorEmailAddress\": \"test@test\",\n      \"debtorAccountNumber\": \"1234567894\",\n      \"debtorBranchCode\": \"198765\",\n      \"debtorAccountType\": \"1\"\n    },\n\n  ]\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/import"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGltcG9ydA==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Tue, 28 May 2019 13:21:53 GMT"},{"key":"Content-Length","value":"423"}],"cookie":[],"responseTime":null,"body":"{\n    \"mandateBatchId\": null,\n    \"isSuccessful\": false,\n    \"message\": \"Failed to upload, one or more of the mandates failed validation. Please fix all errors before trying again.\",\n    \"errors\": [\n        {\n            \"rowNumber\": 1,\n            \"errorMessage\": \"A future dated release date is required, Account number is not valid for Nedbank Corporate Saver\"\n        },\n        {\n            \"rowNumber\": 2,\n            \"errorMessage\": \"A future dated release date is required, CDV test failed, Email address is not valid\"\n        }\n    ]\n}"},{"id":"2f88d833-742a-4804-8a67-441e8a6386f1","name":"200 OK - Successful Import Mandates Batch","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandates\": [\n    {\n      \"status\": \"1\",\n      \"customerCode\": \"PSTEST12\",\n      \"contractReference\": \"Payment\",\n      \"type\": \"1\",\n      \"entryClass\": \"14\",\n      \"releaseDate\": \"6/29/19\",\n      \"collectionDay\": \"30\",\n      \"collectionFrequency\": \"3\",\n      \"collectionInstalmentAmount\": \"0.15\",\n      \"collectionInstalmentOccurrence\": \"1\",\n      \"collectionMaxAmount\": \"0.15\",\n      \"collectionAdjustmentCategory\": \"1\",\n      \"collectionCanTrack\": \"1\",\n      \"debtorName\": \"Joe Bloggs\",\n      \"debtorIdNumber\": \"4712245149011\",\n      \"debtorContactNumberInternationalCode\": \"+27\",\n      \"debtorContactNumber\": \"0721234657\",\n      \"debtorEmailAddress\": \"test@test.co.za\",\n      \"debtorAccountNumber\": \"6242121345\",\n      \"debtorBranchCode\": \"250655\",\n      \"debtorAccountType\": \"1\"\n    },\n    {\n      \"status\": \"1\",\n      \"customerCode\": \"PSTEST123\",\n      \"contractReference\": \"Insurance\",\n      \"type\": \"1\",\n      \"entryClass\": \"14\",\n      \"releaseDate\": \"6/29/19\",\n      \"collectionDay\": \"30\",\n      \"collectionFrequency\": \"3\",\n      \"collectionInstalmentAmount\": \"0.15\",\n      \"collectionInstalmentOccurrence\": \"1\",\n      \"collectionMaxAmount\": \"0.15\",\n      \"collectionAdjustmentCategory\": \"1\",\n      \"collectionCanTrack\": \"1\",\n      \"debtorName\": \"Joe Soap\",\n      \"debtorIdNumber\": \"4712245149011\",\n      \"debtorContactNumberInternationalCode\": \"+27\",\n      \"debtorContactNumber\": \"0841234567\",\n      \"debtorEmailAddress\": \"test@test.com\",\n      \"debtorAccountNumber\": \"6242121345\",\n      \"debtorBranchCode\": \"250655\",\n      \"debtorAccountType\": \"1\"\n    },\n\n  ]\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/import"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGltcG9ydA==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 29 May 2019 07:44:54 GMT"},{"key":"Content-Length","value":"73"}],"cookie":[],"responseTime":null,"body":"{\n    \"mandateBatchId\": 72,\n    \"isSuccessful\": true,\n    \"message\": \"Success\",\n    \"errors\": []\n}"}],"_postman_id":"daa5bb2e-0bde-410f-afd8-9f07281a9486"},{"name":"Delete Mandate","id":"222a90f8-4647-42e3-b973-90ed3990f787","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"id\":\"{{mandateId}}\"\n}\n\n "},"url":"https://api.rapidpaycollect.co.za/mandates","description":"<p>This method is used for deleting a mandate. Only mandates which have not been accepted can be deleted. If integrators wsh to remove an accepted mandate, a cancellation request needs to be performed instead.</p>\n","urlObject":{"path":["mandates"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"c1a48b6b-84c4-4394-885f-f1e89cde358c","name":"400 Bad Request - Unsuccessful Delete Mandate","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"id\":\"{{mandateId}}\"\n}\n\n "},"url":"https://api.rapidpaycollect.co.za/mandates"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Bank initiated mandates cannot be deleted\"\n}"},{"id":"b8892ac7-85df-4b6b-b1d7-e1ca65c71537","name":"200 OK - Successful Delete Mandate","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"id\":\"{{mandateId}}\"\n}\n\n "},"url":"https://api.rapidpaycollect.co.za/mandates"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVz?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Tue, 28 May 2019 12:50:19 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"222a90f8-4647-42e3-b973-90ed3990f787"},{"name":"Resubmit As Registered Mandates","id":"699abc21-8571-4556-bab9-d7fa99fe1ef2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"mandateId\": [\r\n        \"{{mandateId}}\",\r\n        \"{{mandateId}}\",\r\n        \"{{mandateId}}\",\r\n        \"{{mandateId}}\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rapidpaycollect.co.za/mandates/resubmit-rms","urlObject":{"path":["mandates","resubmit-rms"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"2fc54697-a715-4db9-8a93-32a262f51ff6","name":"Resubmit As Registered Mandates","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{accessToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"mandateId\": [\r\n        \"{{mandateId}}\",\r\n        \"{{mandateId}}\",\r\n        \"{{mandateId}}\",\r\n        \"{{mandateId}}\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rapidpaycollect.co.za/mandates/resubmit-rms"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlTb2Z0XGhvdC1maXhlc1xTZWN1cmVcUGF5U29mdC5BcGlcbWFuZGF0ZXNccmVzdWJtaXQtcm1z?="},{"key":"Date","value":"Mon, 10 May 2021 09:17:16 GMT"},{"key":"Content-Length","value":"904"}],"cookie":[],"responseTime":null,"body":"\"Mandate(s) successfully resubmitted as registered mandate(s).\""}],"_postman_id":"699abc21-8571-4556-bab9-d7fa99fe1ef2"}],"id":"cf5bd41c-3fd4-4820-a1d6-d91af1fb2398","event":[{"listen":"prerequest","script":{"id":"7a3f2f76-768f-4132-b035-d76bc809d483","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"08c766f7-87f7-46ae-9cdf-34fb47103b6d","type":"text/javascript","exec":[""]}}],"_postman_id":"cf5bd41c-3fd4-4820-a1d6-d91af1fb2398","description":""},{"name":"Save/Update Mandate Test Cases","item":[{"name":"Initiate Mandate - Accepted","event":[{"listen":"test","script":{"id":"67091dbc-589d-4a0c-8631-00c9d7fb180f","exec":["var data = JSON.parse(responseBody);","pm.globals.set(\"mandateId\", data.mandateId);","pm.variables.get(\"mandateId\");",""],"type":"text/javascript"}}],"id":"122b4968-fe71-40ba-af52-ce7161480a5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"1\",\n  \"releaseDate\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"FirstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/initiate","description":"<p>In order to simulate Debtor responses for initiated mandates, all mandates using an entry class of 1 (Insurance Premium), will be accepted by the Debtor, all others will be rejected. </p>\n","urlObject":{"path":["mandates","initiate"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"0ecaff48-0418-467b-a54c-d68965fbe78e","name":"200 OK - Successful Initiate Mandate - Will be accepted by client","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"12\",\n  \"releaseDate\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"FirstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\"\n  }\n}"},"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/initiate?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","initiate"],"query":[{"key":"returnUrl","value":"%252fmandates%252f","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGluaXRpYXRl?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 10:32:24 GMT"},{"key":"Content-Length","value":"209"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestReference\": \"b6b87e1c-0ea9-4df9-b1e8-257c1beccd55\",\n    \"mandateReference\": \"\",\n    \"mandateId\": \"004151246032017019205100005030159132020000186049\",\n    \"statusId\": 10,\n    \"status\": \"Success\",\n    \"message\": \"Success\",\n    \"errors\": []\n}"}],"_postman_id":"122b4968-fe71-40ba-af52-ce7161480a5c"},{"name":"Initiate Mandate - Rejected","event":[{"listen":"test","script":{"id":"67091dbc-589d-4a0c-8631-00c9d7fb180f","exec":["var data = JSON.parse(responseBody);","pm.globals.set(\"mandateId\", data.mandateId);","pm.variables.get(\"mandateId\");",""],"type":"text/javascript"}}],"id":"0d3ac02c-e1d2-4b28-b67e-faba7c402de5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"12\",\n  \"releaseDate\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"FirstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/initiate","description":"<p>In order to simulate Debtor responses for initiatied mandates, all mandates using an entry class of 1 (Insurance Premium), will be accepted by the Debtor, all others will be rejected. </p>\n","urlObject":{"path":["mandates","initiate"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"9e9ee285-c824-4148-aa4d-d95a42f59d04","name":"200 OK - Successful Initiate Mandate - Will be rejected by client","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"12\",\n  \"releaseDate\": \"\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"FirstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\"\n  }\n}"},"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/initiate?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","initiate"],"query":[{"key":"returnUrl","value":"%252fmandates%252f","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGluaXRpYXRl?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Fri, 24 May 2019 10:32:24 GMT"},{"key":"Content-Length","value":"209"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestReference\": \"b6b87e1c-0ea9-4df9-b1e8-257c1beccd55\",\n    \"mandateReference\": \"\",\n    \"mandateId\": \"004151246032017019205100005030159132020000186049\",\n    \"statusId\": 10,\n    \"status\": \"Success\",\n    \"message\": \"Success\",\n    \"errors\": []\n}"}],"_postman_id":"0d3ac02c-e1d2-4b28-b67e-faba7c402de5"},{"name":"Amend Mandate - Accepted","event":[{"listen":"test","script":{"id":"6cc12338-5892-4b5f-93fd-395da19c1c96","exec":[""],"type":"text/javascript"}}],"id":"b3ca4d06-6cf0-4392-9807-c5d1804f1508","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"mandateId\": \"{{mandateId}}\",\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandateReference\": \"{{mandateReference}}\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"transactionType\": \"50\",\n  \"amendmentReasonId\": \"1\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"collectionDay\": \"1\",\n    \"collectionAmount\": \"0.16\",\n    \"maximumCollectionAmount\": \"0.16\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"1\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/amend","description":"<p>In order to simulate Debtor responses for amended mandates, all mandates using an amendment reason code of 1 (Request by Customer), will be accepted by the Debtor, all others will be rejected. </p>\n","urlObject":{"path":["mandates","amend"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"034cdb1e-a21d-4794-9d6f-d1917272c8f5","name":"200 OK - Successful Amend Mandate - Will be accepted by client","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"raw","raw":"{\n  \"mandateId\": \"{{mandateId}}\",\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandateReference\": \"{{mandateReference}}\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"transactionType\": \"50\",\n  \"amendmentReasonId\": \"1\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"collectionDay\": \"1\",\n    \"collectionAmount\": \"0.16\",\n    \"maximumCollectionAmount\": \"0.16\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"1\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/amend"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGFtZW5k?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Tue, 28 May 2019 13:24:09 GMT"},{"key":"Content-Length","value":"216"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestReference\": \"df993d40-7b9f-44dc-84cc-f546d992add4\",\n    \"mandateId\": \"182031044238162175253046225136065170148165182167\",\n    \"mandateReference\": \"\",\n    \"statusId\": 30,\n    \"status\": \"DebtorNotified\",\n    \"message\": \"Success\",\n    \"errors\": []\n}"}],"_postman_id":"b3ca4d06-6cf0-4392-9807-c5d1804f1508"},{"name":"Amend Mandate - Rejected","event":[{"listen":"test","script":{"id":"6cc12338-5892-4b5f-93fd-395da19c1c96","exec":[""],"type":"text/javascript"}}],"id":"9428349e-b3ae-4a96-9013-5119c8ed9eb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"mandateId\": \"{{mandateId}}\",\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandateReference\": \"{{mandateReference}}\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"transactionType\": \"50\",\n  \"amendmentReasonId\": \"2\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"collectionDay\": \"1\",\n    \"collectionAmount\": \"0.16\",\n    \"maximumCollectionAmount\": \"0.16\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"1\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/amend","description":"<p>In order to simulate Debtor responses for amended mandates, all mandates using an amendment reason code of 1 (Request by Customer), will be accepted by the Debtor, all others will be rejected. </p>\n","urlObject":{"path":["mandates","amend"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"87e3e6a1-3278-4754-8246-ded109192f96","name":"200 OK - Successful Amend Mandate - Will be rejected by client","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{token}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"raw","raw":"{\n  \"mandateId\": \"{{mandateId}}\",\n  \"clientCode\": \"{{clientCode}}\",\n  \"mandateReference\": \"{{mandateReference}}\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"transactionType\": \"50\",\n  \"amendmentReasonId\": \"2\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"collectionDay\": \"1\",\n    \"collectionAmount\": \"0.16\",\n    \"maximumCollectionAmount\": \"0.16\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"1\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/amend"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGFtZW5k?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Tue, 28 May 2019 13:25:21 GMT"},{"key":"Content-Length","value":"216"}],"cookie":[],"responseTime":null,"body":"{\n    \"requestReference\": \"f8096e57-6c82-479f-9cf9-04f3605dc307\",\n    \"mandateId\": \"104024131053121104083002187014219131032126172146\",\n    \"mandateReference\": \"\",\n    \"statusId\": 30,\n    \"status\": \"DebtorNotified\",\n    \"message\": \"Success\",\n    \"errors\": []\n}"}],"_postman_id":"9428349e-b3ae-4a96-9013-5119c8ed9eb7"},{"name":"Cancel Mandate - Successful","id":"28dd80ba-a022-4567-90aa-e57e682d73d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"id\":{{mandateId}},\n\t\"cancellationReasonId\":\"1\"\n}\n\n "},"url":"https://api.rapidpaycollect.co.za/mandates/cancel","description":"<p>All cancelled mandates will be marked as cancelled</p>\n","urlObject":{"path":["mandates","cancel"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"3043ed59-d07e-4fed-8743-29aa8ee5eb7a","name":"200 OK - Successful Cancel Mandate - Successfully Cancelled","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"id\":{{mandateId}},\n\t\"cancellationReasonId\":\"1\"\n}\n\n "},"url":"https://api.rapidpaycollect.co.za/mandates/cancel"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-SourceFiles","value":"=?UTF-8?B?QzpcV29ya1xQcm9qZWN0c1xQYXlzb2Z0IEZyb250IE9mZmljZVxDb2RlXFBheXNvZnRcU2VjdXJlXFBheVNvZnQuQXBpXG1hbmRhdGVzXGNhbmNlbA==?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Tue, 28 May 2019 13:26:49 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"28dd80ba-a022-4567-90aa-e57e682d73d9"}],"id":"2aed3122-7228-4aac-826b-2ca2c6eaa7fd","description":"<p>The following lists simulated test cases for mandates. Mandates submitted via the sandbox url will not be sent to bank, but will have a simulated response from a debtor. Each submission type will have a defining property value which will simulate the expected response from the bank.</p>\n","event":[{"listen":"prerequest","script":{"id":"5700a3ed-d8d2-4cf1-89e9-99fab2e6a37c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"58c48d01-8466-4fbc-9ebf-5d6c86f4841d","type":"text/javascript","exec":[""]}}],"_postman_id":"2aed3122-7228-4aac-826b-2ca2c6eaa7fd"},{"name":"Collections","item":[{"name":"Submit Collections","event":[{"listen":"test","script":{"id":"6bcbc515-320f-40bc-8e3c-64da380d6db6","exec":["var data = JSON.parse(responseBody);","pm.globals.set(\"batchNumber\", data.batchNumber);","pm.variables.get(\"batchNumber\");",""],"type":"text/javascript"}}],"id":"3064e641-6157-4401-bf9b-7ff2f1d850a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"transactionItems\": [\r\n\t\t{\r\n\t\t\t\"MandateReference\": \"{{mandateReference}}\",\r\n\t\t\t\"CustomerCode\": \"{{customerCode}}\",\r\n\t\t\t\"Amount\": 100,\r\n            \"SequenceType\": 1\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"MandateReference\": \"{{mandateReference}}\",\r\n\t\t\t\"CustomerCode\": \"{{customerCode}}\",\r\n\t\t\t\"Amount\": 200,\r\n            \"SequenceType\": 1\r\n\t\t}\r\n\t],\r\n\t\"fileHeader\" : {\r\n\t\t\"ProcessDate\" : \"{{processDate}}\",\r\n\t\t\"ClientCode\": \"{{clientCode}}\",\r\n\t\t\"TrackingDays\": \"3\",\r\n\t\t\"ServiceType\": \"1Day\",\r\n\t\t\"BatchDescription\": \"Collections API\",\r\n\t\t\"UniqueId\": \"5399aa8e-c302-4490-9f38-30460875b82f\"\r\n\t}\r\n}"},"url":"https://api.rapidpaycollect.co.za/debicheck","description":"<p>The DebiCheck collections endpoint enables you to collect on mandates that have been accepted. </p>\n<p>This request is composed of the following sections:</p>\n<ul>\n<li><strong>BatchFileHeader</strong></li>\n<li><strong>Transaction items</strong></li>\n</ul>\n<p>The BatchFileHeader contains essential information about the batch.</p>\n<p>BatchFileHeader properties:</p>\n<ul>\n<li>ClientCode (Required. Your unique client code)</li>\n<li>ProcessDate (the date the batch will be submitted to the bank)</li>\n<li>TrackingDays (Required. 1 - 10)</li>\n<li>ServiceType (Required. Only 1Day is currently accepted)</li>\n<li>BatchDescription (Required)</li>\n<li>UniqueId (Optional. This has to be unique between batches to prevent duplicate batches from being submitted)</li>\n<li>CallBackUrl (Optional. If not set, the ClientService callback url will be used.)</li>\n</ul>\n<p>Each Transaction item has the following properties:</p>\n<ul>\n<li>An existing mandate reference (Required)</li>\n<li>A collection sequence value (Required)<ul>\n<li>1 = First Collection</li>\n<li>2 = Once Off</li>\n<li>3 = Re-Occurring</li>\n<li>4 = Re-Presented</li>\n<li>5 = Final Collection</li>\n</ul>\n</li>\n<li>A customer code (Optional)</li>\n<li>An amount (Optional)</li>\n</ul>\n<p>The following data is returned:</p>\n<ul>\n<li>A generated BatchNumber (which can be used in confirming and viewing the detailed validations)</li>\n<li>Number of successful transactions (those which passed all validation)</li>\n<li>Number of unsuccessful transactions (those which failed validation)</li>\n<li>TotalTransactions (successful plus unsuccessful transactions)</li>\n<li>SuccessfulTransactionsAmountTotal (amount in Rands)</li>\n<li>UnsuccessfulTransactionsAmountTotal (amount in Rands)</li>\n<li>GrandTotal (amount in Rands)</li>\n<li>Validation Result Message</li>\n</ul>\n<p>If there are any validation errors, the validationsResultMessage will say \"There were validation errors found for the processed batch file.\" In order to view the detailed errors for each specific batch item, save the batchNumber and refer to the \"View Collection Import Validation Results\" request. If everything passed validations, the Validation Result Message will be empty and the Number of unsuccessful transactions will be 0.</p>\n<p>**Please note: ** The batch will not be processed until it has been confirmed. This enables you to determine if you want to proceed with the collection based on the number of transactions that failed the validation or submit a new collection request.</p>\n","urlObject":{"path":["debicheck"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"ccf0f7f6-8828-46b9-81a8-c15d28b82c5d","name":"Success response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"transactionItems\": [\r\n\t\t{\r\n\t\t\t\"MandateReference\": \"{{mandateReference}}\",\r\n\t\t\t\"CustomerCode\": \"{{customerCode}}\",\r\n\t\t\t\"Amount\": 100\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"MandateReference\": \"{{mandateReference}}\",\r\n\t\t\t\"CustomerCode\": \"{{customerCode}}\",\r\n\t\t\t\"Amount\": 200\r\n\t\t}\r\n\t],\r\n\t\"fileHeader\": {\r\n\t\t\"ProcessDate\" : \"{{processDate}}\",\r\n\t\t\"ClientCode\": \"{{clientCode}}\",\r\n\t\t\"TrackingDays\": \"3\",\r\n\t\t\"ServiceType\": \"1Day\",\r\n\t\t\"BatchDescription\": \"Collections API\",\r\n\t\t\"UniqueId\": \"5399aa8e-c302-4490-9f38-30460875b82f\"\r\n\t}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rapidpaycollect.co.za/debicheck"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"batchNumber\": \"230381\",\n    \"successfulTransactions\": 2,\n    \"unsuccessfulTransactions\": 0,\n    \"totalTransactions\": 2,\n    \"successfulTransactionsAmountTotal\": 132,\n    \"unsuccessfulTransactionsAmountTotal\": 0,\n    \"grandTotal\": 132,\n    \"validationsResultMessage\": \"\",\n\t\"messages\":[],\n\t\"errors\": []\n}"},{"id":"183903b7-18e2-4c91-bbed-59151b121f43","name":"Duplicate rejection","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"transactionItems\": [\r\n\t\t{\r\n\t\t\t\"MandateReference\": \"{{mandateReference}}\",\r\n\t\t\t\"CustomerCode\": \"{{customerCode}}\",\r\n\t\t\t\"Amount\": 100\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"MandateReference\": \"{{mandateReference}}\",\r\n\t\t\t\"CustomerCode\": \"{{customerCode}}\",\r\n\t\t\t\"Amount\": 200\r\n\t\t}\r\n\t],\r\n\t\"fileHeader\": {\r\n\t\t\"ProcessDate\" : \"{{processDate}}\",\r\n\t\t\"ClientCode\": \"{{clientCode}}\",\r\n\t\t\"TrackingDays\": \"3\",\r\n\t\t\"ServiceType\": \"1Day\",\r\n\t\t\"BatchDescription\": \"Collections API\",\r\n\t\t\"UniqueId\": \"5399aa8e-c302-4490-9f38-30460875b82f\"\r\n\t}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.rapidpaycollect.co.za/debicheck"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"batchNumber\": \"230380\",\n    \"successfulTransactions\": 2,\n    \"unsuccessfulTransactions\": 0,\n    \"totalTransactions\": 2,\n    \"successfulTransactionsAmountTotal\": 132,\n    \"unsuccessfulTransactionsAmountTotal\": 0,\n    \"grandTotal\": 132,\n    \"validationsResultMessage\": \"This batch has been rejected because it is a duplicate\",\n\t\"messages\":[],\n\t\"errors\": []\n}"}],"_postman_id":"3064e641-6157-4401-bf9b-7ff2f1d850a6"},{"name":"Confirm Collections Batch","id":"c293f5ba-2fde-49aa-91e2-27d8c6bfda7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.rapidpaycollect.co.za/debicheck/confirm?batchNumber=","description":"<p>After you have done the initial collections submission and received the batch number, if there were any transactions which successfully passed validation, you may either continue with the successful transactions or start over by first fixing any issues with the unsuccessful ones.</p>\n<p>This end-point only requires a batch number. The system will do all the validation needed.</p>\n<p>It returns any errors which may occur such as:</p>\n<ul>\n<li>Batch has been rejected</li>\n<li>Batch is a duplicate</li>\n<li>Batch has no successful transactions</li>\n<li>Batch does not exist</li>\n<li>Batch is waiting for authorisation</li>\n<li>Batch exceeds monthly limit, etc</li>\n</ul>\n<p>If all succeeds the system will inform the user via the response. All emails which need to be sent to users, such as authorisation emails, will be done in this step.</p>\n","urlObject":{"path":["debicheck","confirm"],"host":["https://api.rapidpaycollect.co.za"],"query":[{"description":{"content":"<p>(Required) The batch number</p>\n","type":"text/plain"},"key":"batchNumber","value":""}],"variable":[]}},"response":[{"id":"de71cd97-2188-42d1-9eb9-9bb6599d46af","name":"Batch Not Found","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.rapidpaycollect.co.za/debicheck/confirm?batchNumber=","host":["https://api.rapidpaycollect.co.za"],"path":["debicheck","confirm"],"query":[{"key":"batchNumber","value":"","description":"(Required) The batch number"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"messages\": [\n        \"Could not find batch.\"\n    ],\n    \"errors\": [\n        {\n            \"errorCode\": \"1000\",\n            \"message\": \"Entity Not Found\",\n            \"severity\": \"ERROR\"\n        }\n    ]\n}"},{"id":"8ee2185b-76d0-433c-a582-18d783fd13fa","name":"Batch is awaiting authorisation","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.rapidpaycollect.co.za/debicheck/confirm?batchNumber=","host":["https://api.rapidpaycollect.co.za"],"path":["debicheck","confirm"],"query":[{"key":"batchNumber","value":"","description":"(Required) The batch number"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"messages\": [\n        \"Batch is waiting for authorization.\"\n    ],\n    \"errors\": [\n        {\n            \"errorCode\": \"1002\",\n            \"message\": \"You cannot continue with this action because this batch is waiting for authorization.\",\n            \"severity\": \"INFO\"\n        }\n    ]\n}"},{"id":"3841a976-4e67-42bf-a2be-5f7be00446a3","name":"Processed successfully","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.rapidpaycollect.co.za/debicheck/confirm?batchNumber=","host":["https://api.rapidpaycollect.co.za"],"path":["debicheck","confirm"],"query":[{"key":"batchNumber","value":"","description":"(Required) The batch number"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"messages\": [\n    \t\"Batch 230368 processed successfully but requires authorisation.\"\n\t],\n    \"errors\": []\n}"}],"_postman_id":"c293f5ba-2fde-49aa-91e2-27d8c6bfda7f"},{"name":"View Collection Import Validation Results","id":"5ddbd972-4e3f-48bd-84e5-3ba267bcbeee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.rapidpaycollect.co.za/debicheck/validationresults?batchNumber=&filter=1","description":"<p>This end-point simply returns a detailed view of the validation results for a specific batch.</p>\n<p>It accepts as a parameter a batch number and a result filter.\nThe result filters are as follows:</p>\n<ul>\n<li>Use 1 for all transactions, successes and failures</li>\n<li>Use 2 for only the successful transactions</li>\n<li>Use 3 for only the failed transactions</li>\n</ul>\n<p>The end-point will return the:</p>\n<ul>\n<li>Customer Code</li>\n<li>CDV (Check-digit validation) Result</li>\n<li>CDV Result message (only if the transaction failed validation)</li>\n<li>Amount</li>\n<li>Mandate reference</li>\n</ul>\n","urlObject":{"path":["debicheck","validationresults"],"host":["https://api.rapidpaycollect.co.za"],"query":[{"description":{"content":"<p>(Required) The batch number</p>\n","type":"text/plain"},"key":"batchNumber","value":""},{"description":{"content":"<p>(Optional) If left out, all the results will be retrieved</p>\n","type":"text/plain"},"key":"filter","value":"1"}],"variable":[]}},"response":[{"id":"0d8c1971-dde0-4dd2-90f7-b58bf1e83338","name":"Failure and success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rapidpaycollect.co.za/debicheck/validationresults?batchNumber=&filter=1","host":["https://api.rapidpaycollect.co.za"],"path":["debicheck","validationresults"],"query":[{"key":"batchNumber","value":"","description":"(Required) The batch number"},{"key":"filter","value":"1","description":"(Optional) If left out, all the results will be retrieved"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"transactions\": [\n        {\n            \"customerCode\": \"Kv002_30\",\n            \"reference\": \"0010201908280EE2BC3929\",\n            \"cdvResult\": \"Invalid\",\n            \"resultMessage\": \"Amount was greater than the maximum collection amount\",\n            \"amount\": 130\n        },\n        {\n            \"customerCode\": \"Test16\",\n            \"reference\": \"0010201909165FDDD79622\",\n            \"cdvResult\": \"Valid\",\n            \"resultMessage\": \"\",\n            \"amount\": 130\n        }\n    ],\n    \"errors\": [],\n    \"messages\": []\n}"},{"id":"66f25014-dc01-43b8-ac32-9fe440c69ea9","name":"All successes","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.rapidpaycollect.co.za/debicheck/validationresults?batchNumber=&filter=1","host":["https://api.rapidpaycollect.co.za"],"path":["debicheck","validationresults"],"query":[{"key":"batchNumber","value":"","description":"(Required) The batch number"},{"key":"filter","value":"1","description":"(Optional) If left out, all the results will be retrieved"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"transactions\": [\n        {\n            \"customerCode\": \"Test16\",\n            \"reference\": \"0010201909165FDDD79622\",\n            \"cdvResult\": \"Valid\",\n            \"resultMessage\": \"\",\n            \"amount\": 130\n        },\n        {\n            \"customerCode\": \"Kv002_30\",\n            \"reference\": \"0010201908280EE2BC3929\",\n            \"cdvResult\": \"Valid\",\n            \"resultMessage\": \"\",\n            \"amount\": 2\n        }\n    ],\n    \"errors\": [],\n    \"messages\": []\n}"}],"_postman_id":"5ddbd972-4e3f-48bd-84e5-3ba267bcbeee"}],"id":"b1815f95-5bc5-4697-95ac-168736578716","description":"<p>The collections API allows one to collect on accepted mandates.</p>\n","event":[{"listen":"prerequest","script":{"id":"6a4bc061-ec2b-4c0c-bfca-e6eb81b9fb5d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"05839314-830b-49f6-8926-9273d8fe894c","type":"text/javascript","exec":[""]}}],"_postman_id":"b1815f95-5bc5-4697-95ac-168736578716"},{"name":"Callbacks/Webhooks","item":[{"name":"Initiate a Mandate Including a callback","event":[{"listen":"test","script":{"id":"cc87d4f4-727e-4723-9928-f516d27f2a5b","exec":["var data = JSON.parse(responseBody);","pm.globals.set(\"mandateId\", data.mandateId);","pm.variables.get(\"mandateId\");",""],"type":"text/javascript"}}],"id":"70e3a646-03d4-4721-a758-b9dc3e187dac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"10\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"1\",\n  \"releaseDate\": \"\",\n  \"callbackUrl\" : \"Enter a valid callback URL\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"0.10\",\n    \"maximumCollectionAmount\": \"0.10\",\n    \"firstCollectionAmount\": \"\",\n    \"FirstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":"https://api.rapidpaycollect.co.za/mandates/initiate","description":"<p>This method is used for initiating a new mandate and to include a callback URL.</p>\n","urlObject":{"path":["mandates","initiate"],"host":["https://api.rapidpaycollect.co.za"],"query":[],"variable":[]}},"response":[{"id":"9bfa0848-8d32-4fc3-b49c-454f5e6ec595","name":"400 Bad Request - Unsuccessful (CDV Error) Initiate Mandate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"12\",\n  \"releaseDate\": \"\",\n  \"callbackUrl\" : \"Enter a valid callback URL\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/initiate?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","initiate"],"query":[{"key":"","value":null},{"key":"returnUrl","value":"%252fmandates%252f","disabled":true}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The request is invalid.\",\n    \"errors\": {\n        \"debtor.accountNumber\": [\n            \"Account number is not valid for First National Bank\"\n        ]\n    }\n}"},{"id":"6fcd122c-73cf-4f2c-af41-bdd7d0c621d7","name":"400 Bad Request - Unsuccessful Initiate Mandate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"12\",\n  \"releaseDate\": \"\",\n  \"callbackUrl\" : \"Enter a valid callback URL\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/initiate?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","initiate"],"query":[{"key":"","value":null},{"key":"returnUrl","value":"%252fmandates%252f","disabled":true}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The request is invalid.\",\n    \"errors\": {\n        \"contractReference\": [\n            \"Contract Reference cannot be longer than 14 characters\"\n        ]\n    }\n}"},{"id":"c2eb924c-ae33-445c-9422-c0c5e090c90e","name":"200 OK - Successful Initiate Mandate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"clientCode\": \"{{clientCode}}\",\n  \"transactionType\": \"2\",\n  \"typeId\": \"1\",\n  \"contractReference\": \"{{contractReference}}\",\n  \"customerCode\": \"{{customerCode}}\",\n  \"entryClassId\": \"1\",\n  \"releaseDate\": \"\",\n  \"callbackUrl\" : \"Enter a valid callback URL\",\n  \"debtor\": {\n    \"name\": \"{{debtorName}}\",\n    \"accountNumber\": \"\",\n    \"branchCode\": \"{{debtorBranchCode}}\",\n    \"accountType\": \"1\",\n    \"identificationNumber\": \"\",\n    \"passportNumber\": \"\",\n    \"contactNumberInternationalCode\": \"+27\",\n    \"contactNumber\": \"{{debtorPhoneNumber}}\",\n    \"emailAddress\": \"{{debtorEmailAddress}}\"\n  },\n  \"collection\": {\n    \"occurrenceId\": \"1\",\n    \"collectionFrequency\": \"3\",\n    \"collectionDay\": \"01\",\n    \"collectionAmount\": \"100\",\n    \"maximumCollectionAmount\": \"100\",\n    \"firstCollectionAmount\": \"\",\n    \"firstCollectionDate\": \"\",\n    \"adjustmentCategoryId\": \"\",\n    \"adjustmentAmount\": \"\",\n    \"adjustmentRate\": \"\",\n\t\"dateAdjustmentAllowed\": \"false\"\n  }\n}"},"url":{"raw":"https://api.rapidpaycollect.co.za/mandates/initiate?","host":["https://api.rapidpaycollect.co.za"],"path":["mandates","initiate"],"query":[{"key":"","value":null},{"key":"returnUrl","value":"%252fmandates%252f","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"requestReference\": \"b6b87e1c-0ea9-4df9-b1e8-257c1beccd55\",\n    \"mandateReference\": \"\",\n    \"mandateId\": \"004151246032017019205100005030159132020000186049\",\n    \"statusId\": 10,\n    \"status\": \"Success\",\n    \"message\": \"Success\",\n    \"errors\": []\n}"}],"_postman_id":"70e3a646-03d4-4721-a758-b9dc3e187dac"}],"id":"b541f6b8-140a-4f7b-9d0d-d2e7bab6ff55","description":"<p>Mandate callbacks allow us to send our clients mandate updates as soon as a mandate status has changed. This removes the need for clients to poll our server for updates.</p>\n<p>For for a client to receive a callback on a mandate, the following is required:</p>\n<ol>\n<li>For mandates initiated through the user interface, a Default callback URL can be set up on the client's profile by contacting support.</li>\n<li>For mandates inititated through the API, a user may override the default callback URL on the client service by providing a callback value for the mandate during initiation.</li>\n</ol>\n<h2 id=\"callback-responses\">Callback Responses</h2>\n<p>After a mandate has been initiated with a callback URL, we will send all status updates to the provided URL. The callback will be sent in XML format and may look as follows:</p>\n<h3 id=\"accepted-mandate\">Accepted Mandate</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?&gt;\n&lt;Response&gt;\n  &lt;Result&gt;OK&lt;/Result&gt;\n  &lt;BatchCode&gt;&lt;/BatchCode&gt;\n  &lt;MandateResults&gt;\n    &lt;Result&gt;\n      &lt;ContractReference&gt;JOHN001&lt;/ContractReference&gt;\n      &lt;CustomerCode&gt;JOHN001&lt;/CustomerCode&gt;\n      &lt;Errors&gt;\n      &lt;/Errors&gt;\n      &lt;Status&gt;\n        &lt;Id&gt;3&lt;/Id&gt;\n        &lt;Name&gt;Accepted&lt;/Name&gt;\n      &lt;/Status&gt;\n      &lt;TimeStamp&gt;26/08/2020 00:00:00&lt;/TimeStamp&gt;\n    &lt;/Result&gt;\n  &lt;/MandateResults&gt;\n&lt;/Response&gt;\n</code></pre><h3 id=\"accepted-and-initiated-mandates\">Accepted and Initiated Mandates</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?&gt;\n&lt;Response&gt;\n  &lt;Result&gt;OK&lt;/Result&gt;\n  &lt;BatchCode&gt;&lt;/BatchCode&gt;\n  &lt;MandateResults&gt;\n    &lt;Result&gt;\n      &lt;ContractReference&gt;JOHN001&lt;/ContractReference&gt;\n      &lt;CustomerCode&gt;JOHN001&lt;/CustomerCode&gt;\n      &lt;Errors&gt;\n      &lt;/Errors&gt;\n      &lt;Status&gt;\n        &lt;Id&gt;3&lt;/Id&gt;\n        &lt;Name&gt;Accepted&lt;/Name&gt;\n      &lt;/Status&gt;\n      &lt;TimeStamp&gt;26/08/2020 00:00:00&lt;/TimeStamp&gt;\n    &lt;/Result&gt;\n    &lt;Result&gt;\n      &lt;ContractReference&gt;JOHN001&lt;/ContractReference&gt;\n      &lt;CustomerCode&gt;JOHN001&lt;/CustomerCode&gt;\n      &lt;Errors&gt;\n      &lt;/Errors&gt;\n      &lt;Status&gt;\n        &lt;Id&gt;1&lt;/Id&gt;\n        &lt;Name&gt;Saved&lt;/Name&gt;\n      &lt;/Status&gt;\n      &lt;TimeStamp&gt;26/08/2020 00:00:00&lt;/TimeStamp&gt;\n    &lt;/Result&gt;\n  &lt;/MandateResults&gt;\n&lt;/Response&gt;\n</code></pre><p>Some of the statuses returned include:</p>\n<ul>\n<li>Pending authentication</li>\n<li>Rejected</li>\n<li>No response</li>\n<li>Provider error</li>\n<li>System error</li>\n<li>Queued</li>\n<li>Cancelled</li>\n<li>Replaced</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"a2e13479-44e4-4426-bb8f-f27a14b5034d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e7dbddd6-a02b-484e-a703-c56902e09a7c","type":"text/javascript","exec":[""]}}],"_postman_id":"b541f6b8-140a-4f7b-9d0d-d2e7bab6ff55"}],"event":[{"listen":"prerequest","script":{"id":"07d5f256-aaed-4c21-ac01-51491dfccb45","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8e8aa0ff-6cf3-4187-be17-eca8e91ccfd2","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://api.rapidpaycollect.co.za"},{"key":"batchNumber","value":""},{"key":"debtorIdNumber","value":""},{"key":"debtorAccountNumber","value":""},{"key":"userName","value":""},{"key":"password","value":""}]}