{"info":{"_postman_id":"d43db3d1-12fe-4bd5-99ca-c73faec841ae","name":"MonkeyPesa - EA","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"16699934","collectionId":"d43db3d1-12fe-4bd5-99ca-c73faec841ae","publishedId":"2s93CPqXMz","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-02-25T15:21:51.000Z"},"item":[{"name":"Contacts","item":[{"name":"Create Contact","id":"0fde216c-f1a4-4537-89d7-39124f47734c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Ben\",\r\n    \"lastName\": \"Uther\",\r\n    \"title\": \"Mr.\",\r\n    \"emailAddress\": \"benuther20+1@gmail.com\",\r\n    \"companyName\": \"MonkeyPesa (U) Ltd\",\r\n    \"description\": \"My description of this contact\",\r\n    \"primaryPhoneNumber\": null,\r\n    \"homePhoneNumber\": null,\r\n    \"otherPhoneNumber\": null,\r\n    \"howYouFoundUs\": \"GOOGLE_SEARCH\",\r\n    \"addressDetails\": null,\r\n    \"streetName\": null,\r\n    \"roadName\": null,\r\n    \"postalCode\": null,\r\n    \"listCode\": \"LC9226562354236523\"\r\n}"},"url":"https://dev.monkeypesa.com/contact/api/external/v1/contact","description":"<p>When creating a contact, the following fields are required;</p>\n<ol>\n<li>First Name - <strong>firstName</strong></li>\n<li>Last Name - <strong>lastName</strong></li>\n<li>Title - <strong>title</strong></li>\n<li>Email Address - <strong>emailAddress</strong></li>\n<li>Company Name - <strong>companyName</strong></li>\n<li>Description - <strong>description</strong></li>\n<li>Primary phone number - <strong>primaryPhoneNumber</strong></li>\n<li>Home phone number - <strong>homePhoneNumber</strong></li>\n<li>Other phone number - <strong>otherPhoneNumber</strong></li>\n<li>Address details - <strong>addressDetails</strong></li>\n<li>Street - <strong>streetName</strong></li>\n<li>Road Name - <strong>roadName</strong></li>\n<li>Postal code - <strong>postalCode</strong></li>\n<li>List code - <strong>listCode</strong>: This is the list code on which you want this contact to be added to. This must exist in MonkeyPesa</li>\n<li>How you found us - <strong>howYouFoundUs</strong>: Represents how you obtained your contact and can be any of the following constants.<ol>\n<li>GOOGLE_SEARCH</li>\n<li>GOOGLE_ADS</li>\n<li>YOUTUBE</li>\n<li>FACEBOOK</li>\n<li>FACEBOOK_ADS</li>\n<li>TV_AD</li>\n<li>PINTEREST</li>\n<li>REDDIT</li>\n<li>INSTAGRAM</li>\n<li>LINKED_IN</li>\n<li>BILLBOARD_AD</li>\n<li>FLIER</li>\n<li>REFERAL</li>\n<li>QUORA</li>\n<li>RADIO_ADVERT</li>\n<li>ON_WEBSITE</li>\n<li>OTHER</li>\n</ol>\n</li>\n</ol>\n","urlObject":{"path":["v1","contact"],"host":["https://dev.monkeypesa.com/contact/api/external"],"query":[],"variable":[]}},"response":[{"id":"8adf50b4-614b-424c-9730-83e554a36e30","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Ben\",\r\n    \"lastName\": \"Uther\",\r\n    \"title\": \"Mr.\",\r\n    \"emailAddress\": \"benuther20+1@gmail.com\",\r\n    \"companyName\": \"MonkeyPesa (U) Ltd\",\r\n    \"description\": \"My description of this contact\",\r\n    \"primaryPhoneNumber\": null,\r\n    \"homePhoneNumber\": null,\r\n    \"otherPhoneNumber\": null,\r\n    \"howYouFoundUs\": \"GOOGLE_SEARCH\",\r\n    \"foundUsDetails\": \"Any additional details\",\r\n    \"addressDetails\": null,\r\n    \"countryName\": null,\r\n    \"countryCode\": null,\r\n    \"streetName\": null,\r\n    \"roadName\": null,\r\n    \"postalCode\": null,\r\n    \"listCode\": \"LC9226562354236523\"\r\n}"},"url":"https://dev.monkeypesa.com/contact/api/external/v1/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, OPTIONS"},{"key":"Access-Control-Request-Method","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Accept, X-Requested-With, remember-me, Authorization,Cache-Control, organization-id"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 25 Feb 2023 15:13:29 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"message\": \"Operation successful\",\n    \"recordStatus\": \"ACTIVE\",\n    \"dateCreated\": \"2023-02-25T15:13:29.301Z\",\n    \"dateChanged\": \"2023-02-25T15:13:29.522Z\",\n    \"changedByFullName\": \"Ben Uther\",\n    \"changedByEmail\": \"benuther203@gmail.com\",\n    \"id\": \"4028810486891af101868922dfb30002\",\n    \"firstName\": \"Ben\",\n    \"lastName\": \"Uther\",\n    \"title\": \"Mr.\",\n    \"emailAddress\": \"benuther20+1@gmail.com\",\n    \"companyName\": \"MonkeyPesa (U) Ltd\",\n    \"description\": \"My description of this contact\",\n    \"howYouFoundUs\": \"GOOGLE_SEARCH\",\n    \"foundUsDetails\": \"Any additional details\",\n    \"countryName\": \"MonkeyPesa (U) Ltd\",\n    \"contactType\": \"CONTACT\",\n    \"listCode\": \"LC9226562354236523\"\n}"},{"id":"e567ad44-bb8d-47bb-8c03-fa5a5cd0c7b8","name":"400 Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Ben\",\r\n    \"lastName\": \"Uther\",\r\n    \"title\": \"Mr.\",\r\n    \"emailAddress\": \"benuther20+1@gmail.com\",\r\n    \"companyName\": \"MonkeyPesa (U) Ltd\",\r\n    \"description\": \"My description of this contact\",\r\n    \"primaryPhoneNumber\": null,\r\n    \"homePhoneNumber\": null,\r\n    \"otherPhoneNumber\": null,\r\n    \"howYouFoundUs\": \"GOOGLE_SEARCH\",\r\n    \"foundUsDetails\": \"Any additional details\",\r\n    \"addressDetails\": null,\r\n    \"countryName\": null,\r\n    \"countryCode\": null,\r\n    \"streetName\": null,\r\n    \"roadName\": null,\r\n    \"postalCode\": null,\r\n    \"listCode\": \"LC9226562354236523\"\r\n}"},"url":"https://dev.monkeypesa.com/contact/api/external/v1/contact"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 25 Feb 2023 15:13:45 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"FAILURE\",\n    \"message\": \"A contact with the same email address [benuther20+1@gmail.com] already exists.\"\n}"}],"_postman_id":"0fde216c-f1a4-4537-89d7-39124f47734c"},{"name":"Update Contact","id":"5b3f56af-b087-44ba-b8cd-b92e17c40dfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"4028810486891af101868922dfb30002\",\r\n    \"firstName\": \"Ben\",\r\n    \"lastName\": \"Uther\",\r\n    \"title\": \"Mr.\",\r\n    \"emailAddress\": \"benuther20+1@gmail.com\",\r\n    \"companyName\": \"MonkeyPesa (U) Ltd\",\r\n    \"description\": \"My description of this contact\",\r\n    \"primaryPhoneNumber\": null,\r\n    \"homePhoneNumber\": null,\r\n    \"otherPhoneNumber\": null,\r\n    \"howYouFoundUs\": \"GOOGLE_SEARCH\",\r\n    \"addressDetails\": null,\r\n    \"streetName\": null,\r\n    \"roadName\": null,\r\n    \"postalCode\": null,\r\n    \"listCode\": \"LC9226562354236523\"\r\n}"},"url":"https://dev.monkeypesa.com/contact/api/external/v1/contact","description":"<p>This endpoint is used to update an existing contact.</p>\n<p>When updating a contact, the following fields are required;</p>\n<ol>\n<li>Id of the record to update - <strong>id</strong></li>\n<li>First Name - <strong>firstName</strong></li>\n<li>Last Name - <strong>lastName</strong></li>\n<li>Title - <strong>title</strong></li>\n<li>Email Address - <strong>emailAddress</strong></li>\n<li>Company Name - <strong>companyName</strong></li>\n<li>Description - <strong>description</strong></li>\n<li>Primary phone number - <strong>primaryPhoneNumber</strong></li>\n<li>Home phone number - <strong>homePhoneNumber</strong></li>\n<li>Other phone number - <strong>otherPhoneNumber</strong></li>\n<li>Address details - <strong>addressDetails</strong></li>\n<li>Street - <strong>streetName</strong></li>\n<li>Road Name - <strong>roadName</strong></li>\n<li>Postal code - <strong>postalCode</strong></li>\n<li>List code - <strong>listCode</strong>: This is the list code on which you want this contact to be added to. This must exist in MonkeyPesa</li>\n<li>How you found us - <strong>howYouFoundUs</strong>: Represents how you obtained your contact and can be any of the following constants.<ol>\n<li>GOOGLE_SEARCH</li>\n<li>GOOGLE_ADS</li>\n<li>YOUTUBE</li>\n<li>FACEBOOK</li>\n<li>FACEBOOK_ADS</li>\n<li>TV_AD</li>\n<li>PINTEREST</li>\n<li>REDDIT</li>\n<li>INSTAGRAM</li>\n<li>LINKED_IN</li>\n<li>BILLBOARD_AD</li>\n<li>FLIER</li>\n<li>REFERAL</li>\n<li>QUORA</li>\n<li>RADIO_ADVERT</li>\n<li>ON_WEBSITE</li>\n<li>OTHER</li>\n</ol>\n</li>\n</ol>\n","urlObject":{"path":["v1","contact"],"host":["https://dev.monkeypesa.com/contact/api/external"],"query":[],"variable":[]}},"response":[{"id":"004bcbe6-65d6-428a-870e-2bbab4d99c5a","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"4028810486891af101868922dfb30002\",\r\n    \"firstName\": \"Ben\",\r\n    \"lastName\": \"Uther\",\r\n    \"title\": \"Mr.\",\r\n    \"emailAddress\": \"benuther20+1@gmail.com\",\r\n    \"companyName\": \"MonkeyPesa (U) Ltd\",\r\n    \"description\": \"My description of this contact\",\r\n    \"primaryPhoneNumber\": null,\r\n    \"homePhoneNumber\": null,\r\n    \"otherPhoneNumber\": null,\r\n    \"howYouFoundUs\": \"GOOGLE_SEARCH\",\r\n    \"foundUsDetails\": \"Any additional details\",\r\n    \"addressDetails\": null,\r\n    \"countryName\": null,\r\n    \"countryCode\": null,\r\n    \"streetName\": null,\r\n    \"roadName\": null,\r\n    \"postalCode\": null\r\n}"},"url":"https://dev.monkeypesa.com/contact/api/external/v1/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, OPTIONS"},{"key":"Access-Control-Request-Method","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Accept, X-Requested-With, remember-me, Authorization,Cache-Control, organization-id"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 25 Feb 2023 15:15:23 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"message\": \"Operation successful\",\n    \"recordStatus\": \"ACTIVE\",\n    \"dateCreated\": \"2023-02-25T15:13:29.301Z\",\n    \"dateChanged\": \"2023-02-25T15:15:23.340Z\",\n    \"changedByFullName\": \"Ben Uther\",\n    \"changedByEmail\": \"benuther203@gmail.com\",\n    \"id\": \"4028810486891af101868922dfb30002\",\n    \"firstName\": \"Ben\",\n    \"lastName\": \"Uther\",\n    \"title\": \"Mr.\",\n    \"emailAddress\": \"benuther20+1@gmail.com\",\n    \"companyName\": \"MonkeyPesa (U) Ltd\",\n    \"description\": \"My description of this contact\",\n    \"howYouFoundUs\": \"GOOGLE_SEARCH\",\n    \"foundUsDetails\": \"Any additional details\",\n    \"countryName\": \"MonkeyPesa (U) Ltd\",\n    \"contactType\": \"CONTACT\"\n}"}],"_postman_id":"5b3f56af-b087-44ba-b8cd-b92e17c40dfb"},{"name":"Delete Contact","id":"4b07b0ec-1086-4bae-8476-a7dc8b9ca928","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"url":"https://dev.monkeypesa.com/contact/api/external/v1/contact/:contactId/delete","description":"<p>This endpoint is used to delete an existing contact. It takes in a path param for the contact that you need to delete.</p>\n","urlObject":{"path":["v1","contact",":contactId","delete"],"host":["https://dev.monkeypesa.com/contact/api/external"],"query":[],"variable":[{"description":{"content":"<p>This is the Id of the contact you want to delete</p>\n","type":"text/plain"},"type":"any","value":"8a8082168460c81501846c14fe32001e","key":"contactId"}]}},"response":[{"id":"3fd7f7d3-2f96-4f41-9b9d-d9b273199954","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{API_TOKEN}}","type":"text"},{"key":"organization-id","value":"MP-2021-11","type":"text"}],"url":{"raw":"https://dashboard.monkeypesa.com{{CONTACTS_MICRO_SERVICE_ENDPOINT_PATH}}/v1/contact/:contactId/delete","protocol":"https","host":["dashboard","monkeypesa","com{{CONTACTS_MICRO_SERVICE_ENDPOINT_PATH}}"],"path":["v1","contact",":contactId","delete"],"variable":[{"key":"contactId","value":"8a8082168460c81501846c14fe32001e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 12 Nov 2022 14:04:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyNTY3NzIwMDAxNzAiLCJleHAiOjE2Njk0MDU0NDMsImlhdCI6MTY2NjgxMzQ0MywiYXV0aG9yaXRpZXMiOlsiVmlldyBEaXN0cmljdHMiLCJwZXJtX3dlYl9hY2Nlc3MiLCJwZXJtX3dlYl9hY2Nlc3MiLCJWaWV3IExlYWRzIiwiVmlldyBMb29rIFVwcyIsInBlcm1fd2ViX2FjY2VzcyIsInBlcm1fd2ViX2FjY2VzcyIsIk1hbmFnZSBMZWFkcyIsInBlcm1fd2ViX2FjY2VzcyIsIk1hcmsgYWxsIG5vdGlmaWNhdGlvbnMgYXMgcmVhZCIsIk1hbmFnZSBWaWRlbyBNZWV0aW5ncyIsInBlcm1fd2ViX2FjY2VzcyIsIlZpZXcgQ29tcGFuaWVzIiwicGVybV93ZWJfYWNjZXNzIiwicGVybV93ZWJfYWNjZXNzIiwiTWFyayBzaW5nbGUgbm90aWZpY2F0aW9uIGFzIHJlYWQiLCJwZXJtX3dlYl9hY2Nlc3MiLCJWaWV3IFZpZGVvIE1lZXRpbmdzIiwicGVybV93ZWJfYWNjZXNzIiwiVmlldyBDb3VudHJpZXMiLCJNYW5hZ2UgQ3VzdG9tIEZpZWxkcyIsInBlcm1fd2ViX2FjY2VzcyIsInBlcm1fd2ViX2FjY2VzcyIsIk1hbmFnZSBSb2xlcyIsIk1hbmFnZSBMb29rIFVwcyIsInBlcm1fd2ViX2FjY2VzcyIsInBlcm1fd2ViX2FjY2VzcyIsIk1hbmFnZSBDdXJyZW5jaWVzIiwiVmlldyBSb2xlcyIsInBlcm1fd2ViX2FjY2VzcyIsInBlcm1fd2ViX2FjY2VzcyIsIk1hbmFnZSBQYXltZW50IE5vdGlmaWNhdGlvbnMiLCJWaWV3IENvbnRhY3RzIiwicGVybV93ZWJfYWNjZXNzIiwicGVybV93ZWJfYWNjZXNzIiwiTm9ybWFsIFVzZXIiLCJwZXJtX3dlYl9hY2Nlc3MiLCJNYW5hZ2UgQ29tcGFuaWVzIiwiVmlldyBub3RpZmljYXRpb25zIiwicGVybV93ZWJfYWNjZXNzIiwiTWFuYWdlIFVzZXJzIiwicGVybV93ZWJfYWNjZXNzIiwiVmlldyBMaXN0cyIsInBlcm1fd2ViX2FjY2VzcyIsInBlcm1fd2ViX2FjY2VzcyIsIlZpZXcgQ3VzdG9tIEZpZWxkcyIsInBlcm1fd2ViX2FjY2VzcyIsIk1hbmFnZSBMaXN0cyIsInBlcm1fd2ViX2FjY2VzcyIsIlZpZXcgQ3VycmVuY2llcyIsInBlcm1fd2ViX2FjY2VzcyIsInBlcm1fd2ViX2FjY2VzcyIsIk1hbmFnZSBEaXN0cmljdHMiLCJwZXJtX3dlYl9hY2Nlc3MiLCJNYW5hZ2UgQ29udGFjdHMiLCJWaWV3IFVzZXJzIiwicGVybV93ZWJfYWNjZXNzIiwiVmlldyBUaWNrZXRzIiwicGVybV93ZWJfYWNjZXNzIiwicGVybV93ZWJfYWNjZXNzIiwiVmlldyBQYXltZW50IE5vdGlmaWNhdGlvbnMiXX0.dkGtQOIZed6aJuyYsYqLOqeUNxryUrowYPwJNN_3W0A"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, OPTIONS"},{"key":"Access-Control-Request-Method","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Accept, X-Requested-With, remember-me, Authorization,Cache-Control, organization-id"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"message\": \"Operation successful\"\n}"}],"_postman_id":"4b07b0ec-1086-4bae-8476-a7dc8b9ca928"},{"name":"Find By Id","id":"e85d20c2-ce3f-4594-90a8-10a4c39baf89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"url":"https://dev.monkeypesa.com/contact/api/external/v1/contact/:contactId","description":"<p>This endpoint is used to fetch details of the provided contact id. It takes in a path param for the contact that you need to fetch.</p>\n","urlObject":{"path":["v1","contact",":contactId"],"host":["https://dev.monkeypesa.com/contact/api/external"],"query":[],"variable":[{"description":{"content":"<p>This is the Id of the contact you want to fetch</p>\n","type":"text/plain"},"type":"any","value":"4028810486891af101868922dfb30002","key":"contactId"}]}},"response":[{"id":"b14373d9-7432-4c1d-9ffd-372be8ab15e5","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"url":{"raw":"https://dev.monkeypesa.com/contact/api/external/v1/contact/:contactId","host":["https://dev.monkeypesa.com/contact/api/external"],"path":["v1","contact",":contactId"],"variable":[{"key":"contactId","value":"4028810486891af101868922dfb30002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, OPTIONS"},{"key":"Access-Control-Request-Method","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Accept, X-Requested-With, remember-me, Authorization,Cache-Control, organization-id"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 25 Feb 2023 15:16:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"message\": \"Operation successful\",\n    \"recordStatus\": \"ACTIVE\",\n    \"dateCreated\": \"2023-02-25T15:13:29.301Z\",\n    \"dateChanged\": \"2023-02-25T15:15:23.340Z\",\n    \"changedByFullName\": \"Ben Uther\",\n    \"changedByEmail\": \"benuther203@gmail.com\",\n    \"id\": \"4028810486891af101868922dfb30002\",\n    \"firstName\": \"Ben\",\n    \"lastName\": \"Uther\",\n    \"title\": \"Mr.\",\n    \"emailAddress\": \"benuther20+1@gmail.com\",\n    \"companyName\": \"MonkeyPesa (U) Ltd\",\n    \"description\": \"My description of this contact\",\n    \"howYouFoundUs\": \"GOOGLE_SEARCH\",\n    \"foundUsDetails\": \"Any additional details\",\n    \"countryName\": \"MonkeyPesa (U) Ltd\",\n    \"contactType\": \"CONTACT\"\n}"},{"id":"9fe3ffa4-497c-4e34-ab71-f94d61f1f91c","name":"400 Bad Request","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"url":{"raw":"https://dev.monkeypesa.com/contact/api/external/v1/contact/:contactId","host":["https://dev.monkeypesa.com/contact/api/external"],"path":["v1","contact",":contactId"],"variable":[{"key":"contactId","value":"4028810486891af101868922dfb30002p"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 25 Feb 2023 15:16:24 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"FAILURE\",\n    \"message\": \"No contact found with the provided Id [4028810486891af101868922dfb30002p]\"\n}"}],"_postman_id":"e85d20c2-ce3f-4594-90a8-10a4c39baf89"},{"name":"Find Contacts","id":"e50a20a5-1405-4576-8dfc-97b1c30ea5d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"url":"https://dev.monkeypesa.com/contact/api/external/v1/contacts?offset=0&limit=100&searchTerm","description":"<p>This endpoint is used to get a paginated list of contacts from the provided offset and limit.</p>\n<p>This also includes a search term that is used to make textual search for all columns on the database.</p>\n","urlObject":{"path":["v1","contacts"],"host":["https://dev.monkeypesa.com/contact/api/external"],"query":[{"description":{"content":"<p>List offset</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>Resultset limit</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"description":{"content":"<p>Textual fields search terms</p>\n","type":"text/plain"},"key":"searchTerm","value":null}],"variable":[]}},"response":[{"id":"97bacf3c-1d7c-4212-9ecd-459ba762f266","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"organization-id","value":"{your_organization_id}","type":"text"},{"key":"api-secret-key","value":"{your_api_secret_key}","type":"text"}],"url":{"raw":"https://dev.monkeypesa.com/contact/api/external/v1/contacts?offset=0&limit=100&searchTerm&showRecords=true","host":["https://dev.monkeypesa.com/contact/api/external"],"path":["v1","contacts"],"query":[{"key":"offset","value":"0","description":"List offset"},{"key":"limit","value":"100","description":"Resultset limit"},{"key":"searchTerm","value":null,"description":"Textual fields search terms"},{"key":"showRecords","value":"true","description":"This can be true or false. If this is false, only the record count is returned"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, OPTIONS"},{"key":"Access-Control-Request-Method","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Accept, X-Requested-With, remember-me, Authorization,Cache-Control, organization-id"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 25 Feb 2023 15:17:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalItems\": 1,\n    \"records\": [\n        {\n            \"recordStatus\": \"ACTIVE\",\n            \"dateCreated\": \"2023-02-25T15:13:29.301Z\",\n            \"dateChanged\": \"2023-02-25T15:15:23.340Z\",\n            \"changedByFullName\": \"Ben Uther\",\n            \"changedByEmail\": \"benuther203@gmail.com\",\n            \"id\": \"4028810486891af101868922dfb30002\",\n            \"firstName\": \"Ben\",\n            \"lastName\": \"Uther\",\n            \"title\": \"Mr.\",\n            \"emailAddress\": \"benuther20+1@gmail.com\",\n            \"companyName\": \"MonkeyPesa (U) Ltd\",\n            \"description\": \"My description of this contact\",\n            \"howYouFoundUs\": \"GOOGLE_SEARCH\",\n            \"foundUsDetails\": \"Any additional details\",\n            \"countryName\": \"MonkeyPesa (U) Ltd\",\n            \"contactType\": \"CONTACT\"\n        }\n    ],\n    \"totalPages\": 1,\n    \"message\": \"Operation successful\",\n    \"currentPage\": 0,\n    \"status\": \"SUCCESS\"\n}"}],"_postman_id":"e50a20a5-1405-4576-8dfc-97b1c30ea5d2"}],"id":"4bb37c39-f213-46d7-b542-5703252c5ce0","_postman_id":"4bb37c39-f213-46d7-b542-5703252c5ce0","description":""}],"event":[{"listen":"prerequest","script":{"id":"dd908ac5-24e7-42e4-9f92-f1029cc009ff","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"636760d8-78b0-45dd-8e79-c0aa397bd651","type":"text/javascript","exec":[""]}}],"variable":[{"key":"HOST_URL","value":"https://dev.monkeypesa.com","type":"string"},{"key":"CONTACTS_SERVICE_ENDPOINT_PATH","value":"/contact/api/external","type":"string"},{"key":"ORGANIZATION_ID","value":"{your_organization_id}","type":"string"},{"key":"API_SECRET_KEY","value":"{your_api_secret_key}","type":"string"}]}