{"info":{"_postman_id":"62817a21-f01f-4682-8473-fb97a2f7d788","name":"TellaFriend API ","description":"<html><head></head><body><p>The TellaFriend API provides a rich solution for clients who wish to integrate a referral program into an online store. \nIntegrating the TellaFriend API with your own backend system enables a seamless integration of a powerful referral program with your store.</p>\n<h1 id=\"overview\">Overview</h1>\nWe offer a number of different APIs that make it easy for you to integrate a referral program in your online store through a seamless integration.\n\n<h1 id=\"authentication\">Authentication</h1>\n<table>\n<tbody><tr>\n<th>Authorization</th>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>OAuth2</td>\n<td>Access Token</td>\n<td>encrypted string that provides permissions </td>\n</tr>\n</tbody></table>\n\n<h1 id=\"error-codes\">Error Codes</h1>\n<table>\n<tbody><tr>\n<th>Parámetro</th>\n<th>Descripción</th>\n</tr>\n<tr>\n<th>errorCode</th>\n<td>String<br>Code that identify the error</td>\n</tr>\n<tr>\n<th>errorMessage</th>\n<td>String<br>International error message depends on the header on the request of the regional se</td>\n</tr>\n<tr>\n<th>errorDetail</th>\n<td>String<br>Detail of the error</td>\n</tr>\n<tr>\n<th>httpStatus</th>\n<td>String<br>List of codes for answer request status of the HyperText Transference Protocol (HTTP).\n200 - Success Response\n201 - Created\n400 - Bad Request\n404 - Not Found\n500 - Internal Server Error\n</td>\n</tr>\n<tr>\n<th>errorOrigin</th>\n<td>String<br>Service where error was originated</td>\n</tr>\n</tbody></table><table></table></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"305481","collectionId":"62817a21-f01f-4682-8473-fb97a2f7d788","publishedId":"SzRyz9bx","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-10T19:04:11.000Z"},"item":[{"name":"Sign Up","item":[{"name":"Sign Up","id":"d9f93fed-74b3-4ba1-a453-a0cdd1d2ba9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>String (Required)\ntype of provider</p>\n","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"<p>String (Opcional)\nLanguage of the answer</p>\n","key":"language","type":"text","value":"en/es"}],"body":{"mode":"raw","raw":"{\n\t\"fullName\": \"Documentation Proof3\",\n\t\"firstName\": \"Proof3\",\n\t\"lastName\": \"Proof3\",\n\t\"mobileNumber\": \"1256213789\",\n\t\"email\": \"proof3@proof3.com\",\n\t\"password\": \"proof3\",\n\t\"storeUrl\": \"http://proof3.com\",\n\t\"storeName\": \"Proofs3\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.tellafriend.club/tellafriend/api/merchant","description":"<p></p><h6>Headers</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>ecommerceProvider</td>\n<td>DEFAULT</td>\n<td>String (Required) <br /> It is defined if it is the default store</td>\n</tr>\n<tr>\n<td>language</td>\n<td>en / es</td>\n<td>String (Optional)<br /> Defines the language in which the answer will arrive</td>\n</tr>\n</table>\n\n<p></p><h6>Body JSON: </h6><p></p>\n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>fullName</td>\n<td>String <br /> Full name of the user</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>String <br /> First name of the user </td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>String <br /> Last name of the user</td>\n</tr>\n<tr>\n<td>mobileNumber</td>\n<td>String <br /> Mobile number of the user </td>\n</tr>\n<tr>\n<td>email</td>\n<td>String <br /> Email address of the user </td>\n</tr>\n<tr>\n<td>password</td>\n<td>String <br /> Account password </td>\n</tr>\n<tr>\n<td>storeUrl</td>\n<td>String <br /> Store URL</td>\n</tr>\n<tr>\n<td>storeName</td>\n<td>String <br /> Store Name</td>\n</tr>\n</table>\n\n<p></p><h6>ANSWER JSON: </h6><p></p>\n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>apiKey</td>\n<td> String <br /> The API Key of the username of the account. It’s a randomly generated STRING of 32 characters</td>\n</tr>\n<tr>\n<td>apiSecret</td>\n<td>String <br /> The API password of the account (Secret). It’s a numeric random STRING of 16 characters </td>\n</tr>\n<tr>\n<td>merchantId</td>\n<td> String <br /> ID Store </td>\n</tr>\n</table>\n\n\n<h1 id=\"example-of-petition\">Example of petition</h1>\n","urlObject":{"protocol":"https","path":["tellafriend","api","merchant"],"host":["api","tellafriend","club"],"query":[],"variable":[]}},"response":[{"id":"753fcea1-7469-46bc-8e88-3bbe89749d58","name":"Sign Up","originalRequest":{"method":"POST","header":[{"description":"String (Required)\ntype of provider","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"String (Opcional)\nLanguage of the answer","key":"language","type":"text","value":"en/es"}],"body":{"mode":"raw","raw":"{\n\t\"fullName\": \"Documentation Proof3\",\n\t\"firstName\": \"Proof3\",\n\t\"lastName\": \"Proof3\",\n\t\"mobileNumber\": \"1256213789\",\n\t\"email\": \"proof3@proof3.com\",\n\t\"password\": \"proof\",\n\t\"storeUrl\": \"http://proof.com\",\n\t\"storeName\": \"Proofs3\",\n\t\"country\": {}\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.tellafriend.club/tellafriend/api/merchant","protocol":"https","host":["api","tellafriend","club"],"path":["tellafriend","api","merchant"],"query":[{"key":"","type":"text","value":"","disabled":true}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.6"},{"key":"Date","value":"Tue, 10 Mar 2020 21:15:22 GMT"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"apiKey\": {{Api Key}},\n    \"apiSecret\": {{Api Secret}},\n    \"merchantId\": {{Merchant ID}}\n}"}],"_postman_id":"d9f93fed-74b3-4ba1-a453-a0cdd1d2ba9d"},{"name":"Token Generation","id":"91086f72-c790-4dcc-8e30-51d4b4ca4635","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>String (Required) \nThe API Key of the username of the account. It’s a randomly generated STRING of 32 characters</p>\n","key":"apikey","type":"text","value":"{{Api Key}}"},{"description":"<p>String (Required)\nThe API password of the account (Secret). It’s a numeric random STRING of 16 characters.</p>\n","key":"apiSecret","type":"text","value":"{{Api Secret}}"},{"description":"<p>String (Required)\nSecurity value</p>\n","key":"grant_type","type":"text","value":"api"}]},"url":"https://api.tellafriend.club/api/security/oauth/token","description":"<p></p><h4>Requirements: </h4><p></p>\n<p></p><h6>Authorization: Basic Auth</h6><p></p>\n<table>\n<tr>\n<td>Username</td>\n<td>TAF</td>\n</tr>\n<tr>\n<td>Password</td>\n<td>TAF</td>\n</tr>\n</table>\n\n<p></p><h4>BODY JSON</h4><p></p>\n<table>\n<tr>\n<th>VALUES</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>apikey</td>\n<td>String <br /> The API Key of the username of the account. It’s a randomly generated STRING of 32 characters</td>\n</tr>\n<tr>\n<td>apiSecret</td>\n<td>String <br /> The API password of the account (Secret). It’s a numeric random STRING of 16 characters</td>\n</tr>\n<tr>\n<td>grant_type</td>\n<td>String <br /> The ID store of the users</td>\n</tr>\n</table>\n\n<h4>ANSWER</h4>\n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>access_token</td>\n<td>String <br /> Token to make request</td>\n</tr>\n<tr>\n<td>token_type</td>\n<td>String <br /> Token Type </td>\n</tr>\n<tr>\n<td>refresh_token</td>\n<td>String <br /> Token to generate additional access tokens </td>\n</tr>\n<tr>\n<td>expired_in</td>\n<td>int <br /> Time in seconds for the token to expire </td>\n</tr>\n<tr>\n<td>scope</td>\n<td>String <br /> Permissions that the token has</td>\n</tr>\n<tr>\n<td>jti</td>\n<td>String <br /> Identification token for the JWT library </td>\n</tr>\n</table>\n\n<h1 id=\"example-of-petition\">Example of petition</h1>\n","urlObject":{"protocol":"https","path":["api","security","oauth","token"],"host":["api","tellafriend","club"],"query":[],"variable":[]}},"response":[{"id":"3cbf0d1a-bb14-4f45-8dbc-dd1de6c83887","name":"Token generation","originalRequest":{"method":"POST","header":[{"key":"apiKey","value":"793339150696122336009791","type":"text","disabled":true},{"key":"apiSecret","value":"$2a$10$MSZUDjVU70tcSIo9VZxYX.RjbPDXVlkjRFnaN5/d7Px7MlLhgreSW","type":"text","disabled":true},{"key":"grant_type","value":"api","type":"text","disabled":true},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"apikey","value":"{{api key}}","type":"text"},{"key":"apiSecret","value":"{{api secret}}","type":"text"},{"key":"grant_type","value":"api","type":"text"}]},"url":"https://api.tellafriend.club/api/security/oauth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.6"},{"key":"Date","value":"Tue, 10 Mar 2020 16:39:21 GMT"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": {{access token}},\n    \"token_type\": \"bearer\",\n    \"refresh_token\": {{refresh token}},\n    \"expires_in\": 3599,\n    \"scope\": \"read write\",\n    \"jti\": \"17z65077-9zz6-138z-zxz2-zz6x9z7zxz826\"\n}"}],"_postman_id":"91086f72-c790-4dcc-8e30-51d4b4ca4635"},{"name":"Get Information Account","id":"689f66b0-6fdd-44e6-a306-69ae361eb6e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}]},"isInherited":false},"method":"GET","header":[{"key":"ecommerceProvider","value":"DEFAULT ","description":"<p>String (Required)\ntype of provider</p>\n","type":"text"},{"key":"language","value":"en / es","description":"<p>String (Opcional)\nLanguage of the answer</p>\n","type":"text"}],"url":"https://api.tellafriend.club/tellafriend/api/merchant/status","description":"<p></p><h6>Headers</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>ecommerceProvider</td>\n<td>DEFAULT</td>\n<td>String (Required) <br />It is defined if it is the store by default</td>\n</tr>\n<tr>\n<td>language</td>\n<td>en / es</td>\n<td>String (Optional) <br />Defines the language in which the answer will arrive</td>\n</tr>\n</table>\n\n<p></p><h6>Answer: </h6><p></p>\n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>createdOn</td>\n<td> String <br /> Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ' <br /> Account creation date</td>\n</tr>\n<tr>\n<td>advocates</td>\n<td>boolean <br /> Indicates if the advocates are configured </td>\n</tr>\n<tr>\n<td>friends</td>\n<td>boolean <br /> Indicates if friends are configured </td>\n</tr>\n<tr>\n<td>referralProgramStyle</td>\n<td>boolean <br /> Indicates if styles are configured</td>\n<td>\n</td></tr>\n<tr>\n<td>activeReferralProgram</td>\n<td> boolean <br /> Indicates if the referral program is active </td>\n</tr>\n</table>\n\n<h1 id=\"example-of-petition\">Example of petition</h1>\n","urlObject":{"protocol":"https","path":["tellafriend","api","merchant","status"],"host":["api","tellafriend","club"],"query":[],"variable":[]}},"response":[{"id":"bd0ef5f8-0cb8-4b8f-b221-dce6728f3ee4","name":"Get Information Account","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.tellafriend.club/tellafriend/api/merchant/status?ecommerceProvider=DEFAULT &language=en","protocol":"https","host":["api","tellafriend","club"],"path":["tellafriend","api","merchant","status"],"query":[{"key":"ecommerceProvider","value":"DEFAULT ","description":"String (Required)\ntype of provider"},{"key":"language","value":"en","description":"String (Opcional)\nLanguage of the answer"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.6"},{"key":"Date","value":"Tue, 10 Mar 2020 17:10:21 GMT"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"createdOn\": \"2020-03-05T15:41:32.997+0000\",\n    \"advocates\": true,\n    \"friends\": true,\n    \"referralProgramStyle\": true,\n    \"activeReferralProgram\": false\n}"}],"_postman_id":"689f66b0-6fdd-44e6-a306-69ae361eb6e2"}],"id":"0a556547-f551-42bb-8d9f-ee0956ba9586","event":[{"listen":"prerequest","script":{"id":"62f4b211-5ddb-4966-a19e-ae68c21fe9ad","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7c651a3a-8c14-406c-84e3-9b735c85b286","type":"text/javascript","exec":[""]}}],"_postman_id":"0a556547-f551-42bb-8d9f-ee0956ba9586","description":""},{"name":"Advocates","item":[{"name":"Get advocate","id":"d8cf83b7-720f-49c0-8bac-5633313eaf1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"description":"<p>String (Required)\ntype of provider</p>\n","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"<p>String (Opcional)\nLanguage of the answer</p>\n","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}"}],"url":"https://api.tellafriend.club/api/merchant/advocates","urlObject":{"protocol":"https","path":["api","merchant","advocates"],"host":["api","tellafriend","club"],"query":[],"variable":[]}},"response":[{"id":"36e09e4e-710b-4a02-aacd-9b90b3c57751","name":"Advocate","originalRequest":{"method":"GET","header":[{"description":"String (Required)\ntype of provider","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"String (Opcional)\nLanguage of the answer","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}"}],"url":"https://api.tellafriend.club/api/merchant/advocates"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"advocateId\": \"5e7509aa8a2fc54a54d45c3c\",\n        \"merchantName\": null,\n        \"merchantUrl\": \"https://imranmomin.com\",\n        \"shareUrl\": \"https://json.com/a=5e7509aa8a2fc54a54d45c3c\",\n        \"shortShareUrl\": \"pre.go4clients.com/DAVIDSANTANARINCO7@56.am\",\n        \"discountShopUrl\": \"https://imranmomin.com\",\n        \"shortUrlCode\": null,\n        \"discountCode\": \"NO_CODE\",\n        \"advocate\": {\n            \"createdOn\": \"2020-03-20T18:21:30.825+0000\",\n            \"lastUpdate\": \"2020-03-20T18:21:30.825+0000\",\n            \"firstName\": \"david Advocate\",\n            \"lastName\": \"Rincon\",\n            \"fullName\": \"david Advocate\",\n            \"mobileNumber\": \"57301224877\",\n            \"email\": \"DAVIDSANTANARINCO7@56.am\"\n        }\n    },\n       {\n        \"advocateId\": \"5e7509aa8a2fc54a54d45c3c\",\n        \"merchantName\": null,\n        \"merchantUrl\": \"https://imranmomin.com\",\n        \"shareUrl\": \"https://json.com/a=5e7509aa8a2fc54a54d45c3c\",\n        \"shortShareUrl\": \"pre.go4clients.com/DAVIDSANTANARINCO7@56.am\",\n        \"discountShopUrl\": \"https://imranmomin.com\",\n        \"shortUrlCode\": null,\n        \"discountCode\": \"NO_CODE\",\n        \"advocate\": {\n            \"createdOn\": \"2020-03-20T18:21:30.825+0000\",\n            \"lastUpdate\": \"2020-03-20T18:21:30.825+0000\",\n            \"firstName\": \"david Advocate\",\n            \"lastName\": \"Rincon\",\n            \"fullName\": \"david Advocate\",\n            \"mobileNumber\": \"57301224877\",\n            \"email\": \"DAVIDSANTANARINCO7@56.am\"\n        }\n    }\n]"}],"_postman_id":"d8cf83b7-720f-49c0-8bac-5633313eaf1d"},{"name":"Get advocate by Id","id":"96f62e0e-0b41-456b-aeea-e55758cf6713","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"description":"<p>String (Required)\ntype of provider</p>\n","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"<p>String (Opcional)\nLanguage of the answer</p>\n","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}"}],"url":"https://api.tellafriend.club/api/merchant/advocates/{id}","urlObject":{"protocol":"https","path":["api","merchant","advocates","{id}"],"host":["api","tellafriend","club"],"query":[],"variable":[]}},"response":[{"id":"841457ac-e491-40ce-8baf-8f7756dc8098","name":"Advocate by Id","originalRequest":{"method":"GET","header":[{"description":"String (Required)\ntype of provider","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"String (Opcional)\nLanguage of the answer","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}"}],"url":"https://api.tellafriend.club/api/merchant/advocates/{id}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"advocateId\": \"5e7509aa8a2fc54a54d45c3c\",\n\t\"merchantName\": null,\n\t\"merchantUrl\": \"https://imranmomin.com\",\n\t\"shareUrl\": \"https://json.com/a=5e7509aa8a2fc54a54d45c3c\",\n\t\"shortShareUrl\": \"pre.go4clients.com/DAVIDSANTANARINCO7@56.am\",\n\t\"discountShopUrl\": \"https://imranmomin.com\",\n\t\"shortUrlCode\": null,\n\t\"discountCode\": \"NO_CODE\",\n\t\"advocate\": {\n\t\t\"createdOn\": \"2020-03-20T18:21:30.825+0000\",\n\t\t\"lastUpdate\": \"2020-03-20T18:21:30.825+0000\",\n\t\t\"firstName\": \"david Advocate\",\n\t\t\"lastName\": \"Rincon\",\n\t\t\"fullName\": \"david Advocate\",\n\t\t\"mobileNumber\": \"57301224877\",\n\t\t\"email\": \"DAVIDSANTANARINCO7@56.am\"\n\t}\n}"}],"_postman_id":"96f62e0e-0b41-456b-aeea-e55758cf6713"},{"name":"Create advocate","id":"09490280-ac94-47a6-af05-d8e538fa9049","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"description":"<p>String (Required)\ntype of provider</p>\n","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"<p>String (Opcional)\nLanguage of the answer</p>\n","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}","description":"<p>Token (Reuqeried)</p>\n"}],"url":"https://api.tellafriend.club/api/merchant/advocates","urlObject":{"protocol":"https","path":["api","merchant","advocates"],"host":["api","tellafriend","club"],"query":[],"variable":[]}},"response":[{"id":"baf50c3e-9dc2-4bdc-8954-e88da3b08dc9","name":"Advocate POST/PUT","originalRequest":{"method":"POST","header":[{"description":"String (Required)\ntype of provider","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"String (Opcional)\nLanguage of the answer","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}"}],"body":{"mode":"raw","raw":"{\n\t\"advocate\": {\n\t\t\"firstName\": \"david Advocate\",\n\t\t\"lastName\": \"Rincon\",\n\t\t\"fullName\": \"david Advocate\",\n\t\t\"mobileNumber\": \"57301224877\",\n\t\t\"email\": \"DAVIDSANTANARINCO7@56.am\"\n\t}\n}","options":{"raw":{"language":"json"}}},"url":"https://api.tellafriend.club/api/merchant/advocates"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"advocateId\": \"5e7509aa8a2fc54a54d45c3c\",\n    \"merchantName\": null,\n    \"merchantUrl\": \"https://imranmomin.com\",\n    \"shareUrl\": \"https://json.com/a=5e7509aa8a2fc54a54d45c3c\",\n    \"shortShareUrl\": \"pre.go4clients.com/DAVIDSANTANARINCO7@56.am\",\n    \"discountShopUrl\": \"https://imranmomin.com\",\n    \"shortUrlCode\": null,\n    \"discountCode\": \"NO_CODE\",\n    \"advocate\": {\n        \"createdOn\": \"2020-03-20T18:21:30.825+0000\",\n        \"lastUpdate\": \"2020-03-20T18:21:30.825+0000\",\n        \"firstName\": \"david Advocate\",\n        \"lastName\": \"Rincon\",\n        \"fullName\": \"david Advocate\",\n        \"mobileNumber\": \"57301224877\",\n        \"email\": \"DAVIDSANTANARINCO7@56.am\"\n    }\n}"}],"_postman_id":"09490280-ac94-47a6-af05-d8e538fa9049"},{"name":"Edit advocate","id":"47e85324-340c-4a9f-b81c-b864deb48d46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"description":"<p>String (Required)\ntype of provider</p>\n","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"<p>String (Opcional)\nLanguage of the answer</p>\n","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}"}],"url":"https://api.tellafriend.club/api/merchant/advocates","urlObject":{"protocol":"https","path":["api","merchant","advocates"],"host":["api","tellafriend","club"],"query":[],"variable":[]}},"response":[{"id":"54158aaa-ff18-4534-89fe-074d56b8107f","name":"Advocate POST/PUT","originalRequest":{"method":"POST","header":[{"description":"String (Required)\ntype of provider","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"String (Opcional)\nLanguage of the answer","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}"}],"body":{"mode":"raw","raw":"{\n\t\"advocate\": {\n\t\t\"firstName\": \"david Advocate\",\n\t\t\"lastName\": \"Rincon\",\n\t\t\"fullName\": \"david Advocate\",\n\t\t\"mobileNumber\": \"57301224877\",\n\t\t\"email\": \"DAVIDSANTANARINCO7@56.am\"\n\t}\n}","options":{"raw":{"language":"json"}}},"url":"https://api.tellafriend.club/api/merchant/advocates"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"advocateId\": \"5e7509aa8a2fc54a54d45c3c\",\n    \"merchantName\": null,\n    \"merchantUrl\": \"https://imranmomin.com\",\n    \"shareUrl\": \"https://json.com/a=5e7509aa8a2fc54a54d45c3c\",\n    \"shortShareUrl\": \"pre.go4clients.com/DAVIDSANTANARINCO7@56.am\",\n    \"discountShopUrl\": \"https://imranmomin.com\",\n    \"shortUrlCode\": null,\n    \"discountCode\": \"NO_CODE\",\n    \"advocate\": {\n        \"createdOn\": \"2020-03-20T18:21:30.825+0000\",\n        \"lastUpdate\": \"2020-03-20T18:21:30.825+0000\",\n        \"firstName\": \"david Advocate\",\n        \"lastName\": \"Rincon\",\n        \"fullName\": \"david Advocate\",\n        \"mobileNumber\": \"57301224877\",\n        \"email\": \"DAVIDSANTANARINCO7@56.am\"\n    }\n}"}],"_postman_id":"47e85324-340c-4a9f-b81c-b864deb48d46"},{"name":"Delete advocate","id":"abb83a18-52eb-4868-82d6-f5e37bd0d83b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"description":"<p>String (Required)\ntype of provider</p>\n","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"<p>String (Opcional)\nLanguage of the answer</p>\n","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}"}],"url":"https://api.tellafriend.club/api/merchant/advocates","urlObject":{"protocol":"https","path":["api","merchant","advocates"],"host":["api","tellafriend","club"],"query":[],"variable":[]}},"response":[{"id":"bb1fecee-6020-4295-a4a8-64232a794cbf","name":"Advocate","originalRequest":{"method":"DELETE","header":[{"description":"String (Required)\ntype of provider","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"String (Opcional)\nLanguage of the answer","key":"language","type":"text","value":"en/es"},{"key":"Authorization","type":"text","value":"Bearer {$token}"}],"url":"https://api.tellafriend.club/api/merchant/advocates/{id}"},"status":"Accepted","code":202,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"abb83a18-52eb-4868-82d6-f5e37bd0d83b"}],"id":"4cfb1228-dc39-4de3-b557-915e19a68463","description":"<p>for this advocates API, just send the basic data of the advocate as email, name, phone number. The response you will receive will contain data such as the generated discount code, shortlink, store url, among others.</p>\n","event":[{"listen":"prerequest","script":{"id":"62f4b211-5ddb-4966-a19e-ae68c21fe9ad","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7c651a3a-8c14-406c-84e3-9b735c85b286","type":"text/javascript","exec":[""]}}],"_postman_id":"4cfb1228-dc39-4de3-b557-915e19a68463"},{"name":"Discounts","item":[{"name":"Get Discounts","id":"956e9c42-61c3-4d3e-a91a-ff1ddfb49e1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"language","value":"en / es","description":"<p>String (Optional)\nLanguage of the answer</p>\n","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTgzOTQwMTgsInVzZXJfbmFtZSI6ImpvcmdlLnBlcmV6QHRlbGludGVsLm5ldCIsImF1dGhvcml0aWVzIjpbIlRBRl9BRE1JTiJdLCJqdGkiOiIzYzliZmIxNC0wMTcxLTQ1M2YtODY1ZS0zMWI1OTE0NmU0OWEiLCJjbGllbnRfaWQiOiJUQUYiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXX0.tCaBwvUAdNW9cZ0Fu0FU_VW5NQQYeusyO2giDDeqKM8","description":"<p>Token (Reuqeried)</p>\n","type":"text"}],"url":"http://10.170.3.226:9020/api/merchant/discounts/newdiscounts?fromDate=2019-09-25T00:00:00.000-0000&toDate=2020-09-25T00:00:00.000-0000&ecommerceProvider=DEFAULT","description":"<p></p><h6>Headers</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr><tr>\n<td>Authorization</td>\n<td>Bearer {$token}</td>\n<td>Toke (Required) </td>\n</tr>\n<tr>\n<td>language</td>\n<td>en / es</td>\n<td>String (Optional) Defines the language in which the answer will arrive</td>\n</tr>\n</table>\n\n<p></p><h6>Parameters</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>DESCRIPTION</th>\n</tr>\n\n<tr>\n<td>ecommerceProvider</td>\n<td>DEFAULT<br /> String (Optional) It is defined if it is the store by default\n</td></tr>\n<tr>\n<td>fromDate</td>\n<td>Timestamp (Required)<br /> Format :yyyy-MM-dd'T'HH:mm:ss.SSSZ <br /> Discount start date\n</td></tr>\n<tr>\n<td>fromDate</td>\n<td>Timestamp (Required)<br /> Format :yyyy-MM-dd'T'HH:mm:ss.SSSZ <br /> Discount end date</td>\n</tr>\n</table>\n\n<p></p><h6>ANSWER</h6><p></p>\n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>createdOn</td>\n<td>String <br /> Date when the discount was created</td>\n</tr>\n<tr>\n<td>discountCode</td>\n<td>String <br /> Discount code value</td>\n</tr>\n<tr>\n<td>merchantUrl</td>\n<td>Store URL</td>\n</tr>\n<tr>\n<td>discountType</td>\n<td>ReferralProgramRewardType <br />  *It only applies for advocates \n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>CASH</td>\n<td>List <br /> \nPayment type on each language <br />\n<table>\n<tr>\n<th>Valores</th>\n</tr>\n<tr>\n<td>Cash</td>\n</tr>\n<tr>\n<td>Efectivo</td>\n</tr>\n<tr>\n<td>Efectivo</td>\n</tr>\n</table>\n\n </td>\n</tr>\n<tr>\n<td>CASH_PERCENTAGE</td>\n<td>List <br /> \nPercentage of the discount in different languages\n<table>\n<tr>\n<th>Valores</th>\n</tr>\n<tr>\n<td>Cash Percentage</td>\n</tr>\n<tr>\n<td>Porcentaje en efectivo</td>\n</tr>\n<tr>\n<td>Porcentaje en efectivo</td>\n</tr>\n</table>\n</td>\n</tr>\n<tr>\n<td>STORE_DISCOUNT</td>\n<td>List <br /> \nStore discount type in different languages <br />\n<table>\n<tr>\n<th>Valores</th>\n</tr>\n<tr>\n<td>Store Discount</td>\n</tr>\n<tr>\n<td>Descuento de tienda</td>\n</tr>\n<tr>\n<td>Descuento de tienda</td>\n</tr>\n</table>\n</td>\n</tr>\n<tr>\n<td>NO_REWAND</td>\n<td>List <br />\nNo reward option in different languages <br />\n<table>\n<tr>\n<th>Valores</th>\n</tr>\n<tr>\n<td>No reward</td>\n</tr>\n<tr>\n<td>No aplica</td>\n</tr>\n<tr>\n<td>No aplica</td>\n</tr>\n</table>\n</td>\n</tr>\n<tr>\n<td> es </td>\n<td> String <br /> Define if the language of the request is in spanish </td>\n</tr>\n<tr>\n<td>en</td>\n<td> String <br /> Define if the language of the request is in English </td>\n</tr>\n<tr>\n<td>pt</td>\n<td>String <br /> Define if the language of the request is in Portugese </td>\n</tr>\n</table>\n</td>\n</tr>\n<tr>\n<td>value</td>\n<td>double <br /> Purchase value</td>\n</tr>\n<tr>\n<td>maximumOrderAmount</td>\n<td>double <br /> Maximum order amount applied for the discoun </td>\n</tr>\n<tr>\n<td>minimumOrderAmount</td>\n<td>double <br /> Minimum order amount applied for the discount</td>\n</tr>\n<tr>\n</tr><tr>\n<td>maxRedemptions</td>\n<td>int <br />Maximum times that a reward can be reddem by an advocate</td>\n</tr>\n<td>redemptionCounter</td>\n<td>int <br />\nNumber of times the code was redeemed</td>\n</table>\n\n<h1 id=\"example-of-petition\">Example of petition</h1>\n","urlObject":{"protocol":"http","port":"9020","path":["api","merchant","discounts","newdiscounts"],"host":["10","170","3","226"],"query":[{"key":"fromDate","value":"2019-09-25T00:00:00.000-0000"},{"key":"toDate","value":"2020-09-25T00:00:00.000-0000"},{"key":"ecommerceProvider","value":"DEFAULT"}],"variable":[]}},"response":[{"id":"1cc5d07d-e5fa-4c02-9d6b-ecfaabc56a34","name":"Get Discounts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"","type":"text"}],"url":{"raw":"https://api.tellafriend.club/tellafriend/api/merchant/discounts/newdiscounts?fromDate=2019-09-25T00:00:00.000-0000&toDate=2020-09-25T00:00:00.000-0000&ecommerceProvider=DEFAULT","protocol":"https","host":["api","tellafriend","club"],"path":["tellafriend","api","merchant","discounts","newdiscounts"],"query":[{"key":"fromDate","value":"2019-09-25T00:00:00.000-0000","description":"Date (Date)\nStart date of the discount"},{"key":"toDate","value":"2020-09-25T00:00:00.000-0000","description":"Date (Date)\nEnd date of the discount"},{"key":"ecommerceProvider","value":"DEFAULT","description":"String (Required)\nIt should be set to DEFAULT"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.6"},{"key":"Date","value":"Tue, 10 Mar 2020 17:23:38 GMT"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"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"}],"cookie":[],"responseTime":null,"body":"[\n     {\n        \"createdOn\": \"2020-04-08T10:22:25.146-0500\",\n        \"discountCode\": \"{{Discount Code}}\",\n        \"merchantUrl\": \"\",\n        \"discountType\": \"STORE_PERCENTAGE\",\n        \"value\": 10.0,\n        \"maximumOrderAmount\": 0.0,\n        \"minimumOrderAmount\": 0.0,\n        \"maxRedemptions\": 0,\n        \"redemptionCounter\": 0\n    },\n     {\n        \"createdOn\": \"2020-04-08T10:22:25.146-0500\",\n        \"discountCode\": \"{{Discount Code}}\",\n        \"merchantUrl\": \"\",\n        \"discountType\": \"STORE_PERCENTAGE\",\n        \"value\": 10.0,\n        \"maximumOrderAmount\": 0.0,\n        \"minimumOrderAmount\": 0.0,\n        \"maxRedemptions\": 0,\n        \"redemptionCounter\": 0\n    },\n     {\n        \"createdOn\": \"2020-04-08T10:22:25.146-0500\",\n        \"discountCode\": \"{{Discount Code}}\",\n        \"merchantUrl\": \"\",\n        \"discountType\": \"STORE_PERCENTAGE\",\n        \"value\": 10.0,\n        \"maximumOrderAmount\": 0.0,\n        \"minimumOrderAmount\": 0.0,\n        \"maxRedemptions\": 0,\n        \"redemptionCounter\": 0\n    }\n]"}],"_postman_id":"956e9c42-61c3-4d3e-a91a-ff1ddfb49e1d"},{"name":"Validate discount code","id":"ca93d726-138e-4e93-b736-6d9e13b2a667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {$token}","description":"<p>Toke (Required)</p>\n","type":"text"}],"url":"https://api.tellafriend.club/tellafriend/api/api/merchant/discounts/v2.0?discountCode=mycodetest","description":"<p></p><h6>Headers</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr><tr>\n<td>Authorization</td>\n<td>Bearer {$token}</td>\n<td>Toke (Required) </td>\n</tr>\n<tr>\n<td>language</td>\n<td>en / es</td>\n<td>String (Optional) Defines the language in which the answer will arrive</td>\n</tr>\n</table>\n\n<p></p><h6>Parameters</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>DESCRIPTION</th>\n</tr>\n\n<tr>\n<td>discountCode</td>\n<td>String(Required)<br />\ndiscount code you want to evaluate\n</td></tr>\n</table>\n<p></p><h6>Answer</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>DESCRIPTION</th>\n</tr>\n\n<tr>\n<td>discountCode</td>\n<td>String<br />\nDiscount code you want to evaluate\n</td></tr>\n\n<tr>\n<td>merchantId</td>\n<td>String<br />\nId of the associated store\n</td></tr>\n<tr>\n<td>purchaseAmount</td>\n<td>Double<br />\nPurchase amount of this discount code\n</td></tr>\n<tr>\n<td>valid</td>\n<td>Boolean<br />\nAnswer true or false if the code is valid\n</td></tr>\n</table>\n","urlObject":{"protocol":"https","path":["tellafriend","api","api","merchant","discounts","v2.0"],"host":["api","tellafriend","club"],"query":[{"key":"discountCode","value":"mycodetest"}],"variable":[]}},"response":[{"id":"2f1a7a5f-d7ba-4fa9-b87c-ededb618a489","name":"Validate discount code","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTgzOTQwMTgsInVzZXJfbmFtZSI6ImpvcmdlLnBlcmV6QHRlbGludGVsLm5ldCIsImF1dGhvcml0aWVzIjpbIlRBRl9BRE1JTiJdLCJqdGkiOiIzYzliZmIxNC0wMTcxLTQ1M2YtODY1ZS0zMWI1OTE0NmU0OWEiLCJjbGllbnRfaWQiOiJUQUYiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXX0.tCaBwvUAdNW9cZ0Fu0FU_VW5NQQYeusyO2giDDeqKM8","description":"Toke (Required)","type":"text"}],"url":{"raw":"https://api.tellafriend.club/tellafriend/api/api/merchant/discounts/v2.0?discountCode=mycodetest","protocol":"https","host":["api","tellafriend","club"],"path":["tellafriend","api","api","merchant","discounts","v2.0"],"query":[{"key":"discountCode","value":"mycodetest"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 04 Sep 2020 18:42:17 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"discountCode\": \"mycodetest\",\n    \"merchantId\": \"{{MyMerchantId}}\",\n    \"purchaseAmount\": 0,\n    \"valid\": false\n}"}],"_postman_id":"ca93d726-138e-4e93-b736-6d9e13b2a667"}],"id":"8dc278d9-ba0f-4446-b15b-7a96e7cb96ca","_postman_id":"8dc278d9-ba0f-4446-b15b-7a96e7cb96ca","description":""},{"name":"Conversions","item":[{"name":"Send Conversion","id":"433e813d-ee17-4e66-9dc7-251eeb70e4fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"description":"<p>String (Required)\nIt should be set to DEFAULT</p>\n","key":"ecommerceProvider","type":"text","value":"DEFAULT"},{"description":"<p>String (Optional)\nLanguage of the answer</p>\n","key":"language","type":"text","value":"en / es"},{"description":"<p>String (Required)</p>\n","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    \"totalAmount\": 100.1,\n    \"totalProductsAmount\": 2,\n    \"shippingValue\": 9.1,\n    \"taxValue\": 0,\n    \"code\" : {{Discount Code}},\n    \"buyer\": {\n        \"firstName\": \"advocate\",\n        \"lastName\": \"advocate\",\n        \"fullName\": \"advocate\",\n        \"mobileNumber\": \"573155014556\",\n        \"email\": \"advocate@prueba.com\",\n        \"address\": \"calle 1234\",\n        \"gender\": \"M\",\n        \"age\": \"23\",\n        \"country\": \"Colombia\",\n        \"ipAddress\": \"10.170.2.2\",\n        \"city\": \"Bogota\",\n        \"operativeSystem\": \"Windows\",\n        \"browser\": \"google\",\n        \"device\": \"phone\"\n    },\n    \"products\": [{\n        \"name\": \"camisa\",\n        \"category\": \"ropa\"\n    }],\n    \"discountApplication\":[ {\n        \"value\": 10,\n        \"code\": {{Discount Code}},\n        \"type\": \"STORE_DISCOUNT\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.tellafriend.club/tellafriend/api/merchant/conversions/processconversion","description":"<p></p><h6>Headers</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>ecommerceProvider</td>\n<td>DEFAULT</td>\n<td>String (Optional) It is defined if it is the store by default</td>\n</tr>\n\n<tr>\n<td>Authorization</td>\n<td>Bearer {$token}</td>\n<td>Toke (Required)</td>\n</tr>\n\n<tr>\n<td>language</td>\n<td>en / es</td>\n<td>String (Optional) Defines the language in which the answer will arrive</td>\n</tr>\n</table>\n\n<p></p><h6>BODY JSON:</h6><p></p>\n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<th>discountApplication</th>\n<td>ConversionDiscountApplicationVO (Required)<br />It is a list of discounts applied\n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<th>value</th>\n<td>double (Required)<br />Discount amount</td>\n</tr>\n<tr>\n<th>code</th>\n<td>String (Required)<br />Discount code.\n</td>\n</tr>\n<tr>\n<th>type</th>\n<td>String (Required)<br />Discount type</td>\n</tr>\n</table>\n</td></tr>\n<tr>\n<th>totalAmount</th>\n<td>double (Optional)<br />Total amount billed\n</td>\n</tr>\n<tr>\n<th>totalProductsAmout</th>\n<td>double (Optional)<br />the sum of the total cost of the purchased product</td>\n</tr>\n<tr>\n<th>shippingValue</th>\n<td>double (Optional)<br />Shipping value</td>\n</tr>\n<tr>\n<th>taxValue</th>\n<td>double (Optional)<br />Tax value</td>\n</tr>\n<tr>\n<th>code</th>\n<td>double (Required)<br />Advocate’s code</td>\n</tr>\n<tr>\n<th>buyer</th>\n<td>ConversionBuyerV0 (Required)<br />Buyer information \n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>firstName</td>\n<td>String (Opcional) <br /> Buyer’s first name</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>String (Opcional) <br />Buyer’s last name</td>\n</tr>\n<tr>\n<td>fullName</td>\n<td>String (Opcional) <br />Buyer’s full name</td>\n</tr>\n<tr>\n<td>mobileNumber</td>\n<td>String (Requerido) <br />Buyer’s phone number</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String (Requerido) <br />Buyer’s email address</td>\n</tr>\n<tr>\n<td>address</td>\n<td>String (Opcional) <br />Physical address</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>String (Opcional) <br />Gender of the Buyer</td>\n</tr>\n<tr>\n<td>age</td>\n<td>String (Opcional) <br /> Age of the Buyer</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String (Opcional) <br />Country where buyer is based</td>\n</tr>\n<tr>\n<td>ipAddress</td>\n<td>String (Opcional) <br />IP address of the buyer</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String (Opcional) <br />City where buyer is based</td>\n</tr>\n<tr>\n<td>operativeSystem</td>\n<td>String (Opcional) <br />Buyer’s operative system</td>\n</tr>\n<tr>\n<td>browser</td>\n<td>String (Opcional) <br />Buyer’s browse</td>\n</tr>\n<tr>\n<td>device</td>\n<td>String (Opcional) <br />Buyer’s device</td>\n</tr>\n</table>\n</td>\n</tr>\n<tr>\n<td>products</td>\n<td>ConversionProductVO\n<table>\n<tr>\n<th>Value</th>\n<th>Descripción</th>\n</tr>\n<tr>\n<td>name</td>\n<td>String (Opcional) <br /> Product Name </td>\n</tr>\n<tr>\n<td>category</td>\n<td>String (Opcional) <br /> Product category name</td>\n</tr>\n</table>\n</td>\n</tr>\n<tr>\n<td>orderId</td>\n<td>int (Opcional) <br /> Transaction ID</td>\n</tr>\n</table>\n\n<h4>Request status</h4>\n<p>200 OK</p>\n\n<h1 id=\"example-of-petition\">Example of petition</h1>\n","urlObject":{"protocol":"https","path":["tellafriend","api","merchant","conversions","processconversion"],"host":["api","tellafriend","club"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"7e05d78b-a95d-436e-ba87-2a40377341a1","name":"Send Conversion","originalRequest":{"method":"POST","header":[{"key":"ecommerceProvider","value":"DEFAULT","description":"String (Required)\nIt should be set to DEFAULT","type":"text"},{"key":"language","value":"en / es","description":"String (Optional)\nLanguage of the answer","type":"text"},{"key":"Authorization","value":"Bearer {$token}","description":"Toker (Required)","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"totalAmount\": 100.1,\n    \"totalProductsAmount\": 2,\n    \"shippingValue\": 9.1,\n    \"taxValue\": 0,\n    \"code\" : {{Advocate Discount Code}},\n    \"buyer\": {\n        \"firstName\": \"buyer\",\n        \"lastName\": \"buyer\",\n        \"fullName\": \"buyer\",\n        \"mobileNumber\": \"57311325014556\",\n        \"email\": \"buyer@prueba.com\",\n        \"address\": \"street 1234\",\n        \"gender\": \"M\",\n        \"age\": \"23\",\n        \"country\": \"Colombia\",\n        \"ipAddress\": \"10.170.2.2\",\n        \"city\": \"Bogota\",\n        \"operativeSystem\": \"Windows\",\n        \"browser\": \"google\",\n        \"device\": \"phone\"\n    },\n    \"products\": [{\n        \"name\": \"camisa\",\n        \"category\": \"ropa\"\n    }],\n    \"discountApplication\":[ {\n        \"value\": 10,\n        \"code\": {{Advocate Discount Code}},\n        \"type\": \"STORE_DISCOUNT\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.tellafriend.club/tellafriend/api/merchant/conversions/processconversion"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx/1.15.6"},{"key":"Date","value":"Wed, 11 Mar 2020 12:56:51 GMT"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"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"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"433e813d-ee17-4e66-9dc7-251eeb70e4fc"},{"name":"Postback URL","id":"cd2c622f-b6fd-4327-b63e-511d19d43533","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}]},"isInherited":false},"method":"POST","header":[{"key":"ecommerceProvider","value":"DEFAULT","description":"<p>String (Required)\nIt should be set to DEFAULT</p>\n","type":"text"},{"key":"language","value":"en / es","description":"<p>String (Optional)\nLanguage of the answer</p>\n","type":"text"}],"url":"https://api.tellafriend.club/tellafriend/api/merchant/conversions/processconversion/url?totalAmount=10.0&totalProductsAmount=2&shippingValue=9.1&taxValue=9.1&code={{Discount Code}}&firstName=advocate&lastName=advocate&fullName=advocate&mobileNumber=573155014556&email=advocate@prueba.com&address=prueba&gender=M&age=19&country=prueba&ipAddress=prueba&city=prueba&operativeSystem=prueba&browser=prueba&device=prueba&discountCode={{Discount code}}&orderId=prueba","description":"<p></p><h6>Headers</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>ecommerceProvider</td>\n<td>DEFAULT</td>\n<td>String (RequIRED) It is defined if it is the store by default</td>\n</tr>\n<tr>\n<td>language</td>\n<td>en / es</td>\n<td>String (Optional) Defines the language in which the answer will arrive</td>\n</tr>\n</table>\n\n<p></p><h6> Parameters<p></p></h6>\n<table>\n<tr>\n<th>KEY</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>totalAmount</td>\n<td>double (Optional)<br />Total amount of the purchase.</td>\n</tr>\n<tr>\n<td>totalProductsAmount</td>\n<td>double (Optional)<br />Total products</td>\n</tr>\n<tr>\n<td>shippingValue</td>\n<td>double (Optional)<br />Shipping value</td>\n</tr>\n<tr>\n<td>taxValue</td>\n<td>double (Optional)<br />Tax value</td>\n</tr>\n<tr>\n<td>code</td>\n<td>String(Optional)<br />Advocate discount code</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>String(Optional)<br />Buyer's first name</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>String(Optional)<br />Buyer's last name</td>\n</tr>\n<tr>\n<td>fullName</td>\n<td>String(Optional)<br />Buyer's full name</td>\n</tr>\n<tr>\n<td>mobileNumber</td>\n<td>String(Required)<br />Buyer's mobile number</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String(Required)<br />Buyer's email</td>\n</tr>\n<tr>\n<td>address</td>\n<td>String(Optional)<br />Buyer's physical address</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>String(Optional)<br />Buyer's gender</td>\n</tr>\n<tr>\n<td>age</td>\n<td>String(Optional)<br />Buyer's age</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String(Optional)<br />Country where buyer is based</td>\n</tr>\n<tr>\n<td>ipAddress</td>\n<td>String(Optional)<br />Buyer's IP address</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String(Optional)<br />City where buyer is based</td>\n</tr>\n<tr>\n<td>operativeSystem</td>\n<td>String(Optional)<br />Buyer's Operative system </td>\n</tr>\n<tr>\n<td>browser</td>\n<td>String(Optional)<br />Buyer's browser</td>\n</tr>\n<tr>\n<td>device</td>\n<td>String(Optional)<br />Buyer's device</td>\n</tr>\n<tr>\n<td>discountCode</td>\n<td>String(Required)<br />Advocate discount code</td>\n</tr>\n<tr>\n<td>orderId</td>\n<td>String(Required)<br />Transaction ID</td>\n</tr>\n</table>\n\n<p></p><h6>ANSWER JSON:</h6><p></p>\n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<th>discountCode</th>\n<td>String <br />Advocate discount code\n</td></tr>\n<tr>\n<th>totalAmount</th>\n<td>double <br />Total amount billed\n</td>\n</tr>\n<tr>\n<th>totalProductsAmout</th>\n<td>double <br />the sum of the total cost of the purchased product</td>\n</tr>\n<tr>\n<th>shippingValue</th>\n<td>double<br />Shipping value</td>\n</tr>\n<tr>\n<th>taxValue</th>\n<td>double<br />Tax value</td>\n</tr>\n<tr>\n<th>discountAmount</th>\n<td>double<br />Discount Amount</td>\n</tr>\n<tr>\n<th>buyer</th>\n<td><br />Buyer information \n<table>\n<tr>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>firstName</td>\n<td>String <br /> Buyer’s first name</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>String <br />Buyer’s last name</td>\n</tr>\n<tr>\n<td>fullName</td>\n<td>String  <br />Buyer’s full name</td>\n</tr>\n<tr>\n<td>mobileNumber</td>\n<td>String <br />Buyer’s phone number</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String <br />Buyer’s email address</td>\n</tr>\n<tr>\n<td>address</td>\n<td>String <br />Physical address</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>String <br />Gender of the Buyer</td>\n</tr>\n<tr>\n<td>age</td>\n<td>String<br /> Age of the Buyer</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String <br />Country where buyer is based</td>\n</tr>\n<tr>\n<td>ipAddress</td>\n<td>String <br />IP address of the buyer</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String  <br />City where buyer is based</td>\n</tr>\n<tr>\n<td>operativeSystem</td>\n<td>String <br />Buyer’s operative system</td>\n</tr>\n<tr>\n<td>browser</td>\n<td>String <br />Buyer’s browse</td>\n</tr>\n<tr>\n<td>device</td>\n<td>String <br />Buyer’s device</td>\n</tr>\n</table>\n</td>\n</tr>\n<tr>\n</tr><tr>\n<td>successfulOperation</td>\n<td>boolean <br /> Indicates if the process was successful</td>\n</tr>\n</table>\n\n<h1 id=\"example-of-petition\">Example of petition</h1>\n","urlObject":{"protocol":"https","path":["tellafriend","api","merchant","conversions","processconversion","url"],"host":["api","tellafriend","club"],"query":[{"description":{"content":"<p>double (Optional)\nTotal Amount of the purchase</p>\n","type":"text/plain"},"key":"totalAmount","value":"10.0"},{"description":{"content":"<p>double(Optional)\nTotal Products</p>\n","type":"text/plain"},"key":"totalProductsAmount","value":"2"},{"description":{"content":"<p>double(Optional)\nShipping value</p>\n","type":"text/plain"},"key":"shippingValue","value":"9.1"},{"description":{"content":"<p>double (Optional)\nTax Value</p>\n","type":"text/plain"},"key":"taxValue","value":"9.1"},{"description":{"content":"<p>String (Optional)\nAdvocate's discount code</p>\n","type":"text/plain"},"key":"code","value":"{{Discount Code}}"},{"description":{"content":"<p>String (Optional)\nBuyer's first name</p>\n","type":"text/plain"},"key":"firstName","value":"advocate"},{"description":{"content":"<p>String (Optional)\nBuyer's last name</p>\n","type":"text/plain"},"key":"lastName","value":"advocate"},{"description":{"content":"<p>String (Optional)\nBuyer's full name</p>\n","type":"text/plain"},"key":"fullName","value":"advocate"},{"description":{"content":"<p>String (Required)\nBuyer's mobile number</p>\n","type":"text/plain"},"key":"mobileNumber","value":"573155014556"},{"description":{"content":"<p>String (Required)\nBuyer's email</p>\n","type":"text/plain"},"key":"email","value":"advocate@prueba.com"},{"description":{"content":"<p>String (Optional)\nBuyer's physical address</p>\n","type":"text/plain"},"key":"address","value":"prueba"},{"description":{"content":"<p>String (Optional)\nGender of the buyer</p>\n","type":"text/plain"},"key":"gender","value":"M"},{"description":{"content":"<p>String (Optional)\nAge of the buyer</p>\n","type":"text/plain"},"key":"age","value":"19"},{"description":{"content":"<p>String (Optional)\nCountry where buyer is based</p>\n","type":"text/plain"},"key":"country","value":"prueba"},{"description":{"content":"<p>String (Optional)\nIP address of the buyer</p>\n","type":"text/plain"},"key":"ipAddress","value":"prueba"},{"description":{"content":"<p>String (Optional)\nCity where buyer is based</p>\n","type":"text/plain"},"key":"city","value":"prueba"},{"description":{"content":"<p>String (Optional)\nBuyer's operative system</p>\n","type":"text/plain"},"key":"operativeSystem","value":"prueba"},{"description":{"content":"<p>String (Optional)\nBuyer's browser</p>\n","type":"text/plain"},"key":"browser","value":"prueba"},{"description":{"content":"<p>String (Optional)\nBuyer's device</p>\n","type":"text/plain"},"key":"device","value":"prueba"},{"description":{"content":"<p>String (Required)\nAdvocate's discount code</p>\n","type":"text/plain"},"key":"discountCode","value":"{{Discount code}}"},{"description":{"content":"<p>int (Optional)\nTransaction ID</p>\n","type":"text/plain"},"key":"orderId","value":"prueba"}],"variable":[]}},"response":[{"id":"3fb153d2-40b1-4932-a701-62df6114475d","name":"Send Conversion URL","originalRequest":{"method":"POST","header":[{"key":"ecommerceProvider","value":"DEFAULT","description":"String (Optional)\nIt should be set to DEFAULT","type":"text"},{"key":"language","value":"en / es","description":"String (Optional)\nLanguage of the answer","type":"text"}],"url":{"raw":"https://api.tellafriend.club/tellafriend/api/merchant/conversions/processconversion/url?totalAmount=10.0&totalProductsAmount=2&shippingValue=9.1&taxValue=9.1&code={{Discount Code}}&firstName=advocate&lastName=advocate&fullName=advocate&mobileNumber=573155014556&email=advocate@prueba.com&address=prueba&gender=M&age=19&country=prueba&ipAddress=prueba&city=prueba&operativeSystem=prueba&browser=prueba&device=prueba&discountCode={{Discount Code}}&orderId=123","protocol":"https","host":["api","tellafriend","club"],"path":["tellafriend","api","merchant","conversions","processconversion","url"],"query":[{"key":"totalAmount","value":"10.0","description":"double (Optional)\nTotal Amount of the purchase"},{"key":"totalProductsAmount","value":"2","description":"double(Optional)\nTotal Products"},{"key":"shippingValue","value":"9.1","description":"double(Optional)\nShipping value"},{"key":"taxValue","value":"9.1","description":"double (Optional)\nTax Value"},{"key":"code","value":"{{Discount Code}}","description":"String (Required)\nAdvocate's discount code"},{"key":"firstName","value":"advocate","description":"String (Optional)\nBuyer's first name"},{"key":"lastName","value":"advocate","description":"String (Optional)\nBuyer's last name"},{"key":"fullName","value":"advocate","description":"String (Optional)\nBuyer's full name"},{"key":"mobileNumber","value":"573155014556","description":"String (Required)\nBuyer's mobile number"},{"key":"email","value":"advocate@prueba.com","description":"String (Required)\nBuyer's email"},{"key":"address","value":"prueba","description":"String (Optional)\nBuyer's physical address"},{"key":"gender","value":"M","description":"String (Optional)\nGender of the buyer"},{"key":"age","value":"19","description":"String (Optional)\nAge of the buyer"},{"key":"country","value":"prueba","description":"String (Optional)\nCountry where buyer is based\n"},{"key":"ipAddress","value":"prueba","description":"String (Optional)\nIP address of the buyer"},{"key":"city","value":"prueba","description":"String (Optional)\nCity where buyer is based"},{"key":"operativeSystem","value":"prueba","description":"String (Optional)\nBuyer's operative system"},{"key":"browser","value":"prueba","description":"String (Optional)\nBuyer's browser"},{"key":"device","value":"prueba","description":"String (Optional)\nBuyer's device"},{"key":"discountCode","value":"{{Discount Code}}","description":"String (Required)\nAdvocate's discount code"},{"key":"orderId","value":"123","description":"int (Optional)\nTransaction ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 10 Mar 2020 22:25:22 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"discoundCode\": {{Discount Code}},\n    \"totalAmount\": 10,\n    \"totalProductsAmount\": 2,\n    \"shippingValue\": 9.1,\n    \"taxValue\": 9.1,\n    \"discountAmount\": 1,\n    \"buyer\": {\n        \"firstName\": \"advocate\",\n        \"lastName\": \"advocate\",\n        \"fullName\": \"advocate\",\n        \"mobileNumber\": \"573155014556\",\n        \"email\": \"advocate@prueba.com\",\n        \"address\": \"prueba\",\n        \"gender\": \"M\",\n        \"age\": \"19\",\n        \"country\": \"prueba\",\n        \"ipAddress\": \"prueba\",\n        \"city\": \"prueba\",\n        \"operativeSystem\": \"prueba\",\n        \"browser\": \"prueba\",\n        \"device\": \"prueba\"\n    },\n    \"successfulOperation\": false\n}"}],"_postman_id":"cd2c622f-b6fd-4327-b63e-511d19d43533"},{"name":"Postback URL v2","id":"bb6c6372-59f9-466d-a39f-d3f2943a1953","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}]},"isInherited":false},"method":"POST","header":[{"key":"ecommerceProvider","value":"DEFAULT","type":"text","description":"<p>String (Required)\nIt should be set to DEFAULT</p>\n"},{"key":"language","value":"en / es","type":"text","description":"<p>String (Optional)\nLanguage of the answer</p>\n"}],"url":"https://api.tellafriend.club/tellafriend/api/merchant/conversions/conversion/url?orderId=123&discountCode=123Abc","description":"<p></p><h6>Headers</h6><p></p>\n<table>\n<tr>\n<th>KEY</th>\n<th>VALUE</th>\n<th>DESCRIPTION</th>\n</tr>\n<tr>\n<td>ecommerceProvider</td>\n<td>DEFAULT</td>\n<td>String (RequIRED) It is defined if it is the store by default</td>\n</tr>\n<tr>\n<td>language</td>\n<td>en / es</td>\n<td>String (Optional) Defines the language in which the answer will arrive</td>\n</tr>\n</table>\n<p></p><h6> Parameters<p></p></h6>\n<table>\n<tr>\n<td>orderId</td>\n<td>String(Required)<br />Transaction ID</td>\n</tr>\n<tr>\n<td>discountCode</td>\n<td>String(Required)<br />Advocate discount code</td>\n</tr>\n</table>","urlObject":{"protocol":"https","path":["tellafriend","api","merchant","conversions","conversion","url"],"host":["api","tellafriend","club"],"query":[{"description":{"content":"<p>int (Optional)\nTransaction ID</p>\n","type":"text/plain"},"key":"orderId","value":"123"},{"description":{"content":"<p>String (Required)\nAdvocate's discount code</p>\n","type":"text/plain"},"key":"discountCode","value":"123Abc"}],"variable":[]}},"response":[],"_postman_id":"bb6c6372-59f9-466d-a39f-d3f2943a1953"}],"id":"aee992fe-f9de-4da2-a82d-b8953d6d3f32","_postman_id":"aee992fe-f9de-4da2-a82d-b8953d6d3f32","description":""}]}