{"info":{"_postman_id":"263d6bce-9033-439d-ad69-99f02a5e9c80","name":"SemoaproApi","description":"<html><head></head><body><h1 id=\"general-presentation\">General presentation</h1>\n<p>As part of its TOPUP provider refilling activity, Semoa provides its customers with a dedicated tool in BtoBtoC: SemoaPro.<br>SemoaPro is an application with an API that offers these differents functionalities:</p>\n<ul>\n<li>Create an airtime or data order</li>\n<li>Credit a client account of a given amount</li>\n<li>Create a canal plus, cashpower or netflix order</li>\n<li>Generate a token Ecobank Xpress which will be sent to the user</li>\n<li>Get the details of an order</li>\n<li>Get the list of orders</li>\n<li>Check the status of a number</li>\n<li>Get deposit accounts</li>\n<li>Get status of an account</li>\n<li>Get products</li>\n<li>Get products by operator</li>\n<li>Send SMS</li>\n<li>Send Bulk SMS</li>\n</ul>\n<h1 id=\"run-queries-to-semoapro-api\">Run queries to SemoaPro API</h1>\n<p>SemoaPro allows you to consume the top-up, transfer and SMS sending services via its API module. SemoaPro API's services are accessible via HTTPS-compliant URLs across the network using GET/POST resources. The exchange format of this API is JSON.</p>\n<p>When executing an order via the API, you have the option of setting a callback URL that will be notified when the order is executed. This url is configured on Semoa Pro application.</p>\n<p>Test API URL: <a href=\"https://api.semoa-pro.com/qualif-aws\">https://api.semoa-pro.com/qualif-aws</a><br>Register for sandbox: Register by contact SemoaPro Team Support. After this, your credentials will be sent you by email.</p>\n<h1 id=\"abbreviations\">Abbreviations</h1>\n<p>In the rest of this document, the following abbreviations will be used.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Abbreviation</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>M</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>M*</td>\n<td>Mandatory except if the complementary parameter is e.g for create a mobile money, use either operator_label or service, not both</td>\n</tr>\n<tr>\n<td>O</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td>O*</td>\n<td>Optional if XOR parameter is not present</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"authentication\">Authentication</h1>\n<p>The security of SemoaProAPI is carried by 4 parameters in the header of the request. Below the description :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>login</td>\n<td>String</td>\n<td>Your login on the platform</td>\n</tr>\n<tr>\n<td>apireference</td>\n<td>Integer</td>\n<td>The identifier of the key API generated on your interface</td>\n</tr>\n<tr>\n<td>salt</td>\n<td>Integer</td>\n<td>Any unique and random numerical value</td>\n</tr>\n<tr>\n<td>apisecure</td>\n<td>String</td>\n<td>Token to strongly identify a specific transaction. This is the concatenation of login, apikey and salt hashing in sha-256: sha256(login+apiKey+ salt)</td>\n</tr>\n</tbody>\n</table>\n</div><p>NB: For each request you must generate an identifier (salt) which will be an unique integer. This will make your request unique to the API.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"General presentation","slug":"general-presentation"},{"content":"Run queries to SemoaPro API","slug":"run-queries-to-semoapro-api"},{"content":"Abbreviations","slug":"abbreviations"},{"content":"Authentication","slug":"authentication"}],"owner":"6777578","collectionId":"263d6bce-9033-439d-ad69-99f02a5e9c80","publishedId":"TzeXm7Ub","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-24T17:40:11.000Z"},"item":[{"name":"Authentication","item":[{"name":"Ping APi","event":[{"listen":"prerequest","script":{"id":"d75b52cc-d787-463f-a52a-853628b9e692","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"d2f181db-49d9-4d9c-a361-77fe5ddffe2c","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"c7fa25e5-1bd1-4318-a6aa-0a49a15cd17b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"action\": \"ping\"\r\n}"},"url":"{{semoa_pro_api_url}}/ping","description":"<h1 id=\"authentication-test\">Authentication test</h1>\n<ul>\n<li><p>Input Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>M/O</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>action</td>\n<td>String</td>\n<td>M</td>\n<td>The value is ping</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n<li><p>Output Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>String</td>\n<td>The status of the request</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>A description of the result</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n</ul>\n","urlObject":{"path":["ping"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"233384ed-580a-4c5d-b7b4-81f168bda538","name":"Ping APi","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"action\": \"ping\"\r\n}"},"url":"{{semoa_pro_api_url}}/ping"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Wed, 16 Jun 2021 16:08:39 GMT"},{"key":"Date","value":"Wed, 16 Jun 2021 16:08:39 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"91f20e"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/91f20e"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Set-Cookie","value":"sf_redirect=%7B%22token%22%3A%2291f20e%22%2C%22route%22%3A%22pingAuthenticate%22%2C%22method%22%3A%22POST%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CApiBundle%5C%5CController%5C%5CDefaultController%22%2C%22method%22%3A%22pingAction%22%2C%22file%22%3A%22%5C%2Fhome%5C%2Fpascal%5C%2Fapps%5C%2Fsemoa-pro-api%5C%2Fsrc%5C%2FApiBundle%5C%2FController%5C%2FDefaultController.php%22%2C%22line%22%3A138%7D%2C%22status_code%22%3A201%2C%22status_text%22%3A%22Created%22%7D; path=/; httponly; samesite=lax"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"authenticate success\"\n}"}],"_postman_id":"c7fa25e5-1bd1-4318-a6aa-0a49a15cd17b"}],"id":"e3443aef-9492-487d-9ea8-3438415e0744","description":"<p>This resource allow you to test authentication to the API</p>\n","_postman_id":"e3443aef-9492-487d-9ea8-3438415e0744"},{"name":"Products","item":[{"name":"Get products by operator","event":[{"listen":"prerequest","script":{"id":"93a6cb2c-070f-43fe-bb17-309ddba2f04d","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"5b56ae75-7432-4bb9-a5de-47006cfcc134","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"405bbada-e973-4a96-8246-5bb8b944eea7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/services/tg/{{operator}}/products","description":"<p>Get the list of all products by operator</p>\n<ul>\n<li><p>Query Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>M/O</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>operator</td>\n<td>String</td>\n<td>M</td>\n<td>Examples of value: TOGOCEL, MOOV, CANAL-PLUS, CASHPOWER, etc.</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n<li><p>Output Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>produit_id</td>\n<td>Integer</td>\n<td>identifier of the product</td>\n</tr>\n<tr>\n<td>fee</td>\n<td>Float</td>\n<td>fee of the product</td>\n</tr>\n<tr>\n<td>value</td>\n<td>Float</td>\n<td>the amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>type of the product</td>\n</tr>\n<tr>\n<td>label</td>\n<td>String</td>\n<td>label of the product</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n</ul>\n","urlObject":{"path":["services","tg","{{operator}}","products"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"fc42b287-8fa9-4483-bb60-45bc92e1efcc","name":"Get products by operator","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/services/tg/TOGOCEL/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Fri, 18 Jun 2021 14:34:02 GMT"},{"key":"Date","value":"Fri, 18 Jun 2021 14:34:02 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"ba6fcb"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/ba6fcb"},{"key":"X-Robots-Tag","value":"noindex"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"produit_id\": 546,\n        \"fee\": 150,\n        \"value\": 0,\n        \"type\": \"MOBILE_MONEY\",\n        \"label\": \"Tmoney3\"\n    },\n    {\n        \"produit_id\": 545,\n        \"fee\": 50,\n        \"value\": 0,\n        \"type\": \"MOBILE_MONEY\",\n        \"label\": \"Tmoney2\"\n    },\n    {\n        \"produit_id\": 9,\n        \"fee\": 5,\n        \"value\": 200,\n        \"type\": \"data\",\n        \"label\": \"Carte 20 Méga\"\n    },\n    {\n        \"produit_id\": 13,\n        \"fee\": 0,\n        \"value\": 200,\n        \"type\": \"credit\",\n        \"label\": \"Carte 200 tgcel\"\n    },\n    {\n        \"produit_id\": 49,\n        \"fee\": 0,\n        \"value\": 450,\n        \"type\": \"credit\",\n        \"label\": \"Carte 450 tgcel\"\n    },\n    {\n        \"produit_id\": 52,\n        \"fee\": 0,\n        \"value\": 500,\n        \"type\": \"data\",\n        \"label\": \"Carte 80 Méga\"\n    },\n    {\n        \"produit_id\": 2,\n        \"fee\": 0,\n        \"value\": 1000,\n        \"type\": \"credit\",\n        \"label\": \"Carte 1000 tgcel\"\n    },\n    {\n        \"produit_id\": 157,\n        \"fee\": 0,\n        \"value\": 1500,\n        \"type\": \"data\",\n        \"label\": \"Carte 300 Méga\"\n    },\n    {\n        \"produit_id\": 158,\n        \"fee\": 0,\n        \"value\": 2000,\n        \"type\": \"credit\",\n        \"label\": \"Carte 2000 tgcel\"\n    },\n    {\n        \"produit_id\": 1,\n        \"fee\": 0,\n        \"value\": 4500,\n        \"type\": \"credit\",\n        \"label\": \"Carte 4500 tgcel\"\n    },\n    {\n        \"produit_id\": 10,\n        \"fee\": 0,\n        \"value\": 5000,\n        \"type\": \"data\",\n        \"label\": \"Carte 1 Go\"\n    },\n    {\n        \"produit_id\": 389,\n        \"fee\": 0,\n        \"value\": 5500,\n        \"type\": \"credit\",\n        \"label\": \"Test Recharge\"\n    },\n    {\n        \"produit_id\": 50,\n        \"fee\": 0,\n        \"value\": 9000,\n        \"type\": \"credit\",\n        \"label\": \"Carte 9000 tgcel\"\n    },\n    {\n        \"produit_id\": 14,\n        \"fee\": 0,\n        \"value\": 10000,\n        \"type\": \"data\",\n        \"label\": \"Carte 3 Go\"\n    },\n    {\n        \"produit_id\": 11,\n        \"fee\": 0,\n        \"value\": 15000,\n        \"type\": \"data\",\n        \"label\": \"Carte 5 Go\"\n    },\n    {\n        \"produit_id\": 132,\n        \"fee\": 0,\n        \"value\": 22500,\n        \"type\": \"credit\",\n        \"label\": \"Carte 22500 tgcel\"\n    },\n    {\n        \"produit_id\": 12,\n        \"fee\": 0,\n        \"value\": 35000,\n        \"type\": \"data\",\n        \"label\": \"Carte 10 Go\"\n    },\n    {\n        \"produit_id\": 3,\n        \"fee\": 0,\n        \"value\": 45000,\n        \"type\": \"credit\",\n        \"label\": \"Carte 45 000 tgcel\"\n    }\n]"}],"_postman_id":"405bbada-e973-4a96-8246-5bb8b944eea7"},{"name":"Get products by operator and type","event":[{"listen":"prerequest","script":{"id":"45b76581-ca0a-4917-bab2-760bbbd34285","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"3f1cf60d-7232-45eb-9ed4-c6ee0a5bbd53","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"2f8966f7-f74f-471a-b737-f32db578449c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/services/tg/CANAL-PLUS/products/canal-plus","description":"<p>Get the list of all products by operator and type</p>\n<ul>\n<li><p>Query Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>M/O</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>operator</td>\n<td>String</td>\n<td>M</td>\n<td>Examples of value: TOGOCEL, MOOV, CANAL-PLUS,etc.</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>M</td>\n<td>Examples of value: credit, data,etc.</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n<li><p>Output Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>produit_id</td>\n<td>Integer</td>\n<td>identifier of the product</td>\n</tr>\n<tr>\n<td>fee</td>\n<td>Float</td>\n<td>fee of the product</td>\n</tr>\n<tr>\n<td>value</td>\n<td>Float</td>\n<td>the amount</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>type of the product</td>\n</tr>\n<tr>\n<td>label</td>\n<td>String</td>\n<td>label of the product</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n</ul>\n","urlObject":{"path":["services","tg","CANAL-PLUS","products","canal-plus"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"bf84a68d-60ce-4236-956d-c975f047e42d","name":"Get products by operator and type","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/services/tg/CANAL-PLUS/products/canal-plus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Fri, 18 Jun 2021 11:26:16 GMT"},{"key":"Date","value":"Fri, 18 Jun 2021 11:26:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"627ab2"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/627ab2"},{"key":"X-Robots-Tag","value":"noindex"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"produit_id\": 448,\n        \"fee\": 0,\n        \"value\": 5000,\n        \"type\": \"canal-plus\",\n        \"label\": \"ACCESS\"\n    },\n    {\n        \"produit_id\": 538,\n        \"fee\": 0,\n        \"value\": 10000,\n        \"type\": \"canal-plus\",\n        \"label\": \"EVASION\"\n    },\n    {\n        \"produit_id\": 539,\n        \"fee\": 0,\n        \"value\": 20000,\n        \"type\": \"canal-plus\",\n        \"label\": \"EVASION+\"\n    },\n    {\n        \"produit_id\": 540,\n        \"fee\": 0,\n        \"value\": 40000,\n        \"type\": \"canal-plus\",\n        \"label\": \"TOUT CANAL+\"\n    }\n]"}],"_postman_id":"2f8966f7-f74f-471a-b737-f32db578449c"}],"id":"97cc3b22-9631-4f85-8c56-46612a99310f","_postman_id":"97cc3b22-9631-4f85-8c56-46612a99310f","description":""},{"name":"Orders","item":[{"name":"Create airtime order","event":[{"listen":"prerequest","script":{"id":"c39aedc1-d4ba-49ef-b1e9-7b8f2543f6c8","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"0084d5dd-26d0-4862-9678-a94f478d6461","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"319c648d-8a1c-446d-ad24-1ec19077c109","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"recipient\": \"22890112783\",\n    \"amount\": 1000,\n    \"type\": \"credit\",\n    \"operator\" : \"TOGOCEL\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/topup/order","description":"<ul>\n<li><p>Input Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>M/O</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>amount</td>\n<td>Integer</td>\n<td>M*</td>\n<td>amount of product. Mandatory except if the “productRef” parameter is specified</td>\n</tr>\n<tr>\n<td>productRef</td>\n<td>Integer</td>\n<td>M*</td>\n<td>Represents the product reference Mandatory except if the “amount” parameter is specified</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>O*</td>\n<td>Type of order. It’s required when parameter “amount” is specified. Values are: credit or data</td>\n</tr>\n<tr>\n<td>operator</td>\n<td>String</td>\n<td>M</td>\n<td>The name of the operator corresponding to the number</td>\n</tr>\n<tr>\n<td>third_reference</td>\n<td>String</td>\n<td>O</td>\n<td>Third party reference</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n<li><p>Output Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>orderType</td>\n<td>String</td>\n<td>The type of the order</td>\n</tr>\n<tr>\n<td>origin</td>\n<td>String</td>\n<td>Origin of the order</td>\n</tr>\n<tr>\n<td>state</td>\n<td>Integer</td>\n<td>Order status: 1: Pending (payment), 2: Paid, 3: Canceled, 4: Processing in progress, 5: Treated, 6: Error, 7: Partially Processed, 8: Hierarchical validation required, 9: archived, 99: Default</td>\n</tr>\n<tr>\n<td>orderNum</td>\n<td>String</td>\n<td>The number generated for the order</td>\n</tr>\n<tr>\n<td>recipient</td>\n<td>String</td>\n<td>The beneficiary number</td>\n</tr>\n<tr>\n<td>fee</td>\n<td>Float</td>\n<td>fee on the order</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Integer</td>\n<td>Order amount</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>Datetime</td>\n<td>Creation date</td>\n</tr>\n<tr>\n<td>third_reference</td>\n<td>String</td>\n<td>Third party reference</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n</ul>\n","urlObject":{"path":["services","tg","topup","order"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"7fdea800-caa1-4c15-beb9-789efcfd1a54","name":"Create airtime order","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"recipient\": \"22890112783\",\n    \"amount\": 1000,\n    \"type\": \"credit\",\n    \"operator\" : \"TOGOCEL\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/topup/order"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"220"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 28 Jun 2021 09:28:07 GMT"},{"key":"x-amzn-RequestId","value":"122f53bf-48df-4d20-be2a-498f45522c93"},{"key":"x-amzn-Remapped-Content-Length","value":"220"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"BoRmJGrrDoEFbPw="},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache"},{"key":"x-amzn-Remapped-Date","value":"Mon, 28 Jun 2021 09:28:07 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 72ac9c2b93d670926c49ebb50181e47a.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"JNB50-C1"},{"key":"X-Amz-Cf-Id","value":"5VXY2OIvwmjzC3vyHu6u-HGVE1V_gFQrihqw3pJkB2d_7wOlxyWarQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"orderType\": \"CREDIT_TOGOCEL\",\n    \"origin\": \"SEMOAPRO_TG_QUALIF\",\n    \"state\": 4,\n    \"orderNum\": \"1624872487-aguLcrii\",\n    \"operator\": \"TOGOCEL\",\n    \"recipient\": \"22890112783\",\n    \"fee\": 0,\n    \"amount\": 1000,\n    \"billed\": 1000,\n    \"createdAt\": \"28-06-2021 09:28:07\"\n}"}],"_postman_id":"319c648d-8a1c-446d-ad24-1ec19077c109"},{"name":"Create mobile money order","event":[{"listen":"prerequest","script":{"id":"3e0fe9c3-964c-40fc-9711-40d80cf3edc6","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"af2db28b-ff05-4b64-baa8-558bd26950c4","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"af62b1b2-b168-442c-a2b1-5d6c1f2a1598","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"amount\": 200,\n\t\"recipient\": \"22898486419\",\n\t\"service\": \"FLOOZ\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/mobile-money/order","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><br />Name</th>\n<th>Type</th>\n<th>M/O</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>amount</td>\n<td>Integer</td>\n<td>M</td>\n<td>Amount to be transferred to local currency</td>\n</tr>\n<tr>\n<td>recipient</td>\n<td>String</td>\n<td>M</td>\n<td>Beneficairy's phone number</td>\n</tr>\n<tr>\n<td>service</td>\n<td>String</td>\n<td>M</td>\n<td>The name of the service corresponds to the number.</td>\n</tr>\n<tr>\n<td>commentaire_one</td>\n<td>String</td>\n<td>O</td>\n<td>A first comment associated with the order. (Max 255 characters)</td>\n</tr>\n<tr>\n<td>commentaire_two</td>\n<td>String</td>\n<td>O</td>\n<td>A second comment associated with the order. (Text)</td>\n</tr>\n<tr>\n<td>third_reference</td>\n<td>String</td>\n<td>O</td>\n<td>Third party reference (Max 255 characters)</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>Output parameters</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><br />Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>orderType</td>\n<td>Integer</td>\n<td>Mobile money Service's name</td>\n</tr>\n<tr>\n<td>origin</td>\n<td>String</td>\n<td>Origin of the order (Application name)</td>\n</tr>\n<tr>\n<td>state</td>\n<td>Integer</td>\n<td>Order status</td>\n</tr>\n<tr>\n<td>orderNum</td>\n<td>String</td>\n<td>Order number generated in SemoPro's system</td>\n</tr>\n<tr>\n<td>operator</td>\n<td>String</td>\n<td>Operator name</td>\n</tr>\n<tr>\n<td>recipient</td>\n<td>String</td>\n<td>Beneficiary's phone number</td>\n</tr>\n<tr>\n<td>fee</td>\n<td>Float</td>\n<td>fee on the order</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Integer</td>\n<td>amount</td>\n</tr>\n<tr>\n<td>billed</td>\n<td>Float</td>\n<td>Billed amount</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>Datetime</td>\n<td>Date of order creation</td>\n</tr>\n<tr>\n<td>third_reference</td>\n<td>String</td>\n<td>Third party reference</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["services","tg","mobile-money","order"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"ee81c63f-2d5e-4317-833c-8310d42b23c5","name":"Create mobile money order","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"amount\": 200,\n\t\"recipient\": \"22898486419\",\n\t\"service\": \"FLOOZ\",\n\t\"nature\": \"CD\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/mobile-money/order"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 17 Jun 2021 09:13:35 GMT"},{"key":"Date","value":"Thu, 17 Jun 2021 09:13:35 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"5cc9f6"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/5cc9f6"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Set-Cookie","value":"sf_redirect=%7B%22token%22%3A%225cc9f6%22%2C%22route%22%3A%22createMobileMoneyCommande%22%2C%22method%22%3A%22POST%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CApiBundle%5C%5CController%5C%5CCreateCommandeController%22%2C%22method%22%3A%22createMoneyAction%22%2C%22file%22%3A%22%5C%2Fhome%5C%2Fpascal%5C%2Fapps%5C%2Fsemoa-pro-api%5C%2Fsrc%5C%2FApiBundle%5C%2FController%5C%2FCreateCommandeController.php%22%2C%22line%22%3A704%7D%2C%22status_code%22%3A201%2C%22status_text%22%3A%22Created%22%7D; path=/; httponly; samesite=lax"}],"cookie":[],"responseTime":null,"body":"{\n    \"third_reference\": \"\",\n    \"orderType\": \"FLOOZ\",\n    \"origin\": \"SEMOAPRO_TG_QUALIF\",\n    \"state\": 1,\n    \"orderNum\": \"1623921215-hFdFIvtr\",\n    \"operator\": \"MOOV\",\n    \"recipient\": \"+22898486419\",\n    \"fee\": 0,\n    \"amount\": 200,\n    \"billed\": 200,\n    \"createdAt\": \"17-06-2021 09:13:35\"\n}"}],"_postman_id":"af62b1b2-b168-442c-a2b1-5d6c1f2a1598"},{"name":"Create orders Canal/Cashpower","event":[{"listen":"prerequest","script":{"id":"2e8e1941-9056-47a6-88ac-2cb97dc6ccb8","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"6c95ffbb-63a2-43d5-98e3-b87c0b60b9c2","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"cfd0e899-fe0a-4406-961e-c0c6203faec2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"numero_equipement\": \"9999888877788888\",\n\t\"recipient\": \"22898486419\",\n\t\"productRef\": 14,\n\t\"nature\": \"CD\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/orders","description":"<h3 id=\"create-canal-plus-cashpower-or-netflix-order\">Create canal-plus, cashpower or netflix order</h3>\n<p>This method is used to create a canal plus, cashpower or netflix order</p>\n<ul>\n<li><p>Input Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>M/O</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>O*</td>\n<td>Type of order. It’s required when the parameter “amount” is specified: CASHPOWER, CANAL_PLUS, NETFLIX</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Integer</td>\n<td>M*</td>\n<td>amount of product. Mandatory except if the “productRef” parameter is specified</td>\n</tr>\n<tr>\n<td>productRef</td>\n<td>Integer</td>\n<td>M*</td>\n<td>Represents the product reference Mandatory except if the “amount” parameter is specified</td>\n</tr>\n<tr>\n<td>recipient</td>\n<td>String</td>\n<td>M</td>\n<td>The beneficiary number of the order. number format +22899875702</td>\n</tr>\n<tr>\n<td>nature</td>\n<td>String</td>\n<td>O</td>\n<td>nature of the order. you have to put \"CD\" by default which means \"Direct Command\"</td>\n</tr>\n<tr>\n<td>numero_equipement</td>\n<td>String</td>\n<td>M</td>\n<td>number of the decoder or counter to recharge</td>\n</tr>\n<tr>\n<td>commentaire_one</td>\n<td>String</td>\n<td>O</td>\n<td>A first comment associated with the order</td>\n</tr>\n<tr>\n<td>commentaire_two</td>\n<td>String</td>\n<td>O</td>\n<td>A second comment</td>\n</tr>\n<tr>\n<td>third_reference</td>\n<td>String</td>\n<td>O</td>\n<td>Third party reference</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n<li><p>Output Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>orderType</td>\n<td>String</td>\n<td>The type of the order</td>\n</tr>\n<tr>\n<td>origin</td>\n<td>String</td>\n<td>Origin of the order</td>\n</tr>\n<tr>\n<td>state</td>\n<td>Integer</td>\n<td>Order status : 1: Pending (payment), 2: Paid, 3: Canceled, 4: Processing in progress, 5: Treated, 6: Error, 7: Partially Processed, 99: Default</td>\n</tr>\n<tr>\n<td>orderNum</td>\n<td>String</td>\n<td>The number generated for the order</td>\n</tr>\n<tr>\n<td>recipient</td>\n<td>String</td>\n<td>The beneficiary number of the order</td>\n</tr>\n<tr>\n<td>fee</td>\n<td>Float</td>\n<td>fee on the order</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Float</td>\n<td>Order amount</td>\n</tr>\n<tr>\n<td>billed</td>\n<td>Float</td>\n<td>Billed amount</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>Datetime</td>\n<td>Creation date</td>\n</tr>\n<tr>\n<td>third_reference</td>\n<td>String</td>\n<td>Third party reference</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n</ul>\n","urlObject":{"path":["services","tg","orders"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"b7e93ddf-08d5-4076-8c72-264dba5c33ce","name":"Create orders Canal/Cashpower/etc","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"type\": \"CASHPOWER\",\n\t\"numero_equipement\": \"9999888877788888\",\n\t\"recipient\": \"22898486419\",\n\t\"amount\": 1000,\n\t\"nature\": \"CD\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/orders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Wed, 16 Jun 2021 08:48:06 GMT"},{"key":"Date","value":"Wed, 16 Jun 2021 08:48:06 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"972ee7"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/972ee7"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Set-Cookie","value":"sf_redirect=%7B%22token%22%3A%22972ee7%22%2C%22route%22%3A%22createOrders%22%2C%22method%22%3A%22POST%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CApiBundle%5C%5CController%5C%5CCreateCommandeController%22%2C%22method%22%3A%22createOrders%22%2C%22file%22%3A%22%5C%2Fhome%5C%2Fpascal%5C%2Fapps%5C%2Fsemoa-pro-api%5C%2Fsrc%5C%2FApiBundle%5C%2FController%5C%2FCreateCommandeController.php%22%2C%22line%22%3A187%7D%2C%22status_code%22%3A201%2C%22status_text%22%3A%22Created%22%7D; path=/; httponly; samesite=lax"}],"cookie":[],"responseTime":null,"body":"{\n    \"orderType\": \"CASHPOWER\",\n    \"origin\": \"SEMOAPRO_TG_QUALIF\",\n    \"state\": 4,\n    \"orderNum\": \"1623833285-jijYIWxx\",\n    \"recipient\": \"+22898486419\",\n    \"fee\": 0,\n    \"amount\": 10,\n    \"billed\": 10,\n    \"createdAt\": \"16-06-2021 08:48:05\"\n}"}],"_postman_id":"cfd0e899-fe0a-4406-961e-c0c6203faec2"},{"name":"Generate Xpress token","event":[{"listen":"prerequest","script":{"id":"3e0fe9c3-964c-40fc-9711-40d80cf3edc6","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"f06e4606-efdd-4dc8-8cf4-0c615d0499fc","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"92fb2a07-e318-4db4-b1e4-f544aae7f6c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"amount\": 1000,\n\t\"recipient\": \"22898486419\",\n\t\"service\": \"XPRESS\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/mobile-money/order","description":"<p>This method is used to generate a token Ecobank Xpress which will be sent to the user to withdraw money on Ecobank GAB</p>\n<ul>\n<li><p>Input Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>M/O</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>amount</td>\n<td>Integer</td>\n<td>M</td>\n<td>Amount to be transferred to local currency. Minimum amount is 1000 and amount must be a multiple of 1000</td>\n</tr>\n<tr>\n<td>recipient</td>\n<td>String</td>\n<td>M</td>\n<td>The beneficiary number of the order. number format +22899875702</td>\n</tr>\n<tr>\n<td>service</td>\n<td>String</td>\n<td>M</td>\n<td>The name of the service: XPRESS</td>\n</tr>\n<tr>\n<td>commentaire_one</td>\n<td>String</td>\n<td>O</td>\n<td>A comment associated with the order</td>\n</tr>\n<tr>\n<td>commentaire_two</td>\n<td>String</td>\n<td>M</td>\n<td>Sender name</td>\n</tr>\n<tr>\n<td>third_reference</td>\n<td>String</td>\n<td>O</td>\n<td>Third party reference</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n<li><p>Output Parameters: </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>orderType</td>\n<td>String</td>\n<td>The type of the order</td>\n</tr>\n<tr>\n<td>origin</td>\n<td>String</td>\n<td>Origin of the order</td>\n</tr>\n<tr>\n<td>state</td>\n<td>Integer</td>\n<td>Order status : 1: Pending (payment), 2: Paid, 3: Canceled, 4: Processing in progress, 5: Treated, 6: Error, 7: Partially Processed, 99: Default</td>\n</tr>\n<tr>\n<td>orderNum</td>\n<td>String</td>\n<td>The number generated for the order</td>\n</tr>\n<tr>\n<td>operator</td>\n<td>String</td>\n<td>the wording of the operator</td>\n</tr>\n<tr>\n<td>recipient</td>\n<td>String</td>\n<td>The beneficiary number of the order</td>\n</tr>\n<tr>\n<td>fee</td>\n<td>Float</td>\n<td>fee on the order</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Float</td>\n<td>Order amount</td>\n</tr>\n<tr>\n<td>billed</td>\n<td>Float</td>\n<td>Billed amount</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>Datetime</td>\n<td>Creation date</td>\n</tr>\n<tr>\n<td>third_reference</td>\n<td>String</td>\n<td>Third party reference</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n</ul>\n","urlObject":{"path":["services","tg","mobile-money","order"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"785c8e90-a483-4158-98a6-1c7bf36a3744","name":"Generate Xpress token","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"amount\": 1000,\n\t\"recipient\": \"22898486419\",\n\t\"service\": \"XPRESS\",\n    \"commentaire_two\" : \"Kokou k.\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/mobile-money/order"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"213"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 28 Jun 2021 11:35:32 GMT"},{"key":"x-amzn-RequestId","value":"6d5ab5dc-dab8-417d-89c9-2e2b3dbf3e0c"},{"key":"x-amzn-Remapped-Content-Length","value":"213"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"BokQqFc7joEFUhA="},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache"},{"key":"x-amzn-Remapped-Date","value":"Mon, 28 Jun 2021 11:35:32 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 e6f34000bdfe06d117195b029a024924.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"JNB50-C1"},{"key":"X-Amz-Cf-Id","value":"djy_-OQtzAArL85AS5KCGV_pxoCNF7Utt2_kZ7TEb92ODzeS8gkL3g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"orderType\": \"XPRESS\",\n    \"origin\": \"SEMOAPRO_TG_QUALIF\",\n    \"state\": 4,\n    \"orderNum\": \"1624880132-CX2MaP73\",\n    \"operator\": \"ECOBANK\",\n    \"recipient\": \"+22898486419\",\n    \"fee\": 0,\n    \"amount\": 1000,\n    \"billed\": 1000,\n    \"createdAt\": \"28-06-2021 11:35:32\"\n}"}],"_postman_id":"92fb2a07-e318-4db4-b1e4-f544aae7f6c1"},{"name":"Get the details of an order","event":[{"listen":"prerequest","script":{"id":"c5c54d82-7ed1-44e0-93eb-9cdd5fb02092","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"8f7f7ee7-62c1-4040-9fa7-b3a2be49561b","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"89638e32-96b4-457a-b55e-a01a5fc43c0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/services/tg/orders/1624439757-Onymjfso","description":"<p>Get the details of an order.</p>\n<p><strong>NB: Description of order state which can be returned</strong></p>\n<p>Order states:</p>\n<p>1 : Pending (Transaction in pending state. Please check after sometime)</p>\n<p>3: Canceled(transaction was canceled)</p>\n<p>4: In process (Transaction in process)</p>\n<p>5: Threaded (Transaction is successful)</p>\n<p>6: Error (Transaction failed):</p>\n<p>7: Partial thredated(Transaction was partial threated. Please check after sometime)</p>\n<p>10: Timeout (Transaction was failed with error of type timeout)</p>\n","urlObject":{"path":["services","tg","orders","1624439757-Onymjfso"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"5a82c62a-a14e-46f4-b242-ddb4ea017fe0","name":"Get the detail of an order","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/services/tg/orders/1548957466-cdYzh4jA"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 17 Jun 2021 17:15:08 GMT"},{"key":"Date","value":"Thu, 17 Jun 2021 17:15:08 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"cc7a73"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/cc7a73"},{"key":"X-Robots-Tag","value":"noindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"orderType\": \"CREDIT\",\n    \"origin\": \"Semoa-Pro-API\",\n    \"state\": 4,\n    \"orderNum\": \"1548957466-cdYzh4jA\",\n    \"recipient\": \"+22890833218\\r\\n\\t\",\n    \"fee\": 0,\n    \"amount\": 450,\n    \"createdAt\": \"2019-01-31T17:57:46+00:00\"\n}"}],"_postman_id":"89638e32-96b4-457a-b55e-a01a5fc43c0b"},{"name":"Get an xpress token or code recharge","event":[{"listen":"prerequest","script":{"id":"c5c54d82-7ed1-44e0-93eb-9cdd5fb02092","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"8f7f7ee7-62c1-4040-9fa7-b3a2be49561b","exec":[""],"type":"text/javascript"}}],"id":"6085e499-1cc4-44c0-8d2d-7b2527e7c018","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{semoa_pro_api_url}}/services/tg/code/1622478215-luWYogsY","description":"<p>Get an xpress code or a code recharge of an order.\nThe code is sent as JWT (Json Web Token). The token is signed using a secret key. You must decode this token to get the value of the code</p>\n<p>PHP example:</p>\n<p>token = JWT::encode(code, secretKey, algorithm='HS256')</p>\n<p>code = JWT::decode(token, secretKey, algorithm='HS256')</p>\n<p>NB: secretKey is your apikey</p>\n","urlObject":{"path":["services","tg","code","1622478215-luWYogsY"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"88278f47-a8fd-471d-ab00-7ecfda5690a3","name":"Get an xpress token or code recharge","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{semoa_pro_api_url}}/services/tg/code/1622478215-luWYogsY"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"106"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 28 Sep 2021 11:12:02 GMT"},{"key":"x-amzn-RequestId","value":"a6c907a9-faef-4f86-8873-56277222f4f6"},{"key":"x-amzn-Remapped-Content-Length","value":"106"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"GXvEbEPijoEF7_g="},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache"},{"key":"x-amzn-Remapped-Date","value":"Tue, 28 Sep 2021 11:12:02 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 e1e44bd03523fb1801dbc1341ccbb8b7.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"JNB50-C1"},{"key":"X-Amz-Cf-Id","value":"xXDI8mveyNoiel3zbFslseNLyAyENS26DSIJRBCbE5OuQ8QbJLj2Jw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.IjQxNTg0OTk5Ig.3gyL1D-1bBvV7PlqlP56SgXf3Z3wl4GAWofyO11-yKc\"\n}"}],"_postman_id":"6085e499-1cc4-44c0-8d2d-7b2527e7c018"},{"name":"List 50 Orders","event":[{"listen":"prerequest","script":{"id":"c5c54d82-7ed1-44e0-93eb-9cdd5fb02092","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"d9f1ace4-6dae-4b71-8ada-a161d6e78ca3","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"5f0d48a8-4bb0-4733-b304-14565007e413","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/services/tg/orders","description":"<p>This method is used to get the lastest 50 orders</p>\n","urlObject":{"path":["services","tg","orders"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"a80bead9-37ae-4c9d-84ed-d56a4e05a28a","name":"Get Commande Last 50","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/services/tg/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 17 Jun 2021 17:14:18 GMT"},{"key":"Date","value":"Thu, 17 Jun 2021 17:14:18 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"0c5ebc"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/0c5ebc"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Set-Cookie","value":"sf_redirect=deleted; expires=Wed, 17-Jun-2020 17:14:17 GMT; Max-Age=0; path=/; httponly"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 100,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 20,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": -4,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1623920053-4wFVT3Zm\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22890112783\",\n        \"fee\": 0,\n        \"amount\": 200,\n        \"billed\": 200,\n        \"createdAt\": \"2021-06-17T08:54:13+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 100,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 20,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": -4,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    },\n    {\n        \"orderType\": \"CREDIT\",\n        \"origin\": \"Semoa-Pro-API\",\n        \"state\": 2,\n        \"orderNum\": \"1620831152-Jy0OqdLW\",\n        \"operator\": \"TOGOCEL\",\n        \"recipient\": \"+22891675315\",\n        \"fee\": 0,\n        \"amount\": 1700,\n        \"billed\": 200,\n        \"createdAt\": \"2021-05-12T14:52:33+00:00\"\n    }\n]"}],"_postman_id":"5f0d48a8-4bb0-4733-b304-14565007e413"}],"id":"98689f7a-33e8-48be-af02-a5032659883d","description":"<p>This method is used to create an airtime or data order</p>\n","_postman_id":"98689f7a-33e8-48be-af02-a5032659883d"},{"name":"Wallet","item":[{"name":"Check wallet status","event":[{"listen":"prerequest","script":{"id":"45c011ca-44f5-4a9e-8af8-8a94a1f883ce","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"3d76474b-6287-4ba8-92f4-b062a9cc8cae","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"e77c0ab5-d5bd-415c-a047-e62feb039060","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/services/tg/checkwallet-status/{{phone_number}}?service_provider=FLOOZ","description":"<p>This method is used to check the status of a mobile number</p>\n<p>NOTE: service_provider possible values are: T_MONEY, FLOOZ, XPRESS, etc.</p>\n<ul>\n<li>NameTypeDescriptionstatusStringif it returns 1 , the phone number has a wallet account If the value is -1 , the phone number is not correct and you can’t credit wallet accountmessageStringDescription</li>\n</ul>\n","urlObject":{"path":["services","tg","checkwallet-status","{{phone_number}}"],"host":["{{semoa_pro_api_url}}"],"query":[{"key":"service_provider","value":"FLOOZ"}],"variable":[]}},"response":[{"id":"c072c91d-efa3-42f3-8ebb-61fd9532bb40","name":"Check wallet status","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://api.semoa-pro.com/qualif-aws/services/tg/checkwallet-status/+22890112783?service_provider=T_MONEY","protocol":"https","host":["api","semoa-pro","com"],"path":["qualif-aws","services","tg","checkwallet-status","+22890112783"],"query":[{"key":"service_provider","value":"T_MONEY"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"75"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 25 Apr 2022 12:10:53 GMT"},{"key":"x-amzn-RequestId","value":"12498df1-48a0-4645-ae85-52b79d01bc1a"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"RItoDHVnjoEFu2g="},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.51 () OpenSSL/1.0.2k-fips"},{"key":"x-amzn-Remapped-Date","value":"Mon, 25 Apr 2022 12:10:53 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 55ed8c6d4f2cd897c7855d6065f2daf8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"CPT52-C1"},{"key":"X-Amz-Cf-Id","value":"JFjC-Z4ailHfXrRXO9eH5MOhegSN28ubZAa0TJZzJrEFFxkLmqu_yA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"operator\": \"T_MONEY\",\n    \"status\": 1,\n    \"message\": \"Numéro T_MONEY correct !\"\n}"}],"_postman_id":"e77c0ab5-d5bd-415c-a047-e62feb039060"},{"name":"Check Number","event":[{"listen":"prerequest","script":{"id":"1bc2b0b3-c0e8-4029-b623-a6469fb3dd4e","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"1d9b12d6-9d72-4874-aafd-f86696211afb","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"6a4bcd14-2a33-461d-9fc4-50e0d1c65a85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"raw_number\": \"22899875702\",\n   \"country_code\": \"tg\"\n}\n"},"url":"{{semoa_pro_api_url}}/services/tg/checkNumber","urlObject":{"path":["services","tg","checkNumber"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"cb4e9d0e-97d9-4e6e-b8e6-ebf4e8f18354","name":"Check Number","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n   \"raw_number\": \"22899875702\",\n   \"country_code\": \"tg\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/checkNumber"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Fri, 18 Jun 2021 11:48:33 GMT"},{"key":"Date","value":"Fri, 18 Jun 2021 11:48:33 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"4e0e09"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/4e0e09"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Set-Cookie","value":"sf_redirect=%7B%22token%22%3A%224e0e09%22%2C%22route%22%3A%22checkNumber%22%2C%22method%22%3A%22POST%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CApiBundle%5C%5CController%5C%5CCheckNumberController%22%2C%22method%22%3A%22checkAction%22%2C%22file%22%3A%22%5C%2Fhome%5C%2Fpascal%5C%2Fapps%5C%2Fsemoa-pro-api%5C%2Fsrc%5C%2FApiBundle%5C%2FController%5C%2FCheckNumberController.php%22%2C%22line%22%3A64%7D%2C%22status_code%22%3A201%2C%22status_text%22%3A%22Created%22%7D; path=/; httponly; samesite=lax"}],"cookie":[],"responseTime":null,"body":"{\n    \"numero\": \"22899875702\",\n    \"operator\": \"Moov\",\n    \"country\": \"Togo\",\n    \"carrier_account_status\": 0,\n    \"carrier_kyc_status\": true\n}"}],"_postman_id":"6a4bcd14-2a33-461d-9fc4-50e0d1c65a85"}],"id":"56c2bce0-341a-4be4-b0bd-542e991b447f","_postman_id":"56c2bce0-341a-4be4-b0bd-542e991b447f","description":""},{"name":"Accounts","item":[{"name":"List Accounts","event":[{"listen":"prerequest","script":{"id":"552531e0-f2c2-4ecb-8569-e7edc06bdc7c","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"4758bf0c-1c6c-4f61-aca1-ccbb0ec39464","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"0351c837-743d-4d3e-a6db-4e4dcd79416d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/accounts","description":"<p>Get deposit accounts</p>\n","urlObject":{"path":["accounts"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"8cca286f-05c2-4255-99eb-7380d9c52a9a","name":"Get An Account","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 17 Jun 2021 17:24:01 GMT"},{"key":"Date","value":"Thu, 17 Jun 2021 17:24:01 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"81aeac"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/81aeac"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Set-Cookie","value":"sf_redirect=deleted; expires=Wed, 17-Jun-2020 17:24:00 GMT; Max-Age=0; path=/; httponly"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"nature_compte\": \"DEPOT\",\n        \"solde\": 40261338.85,\n        \"id\": 1,\n        \"libelle\": \"DEPOT\",\n        \"plafond\": 44746700.61,\n        \"compteur\": 4485361.76,\n        \"compte_type\": \"Valeur\",\n        \"compte_cat\": \"Dédié\"\n    },\n    {\n        \"nature_compte\": \"Dépôt AUTRES\",\n        \"solde\": -1,\n        \"id\": 83,\n        \"libelle\": \"Dépôt AUTRES\",\n        \"plafond\": -1,\n        \"compteur\": 1000,\n        \"compte_type\": \"Valeur\",\n        \"compte_cat\": \"\"\n    },\n    {\n        \"nature_compte\": \"Sms\",\n        \"solde\": -1,\n        \"id\": 87,\n        \"libelle\": \"Compte sms\",\n        \"plafond\": -1,\n        \"compteur\": 287918,\n        \"compte_type\": \"Unité\",\n        \"compte_cat\": \"\"\n    },\n    {\n        \"nature_compte\": \"CASHPAY\",\n        \"solde\": 101,\n        \"id\": 98,\n        \"libelle\": \"test\",\n        \"plafond\": 111,\n        \"compteur\": 10,\n        \"compte_type\": \"Unité\",\n        \"compte_cat\": \"\"\n    },\n    {\n        \"nature_compte\": \"DEPOT\",\n        \"solde\": 0,\n        \"id\": 117,\n        \"libelle\": \"TEST_MUTU\",\n        \"ope_hash\": \"12453456\",\n        \"plafond\": 0,\n        \"compteur\": 0,\n        \"compte_type\": \"Valeur\",\n        \"compte_cat\": \"Dédié\"\n    },\n    {\n        \"nature_compte\": \"DEPOT\",\n        \"solde\": 21443,\n        \"id\": 118,\n        \"libelle\": \"COMPTE_DEDIE_FLOOZ\",\n        \"ope_hash\": \"5b6679a5-2284-45d6-a426-05321de40d2f\",\n        \"plafond\": -1,\n        \"compteur\": 0,\n        \"compte_type\": \"Valeur\",\n        \"compte_cat\": \"Dédié\"\n    },\n    {\n        \"nature_compte\": \"DEPOT\",\n        \"solde\": 0,\n        \"id\": 119,\n        \"libelle\": \"TST_DED\",\n        \"ope_hash\": \"9e29e9d6-f4ed-486c-aa86-7456c8a5575b\",\n        \"plafond\": -1,\n        \"compteur\": 0,\n        \"compte_type\": \"Valeur\",\n        \"compte_cat\": \"Dédié\"\n    },\n    {\n        \"nature_compte\": \"CASHPAY\",\n        \"solde\": 1569,\n        \"id\": 120,\n        \"libelle\": \"CASHPAY\",\n        \"plafond\": 5000,\n        \"compteur\": 3431,\n        \"compte_type\": \"Valeur\",\n        \"compte_cat\": \"Dédié\"\n    }\n]"}],"_postman_id":"0351c837-743d-4d3e-a6db-4e4dcd79416d"},{"name":"Account details","event":[{"listen":"prerequest","script":{"id":"552531e0-f2c2-4ecb-8569-e7edc06bdc7c","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"357ca0ec-1475-4697-9f94-e44b346c418c","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"7efb3d71-d1c1-4456-91fa-44d588bb5ae2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/accounts/1","description":"<h3 id=\"get-details-of-an-account\">Get details of an account</h3>\n<p>This method is used to get all informations about a society account</p>\n","urlObject":{"path":["accounts","1"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"0ebbd2de-4cad-4b21-805f-947824fbcde4","name":"Get detail of an account","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{semoa_pro_api_url}}/accounts/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 17 Jun 2021 17:28:09 GMT"},{"key":"Date","value":"Thu, 17 Jun 2021 17:28:08 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"ddb976"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/ddb976"},{"key":"X-Robots-Tag","value":"noindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"nature_compte\": \"DEPOT\",\n    \"solde\": 40261338.85,\n    \"id\": 1,\n    \"libelle\": \"DEPOT\",\n    \"plafond\": 44746700.61,\n    \"compteur\": 4485361.76,\n    \"compte_type\": \"Valeur\",\n    \"compte_cat\": \"Dédié\"\n}"}],"_postman_id":"7efb3d71-d1c1-4456-91fa-44d588bb5ae2"}],"id":"1a3d5c6c-7fa1-4fb2-80f6-49dc2d60284a","_postman_id":"1a3d5c6c-7fa1-4fb2-80f6-49dc2d60284a","description":""},{"name":"SMS","item":[{"name":"Send SMS","event":[{"listen":"prerequest","script":{"id":"aa5718c9-1617-4b5b-97f0-e38a93dd2c8c","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","var data = getApiSecure();","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);","",""],"type":"text/javascript"}},{"listen":"test","script":{"id":"a433ffc1-a8bf-4791-939b-038685e7a82a","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"eabb464d-36d8-4a56-b34f-e9f31a978b05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"content\": \"{{msg_content}}\",\n\t\"recipient\": \"+22891941381\",\n\t\"test\": true\n}"},"url":"{{semoa_pro_api_url}}/services/tg/sms/send","description":"<h3 id=\"sending-sms\">Sending SMS</h3>\n<p>This resource allows to send SMS</p>\n","urlObject":{"path":["services","tg","sms","send"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"e1d1ef5a-ccea-48e8-abfd-2bb861e30864","name":"Send SMS","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"content\": \"{{msg_content}}\",\n\t\"recipient\": \"+22891941381\",\n\t\"test\": true\n}"},"url":"{{semoa_pro_api_url}}/services/tg/sms/send"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 17 Jun 2021 17:17:55 GMT"},{"key":"Date","value":"Thu, 17 Jun 2021 17:17:55 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"00f686"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/00f686"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Set-Cookie","value":"sf_redirect=%7B%22token%22%3A%2200f686%22%2C%22route%22%3A%22sendSMS%22%2C%22method%22%3A%22POST%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CApiBundle%5C%5CController%5C%5CSmsController%22%2C%22method%22%3A%22sendSmsAction%22%2C%22file%22%3A%22%5C%2Fhome%5C%2Fpascal%5C%2Fapps%5C%2Fsemoa-pro-api%5C%2Fsrc%5C%2FApiBundle%5C%2FController%5C%2FSmsController.php%22%2C%22line%22%3A37%7D%2C%22status_code%22%3A201%2C%22status_text%22%3A%22Created%22%7D; path=/; httponly; samesite=lax"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Message sent successfully\",\n    \"message_id\": 186353,\n    \"success\": true,\n    \"data\": {\n        \"statut\": \"success\",\n        \"plafonds\": {\n            \"montant\": -1,\n            \"compteur\": 287914\n        }\n    }\n}"}],"_postman_id":"eabb464d-36d8-4a56-b34f-e9f31a978b05"},{"name":"Send Bulk SMS","event":[{"listen":"prerequest","script":{"id":"aa0353b5-1e29-4a64-991c-b00dac29f4e7","exec":["function getApiSecure()","{","    var login = environment.login;","    var apiKey = environment.api_key;","    var salt = Date.now();","    var some = login + apiKey + salt;","    var apiSecure = CryptoJS.SHA256(some).toString();","    var result = {};","    result.api_secure = apiSecure;","    result.salt = salt;","    return result;","}","","function createSMSEntries(nb)","{","    let entries = [];","    let recipient = pm.environment.get('msg_phone_number');","    let test = pm.environment.get('msg_test');","    let content = pm.environment.get('msg_content');","    let entry = {","        \"recipient\": recipient,","        \"content\": content,","        \"test\": Boolean(Number(test))","    };","    for(let i=0; i < nb; i++){","        entries.push(entry);","    }","    return entries;","}","","var nbEntries = pm.environment.get('nbSmsEntries');","var smsEntries = createSMSEntries(nbEntries);","","var data = getApiSecure();","","postman.setEnvironmentVariable('api_secure', data.api_secure);","postman.setEnvironmentVariable('salt', data.salt);","postman.setEnvironmentVariable('smsEntries', JSON.stringify(smsEntries, null, 2));"],"type":"text/javascript"}},{"listen":"test","script":{"id":"74a86991-7eba-4b1b-90c5-726d9e66bc30","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"5e9e388c-16c1-4ee2-a3f5-3dacf5ed0105","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"items\": [\n        {\n        \"recipient\": \"+22891675315\",\n        \"content\": \"test message 1\",\n        \"test\": 1\n        },\n        {\n        \"recipient\": \"+22891675315\",\n        \"content\": \"test message 2\",\n        \"test\": 1\n        },\n        {\n        \"recipient\": \"+22891675315\",\n        \"content\": \"test message 3\",\n        \"test\": 1\n        },\n        {\n        \"recipient\": \"+22891675315\",\n        \"content\": \"test message 4\",\n        \"test\": 1\n        }\n    ],\n\"bulk_label\": \"Test Campagne bulk 01062020\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/sms/send","description":"<h3 id=\"sending-bulk-sms\">Sending bulk SMS</h3>\n<p>This resource allows to send up to 1000 SMS one shot</p>\n<h6 id=\"note-\">Note :</h6>\n<p> the argument “test” allows you not to send the SMS but just simulate.\nIn order to send your SMS, just remove this argument. Default value for “test” is “0”.</p>\n","urlObject":{"path":["services","tg","sms","send"],"host":["{{semoa_pro_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"ce5876c7-2c67-4cac-862e-9843e818673a","name":"Send SMS Bulk","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}"},{"key":"apisecure","value":"{{api_secure}}"},{"key":"apireference","value":"{{api_reference}}"},{"key":"salt","value":"{{salt}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"items\": [\n        {\n        \"recipient\": \"+22891675315\",\n        \"content\": \"test message 1\",\n        \"test\": 1\n        },\n        {\n        \"recipient\": \"+22891675315\",\n        \"content\": \"test message 2\",\n        \"test\": 1\n        },\n        {\n        \"recipient\": \"+22891675315\",\n        \"content\": \"test message 3\",\n        \"test\": 1\n        },\n        {\n        \"recipient\": \"+22891675315\",\n        \"content\": \"test message 4\",\n        \"test\": 1\n        }\n    ],\n\"bulk_label\": \"Test Campagne bulk 01062020\"\n}"},"url":"{{semoa_pro_api_url}}/services/tg/sms/send"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 17 Jun 2021 17:21:09 GMT"},{"key":"Date","value":"Thu, 17 Jun 2021 17:21:09 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.3"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-Debug-Token","value":"728184"},{"key":"X-Debug-Token-Link","value":"http://localhost:8000/_profiler/728184"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Set-Cookie","value":"sf_redirect=%7B%22token%22%3A%22728184%22%2C%22route%22%3A%22sendSMS%22%2C%22method%22%3A%22POST%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CApiBundle%5C%5CController%5C%5CSmsController%22%2C%22method%22%3A%22sendSmsAction%22%2C%22file%22%3A%22%5C%2Fhome%5C%2Fpascal%5C%2Fapps%5C%2Fsemoa-pro-api%5C%2Fsrc%5C%2FApiBundle%5C%2FController%5C%2FSmsController.php%22%2C%22line%22%3A37%7D%2C%22status_code%22%3A201%2C%22status_text%22%3A%22Created%22%7D; path=/; httponly; samesite=lax"}],"cookie":[],"responseTime":null,"body":"{\n    \"succeful\": [\n        {\n            \"message_id\": 186354,\n            \"content\": \"test message 1\",\n            \"recipient\": \"+22891675315\",\n            \"bulk_id\": \"a84c8216-342c-4c7c-a96a-e4d2a80c174d\",\n            \"data\": {\n                \"statut\": \"crée\"\n            },\n            \"message\": \"message created successully\"\n        },\n        {\n            \"message_id\": 186355,\n            \"content\": \"test message 2\",\n            \"recipient\": \"+22891675315\",\n            \"bulk_id\": \"a84c8216-342c-4c7c-a96a-e4d2a80c174d\",\n            \"data\": {\n                \"statut\": \"crée\"\n            },\n            \"message\": \"message created successully\"\n        },\n        {\n            \"message_id\": 186356,\n            \"content\": \"test message 3\",\n            \"recipient\": \"+22891675315\",\n            \"bulk_id\": \"a84c8216-342c-4c7c-a96a-e4d2a80c174d\",\n            \"data\": {\n                \"statut\": \"crée\"\n            },\n            \"message\": \"message created successully\"\n        },\n        {\n            \"message_id\": 186357,\n            \"content\": \"test message 4\",\n            \"recipient\": \"+22891675315\",\n            \"bulk_id\": \"a84c8216-342c-4c7c-a96a-e4d2a80c174d\",\n            \"data\": {\n                \"statut\": \"crée\"\n            },\n            \"message\": \"message created successully\"\n        }\n    ],\n    \"failed\": []\n}"}],"_postman_id":"5e9e388c-16c1-4ee2-a3f5-3dacf5ed0105"}],"id":"88636783-9575-4126-ae9f-73029700f4ca","_postman_id":"88636783-9575-4126-ae9f-73029700f4ca","description":""},{"name":"Callback URL","item":[{"name":"Callback notify","id":"e5be23b4-f8a5-497d-b77e-822c80bdff44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{   \r\n    \"cmd_reference\": \"1674831145-FPMNodCc\", \r\n    \"third_reference\": \"\", \r\n    \"recipient\": \"+22890112783\", \r\n    \"amount\": \"200\",\r\n    \"state\": 1, \r\n    \"type\": \"T_MONEY\", \r\n    \"reference_transaction\": \"47531315\"\r\n}\t"},"url":"{{https:://your.callback_url.com}}","description":"<p>SemoaPro API will notify third party by calling a callback url to update the status of async transaction, based on which transaction will be marked as success, canceled or failure.</p>\n<p>This callback url is configured on Semoa Pro application</p>\n<ul>\n<li>Output Parameters</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><br />Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cmd_reference</td>\n<td>String</td>\n<td>Order reference genereated in SemoaPro's system</td>\n</tr>\n<tr>\n<td>third_reference</td>\n<td>String</td>\n<td>Third party reference</td>\n</tr>\n<tr>\n<td>recipient</td>\n<td>String</td>\n<td>Beneficairy's phone number</td>\n</tr>\n<tr>\n<td>state</td>\n<td>Integer</td>\n<td>Order record status</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>type of service</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Integer</td>\n<td>amount of order</td>\n</tr>\n<tr>\n<td>reference_transaction</td>\n<td>String</td>\n<td>transaction reference sent by operator</td>\n</tr>\n</tbody>\n</table>\n</div><p>StartFragment</p>\n<p><strong>NB:</strong> Description of order record states which can be return in the callback</p>\n<p>1 : threated(Transaction is successful)</p>\n<p>2: error (Transaction failed)</p>\n<p>3: canceled (transaction was canceled)  </p>\n<p>EndFragmen</p>\n","urlObject":{"host":["{{https:://your.callback_url.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5be23b4-f8a5-497d-b77e-822c80bdff44"}],"id":"4c044db9-e53a-459d-bfc5-cb0311c7e6f8","_postman_id":"4c044db9-e53a-459d-bfc5-cb0311c7e6f8","description":""}]}