{"info":{"_postman_id":"fa7a575e-a752-42ba-ae66-65d193481d3d","name":"CashPay_Api V2.0","description":"<html><head></head><body><h1 id=\"general-presentation\">General presentation</h1>\n<p>This documentation presents the procedure for integrating digital payment solutions into your e-commerce platform. The different resources available:</p>\n<ul>\n<li><p>Test authentication</p>\n</li>\n<li><p>Create a bill</p>\n</li>\n<li><p>Get bill's details</p>\n</li>\n<li><p>Get bill's list</p>\n</li>\n<li><p>Get available payments gateways</p>\n</li>\n<li><p>Callback Url</p>\n</li>\n</ul>\n<h1 id=\"access-to-api\">Access to API:</h1>\n<p>Environement: Sandbox<br>Endpoint: <a href=\"https://sandbox.semoa-payments.com/api\">https://sandbox.semoa-payments.com/api</a></p>\n<h1 id=\"errors\">Errors</h1>\n<p>CashPay uses HTTP status codes to indicate success or failure of API calls. Status codes in the 2xx range indicate success, 4xx range indicate error in the information provided, and 5xx range indicate server side errors. The following table lists some commonly used HTTP status codes.</p>\n<h3 id=\"http-status-codes\">HTTP STATUS CODES</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n</tr>\n<tr>\n<td>201</td>\n<td>Created</td>\n</tr>\n<tr>\n<td>204</td>\n<td>No content</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden (Unauthorised access)</td>\n</tr>\n<tr>\n<td>404</td>\n<td>URL not found</td>\n</tr>\n<tr>\n<td>405</td>\n<td>Method not allowed (Method called is not supported for the API invoked)</td>\n</tr>\n<tr>\n<td>413</td>\n<td>Payload Too Large</td>\n</tr>\n<tr>\n<td>415</td>\n<td>Unsupported Media Type</td>\n</tr>\n<tr>\n<td>422</td>\n<td>Unprocessable Entity</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too Many Requests</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal error</td>\n</tr>\n</tbody>\n</table>\n</div><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 defined</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><h2 id=\"run-queries-to-cashpay\">Run queries to CashPay</h2>\n<h2 id=\"authentication\">Authentication</h2>\n<p><strong>In version 2.0 we have impement a new type of authentication with Oauth2, but you can also use Cashpay Authentication.</strong></p>\n<ul>\n<li><strong>Oauth 2</strong></li>\n</ul>\n<p>Our APIs uses the OAuth 2.0 protocol for authentication/authorization. All access to our APIs requires authentication. Authenticated requests require an access_token.</p>\n<ul>\n<li><strong>Cashpay Auth</strong></li>\n</ul>\n<p>The security of Cashpay Api with this type of authentication is carried by 4 parameters in the headers of the request: login, apireference, salt and apisecure.</p>\n<p>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><strong>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.</strong></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"General presentation","slug":"general-presentation"},{"content":"Access to API:","slug":"access-to-api"},{"content":"Errors","slug":"errors"},{"content":"Abbreviations","slug":"abbreviations"}],"owner":"4377470","collectionId":"fa7a575e-a752-42ba-ae66-65d193481d3d","publishedId":"UUxukWRR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-22T15:55:55.000Z"},"item":[{"name":"Authentication","item":[{"name":"ping","event":[{"listen":"prerequest","script":{"id":"0639065f-6d37-4657-9bbd-05cdb0984835","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":"31334038-21f9-49b8-ae95-8d972ae2fcc0","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"aeb8e80c-1d56-4413-a63a-e221bc9766d2","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\"action\": \"ping\"\n}"},"url":"{{endpoint}}/ping","description":"<h1 id=\"ping\">Ping</h1>\n<p>This resource allow you to test authentication to the API</p>\n<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":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"5e155895-cfd5-4133-afc4-e0cd66636ffa","name":"ping","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\"action\": \"ping\"\n}"},"url":"{{endpoint}}/ping"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"53"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 30 Jun 2021 10:09:59 GMT"},{"key":"x-amzn-RequestId","value":"de093446-1e73-48ae-b101-029301bd210b"},{"key":"Allow","value":"POST"},{"key":"x-amzn-Remapped-Content-Length","value":"53"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"Bu9mtFeZjoEFxUA="},{"key":"Cache-Control","value":"max-age=0, must-revalidate, private"},{"key":"x-amzn-Remapped-Server","value":"Apache"},{"key":"Expires","value":"Wed, 30 Jun 2021 10:09:59 GMT"},{"key":"x-amzn-Remapped-Date","value":"Wed, 30 Jun 2021 10:09:59 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 49fc2f926cfb7dd26ebb967cdc70f29b.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"CDG3-C2"},{"key":"X-Amz-Cf-Id","value":"wC3OfxornTSVyEcR_0JmCYbA1TXCCkAbYKpuKszqZH675DKqtq-aBg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"authenticate success\"\n}"}],"_postman_id":"aeb8e80c-1d56-4413-a63a-e221bc9766d2"},{"name":"OAuth 2.0","id":"eccf5c45-6527-4afe-8580-564dcc8a3b09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"{{username}}\",\r\n    \"password\": \"{{password}}\",\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"client_secret\": \"{{client_secret}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/auth","description":"<h3 id=\"oauth-20-authentication\">OAuth 2.0 authentication</h3>\n<p>This operation is used to generate an access token which can then be used to authorize and authenticate towards the other end-points of the API.</p>\n<p><strong>NB</strong>: For all resources, you must send in headers parameters a <strong>Authorization Token Bearer</strong>.</p>\n<h4 id=\"request-body\">REQUEST BODY</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameters</th>\n<th>Type</th>\n<th>M/O</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client_id</td>\n<td>string</td>\n<td>M</td>\n<td>Your client ID</td>\n</tr>\n<tr>\n<td>client_secret</td>\n<td>string</td>\n<td>M</td>\n<td>your client secret</td>\n</tr>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>M</td>\n<td>your username</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>M</td>\n<td>your password</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>RESPONSE</strong></p>\n<ul>\n<li>201 Created</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameters</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>access_token</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>expires_in</td>\n<td>integer</td>\n<td></td>\n</tr>\n<tr>\n<td>refresh_expires_in</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>refresh_token</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>token_type</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>scope</td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["auth"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"5dffc298-8a4a-4b23-b228-c2955cf06f21","name":"OAuth 2.0","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"{{username}}\",\r\n    \"password\": \"{{password}}\",\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"client_secret\": \"{{client_secret}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2377"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 17 Mar 2023 15:50:39 GMT"},{"key":"x-amzn-RequestId","value":"9316f940-bad8-456a-8369-04b87b3d9887"},{"key":"Allow","value":"POST"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"B7rcVGngjoEFWZw="},{"key":"Cache-Control","value":"max-age=0, must-revalidate, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.54 () OpenSSL/1.0.2k-fips"},{"key":"Expires","value":"Fri, 17 Mar 2023 15:50:39 GMT"},{"key":"x-amzn-Remapped-Date","value":"Fri, 17 Mar 2023 15:50:39 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c7d477b8b50619a2cad341da2d65232e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LOS50-P1"},{"key":"X-Amz-Cf-Id","value":"jo2gkEfzUSCcuw5PX8WcQbURQtCtDGVpqWY4TafiSmjI4PkpUhioxQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE2NzkwNzE4MzgsImlhdCI6MTY3OTA2ODIzOCwianRpIjoiOWViYzNkY2QtNDZjZi00YmJiLTkyMDctZjJhN2FjMzgxODU0IiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6ImMyMTllNGUzLTU2YTQtNDlkMy04ZmUxLThmN2E2YzA3MWI1ZSIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiNzk4YjdhNjctNzZlMi00ZGFlLTlmNDEtOGZhOTZmM2Y0OGNiIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJyb2xlcyBvZmZsaW5lX2FjY2VzcyBwcm9maWxlIGVtYWlsIiwic2lkIjoiNzk4YjdhNjctNzZlMi00ZGFlLTlmNDEtOGZhOTZmM2Y0OGNiIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJhZGRyZXNzIjp7fSwibmFtZSI6IkNBU0hQQVkgY2FzaHBheSIsInByZWZlcnJlZF91c2VybmFtZSI6ImFwaS5jYWhzcGF5X3BvcyIsImdpdmVuX25hbWUiOiJDQVNIUEFZIiwiZmFtaWx5X25hbWUiOiJjYXNocGF5In0.NfCWOwPypbQiPhCxJ4LLWaTEdeRktd5x5_r0EleM0u4YLt0O1JIZD_YCrR9QSIYTy035-qLSW0pEbZ3OnscAzbabrQD8tu87Xz_xWsQ7s7FBoOHamqC0zJ17n9IDWgxOh1ljOb1B1_kXHnKlDIKSKEij0195bJvpEwNvMmXHJCjN-O-yNstoF4DIi7QkCOy7eiliL3R3t9a5JZh8oNaIDKDFtMZ3Jv5KIuA0ecJVb0RdWEZRLGAntXwJS8TeYx82s_LRSi-LEIc3n75wMaTyDASlKCvDVVQhjMeoXkTAvqPf50O9mJQ4RHNYvS6spGvIHjSinTmKu6wtP9v3_RW2UQ\",\n    \"expires_in\": 3600,\n    \"refresh_expires_in\": 2592000,\n    \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIyYzI3ZWZiNC05MTg4LTQzMmMtOTg0ZS05OGE1MDQ3NDM4MzcifQ.eyJleHAiOjE2ODE2NjAyMzgsImlhdCI6MTY3OTA2ODIzOCwianRpIjoiODdkY2RhZjEtMGE3NC00ZjI4LTgwNWItNjQzN2JmOWNkMTRjIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52Iiwic3ViIjoiYzIxOWU0ZTMtNTZhNC00OWQzLThmZTEtOGY3YTZjMDcxYjVlIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiNzk4YjdhNjctNzZlMi00ZGFlLTlmNDEtOGZhOTZmM2Y0OGNiIiwic2NvcGUiOiJyb2xlcyBvZmZsaW5lX2FjY2VzcyBwcm9maWxlIGVtYWlsIiwic2lkIjoiNzk4YjdhNjctNzZlMi00ZGFlLTlmNDEtOGZhOTZmM2Y0OGNiIn0.M1IaJMqF_BTobAlf1hreJqWI67DdCthsE1UBbbrqiyg\",\n    \"token_type\": \"bearer\",\n    \"not-before-policy\": 0,\n    \"session_state\": \"798b7a67-76e2-4dae-9f41-8fa96f3f48cb\",\n    \"scope\": \"roles offline_access profile email\"\n}"}],"_postman_id":"eccf5c45-6527-4afe-8580-564dcc8a3b09"}],"id":"bb170499-7291-4d02-b719-d267b06da879","_postman_id":"bb170499-7291-4d02-b719-d267b06da879","description":""},{"name":"Gateways","item":[{"name":"Gateways list","event":[{"listen":"prerequest","script":{"id":"25cb7754-7a69-48cf-b055-1af1e8a70665","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":"5dbddb42-13c6-4a35-9564-86d39c74ac3d","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"5ef875c0-6cf3-40de-8fe4-a916d4a8261a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{endpoint}}/gateways","description":"<p>This resource is used to get payment's gateways available for a specific merchant account</p>\n<p>Response :</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>id</td>\n<td>integer</td>\n<td>gateway id</td>\n</tr>\n<tr>\n<td>libelle</td>\n<td>String</td>\n<td>gateway label</td>\n</tr>\n<tr>\n<td>psp {}</td>\n<td>Object</td>\n<td>Payment system Provider</td>\n</tr>\n<tr>\n<td>psp.libelle</td>\n<td>String</td>\n<td>Psp label</td>\n</tr>\n<tr>\n<td>psp.logo_url</td>\n<td>String</td>\n<td>Psp logo link</td>\n</tr>\n<tr>\n<td>methode</td>\n<td>String</td>\n<td>Payment Method</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>String</td>\n<td>Gateway Unique reference</td>\n</tr>\n</tbody>\n</table>\n</div><p>Payment's method types:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>USSD</td>\n<td>The customer pays the bill by executing USSD syntax on his phone</td>\n</tr>\n<tr>\n<td>PUSH_USSD</td>\n<td>A push ussd will be sent directly to the customer's phone. A popup will be displayed on his phone asking him to validate the payment by entering his pin code</td>\n</tr>\n<tr>\n<td>DIRECT_URL</td>\n<td>The customer will be redirected to an url to proceed to the payment of his invoice</td>\n</tr>\n<tr>\n<td>MOBILE_APP</td>\n<td>The customer will have to pay the bill from a mobile banking application for example, or from a whatsapp bot</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["gateways"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"73fff68e-8c7a-40fe-a228-cebb48dd5976","name":"Gateways list with OAuth2","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}","disabled":true},{"key":"apisecure","value":"{{api_secure}}","disabled":true},{"key":"apireference","value":"{{api_reference}}","disabled":true},{"key":"salt","value":"{{salt}}","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MDA2NjY3NzEsImlhdCI6MTcwMDY2MzE3MSwianRpIjoiY2M1MjBiNTEtYjI2ZS00NzcwLWI1YjktMmNkOGZhMDQ2YmRmIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6ImM3YjVhODNhLTYyNjctNGY2MC1iODZkLTdiMTcwYjIwZGRjZCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiY2ZhYjg5OWQtN2E0MS00YTk5LWE1NzUtZTVkNWJmZDRiNWViIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBlbWFpbCIsInNpZCI6ImNmYWI4OTlkLTdhNDEtNGE5OS1hNTc1LWU1ZDViZmQ0YjVlYiIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sInByZWZlcnJlZF91c2VybmFtZSI6ImRlbW8ifQ.kKXsuRxADD2Nsqf-0cbMCUVE8iOAo5HGLHPS8L1eLmlgYvcTN4EIl7Htm13w_quWlwDBFcb6o_WnyRYP5F2xXdGweep_96vHHPXNfF3wm9xsRVQLzIA9iZrNjKkX0Gq7ptZiiBWl1TnJS1LfXZaB9sYVIHDaKMiL4MrFuLloo_K7fNc_F4CYHEtHmt9x-bQjEPg4I2OPsyo0jvILIQfRSooX3Q8_jlJ_STrHxFA7Q0yVej2LkhSlfQBtDNor11R-b4mjjn6SjIH2qRQVTam5CMR_b7Pi3tO9yrL7QRfHBt2Me5tME8hPN0yN35YkbIVIhf6M2a3drvBqyvQcAsmfCA","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{endpoint}}/gateways"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Nov 2023 14:42:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.57 () OpenSSL/1.0.2k-fips"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, private"},{"key":"Allow","value":"GET"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Expires","value":"Wed, 22 Nov 2023 14:42:34 GMT"},{"key":"Vary","value":"Authorization"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 11,\n        \"reference\": \"14f4597d-ef96-4263-8107-1e1970959133\",\n        \"libelle\": \"SandboxSemoa\",\n        \"psp\": {\n            \"libelle\": \"SANDBOX\",\n            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n        },\n        \"methode\": \"DIRECT_URL\",\n        \"logo_url\": null\n    },\n    {\n        \"id\": 1,\n        \"reference\": \"016eb63c-f29d-4384-92e4-b1bd37ef69f8\",\n        \"libelle\": \"FloozTG-Ecom-Semoa\",\n        \"psp\": {\n            \"libelle\": \"FLOOZ\",\n            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/Flooz.png\"\n        },\n        \"methode\": \"PUSH_USSD\",\n        \"logo_url\": null\n    },\n    {\n        \"id\": 2,\n        \"reference\": \"a2c87957-1033-46e9-8706-056e45737de1\",\n        \"libelle\": \"TmoneyGateway1\",\n        \"psp\": {\n            \"libelle\": \"T_MONEY\",\n            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/Tmoney.png\"\n        },\n        \"methode\": \"USSD\",\n        \"logo_url\": null\n    },\n    {\n        \"id\": 6,\n        \"reference\": \"52bfd484-13ef-44f3-b128-adf7187779b0\",\n        \"libelle\": \"Ecobank-Mobile-Gtw\",\n        \"psp\": {\n            \"libelle\": \"Ecobank-Mobile\",\n            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/ecobank_mobile.png\"\n        },\n        \"methode\": null,\n        \"logo_url\": null\n    },\n    {\n        \"id\": 14,\n        \"reference\": \"f7bbfaef-eba3-4b82-ac31-61eb2b772289\",\n        \"libelle\": \"Semoa-Orabank-NGO\",\n        \"psp\": {\n            \"libelle\": \"ORABANK-NGO\",\n            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/mastercard.png\"\n        },\n        \"methode\": \"DIRECT_URL\",\n        \"logo_url\": null\n    }\n]"}],"_postman_id":"5ef875c0-6cf3-40de-8fe4-a916d4a8261a"}],"id":"d8baa0d5-8d8f-401c-997d-9a1787a7ef60","_postman_id":"d8baa0d5-8d8f-401c-997d-9a1787a7ef60","description":""},{"name":"Orders","item":[{"name":"Order list","event":[{"listen":"prerequest","script":{"id":"25ff702a-0203-4881-b9e6-a52be7c95912","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","packages":{}}},{"listen":"test","script":{"id":"4057c290-d228-4dc1-8db1-c89b6a94c822","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","packages":{}}}],"id":"c7410c1b-604e-4953-8eb0-77f3f37e23da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"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"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{endpoint}}/orders","description":"<p>This resource is used to get the list of invoices.</p>\n<ul>\n<li>Path Params</li>\n</ul>\n<p>you can add some parameters in the query like terminal id to filter orders by a terminal.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>terminal</td>\n<td>String</td>\n<td>Terminal ID</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><p>Response :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>total</td>\n<td>Total of invoices</td>\n</tr>\n<tr>\n<td>order_reference</td>\n<td>Invoice reference</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Amount to be paid</td>\n</tr>\n<tr>\n<td>state</td>\n<td>Invoice's state: Pending, Error, Paid, Partial, Excess</td>\n</tr>\n<tr>\n<td>date_create</td>\n<td>Date of the bill created in CashPay</td>\n</tr>\n<tr>\n<td>payments</td>\n<td>Payment's Gateways</td>\n</tr>\n<tr>\n<td>bill_url</td>\n<td>Invoice url</td>\n</tr>\n<tr>\n<td>merchant_reference</td>\n<td>Merchant Order's reference</td>\n</tr>\n<tr>\n<td>client</td>\n<td>Customer's infos</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Customer’s phone number</td>\n</tr>\n<tr>\n<td>received_amount</td>\n<td>Received amount</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n</ul>\n","urlObject":{"path":["orders"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"922acf92-920e-4963-8b83-0d63a6314b9e","name":"Order list","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"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{endpoint}}/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"79568"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 25 Jun 2024 11:19:41 GMT"},{"key":"x-amzn-RequestId","value":"ac008840-15b8-4d7f-9e32-8607787653a9"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"Z68oCGwNjoEEGSQ="},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.58 (Amazon Linux) OpenSSL/3.0.8"},{"key":"x-amzn-Remapped-Date","value":"Tue, 25 Jun 2024 11:19:41 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7564e806c7d8686b031d863cf92ad6d2.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MAD56-P3"},{"key":"X-Amz-Cf-Id","value":"C9du_NZuYmEhaxm4nSLl-tvEO6n3k8TH1ww0UBPc_T6I9pQfNj07RQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 1036,\n    \"items\": [\n        {\n            \"order_reference\": \"SANDBOX-1719314128-NWL04y\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-06-25T11:15:28+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1719314128-NWL04y\",\n            \"code\": \"279966\",\n            \"merchant_reference\": \"SANDBOX-1719314128-Z4Qej2\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-29T15:15:28+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1719313735-gt3tCa\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-06-25T11:08:55+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1719313735-gt3tCa\",\n            \"code\": \"783068\",\n            \"merchant_reference\": \"SANDBOX-1719313735-f3tcIh\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-29T15:08:55+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1719313489-fhrWBR\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-06-25T11:04:50+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1719313489-fhrWBR\",\n            \"code\": \"913431\",\n            \"merchant_reference\": \"SANDBOX-1719313489-dhEyWA\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-29T15:04:50+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1719313381-qY75bS\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-06-25T11:03:02+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1719313381-qY75bS\",\n            \"code\": \"294447\",\n            \"merchant_reference\": \"SANDBOX-1719313381-zbvSd1\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-29T15:03:02+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1719312820-jzakMY\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-06-25T10:53:40+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1719312820-jzakMY\",\n            \"code\": \"449386\",\n            \"merchant_reference\": \"SANDBOX-1719312820-KYLgMl\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-29T14:53:40+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717518834-hKFlgQ\",\n            \"amount\": 90,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-06-04T16:33:54+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717518834-hKFlgQ\",\n            \"code\": \"066588\",\n            \"merchant_reference\": \"SANDBOX-1717518834-v68FJw\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325877\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 90,\n            \"payments\": [\n                {\n                    \"id\": 2820,\n                    \"amount\": 90,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1717518908\",\n                    \"paymentDate\": \"2024-06-04T16:35:08+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-08T20:33:54+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": {\n                \"order_reference\": \"SANDBOX-1717518365-BxaMhW\",\n                \"amount\": 100,\n                \"state\": \"Paid\",\n                \"date_create\": \"2024-06-04T16:26:06+00:00\",\n                \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717518365-BxaMhW\",\n                \"code\": \"187993\",\n                \"merchant_reference\": \"SANDBOX-1717518365-ydUjPu\",\n                \"external_order_reference\": null,\n                \"reservation_reference\": null,\n                \"client\": null,\n                \"received_amount\": 100,\n                \"payments\": [],\n                \"max_execution\": false,\n                \"date_expiration\": \"2024-06-08T20:26:06+00:00\",\n                \"currency\": \"XOF\",\n                \"commandes\": null,\n                \"jackpot\": null,\n                \"callback_status\": \"NONE\"\n            },\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717518513-nGMwwM\",\n            \"amount\": 10,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-06-04T16:28:33+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717518513-nGMwwM\",\n            \"code\": \"101710\",\n            \"merchant_reference\": \"SANDBOX-1717518513-uMJVQ2\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22897423906\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 10,\n            \"payments\": [\n                {\n                    \"id\": 2819,\n                    \"amount\": 10,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1717518530\",\n                    \"paymentDate\": \"2024-06-04T16:28:50+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-08T20:28:33+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": {\n                \"order_reference\": \"SANDBOX-1717518365-BxaMhW\",\n                \"amount\": 100,\n                \"state\": \"Paid\",\n                \"date_create\": \"2024-06-04T16:26:06+00:00\",\n                \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717518365-BxaMhW\",\n                \"code\": \"187993\",\n                \"merchant_reference\": \"SANDBOX-1717518365-ydUjPu\",\n                \"external_order_reference\": null,\n                \"reservation_reference\": null,\n                \"client\": null,\n                \"received_amount\": 100,\n                \"payments\": [],\n                \"max_execution\": false,\n                \"date_expiration\": \"2024-06-08T20:26:06+00:00\",\n                \"currency\": \"XOF\",\n                \"commandes\": null,\n                \"jackpot\": null,\n                \"callback_status\": \"NONE\"\n            },\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717518133-yUzIPc\",\n            \"amount\": 10,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-06-04T16:22:14+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717518133-yUzIPc\",\n            \"code\": \"157012\",\n            \"merchant_reference\": \"SANDBOX-1717518133-XlGVRQ\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 10,\n            \"payments\": [\n                {\n                    \"id\": 2818,\n                    \"amount\": 10,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1717518148\",\n                    \"paymentDate\": \"2024-06-04T16:22:28+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-08T20:22:14+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717518020-QKsifK\",\n            \"amount\": 10,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-06-04T16:20:21+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717518020-QKsifK\",\n            \"code\": \"809647\",\n            \"merchant_reference\": \"SANDBOX-1717518020-xpvQJD\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 10,\n            \"payments\": [\n                {\n                    \"id\": 2817,\n                    \"amount\": 10,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1717518047\",\n                    \"paymentDate\": \"2024-06-04T16:20:47+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-08T20:20:21+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717083803-tC13t6\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-30T15:43:23+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717083803-tC13t6\",\n            \"code\": \"584411\",\n            \"merchant_reference\": \"SANDBOX-1717083803-OsRsfA\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T19:43:23+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717082708-XxjMrr\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-30T15:25:08+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717082708-XxjMrr\",\n            \"code\": \"487025\",\n            \"merchant_reference\": \"SANDBOX-1717082708-qPRk2h\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T19:25:08+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717064303-ebAHGa\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-30T10:18:23+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717064303-ebAHGa\",\n            \"code\": \"828924\",\n            \"merchant_reference\": \"SANDBOX-1717064303-ZGiS5J\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T14:18:23+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717064276-BWieoX\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-30T10:17:56+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717064276-BWieoX\",\n            \"code\": \"439345\",\n            \"merchant_reference\": \"SANDBOX-1717064276-IHs22z\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T14:17:56+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717064243-K1nJWj\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-30T10:17:23+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717064243-K1nJWj\",\n            \"code\": \"400635\",\n            \"merchant_reference\": \"SANDBOX-1717064243-UwgAoS\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T14:17:23+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717064224-xoy5ss\",\n            \"amount\": 500,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-30T10:17:04+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717064224-xoy5ss\",\n            \"code\": \"114159\",\n            \"merchant_reference\": \"SANDBOX-1717064224-ekfA96\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T14:17:04+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717063952-phuQge\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-30T10:12:32+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717063952-phuQge\",\n            \"code\": \"424139\",\n            \"merchant_reference\": \"SANDBOX-1717063952-gXDqXh\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325878\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T14:12:32+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717063940-pxkm0M\",\n            \"amount\": 100,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-30T10:12:20+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717063940-pxkm0M\",\n            \"code\": \"177353\",\n            \"merchant_reference\": \"SANDBOX-1717063940-6TCDRv\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325878\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T14:12:20+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717063914-0N9Ehr\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-30T10:11:54+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717063914-0N9Ehr\",\n            \"code\": \"797995\",\n            \"merchant_reference\": \"SANDBOX-1717063914-RSezm3\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325878\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T14:11:54+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717063899-MWcCE6\",\n            \"amount\": 100,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-30T10:11:40+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717063899-MWcCE6\",\n            \"code\": \"998179\",\n            \"merchant_reference\": \"SANDBOX-1717063899-ASef1N\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325878\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T14:11:40+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717063310-X1ncqQ\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-30T10:01:51+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717063310-X1ncqQ\",\n            \"code\": \"998168\",\n            \"merchant_reference\": \"SANDBOX-1717063310-kutA3M\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22893921757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T14:01:51+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717062095-ZKegbM\",\n            \"amount\": 1000,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-30T09:41:36+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717062095-ZKegbM\",\n            \"code\": \"631275\",\n            \"merchant_reference\": \"SANDBOX-1717062095-Az71qZ\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T13:41:36+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1717062051-SX0C3O\",\n            \"amount\": 500,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-30T09:40:51+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1717062051-SX0C3O\",\n            \"code\": \"612903\",\n            \"merchant_reference\": \"SANDBOX-1717062051-BWdSCt\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-03T13:40:51+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1716998345-GZ2Kuo\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-29T15:59:06+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1716998345-GZ2Kuo\",\n            \"code\": \"172247\",\n            \"merchant_reference\": \"SANDBOX-1716998345-JGzfd1\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-02T19:59:06+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1716998227-V8rPMp\",\n            \"amount\": 1000,\n            \"state\": \"Excess\",\n            \"date_create\": \"2024-05-29T15:57:07+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1716998227-V8rPMp\",\n            \"code\": \"647077\",\n            \"merchant_reference\": \"SANDBOX-1716998227-33ungS\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 2000,\n            \"payments\": [\n                {\n                    \"id\": 2790,\n                    \"amount\": 1000,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1716998243\",\n                    \"paymentDate\": \"2024-05-29T15:57:23+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": \"Erreur lors du transfert de '1000' du compte ensaissement tampon vers le compte encaissement du marchand 'Semoa' \\n            pour la gateway 'SandboxSemoa'\",\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                },\n                {\n                    \"id\": 2791,\n                    \"amount\": 1000,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1716998276\",\n                    \"paymentDate\": \"2024-05-29T15:57:56+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-02T19:57:07+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1716997845-6ZRcLA\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-29T15:50:45+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1716997845-6ZRcLA\",\n            \"code\": \"151856\",\n            \"merchant_reference\": \"A00000145\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22898486419\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-02T19:50:45+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1716997228-Cvsd9W\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-29T15:40:28+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1716997228-Cvsd9W\",\n            \"code\": \"473977\",\n            \"merchant_reference\": \"SANDBOX-1716997228-8QhWrm\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-02T19:40:28+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1716997212-oRpFEk\",\n            \"amount\": 500,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-29T15:40:13+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1716997212-oRpFEk\",\n            \"code\": \"823434\",\n            \"merchant_reference\": \"SANDBOX-1716997212-5URUdX\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-02T19:40:13+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1716997177-nwM3Ln\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-29T15:39:37+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1716997177-nwM3Ln\",\n            \"code\": \"987074\",\n            \"merchant_reference\": \"SANDBOX-1716997177-dKVgBG\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-06-02T19:39:37+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715968307-AldrYA\",\n            \"amount\": 10,\n            \"state\": \"Expired\",\n            \"date_create\": \"2024-05-17T17:51:47+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715968307-AldrYA\",\n            \"code\": \"051620\",\n            \"merchant_reference\": \"SANDBOX-1715968307-t0vfng\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-21T21:51:47+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715964629-Asjgor\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-17T16:50:29+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715964629-Asjgor\",\n            \"code\": \"565745\",\n            \"merchant_reference\": \"SANDBOX-1715964629-BbJHzJ\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890632578\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-21T20:50:29+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715878611-F2d1f7\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-16T16:56:52+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715878611-F2d1f7\",\n            \"code\": \"237098\",\n            \"merchant_reference\": \"SANDBOX-1715878611-WyQzHa\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-20T20:56:52+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715873830-VqdfHs\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-16T15:37:10+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715873830-VqdfHs\",\n            \"code\": \"876590\",\n            \"merchant_reference\": \"A00000154\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22898486419\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-20T19:37:10+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715873158-et83Vn\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-16T15:25:58+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715873158-et83Vn\",\n            \"code\": \"320870\",\n            \"merchant_reference\": \"7285-b254\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-20T19:25:58+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715868867-ZZNXFA\",\n            \"amount\": 200,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-16T14:14:27+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715868867-ZZNXFA\",\n            \"code\": \"174479\",\n            \"merchant_reference\": \"SANDBOX-1715868867-cXBLzQ\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22898486419\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-20T18:14:27+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715868826-hCZUM0\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-16T14:13:46+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715868826-hCZUM0\",\n            \"code\": \"852537\",\n            \"merchant_reference\": \"SANDBOX-1715868826-7Sq5dp\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-20T18:13:46+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715763863-CMPQdt\",\n            \"amount\": 1000,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-15T09:04:23+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715763863-CMPQdt\",\n            \"code\": \"930577\",\n            \"merchant_reference\": \"SANDBOX-1715763863-HB3Ea8\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-19T13:04:23+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715763741-637dmm\",\n            \"amount\": 1000,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-05-15T09:02:22+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715763741-637dmm\",\n            \"code\": \"185788\",\n            \"merchant_reference\": \"SANDBOX-1715763741-1QYkB7\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 1000,\n            \"payments\": [\n                {\n                    \"id\": 2634,\n                    \"amount\": 1000,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"69360995\",\n                    \"paymentDate\": \"2024-05-15T09:02:56+00:00\",\n                    \"firstComment\": \"Le bon est échangé avec succès.\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"VOUCHER\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/VMS.png\"\n                        },\n                        \"methode\": \"USSD\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-19T13:02:22+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715763566-yiizgP\",\n            \"amount\": 1000,\n            \"state\": \"Refunded\",\n            \"date_create\": \"2024-05-15T08:59:26+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715763566-yiizgP\",\n            \"code\": \"691236\",\n            \"merchant_reference\": \"SANDBOX-1715763566-tJWohx\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 1000,\n            \"payments\": [\n                {\n                    \"id\": 2633,\n                    \"amount\": 1000,\n                    \"amountRefunded\": -1000,\n                    \"thirdparty_reference\": \"SANDBOX-1715763580\",\n                    \"paymentDate\": \"2024-05-15T08:59:40+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-19T12:59:26+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715763190-kBczYL\",\n            \"amount\": 500,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-05-15T08:53:10+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715763190-kBczYL\",\n            \"code\": \"866507\",\n            \"merchant_reference\": \"SANDBOX-1715763190-C8eTbZ\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 500,\n            \"payments\": [\n                {\n                    \"id\": 2632,\n                    \"amount\": 500,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1715763331\",\n                    \"paymentDate\": \"2024-05-15T08:55:31+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-19T12:53:10+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715762499-y6dSf3\",\n            \"amount\": 300,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-05-15T08:41:40+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715762499-y6dSf3\",\n            \"code\": \"774576\",\n            \"merchant_reference\": \"SANDBOX-1715762499-7lzWKT\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 300,\n            \"payments\": [\n                {\n                    \"id\": 2631,\n                    \"amount\": 300,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1715762503\",\n                    \"paymentDate\": \"2024-05-15T08:41:43+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-19T12:41:40+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": {\n                \"order_reference\": \"SANDBOX-1715762352-gN41Y4\",\n                \"amount\": 500,\n                \"state\": \"Paid\",\n                \"date_create\": \"2024-05-15T08:39:13+00:00\",\n                \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715762352-gN41Y4\",\n                \"code\": \"784450\",\n                \"merchant_reference\": \"SANDBOX-1715762352-EMHhf6\",\n                \"external_order_reference\": null,\n                \"reservation_reference\": null,\n                \"client\": null,\n                \"received_amount\": 500,\n                \"payments\": [],\n                \"max_execution\": false,\n                \"date_expiration\": \"2024-05-19T12:39:13+00:00\",\n                \"currency\": \"XOF\",\n                \"commandes\": null,\n                \"jackpot\": null,\n                \"callback_status\": \"NONE\"\n            },\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715762465-lSq32I\",\n            \"amount\": 200,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-05-15T08:41:05+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715762465-lSq32I\",\n            \"code\": \"166337\",\n            \"merchant_reference\": \"SANDBOX-1715762465-QpZFhh\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 200,\n            \"payments\": [\n                {\n                    \"id\": 2630,\n                    \"amount\": 200,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1715762471\",\n                    \"paymentDate\": \"2024-05-15T08:41:11+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-19T12:41:05+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": {\n                \"order_reference\": \"SANDBOX-1715762352-gN41Y4\",\n                \"amount\": 500,\n                \"state\": \"Paid\",\n                \"date_create\": \"2024-05-15T08:39:13+00:00\",\n                \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715762352-gN41Y4\",\n                \"code\": \"784450\",\n                \"merchant_reference\": \"SANDBOX-1715762352-EMHhf6\",\n                \"external_order_reference\": null,\n                \"reservation_reference\": null,\n                \"client\": null,\n                \"received_amount\": 500,\n                \"payments\": [],\n                \"max_execution\": false,\n                \"date_expiration\": \"2024-05-19T12:39:13+00:00\",\n                \"currency\": \"XOF\",\n                \"commandes\": null,\n                \"jackpot\": null,\n                \"callback_status\": \"NONE\"\n            },\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715613265-omkAvm\",\n            \"amount\": 500,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-13T15:14:25+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715613265-omkAvm\",\n            \"code\": \"439052\",\n            \"merchant_reference\": \"SANDBOX-1715613265-qSGkiX\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22897971162\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T19:14:25+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715613196-GVctWu\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-13T15:13:16+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715613196-GVctWu\",\n            \"code\": \"961496\",\n            \"merchant_reference\": \"SANDBOX-1715613196-GzxQdi\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22897971162\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T19:13:16+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715612921-X24JGP\",\n            \"amount\": 500,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-13T15:08:41+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715612921-X24JGP\",\n            \"code\": \"176463\",\n            \"merchant_reference\": \"SANDBOX-1715612921-7B4meH\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22897971162\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T19:08:41+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715612861-oTMuVB\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-13T15:07:41+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715612861-oTMuVB\",\n            \"code\": \"708283\",\n            \"merchant_reference\": \"SANDBOX-1715612861-Pmlf3h\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T19:07:41+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715612825-NjjPKH\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-13T15:07:06+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715612825-NjjPKH\",\n            \"code\": \"388715\",\n            \"merchant_reference\": \"SANDBOX-1715612825-J41qWF\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T19:07:06+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715612425-RpofYg\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-13T15:00:25+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715612425-RpofYg\",\n            \"code\": \"011234\",\n            \"merchant_reference\": \"SANDBOX-1715612425-unEQre\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T19:00:25+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715612418-4IKx1h\",\n            \"amount\": 500,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-13T15:00:18+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715612418-4IKx1h\",\n            \"code\": \"126452\",\n            \"merchant_reference\": \"SANDBOX-1715612418-xFwt96\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T19:00:18+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715612409-mpoy1v\",\n            \"amount\": 500,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-05-13T15:00:09+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715612409-mpoy1v\",\n            \"code\": \"940347\",\n            \"merchant_reference\": \"SANDBOX-1715612409-0xTqjq\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T19:00:09+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715612373-yoxKwG\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-13T14:59:33+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715612373-yoxKwG\",\n            \"code\": \"495250\",\n            \"merchant_reference\": \"SANDBOX-1715612373-I3DBfD\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T18:59:33+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715612199-QQUtLO\",\n            \"amount\": 200,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-05-13T14:56:39+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715612199-QQUtLO\",\n            \"code\": \"029963\",\n            \"merchant_reference\": \"SANDBOX-1715612199-YtHRLA\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 200,\n            \"payments\": [\n                {\n                    \"id\": 2624,\n                    \"amount\": 200,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1715612287\",\n                    \"paymentDate\": \"2024-05-13T14:58:07+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T18:56:39+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715595035-qLBoBx\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-13T10:10:35+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715595035-qLBoBx\",\n            \"code\": \"635880\",\n            \"merchant_reference\": \"SANDBOX-1715595035-tCFRk9\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T14:10:35+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715594960-rRpnST\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-05-13T10:09:21+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715594960-rRpnST\",\n            \"code\": \"467653\",\n            \"merchant_reference\": \"SANDBOX-1715594960-OPMUzn\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-17T14:09:21+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1715341807-XwzwMZ\",\n            \"amount\": 100,\n            \"state\": \"Excess\",\n            \"date_create\": \"2024-05-10T11:50:08+00:00\",\n            \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1715341807-XwzwMZ\",\n            \"code\": \"587745\",\n            \"merchant_reference\": \"SANDBOX-1715341807-G8G3FT\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 200,\n            \"payments\": [\n                {\n                    \"id\": 2612,\n                    \"amount\": 100,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1715342025\",\n                    \"paymentDate\": \"2024-05-10T11:53:45+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                },\n                {\n                    \"id\": 2613,\n                    \"amount\": 100,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"12345\",\n                    \"paymentDate\": \"2024-05-10T11:59:54+00:00\",\n                    \"firstComment\": \"\",\n                    \"secondComment\": null,\n                    \"extra_data\": \"Aucun compte défini pour créditer '0' sur le compte encaissement du marchand 'Semoa' pour la gateway 'Espece-Gateway'\",\n                    \"gateway\": {\n                        \"libelle\": \"Espece-Gateway\",\n                        \"psp\": {\n                            \"logo_url\": \"https://dev.semoa-payments.ovh/bundles/habilitation/img/espece.png\"\n                        },\n                        \"methode\": null,\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-05-14T15:50:08+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1711124263-uXbG7i\",\n            \"amount\": 100,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-03-22T16:17:43+00:00\",\n            \"bill_url\": \"https://semoa.page.link/WjX4TThPYceXGJ4F9\",\n            \"code\": \"435480\",\n            \"merchant_reference\": \"SANDBOX-1711124262-w3gFEp\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 100,\n            \"payments\": [\n                {\n                    \"id\": 2360,\n                    \"amount\": 100,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1711124282\",\n                    \"paymentDate\": \"2024-03-22T16:18:02+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-26T20:17:43+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1711123029-rdwmlF\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-22T15:57:10+00:00\",\n            \"bill_url\": \"https://semoa.page.link/thDJJp9v7hC1nPB39\",\n            \"code\": \"320601\",\n            \"merchant_reference\": \"SANDBOX-1711123028-M4v777\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-26T19:57:10+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1711123009-KxRh3w\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-22T15:56:49+00:00\",\n            \"bill_url\": \"https://semoa.page.link/1U2S2HaL3cw1sDuV7\",\n            \"code\": \"943508\",\n            \"merchant_reference\": \"SANDBOX-1711123008-CG6cwa\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-26T19:56:49+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1711122987-kyz47E\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-22T15:56:28+00:00\",\n            \"bill_url\": \"https://semoa.page.link/BteEdHcBFMdg7xeC7\",\n            \"code\": \"375562\",\n            \"merchant_reference\": \"SANDBOX-1711122986-h6snjH\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-26T19:56:28+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1711122975-KCMUBj\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-22T15:56:15+00:00\",\n            \"bill_url\": \"https://semoa.page.link/n69sW1AXke4p5ZnD9\",\n            \"code\": \"693157\",\n            \"merchant_reference\": \"SANDBOX-1711122974-pOaPQW\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-26T19:56:15+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1711120112-LxmdP0\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-22T15:08:32+00:00\",\n            \"bill_url\": \"https://semoa.page.link/6GJV86Z5LvEz4nWJ8\",\n            \"code\": \"224422\",\n            \"merchant_reference\": \"SANDBOX-1711120111-o6tFNx\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-26T19:08:32+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1711119561-RPPfvK\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-22T14:59:21+00:00\",\n            \"bill_url\": \"https://semoa.page.link/Myg3DhL1CSTJw5QE9\",\n            \"code\": \"760779\",\n            \"merchant_reference\": \"SANDBOX-1711119560-pbXZcu\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-26T18:59:21+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710945247-BHHxBD\",\n            \"amount\": 100,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-03-20T14:34:07+00:00\",\n            \"bill_url\": \"https://semoa.page.link/nyxci6mbaMvCAe4a6\",\n            \"code\": \"191789\",\n            \"merchant_reference\": \"SANDBOX-1710945246-2QZy6F\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T18:34:07+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710945048-1PhcTP\",\n            \"amount\": 10,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-03-20T14:30:48+00:00\",\n            \"bill_url\": \"https://semoa.page.link/6XWmKLj8UaNsxUzU9\",\n            \"code\": \"744605\",\n            \"merchant_reference\": \"SANDBOX-1710945047-xlv70G\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T18:30:48+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710944438-upEJ2p\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T14:20:39+00:00\",\n            \"bill_url\": \"https://semoa.page.link/Qeh2ASJeyKqCKaVAA\",\n            \"code\": \"080490\",\n            \"merchant_reference\": \"SANDBOX-1710944437-NLSjdD\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T18:20:39+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710944375-gsq568\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T14:19:36+00:00\",\n            \"bill_url\": \"https://semoa.page.link/9NKzFK5Ve2V8hc577\",\n            \"code\": \"584857\",\n            \"merchant_reference\": \"SANDBOX-1710944374-SVuFPc\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T18:19:36+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710931879-4vmzWT\",\n            \"amount\": 1000,\n            \"state\": \"Refunded\",\n            \"date_create\": \"2024-03-20T10:51:20+00:00\",\n            \"bill_url\": \"https://semoa.page.link/YGiGx5PHSeQqMwfT8\",\n            \"code\": \"088940\",\n            \"merchant_reference\": \"SANDBOX-1710931878-2Z0tRx\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 1000,\n            \"payments\": [\n                {\n                    \"id\": 2359,\n                    \"amount\": 1000,\n                    \"amountRefunded\": -1000,\n                    \"thirdparty_reference\": \"73730357\",\n                    \"paymentDate\": \"2024-03-20T10:53:02+00:00\",\n                    \"firstComment\": \"Le bon est échangé avec succès.\",\n                    \"secondComment\": null,\n                    \"extra_data\": \"Erreur lors du transfert de '1000' du compte ensaissement tampon vers le compte encaissement du marchand 'Semoa' \\n            pour la gateway 'VOUCHER'\",\n                    \"gateway\": {\n                        \"libelle\": \"VOUCHER\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/VMS.png\"\n                        },\n                        \"methode\": \"USSD\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T14:51:20+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710931163-6Y1o9V\",\n            \"amount\": 1000,\n            \"state\": \"Refunded\",\n            \"date_create\": \"2024-03-20T10:39:24+00:00\",\n            \"bill_url\": \"https://semoa.page.link/nRbTdwKbnnBRGjuK8\",\n            \"code\": \"622171\",\n            \"merchant_reference\": \"SANDBOX-1710931162-lk6BD1\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 1000,\n            \"payments\": [\n                {\n                    \"id\": 2358,\n                    \"amount\": 1000,\n                    \"amountRefunded\": -1000,\n                    \"thirdparty_reference\": \"SANDBOX-1710931203\",\n                    \"paymentDate\": \"2024-03-20T10:40:03+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T14:39:24+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710930975-4hFqSt\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T10:36:16+00:00\",\n            \"bill_url\": \"https://semoa.page.link/hoLMDgegZPu62agn6\",\n            \"code\": \"022906\",\n            \"merchant_reference\": \"SANDBOX-1710930974-wNYh2v\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T14:36:16+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710930803-AuzxkV\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T10:33:23+00:00\",\n            \"bill_url\": \"https://semoa.page.link/45huRV4iK8X7As3T7\",\n            \"code\": \"188443\",\n            \"merchant_reference\": \"SANDBOX-1710930802-ZZH9Pv\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T14:33:23+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710930372-i7sgu5\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T10:26:13+00:00\",\n            \"bill_url\": \"https://semoa.page.link/KaSb5SmtWYro93xw5\",\n            \"code\": \"090099\",\n            \"merchant_reference\": \"SANDBOX-1710930371-1OUenS\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T14:26:13+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710930170-LelBsJ\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T10:22:50+00:00\",\n            \"bill_url\": \"https://semoa.page.link/dbKxAdzt799oFiCX9\",\n            \"code\": \"494228\",\n            \"merchant_reference\": \"SANDBOX-1710930169-G6dFX8\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22893621756\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T14:22:50+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710930108-7ojjwf\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T10:21:49+00:00\",\n            \"bill_url\": \"https://semoa.page.link/tGBbEHxE1NY9DQSDA\",\n            \"code\": \"662438\",\n            \"merchant_reference\": \"SANDBOX-1710930107-S2e1Wt\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T14:21:49+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710929906-mcnRup\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T10:18:27+00:00\",\n            \"bill_url\": \"https://semoa.page.link/7FChcyFz4hksFXeW6\",\n            \"code\": \"700226\",\n            \"merchant_reference\": \"SANDBOX-1710929905-qHMrKd\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22893621756\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T14:18:27+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710927775-dmnffe\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T09:42:55+00:00\",\n            \"bill_url\": \"https://semoa.page.link/SmhXoiehMEHzmcyR6\",\n            \"code\": \"250110\",\n            \"merchant_reference\": \"SANDBOX-1710927773-UDoo0E\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T13:42:55+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710926145-YFDj6p\",\n            \"amount\": 200000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T09:15:46+00:00\",\n            \"bill_url\": \"https://semoa.page.link/XfMF5WCvXKZa6PRGA\",\n            \"code\": \"062132\",\n            \"merchant_reference\": \"SANDBOX-1710926144-gNHwTK\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T13:15:46+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710923408-Ouq4BH\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-20T08:30:08+00:00\",\n            \"bill_url\": \"https://semoa.page.link/T4USN2VswFr9G9tn6\",\n            \"code\": \"130829\",\n            \"merchant_reference\": \"SANDBOX-1710923406-F4Aj7O\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-24T12:30:08+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710865618-zldMXr\",\n            \"amount\": 1000,\n            \"state\": \"Refunded\",\n            \"date_create\": \"2024-03-19T16:26:58+00:00\",\n            \"bill_url\": \"https://semoa.page.link/rhMU8Dnhc7LFwaNf8\",\n            \"code\": \"431708\",\n            \"merchant_reference\": \"SANDBOX-1710865617-1E3NUV\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \" \",\n                \"firstname\": \" \",\n                \"phone\": \"+22893621753\",\n                \"email\": \"greta.freitas@semoa-togo.com\",\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 1000,\n            \"payments\": [\n                {\n                    \"id\": 2357,\n                    \"amount\": 1000,\n                    \"amountRefunded\": -1000,\n                    \"thirdparty_reference\": \"SANDBOX-1710865646\",\n                    \"paymentDate\": \"2024-03-19T16:27:26+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-23T20:26:58+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710865486-Aejwje\",\n            \"amount\": 1500,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-03-19T16:24:47+00:00\",\n            \"bill_url\": \"https://semoa.page.link/v1hDSoLMSabRxzn6A\",\n            \"code\": \"034558\",\n            \"merchant_reference\": \"SANDBOX-1710865485-TEKFLo\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \" \",\n                \"firstname\": \" \",\n                \"phone\": \"+22893621754\",\n                \"email\": \"gabin.epani@semoa-togo.com\",\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 1500,\n            \"payments\": [\n                {\n                    \"id\": 2356,\n                    \"amount\": 1500,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1710865508\",\n                    \"paymentDate\": \"2024-03-19T16:25:08+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-23T20:24:47+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710865243-yVk25B\",\n            \"amount\": 1000,\n            \"state\": \"Refunded\",\n            \"date_create\": \"2024-03-19T16:20:43+00:00\",\n            \"bill_url\": \"https://semoa.page.link/gL1n5xfgPrMM7ymA7\",\n            \"code\": \"224034\",\n            \"merchant_reference\": \"SANDBOX-1710865242-5cppbZ\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22893621758\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 1000,\n            \"payments\": [\n                {\n                    \"id\": 2355,\n                    \"amount\": 1000,\n                    \"amountRefunded\": -1000,\n                    \"thirdparty_reference\": \"SANDBOX-1710865262\",\n                    \"paymentDate\": \"2024-03-19T16:21:02+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-23T20:20:43+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710864704-cbpT1d\",\n            \"amount\": 1000,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-03-19T16:11:45+00:00\",\n            \"bill_url\": \"https://semoa.page.link/BMcD3mhgVYyTDhDt5\",\n            \"code\": \"031629\",\n            \"merchant_reference\": \"SANDBOX-1710864703-ypFRzn\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 1000,\n            \"payments\": [\n                {\n                    \"id\": 2354,\n                    \"amount\": 1000,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1710864880\",\n                    \"paymentDate\": \"2024-03-19T16:14:40+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-23T20:11:45+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710863727-NKW9DE\",\n            \"amount\": 1000,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-03-19T15:55:27+00:00\",\n            \"bill_url\": \"https://semoa.page.link/5UY9G1VmdgjYsHjU8\",\n            \"code\": \"256840\",\n            \"merchant_reference\": \"SANDBOX-1710863726-kJs8mi\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 1000,\n            \"payments\": [\n                {\n                    \"id\": 2353,\n                    \"amount\": 1000,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1710863753\",\n                    \"paymentDate\": \"2024-03-19T15:55:53+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-23T19:55:27+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710859466-tzXUVo\",\n            \"amount\": 10000,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-03-19T14:44:26+00:00\",\n            \"bill_url\": \"https://semoa.page.link/8mrNMenqXNBtUU316\",\n            \"code\": \"297937\",\n            \"merchant_reference\": \"SANDBOX-1710859465-bdibwS\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 10000,\n            \"payments\": [\n                {\n                    \"id\": 2352,\n                    \"amount\": 10000,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1710859497\",\n                    \"paymentDate\": \"2024-03-19T14:44:57+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-23T18:44:26+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710845805-SyhYS4\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-19T10:56:45+00:00\",\n            \"bill_url\": \"https://semoa.page.link/D56jrVeeH8a4jfti9\",\n            \"code\": \"065315\",\n            \"merchant_reference\": \"SANDBOX-1710845804-U0YXIF\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-23T14:56:45+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710783472-dqzwfT\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T17:37:52+00:00\",\n            \"bill_url\": \"https://semoa.page.link/eyfM5qMtPMR8UKfy9\",\n            \"code\": \"321461\",\n            \"merchant_reference\": \"SANDBOX-1710783471-Xu3T3K\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T21:37:52+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710781658-8Wt0ta\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T17:07:39+00:00\",\n            \"bill_url\": \"https://semoa.page.link/eKqXWkfXjvmq2uSX7\",\n            \"code\": \"739712\",\n            \"merchant_reference\": \"SANDBOX-1710781657-tIw739\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T21:07:39+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710781626-FSOvzv\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T17:07:06+00:00\",\n            \"bill_url\": \"https://semoa.page.link/VQrkxtWRgFLSwpv76\",\n            \"code\": \"925241\",\n            \"merchant_reference\": \"SANDBOX-1710781625-v5XLSa\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T21:07:06+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710781557-z2FPjJ\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T17:05:57+00:00\",\n            \"bill_url\": \"https://semoa.page.link/P1o1DeireEoyhUsU7\",\n            \"code\": \"284601\",\n            \"merchant_reference\": \"SANDBOX-1710781556-kwIPMD\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T21:05:57+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710781374-d5vpt0\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T17:02:54+00:00\",\n            \"bill_url\": \"https://semoa.page.link/Njha8XHJMfL2UP4F7\",\n            \"code\": \"731677\",\n            \"merchant_reference\": \"SANDBOX-1710781373-wUAX2x\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T21:02:54+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710778912-C2cMXp\",\n            \"amount\": 1000,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-03-18T16:21:53+00:00\",\n            \"bill_url\": \"https://semoa.page.link/9aiBjBT9QJC1AASYA\",\n            \"code\": \"973021\",\n            \"merchant_reference\": \"SANDBOX-1710778911-Uco3Kk\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T20:21:53+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710773382-ivfdGz\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T14:49:43+00:00\",\n            \"bill_url\": \"https://semoa.page.link/wSsr9gUmpLYyZv796\",\n            \"code\": \"325506\",\n            \"merchant_reference\": \"SANDBOX-1710773381-BHaF0r\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22896325874\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T18:49:43+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710773377-IVLC8b\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T14:49:37+00:00\",\n            \"bill_url\": \"https://semoa.page.link/w4WCvExgkmQ7ze9u7\",\n            \"code\": \"122212\",\n            \"merchant_reference\": \"SANDBOX-1710773376-GxxRxk\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T18:49:37+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710773093-V5KfT6\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T14:44:53+00:00\",\n            \"bill_url\": \"https://semoa.page.link/drH6Z3KvzxcM1nJx6\",\n            \"code\": \"680069\",\n            \"merchant_reference\": \"SANDBOX-1710773092-mjoYTt\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T18:44:53+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710772965-qliObx\",\n            \"amount\": 10,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T14:42:46+00:00\",\n            \"bill_url\": \"https://semoa.page.link/dydNYrNvciQdW5C56\",\n            \"code\": \"217886\",\n            \"merchant_reference\": \"SANDBOX-1710772964-CI011h\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890631478\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": null,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T18:42:46+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710772687-GmlbcX\",\n            \"amount\": 5000,\n            \"state\": \"Refunded\",\n            \"date_create\": \"2024-03-18T14:38:08+00:00\",\n            \"bill_url\": \"https://semoa.page.link/nwEuq67bq5txctGZ7\",\n            \"code\": \"893057\",\n            \"merchant_reference\": \"SANDBOX-1710772686-D00AUE\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 5000,\n            \"payments\": [\n                {\n                    \"id\": 2348,\n                    \"amount\": 5000,\n                    \"amountRefunded\": -25000,\n                    \"thirdparty_reference\": \"SANDBOX-1710772803\",\n                    \"paymentDate\": \"2024-03-18T14:40:03+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T18:38:08+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710772162-WM98Mv\",\n            \"amount\": 500,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T14:29:23+00:00\",\n            \"bill_url\": \"https://semoa.page.link/S2QS66bwv2gsDzFz5\",\n            \"code\": \"609824\",\n            \"merchant_reference\": \"SANDBOX-1710772161-yg5z5t\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T18:29:23+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710771496-pVpcdT\",\n            \"amount\": 100,\n            \"state\": \"Error\",\n            \"date_create\": \"2024-03-18T14:18:17+00:00\",\n            \"bill_url\": \"https://semoa.page.link/bz2DovzBUZw96LgC8\",\n            \"code\": \"813515\",\n            \"merchant_reference\": \"SANDBOX-1710771496-EHsNbT\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T18:18:17+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": {\n                \"order_reference\": \"SANDBOX-1710771284-JGyGzB\",\n                \"amount\": 1000,\n                \"state\": \"Partial\",\n                \"date_create\": \"2024-03-18T14:14:45+00:00\",\n                \"bill_url\": \"https://semoa.page.link/xfLersMNZy7gHRDu6\",\n                \"code\": \"464979\",\n                \"merchant_reference\": \"SANDBOX-1710771283-m9F74Z\",\n                \"external_order_reference\": null,\n                \"reservation_reference\": null,\n                \"client\": null,\n                \"received_amount\": 800,\n                \"payments\": [],\n                \"max_execution\": false,\n                \"date_expiration\": \"2024-03-22T18:14:45+00:00\",\n                \"currency\": \"XOF\",\n                \"commandes\": null,\n                \"jackpot\": null,\n                \"callback_status\": \"NONE\"\n            },\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710771461-NW5vpF\",\n            \"amount\": 500,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-03-18T14:17:41+00:00\",\n            \"bill_url\": \"https://semoa.page.link/n9iwZXvVMUMTuVCA9\",\n            \"code\": \"396863\",\n            \"merchant_reference\": \"SANDBOX-1710771461-sEkkk2\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 500,\n            \"payments\": [\n                {\n                    \"id\": 2347,\n                    \"amount\": 500,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1710771468\",\n                    \"paymentDate\": \"2024-03-18T14:17:48+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T18:17:41+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": {\n                \"order_reference\": \"SANDBOX-1710771284-JGyGzB\",\n                \"amount\": 1000,\n                \"state\": \"Partial\",\n                \"date_create\": \"2024-03-18T14:14:45+00:00\",\n                \"bill_url\": \"https://semoa.page.link/xfLersMNZy7gHRDu6\",\n                \"code\": \"464979\",\n                \"merchant_reference\": \"SANDBOX-1710771283-m9F74Z\",\n                \"external_order_reference\": null,\n                \"reservation_reference\": null,\n                \"client\": null,\n                \"received_amount\": 800,\n                \"payments\": [],\n                \"max_execution\": false,\n                \"date_expiration\": \"2024-03-22T18:14:45+00:00\",\n                \"currency\": \"XOF\",\n                \"commandes\": null,\n                \"jackpot\": null,\n                \"callback_status\": \"NONE\"\n            },\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710771363-9sHdA5\",\n            \"amount\": 300,\n            \"state\": \"Paid\",\n            \"date_create\": \"2024-03-18T14:16:03+00:00\",\n            \"bill_url\": \"https://semoa.page.link/1pEuhcFnZDWSVjkJ8\",\n            \"code\": \"200881\",\n            \"merchant_reference\": \"SANDBOX-1710771363-DKkYjz\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 300,\n            \"payments\": [\n                {\n                    \"id\": 2346,\n                    \"amount\": 300,\n                    \"amountRefunded\": null,\n                    \"thirdparty_reference\": \"SANDBOX-1710771383\",\n                    \"paymentDate\": \"2024-03-18T14:16:23+00:00\",\n                    \"firstComment\": \"Success\",\n                    \"secondComment\": null,\n                    \"extra_data\": null,\n                    \"gateway\": {\n                        \"libelle\": \"SandboxSemoa\",\n                        \"psp\": {\n                            \"logo_url\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n                        },\n                        \"methode\": \"DIRECT_URL\",\n                        \"logo_url\": null\n                    }\n                }\n            ],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T18:16:03+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": {\n                \"order_reference\": \"SANDBOX-1710771284-JGyGzB\",\n                \"amount\": 1000,\n                \"state\": \"Partial\",\n                \"date_create\": \"2024-03-18T14:14:45+00:00\",\n                \"bill_url\": \"https://semoa.page.link/xfLersMNZy7gHRDu6\",\n                \"code\": \"464979\",\n                \"merchant_reference\": \"SANDBOX-1710771283-m9F74Z\",\n                \"external_order_reference\": null,\n                \"reservation_reference\": null,\n                \"client\": null,\n                \"received_amount\": 800,\n                \"payments\": [],\n                \"max_execution\": false,\n                \"date_expiration\": \"2024-03-22T18:14:45+00:00\",\n                \"currency\": \"XOF\",\n                \"commandes\": null,\n                \"jackpot\": null,\n                \"callback_status\": \"NONE\"\n            },\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710757316-WCFRSO\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T10:21:57+00:00\",\n            \"bill_url\": \"https://semoa.page.link/7brKyVtJf2mXELw96\",\n            \"code\": \"326020\",\n            \"merchant_reference\": \"SANDBOX-1710757315-C9ddMv\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T14:21:57+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1710757181-bjgkAD\",\n            \"amount\": 1000,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-03-18T10:19:41+00:00\",\n            \"bill_url\": \"https://semoa.page.link/9GTUkz1b7j3vTbfC6\",\n            \"code\": \"431088\",\n            \"merchant_reference\": \"SANDBOX-1710757180-7uE9oo\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"EPANI\",\n                \"firstname\": \"GABIN\",\n                \"phone\": \"+22893621757\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allowSaving\": false,\n                \"thirdReference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2024-03-22T14:19:41+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null,\n            \"callback_status\": \"NONE\"\n        }\n    ]\n}"},{"id":"027b08ca-9277-4528-b9a0-7c3d34409dae","name":"Order list by a terminal","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":{"raw":"CashPay_ApiOrdersOrder list by a terminal/orders?terminal=4284497509","host":["CashPay_ApiOrdersOrder list by a terminal"],"path":["orders"],"query":[{"key":"terminal","value":"4284497509"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 17:41:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.56 () OpenSSL/1.0.2k-fips"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, private"},{"key":"Allow","value":"POST, GET"},{"key":"Expires","value":"Mon, 05 Jun 2023 17:41:12 GMT"},{"key":"Upgrade","value":"h2,h2c"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"items\": [\n        {\n            \"order_reference\": \"SANDBOX-1685986140-sK2W31\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2023-06-05T17:29:00+00:00\",\n            \"bill_url\": \"https://semoa.page.link/4i4TV6v77xHYYTVL7\",\n            \"code\": \"928550\",\n            \"merchant_reference\": \"SANDBOX-1685986140-LVwAoT\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \" \",\n                \"firstname\": \" \",\n                \"phone\": \"+22898486419\",\n                \"email\": null,\n                \"city\": null,\n                \"country\": null,\n                \"status\": true,\n                \"allow_saving\": false,\n                \"third_reference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2023-06-09T21:29:00+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null\n        },\n        {\n            \"order_reference\": \"SANDBOX-1685986087-rDLuQm\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2023-06-05T17:28:07+00:00\",\n            \"bill_url\": \"https://semoa.page.link/KmDewm8ht5u6y3iA7\",\n            \"code\": \"235309\",\n            \"merchant_reference\": \"SANDBOX-1685986087-S23otn\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"LAKIGNAN\",\n                \"firstname\": \"Sonia Sika\",\n                \"phone\": \"+22890112783\",\n                \"email\": \"anoumou@gmail.com\",\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allow_saving\": false,\n                \"third_reference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2023-06-06T09:50:00+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null\n        },\n        {\n            \"order_reference\": \"SANDBOX-1685704174-8jzT3J\",\n            \"amount\": 100,\n            \"state\": \"Pending\",\n            \"date_create\": \"2023-06-02T11:09:35+00:00\",\n            \"bill_url\": \"https://semoa.page.link/9NFhNBLTy6G624qt6\",\n            \"code\": \"326286\",\n            \"merchant_reference\": \"SANDBOX-1685704174-0GTNIv\",\n            \"external_order_reference\": null,\n            \"reservation_reference\": null,\n            \"client\": {\n                \"lastname\": \"LAKIGNAN\",\n                \"firstname\": \"Sonia Sika\",\n                \"phone\": \"+22890112783\",\n                \"email\": \"anoumou@gmail.com\",\n                \"city\": null,\n                \"country\": \"Afghanistan\",\n                \"status\": true,\n                \"allow_saving\": false,\n                \"third_reference\": null\n            },\n            \"received_amount\": 0,\n            \"payments\": [],\n            \"max_execution\": false,\n            \"date_expiration\": \"2023-06-06T15:09:35+00:00\",\n            \"currency\": \"XOF\",\n            \"commandes\": null,\n            \"jackpot\": null\n        }\n    ]\n}"}],"_postman_id":"c7410c1b-604e-4953-8eb0-77f3f37e23da"},{"name":"Create an order Link2Pay","event":[{"listen":"prerequest","script":{"id":"d84e81ae-71a4-44a2-8711-5955ee6b8aa7","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","packages":{}}},{"listen":"test","script":{"id":"965048be-0b64-4d0a-a157-10282f877463","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript","packages":{}}}],"id":"e270240a-5f7c-4717-8991-28540487c089","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 200,\n    \"currency\": \"XOF\",\n    \"description\": \"Test environnement Sandbox\",\n    \"client\": {\n        \"lastname\": \"LAKIGNAN\",\n        \"firstname\": \"Sonia Sika\",\n        \"phone\": \"+22890112783\"\n    }\n}"},"url":"{{endpoint}}/orders","description":"<p>This resource is used to Link2Pay integration.</p>\n<p>The <strong>Link2Pay</strong> service enables merchants to accept payments through a unique, shareable link. This link can be distributed via various channels such as email, SMS, or social media. Upon clicking the link, customers are directed to a secure payment page where they can complete their transaction.</p>\n<h5 id=\"how-link2pay-works\">How Link2Pay Works</h5>\n<ol>\n<li><p><strong>Link Creation</strong>: Merchants generate a unique payment link (bill_url) through the platform.</p>\n</li>\n<li><p><strong>Link Distribution</strong>: The generated link (bill8url) is shared with customers via preferred communication channels.</p>\n</li>\n<li><p><strong>Customer Payment</strong>: Customers click on the link, which directs them to a secure payment page wich displays differents method of payments.</p>\n</li>\n<li><p><strong>Payment Completion</strong>: Customers choose their payment method and complete the transaction.</p>\n</li>\n<li><p><strong>Confirmation</strong>: Merchants receive a notification confirming the payment.</p>\n</li>\n</ol>\n<ul>\n<li>Body</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>M/O</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>amount</strong></td>\n<td>Integer</td>\n<td>M</td>\n<td>Amount to be paid</td>\n</tr>\n<tr>\n<td><strong>currency</strong></td>\n<td>String</td>\n<td>M</td>\n<td>Currency of amount  <br />Ex: XOF, GNF, etc..</td>\n</tr>\n<tr>\n<td><strong>merchant_reference</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Bill or order reference in merchant’s system.</td>\n</tr>\n<tr>\n<td><strong>description</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Description to be show on bill generated</td>\n</tr>\n<tr>\n<td><strong>type_notif</strong></td>\n<td>Array</td>\n<td>O</td>\n<td>Notify the customer’s by email, sms, or whatsapp</td>\n</tr>\n<tr>\n<td><strong>client</strong> {}</td>\n<td>Object</td>\n<td>M</td>\n<td>Represents the customer’s information.</td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td>String</td>\n<td>M</td>\n<td>Client's phone number in international format  <br />Ex: +228xxxxxxxx</td>\n</tr>\n<tr>\n<td>client.lastname</td>\n<td>String</td>\n<td>O</td>\n<td>Client's lastname</td>\n</tr>\n<tr>\n<td>client.firstname</td>\n<td>String</td>\n<td>O</td>\n<td>Client's firstname</td>\n</tr>\n<tr>\n<td>client.email</td>\n<td>String</td>\n<td>O</td>\n<td>Client's email</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td>String</td>\n<td>O</td>\n<td>Client's city name</td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>String</td>\n<td>O</td>\n<td>Client's country name</td>\n</tr>\n<tr>\n<td>client.address1</td>\n<td>String</td>\n<td>O</td>\n<td>Client's first address</td>\n</tr>\n<tr>\n<td>client.address2</td>\n<td>String</td>\n<td>O</td>\n<td>Client's second address</td>\n</tr>\n<tr>\n<td><strong>terminal</strong> {}</td>\n<td>Object</td>\n<td>O</td>\n<td>Terminal Object</td>\n</tr>\n<tr>\n<td>terminal.code</td>\n<td>String</td>\n<td>O*</td>\n<td>Merchant Terminal ID</td>\n</tr>\n<tr>\n<td><strong>file</strong> {}</td>\n<td>Object</td>\n<td>O</td>\n<td>An attachement of order to be given to the customer</td>\n</tr>\n<tr>\n<td>file.data</td>\n<td>String</td>\n<td>O*</td>\n<td>Example of value: \"iVBORw0KGgoAAAANSUhEUgAAAJc...\"</td>\n</tr>\n<tr>\n<td>file.mime</td>\n<td>String</td>\n<td>O*</td>\n<td>Example of value: @file/png</td>\n</tr>\n<tr>\n<td><strong>callback_url</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Cashpay will make a post on your callback url , when an update will be performed on your order ​</td>\n</tr>\n<tr>\n<td><strong>redirect_url</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Return page from Cashpay to your site after a payment has been processed ​</td>\n</tr>\n<tr>\n<td><strong>date_expiration</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Bill expiration date  <br />Ex format: \"2023-05-25 09:06:00\"</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>Response :</li>\n</ul>\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>Status of the request : “success” =&gt; OK “error” =&gt; KO</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>Explanation of the status</td>\n</tr>\n<tr>\n<td>order_reference</td>\n<td>String</td>\n<td>CashPay’s internal unique reference</td>\n</tr>\n<tr>\n<td>code</td>\n<td>String</td>\n<td>Short code generated and associated to the bill. Might be already used on a previous bill but will be set to another status than “Pending” or “Partial”.</td>\n</tr>\n<tr>\n<td>bill_url</td>\n<td>String</td>\n<td>URL of the bill generated on CashPay’s front Office.</td>\n</tr>\n<tr>\n<td>qrcode_url</td>\n<td>String</td>\n<td>Qrocde Url of the bill created.</td>\n</tr>\n<tr>\n<td>client_notified</td>\n<td>String</td>\n<td>{ yes / no } Defines if the customer was notified or not.</td>\n</tr>\n<tr>\n<td>date_create</td>\n<td>String</td>\n<td>Bill creation date</td>\n</tr>\n<tr>\n<td>payments_method</td>\n<td>array</td>\n<td>Gateway’s list</td>\n</tr>\n<tr>\n<td>[payments_methods].id</td>\n<td>integer</td>\n<td>Gateway unique identifier</td>\n</tr>\n<tr>\n<td>[payments_methods].reference</td>\n<td>String</td>\n<td>Gateway universal unique identifier</td>\n</tr>\n<tr>\n<td>[payments_methods].action</td>\n<td>String</td>\n<td>the action to follow to proceed with the payment (Ussd code or a link)</td>\n</tr>\n<tr>\n<td>[payments_methods].method</td>\n<td>String</td>\n<td>Payment methods: USSD, PUSH_USSD or REDIRECT_URL</td>\n</tr>\n<tr>\n<td>[payments_methods].gateway</td>\n<td>String</td>\n<td>Gateway name</td>\n</tr>\n<tr>\n<td>[payments_methods].description</td>\n<td>String</td>\n<td>Description of payment method</td>\n</tr>\n<tr>\n<td>[payments_methods].logo</td>\n<td>String</td>\n<td>Gateway logo url</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["orders"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"d2368528-06c1-4527-bcdb-af98cb0db2e4","name":"Create an order with Oauth2","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}","disabled":true},{"key":"apisecure","value":"{{api_secure}}","disabled":true},{"key":"apireference","value":"{{api_reference}}","disabled":true},{"key":"salt","value":"{{salt}}","disabled":true},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 200,\n    \"currency\": \"XOF\",\n    \"description\": \"Test environnement Sandbox\",\n    \"client\": {\n        \"lastname\": \"LAKIGNAN\",\n        \"firstname\": \"Sonia Sika\",\n        \"phone\": \"+22890112783\"\n    }\n}"},"url":"{{endpoint}}/orders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3519"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 06 Aug 2025 11:36:49 GMT"},{"key":"x-amzn-Remapped-Date","value":"Wed, 06 Aug 2025 11:36:49 GMT"},{"key":"x-amzn-RequestId","value":"8fbd6485-1274-4076-8008-9881b2c42131"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"O4aszEtjDoEEexA="},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate, no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.58 (Amazon Linux) OpenSSL/3.0.8"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 07b609078121df647e9dff768934ec58.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MAN50-C3"},{"key":"X-Amz-Cf-Id","value":"BTsdTTRQ6Q2wy9x6A4EZIjXLtaDowNnMMD8Vsa7WfMG2spkDX-BuRg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"order_reference\": \"SANDBOX-1754480209-f8ocFj\",\n    \"amount\": 200,\n    \"state\": \"Pending\",\n    \"date_create\": \"2025-08-06T11:36:49+00:00\",\n    \"bill_url\": \"https://lk.semoa.tg/Iusq2HmEhr\",\n    \"code\": \"129345\",\n    \"merchant_reference\": \"SANDBOX-1754480209-dvWYlU\",\n    \"client\": {\n        \"lastname\": \"LAKIGNAN\",\n        \"firstname\": \"Sonia Sika\",\n        \"phone\": \"+22890112783\",\n        \"email\": null,\n        \"city\": null,\n        \"country\": \"Afghanistan\",\n        \"address1\": null\n    },\n    \"received_amount\": 0,\n    \"callback_url\": null,\n    \"callback_type\": null,\n    \"callback_id\": null,\n    \"redirect_url\": null,\n    \"currency\": \"XOF\",\n    \"ledger\": null,\n    \"status\": \"success\",\n    \"message\": \"Bill created\",\n    \"qrcode_url\": \"http://sandbox.cashpay.tg/qr_code_url/https://lk.semoa.tg/Iusq2HmEhr.png\",\n    \"long_bill_url\": \"http://sandbox.cashpay.tg/facture/SANDBOX-1754480209-f8ocFj\",\n    \"payments_method\": [\n        [\n            {\n                \"id\": 1,\n                \"action\": \"*151*27#\",\n                \"gateway\": \"FloozTG-Ecom-Semoa\",\n                \"description\": \"Une demande de confirmation de paiement a été envoyée sur votre numéro de téléphone. En cas d'échec, veuillez lancer la syntaxe USSD ci-dessus pour procéder au paiement\",\n                \"method\": \"PUSH_USSD\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/Flooz.png\"\n            },\n            {\n                \"id\": 2,\n                \"action\": \"*200*4*7*8*1*129345#\",\n                \"gateway\": \"TmoneyGateway1\",\n                \"description\": \"Composez et lancez la syntaxe USSD  sur votre téléphone pour procéder au paiement.\",\n                \"method\": \"USSD\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/Mixx-by-Yas---CashPay-155x156.png\"\n            },\n            {\n                \"id\": 14,\n                \"action\": \"https://sandbox.cashpay.tg/orabank/35752/14\",\n                \"gateway\": \"Semoa-Orabank-Ngenius\",\n                \"description\": \"\",\n                \"method\": \"DIRECT_URL\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/mastercard.png\"\n            },\n            {\n                \"id\": 6,\n                \"action\": \"\",\n                \"gateway\": \"Ecobank-Mobile-Gtw\",\n                \"description\": \"\",\n                \"method\": null,\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/ecobank_mobile.png\"\n            },\n            {\n                \"id\": 11,\n                \"action\": \"https://sandbox.cashpay.tg/facture/recap-sandbox/SANDBOX-1754480209-f8ocFj/11\",\n                \"gateway\": \"SandboxSemoa\",\n                \"description\": \"Gateway de simulation de la sandbox\",\n                \"method\": \"DIRECT_URL\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/SandBox.png\"\n            },\n            {\n                \"id\": 17,\n                \"action\": \"Entrez le code voucher pour valider votre paiement\",\n                \"gateway\": \"VOUCHER\",\n                \"description\": \"\",\n                \"method\": \"USSD\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/VMS.png\"\n            },\n            {\n                \"id\": 20,\n                \"action\": \"\",\n                \"gateway\": \"CORIS MONEY\",\n                \"description\": \"\",\n                \"method\": \"PUSH_USSD\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/Coris-money-tg.png\"\n            },\n            {\n                \"id\": 23,\n                \"action\": \"*151*27#\",\n                \"gateway\": \"FLOOZ_ECOM_OTG\",\n                \"description\": \"Une demande de confirmation de paiement a été envoyée sur votre numéro de téléphone. En cas d'échec, veuillez lancer la syntaxe USSD ci-dessus pour procéder au paiement\",\n                \"method\": \"PUSH_USSD\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/Flooz.png\"\n            },\n            {\n                \"id\": 26,\n                \"action\": \"\",\n                \"gateway\": \"MOOVMONEY-TCHAD\",\n                \"description\": \"Une demande de confirmation de paiement a été envoyée sur votre numéro de téléphone.\",\n                \"method\": \"PUSH_USSD\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/Flooz.png\"\n            },\n            {\n                \"id\": 22,\n                \"action\": \"\",\n                \"gateway\": \"WHATSAPP BANKING\",\n                \"description\": \"\",\n                \"method\": \"MOBILE_APP\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/whatsapp.png\"\n            },\n            {\n                \"id\": 19,\n                \"action\": \"\",\n                \"gateway\": \"c-cash\",\n                \"description\": \"\",\n                \"method\": \"PUSH_USSD\",\n                \"logo\": null\n            },\n            {\n                \"id\": 27,\n                \"action\": \"\",\n                \"gateway\": \"MIXX_BY_YAS\",\n                \"description\": \"\",\n                \"method\": \"PUSH_USSD\",\n                \"logo\": \"https://cashpay.s3.eu-west-1.amazonaws.com/psp/Mixx-by-Yas---CashPay-155x156.png\"\n            }\n        ]\n    ]\n}"}],"_postman_id":"e270240a-5f7c-4717-8991-28540487c089"},{"name":"POS Create an order","event":[{"listen":"prerequest","script":{"id":"cab559f5-7c85-4783-8819-abcbdc3350ba","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","packages":{}}},{"listen":"test","script":{"id":"2fb369fd-b5ed-47db-897f-76777b64a165","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript","packages":{}}}],"id":"4719dc73-8870-4e55-9e28-04d7897878af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"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\"amount\": 200,\n    \"currency\": \"XOF\",\n\t\"client\": {\n\t\t\"phone\": \"+22898486419\"\n\t},\n    \"gateway_id\": 27,\n    \"callback_url\" : \"https://yourcallbackurl.com\"\n   \n}"},"url":"https://api.semoa-payments.ovh/sandbox/orders","description":"<p>This resource is used to POS integration</p>\n<p><strong>POS mode</strong> refers to a payment method where transactions are completed <strong>in person</strong> at a physical location using a <strong>Point of Sale terminal</strong> or device. Instead of online links, customers interact directly with a merchant’s POS device to make payments.</p>\n<h5 id=\"how-pos-mode-works\"><strong>How POS Mode Works</strong></h5>\n<ol>\n<li><p><strong>Transaction Initiation</strong>:</p>\n<p> The merchant enters the transaction amount into the POS terminal or connected device.</p>\n</li>\n<li><p><strong>Customer Payment</strong>:</p>\n<p> The customer pays using one of the supported payment methods:</p>\n<ul>\n<li><p>Debit or credit card (swipe, chip, or contactless/NFC)</p>\n</li>\n<li><p>Mobile money or mobile wallet</p>\n</li>\n<li><p>QR code scan (for linked payment apps)</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Authorization</strong>:</p>\n<p> The POS device communicates with the payment processor directly to <strong>authorize the payment</strong> in real time.</p>\n</li>\n<li><p><strong>Confirmation</strong>:</p>\n<p> Once approved, the POS prints or displays a <strong>receipt</strong>, and the transaction is recorded in the merchant’s account.</p>\n</li>\n</ol>\n<ul>\n<li>Body</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>M/O</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>gateway_id</strong></td>\n<td>Integer</td>\n<td>M</td>\n<td>Gateway Id</td>\n</tr>\n<tr>\n<td><strong>amount</strong></td>\n<td>Integer</td>\n<td>M</td>\n<td>Amount to be paid</td>\n</tr>\n<tr>\n<td><strong>currency</strong></td>\n<td>String</td>\n<td>M</td>\n<td>Currency of amount  <br />XOF, GNF</td>\n</tr>\n<tr>\n<td><strong>merchant_reference</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Bill or order reference in merchant’s system.</td>\n</tr>\n<tr>\n<td><strong>description</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Description to be show on bill generated</td>\n</tr>\n<tr>\n<td><strong>type_notif</strong></td>\n<td>Array</td>\n<td>O</td>\n<td>Notify the customer’s by email, sms, or whatsapp</td>\n</tr>\n<tr>\n<td><strong>client</strong> {}</td>\n<td>Object</td>\n<td>M</td>\n<td>Represents the customer’s information.</td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td>String</td>\n<td>M</td>\n<td>Client's phone number in international format  <br />Ex: +228xxxxxxxx</td>\n</tr>\n<tr>\n<td>client.lastname</td>\n<td>String</td>\n<td>O</td>\n<td>Client's lastname</td>\n</tr>\n<tr>\n<td>client.firstname</td>\n<td>String</td>\n<td>O</td>\n<td>Client's firstname</td>\n</tr>\n<tr>\n<td>client.email</td>\n<td>String</td>\n<td>O</td>\n<td>Client's email</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td>String</td>\n<td>O</td>\n<td>Client's city name</td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>String</td>\n<td>O</td>\n<td>Client's country name</td>\n</tr>\n<tr>\n<td>client.address1</td>\n<td>String</td>\n<td>O</td>\n<td>Client's first address</td>\n</tr>\n<tr>\n<td>client.address2</td>\n<td>String</td>\n<td>O</td>\n<td>Client's second address</td>\n</tr>\n<tr>\n<td><strong>terminal</strong> {}</td>\n<td>Object</td>\n<td>O</td>\n<td>Terminal Object</td>\n</tr>\n<tr>\n<td>terminal.code</td>\n<td>String</td>\n<td>O*</td>\n<td>Merchant Terminal ID</td>\n</tr>\n<tr>\n<td><strong>file</strong> {}</td>\n<td>Object</td>\n<td>O</td>\n<td>An attachement of order to be given to the customer</td>\n</tr>\n<tr>\n<td>file.data</td>\n<td>String</td>\n<td>O*</td>\n<td>Example of value: \"iVBORw0KGgoAAAANSUhEUgAAAJc...\"</td>\n</tr>\n<tr>\n<td>file.mime</td>\n<td>String</td>\n<td>O*</td>\n<td>Example of value: @file/png</td>\n</tr>\n<tr>\n<td><strong>callback_url</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Cashpay will make a post on your callback url , when an update will be performed on your order ​</td>\n</tr>\n<tr>\n<td><strong>redirect_url</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Return page from Cashpay to your site after a payment has been processed ​</td>\n</tr>\n<tr>\n<td><strong>date_expiration</strong></td>\n<td>String</td>\n<td>O</td>\n<td>Bill expiration date  <br />Ex format: \"2023-05-25 09:06:00\"</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>Response :</li>\n</ul>\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>Status of the request : “success” =&gt; OK “error” =&gt; KO</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>Explanation of the status</td>\n</tr>\n<tr>\n<td>order_reference</td>\n<td>String</td>\n<td>CashPay’s internal unique reference</td>\n</tr>\n<tr>\n<td>code</td>\n<td>String</td>\n<td>Short code generated and associated to the bill. Might be already used on a previous bill but will be set to another status than “Pending” or “Partial”.</td>\n</tr>\n<tr>\n<td>bill_url</td>\n<td>String</td>\n<td>URL of the bill generated on CashPay’s front Office.</td>\n</tr>\n<tr>\n<td>qrcode_url</td>\n<td>String</td>\n<td>Qrocde Url of the bill created.</td>\n</tr>\n<tr>\n<td>client_notified</td>\n<td>String</td>\n<td>{ yes / no } Defines if the customer was notified or not.</td>\n</tr>\n<tr>\n<td>date_create</td>\n<td>String</td>\n<td>Bill creation date</td>\n</tr>\n<tr>\n<td>payments_method</td>\n<td>array</td>\n<td>Gateway’s list</td>\n</tr>\n<tr>\n<td>[payments_methods].id</td>\n<td>integer</td>\n<td>Gateway unique identifier</td>\n</tr>\n<tr>\n<td>[payments_methods].reference</td>\n<td>String</td>\n<td>Gateway universal unique identifier</td>\n</tr>\n<tr>\n<td>[payments_methods].action</td>\n<td>String</td>\n<td>the action to follow to proceed with the payment (Ussd code or a link)</td>\n</tr>\n<tr>\n<td>[payments_methods].method</td>\n<td>String</td>\n<td>Payment methods: USSD, PUSH_USSD or REDIRECT_URL</td>\n</tr>\n<tr>\n<td>[payments_methods].gateway</td>\n<td>String</td>\n<td>Gateway name</td>\n</tr>\n<tr>\n<td>[payments_methods].description</td>\n<td>String</td>\n<td>Description of payment method</td>\n</tr>\n<tr>\n<td>[payments_methods].logo</td>\n<td>String</td>\n<td>Gateway logo url</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["sandbox","orders"],"host":["api","semoa-payments","ovh"],"query":[],"variable":[]}},"response":[{"id":"e07fdfbe-aa4d-459e-bb68-19a38cc0f5a6","name":"POS Create an 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\"amount\": 200,\n    \"currency\": \"XOF\",\n\t\"client\": {\n\t\t\"phone\": \"+22898486419\"\n\t},\n    \"gateway_id\": 27,\n    \"callback_url\" : \"https://yourcallbackurl.com\"\n   \n}"},"url":"https://api.semoa-payments.ovh/sandbox/orders"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"946"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 08 Sep 2025 11:28:55 GMT"},{"key":"x-amzn-Remapped-Date","value":"Mon, 08 Sep 2025 11:28:55 GMT"},{"key":"x-amzn-RequestId","value":"61a2a5e6-857f-4b96-9aa5-18e424f81439"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"QlKeZEXpjoEEE1Q="},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate, no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.64 (Amazon Linux) OpenSSL/3.2.2"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0d64966b5ac3442e25f46b5f01c0c958.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"CDG54-P1"},{"key":"X-Amz-Cf-Id","value":"_wPVKnDUrPd8t7BBnBPSn70C3IVKJGL81f9wNCZ0f_fTEi5taA5w7Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"order_reference\": \"SANDBOX-1757330933-3S34fZ\",\n    \"amount\": 200,\n    \"state\": \"Pending\",\n    \"date_create\": \"2025-09-08T11:28:53+00:00\",\n    \"bill_url\": \"https://lk.semoa.tg/QJBJIxC0b9\",\n    \"code\": \"821157\",\n    \"merchant_reference\": \"SANDBOX-1757330933-dfZ5P1\",\n    \"client\": {\n        \"lastname\": null,\n        \"firstname\": null,\n        \"phone\": \"+22898486419\",\n        \"email\": null,\n        \"city\": null,\n        \"country\": null,\n        \"address1\": null\n    },\n    \"received_amount\": 0,\n    \"callback_url\": \"https://yourcallbackurl.com\",\n    \"callback_type\": null,\n    \"callback_id\": null,\n    \"redirect_url\": null,\n    \"currency\": \"XOF\",\n    \"ledger\": null,\n    \"payment_status\": \"pending\",\n    \"status\": \"success\",\n    \"message\": \"Bill created\",\n    \"qrcode_url\": \"http://sandbox.cashpay.tg/qr_code_url/https://lk.semoa.tg/QJBJIxC0b9.png\",\n    \"long_bill_url\": \"http://sandbox.cashpay.tg/facture/SANDBOX-1757330933-3S34fZ\",\n    \"payments_method\": [\n        {\n            \"gateway\": \"MIXX_BY_YAS\",\n            \"method\": \"PUSH_USSD\",\n            \"action\": \"\",\n            \"description\": \"Demande en cours de traitement\",\n            \"reference\": \"e2daf18d-b8d8-42b7-ac42-e3ab8bdb95c1\",\n            \"id\": 27\n        }\n    ]\n}"}],"_postman_id":"4719dc73-8870-4e55-9e28-04d7897878af"},{"name":"Get order status","event":[{"listen":"prerequest","script":{"id":"6027fd13-db94-472a-a352-ed80ae632f7f","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","packages":{}}},{"listen":"test","script":{"id":"1fbb3db4-3c03-4977-a006-51a641b144a5","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","packages":{}}}],"id":"1833a929-9ade-4a23-8042-e24d3777360c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"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"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"url":"{{endpoint}}/orders/SANDBOX-1719312820-jzakMY/status","description":"<h1 id=\"check-status\">Check status</h1>\n<p>Allow to check the status of a bill with it’s short code.<br />If the bill was already paid, the short<br />code will be deactivated and bill not available through this resource. In this case, you can use order reference or merchant order reference</p>\n<ul>\n<li><p>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/0</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td>Integer</td>\n<td>M*</td>\n<td>Short code generated and associated to the bill.</td>\n</tr>\n<tr>\n<td>order_reference</td>\n<td>String</td>\n<td></td>\n<td>M*</td>\n</tr>\n<tr>\n<td>merchant_reference</td>\n<td>String</td>\n<td>M*</td>\n<td>Merchant Order Reference</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n<li><p>Response :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>order_reference</td>\n<td>CashPay’s internal unique reference</td>\n</tr>\n<tr>\n<td>merchant_reference</td>\n<td>Merchant Order reference</td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td>Client phone number</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Amount</td>\n</tr>\n<tr>\n<td>billed_amount</td>\n<td>Bill amount</td>\n</tr>\n<tr>\n<td>state</td>\n<td>Pending, Error, Paid, Partial, Excess</td>\n</tr>\n<tr>\n<td>date_create</td>\n<td>Date of the bill created in CashPay</td>\n</tr>\n<tr>\n<td>date_expiration</td>\n<td>Date on which the invoice will expire</td>\n</tr>\n<tr>\n<td>payments</td>\n<td>Array of payments registered in CashPay</td>\n</tr>\n<tr>\n<td>payments[O].amount</td>\n<td>Received amount</td>\n</tr>\n<tr>\n<td>payments[O].thirdparty_reference</td>\n<td>Payment Reference</td>\n</tr>\n<tr>\n<td>payments[O].payment_date</td>\n<td>Date of payment</td>\n</tr>\n<tr>\n<td>payments[O].gateway.libelle</td>\n<td>Gateway name used for payment</td>\n</tr>\n<tr>\n<td>bill_url</td>\n<td>URL of the bill generated on CashPay’s front Office.</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n</ul>\n","urlObject":{"path":["orders","SANDBOX-1719312820-jzakMY","status"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"3179c105-1127-494d-9407-8497a63f76fe","name":"Get order 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"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"url":"{{endpoint}}/orders/SANDBOX-1719312820-jzakMY/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"434"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 25 Jun 2024 11:18:38 GMT"},{"key":"x-amzn-RequestId","value":"7f0df692-8bba-424a-893f-f7b341a34efb"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"Z68eRE5xjoEEXwg="},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.58 (Amazon Linux) OpenSSL/3.0.8"},{"key":"x-amzn-Remapped-Date","value":"Tue, 25 Jun 2024 11:18:38 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7564e806c7d8686b031d863cf92ad6d2.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MAD56-P3"},{"key":"X-Amz-Cf-Id","value":"mKKV4TWvgUiJ3gBLKbyIiT-NdaZ4pAgQ_OhLX_Ub3ezuv6wIvP_HVQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"state\": \"Pending\",\n    \"order_reference\": \"SANDBOX-1719312820-jzakMY\",\n    \"merchant_reference\": \"SANDBOX-1719312820-KYLgMl\",\n    \"amount\": 200,\n    \"currency\": \"XOF\",\n    \"billed_amount\": 200,\n    \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1719312820-jzakMY\",\n    \"date_update\": null,\n    \"date_expiration\": \"2024-06-29 14:53:40\",\n    \"client\": {\n        \"phone\": \"22890112783\"\n    },\n    \"code_paiement\": \"449386\",\n    \"date_create\": \"2024-06-25 10:53:40\",\n    \"callback_status\": \"NONE\",\n    \"payments\": []\n}"}],"_postman_id":"1833a929-9ade-4a23-8042-e24d3777360c"}],"id":"0d62f2a3-ef8e-4622-b103-3a1d36d91012","_postman_id":"0d62f2a3-ef8e-4622-b103-3a1d36d91012","description":""},{"name":"Ledger","item":[{"name":"Create a ledger","event":[{"listen":"prerequest","script":{"id":"d84e81ae-71a4-44a2-8711-5955ee6b8aa7","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","packages":{}}},{"listen":"test","script":{"id":"965048be-0b64-4d0a-a157-10282f877463","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript","packages":{}}}],"id":"949260f8-20a6-4413-8ea8-f687b142088f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"terminal\": {\n\t\t\"code\": \"1857190405\"\n\t}    \n}\n\n"},"url":"{{endpoint}}/ledger/create","description":"<p>This resource is used to create a ledger for a terminal</p>\n<ul>\n<li>Parameters</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>M/O</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>terminal{}</td>\n<td>Object</td>\n<td>M</td>\n<td>Represents Your terminal information.</td>\n</tr>\n<tr>\n<td>terminal.code</td>\n<td>String</td>\n<td>M</td>\n<td>Your terminal ID</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>Response :</li>\n</ul>\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>reference</td>\n<td>String</td>\n<td>Ledger unique identifier</td>\n</tr>\n<tr>\n<td>state</td>\n<td>String</td>\n<td>Ledger states:  <br />0 =&gt; opened  <br />1 =&gt; closed</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>String</td>\n<td>Ledger date creation</td>\n</tr>\n<tr>\n<td>terminal{}</td>\n<td>Object</td>\n<td>Terminal infos</td>\n</tr>\n<tr>\n<td>terminal.code</td>\n<td>String</td>\n<td>Terminal ID</td>\n</tr>\n<tr>\n<td>terminal.label</td>\n<td>String</td>\n<td>Terminal name</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["ledger","create"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"2a68cff8-50c0-41aa-af0f-0779b0c85071","name":"Create a ledger","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}","disabled":true},{"key":"apisecure","value":"{{api_secure}}","disabled":true},{"key":"apireference","value":"{{api_reference}}","disabled":true},{"key":"salt","value":"{{salt}}","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"terminal\": {\n\t\t\"code\": \"1857190405\"\n\t}    \n}\n\n"},"url":"{{endpoint}}/ledger/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"319"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 25 Jun 2024 11:16:38 GMT"},{"key":"x-amzn-RequestId","value":"a98a70ca-a307-43e9-b841-8363501b4269"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"Z68LhEYZDoEEJ0Q="},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.58 (Amazon Linux) OpenSSL/3.0.8"},{"key":"x-amzn-Remapped-Date","value":"Tue, 25 Jun 2024 11:16:38 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7564e806c7d8686b031d863cf92ad6d2.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MAD56-P3"},{"key":"X-Amz-Cf-Id","value":"q5Z193ywYMBTevDR8Nx6BbjjNAJH0arUUbhefjkdbVLqI3W7-kT2Kg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"reference\": \"4185a555-3e20-40fc-bfa9-7f909649509e\",\n    \"state\": 0,\n    \"opened_at\": \"2024-06-25T11:16:38+00:00\",\n    \"closed_at\": null,\n    \"nbInvoices\": 0,\n    \"nbSales\": 0,\n    \"createdAt\": \"2024-06-25T11:16:38+00:00\",\n    \"createdBy\": {\n        \"nom\": \"demo1\",\n        \"prenoms\": \"api\"\n    },\n    \"terminal\": {\n        \"code\": \"1857190405\",\n        \"label\": \"Terminal test\"\n    },\n    \"invoices\": [],\n    \"totalAmount\": 0\n}"}],"_postman_id":"949260f8-20a6-4413-8ea8-f687b142088f"},{"name":"Get ledger detail","event":[{"listen":"prerequest","script":{"id":"6027fd13-db94-472a-a352-ed80ae632f7f","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","packages":{}}},{"listen":"test","script":{"id":"1fbb3db4-3c03-4977-a006-51a641b144a5","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","packages":{}}}],"id":"c370dc52-0308-4d47-9bc5-bda4bd6a2322","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/ledger/{{ledger_reference}}","description":"<h4 id=\"get-ledger-detail\">Get Ledger detail</h4>\n<p>This resource is used to get the details of a ledger.</p>\n<ul>\n<li>PATH Parameters</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>M/O</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ledger_reference</td>\n<td>String</td>\n<td>M</td>\n<td>Ledger unique identifier</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>RESPONSE Parameters</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>reference</td>\n<td>string</td>\n<td>Ledger unique identifier</td>\n</tr>\n<tr>\n<td>state</td>\n<td>integer</td>\n<td>Ledger state  <br />0 =&gt; opened  <br />1 =&gt; closed</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>datetime</td>\n<td>Ledger date creation</td>\n</tr>\n<tr>\n<td>opened_at</td>\n<td>datetime</td>\n<td>Ledger open date</td>\n</tr>\n<tr>\n<td>closed_at</td>\n<td>datetime</td>\n<td>Ledger close date</td>\n</tr>\n<tr>\n<td>nb_invoices</td>\n<td>integer</td>\n<td>Number of invoices created</td>\n</tr>\n<tr>\n<td>nb_sales</td>\n<td>integer</td>\n<td>Number of sales</td>\n</tr>\n<tr>\n<td>created_by</td>\n<td>Object</td>\n<td>Details of user who creates the ledger</td>\n</tr>\n<tr>\n<td>created_by.username</td>\n<td>string</td>\n<td>username</td>\n</tr>\n<tr>\n<td>created_by.nom</td>\n<td>string</td>\n<td>Lastname</td>\n</tr>\n<tr>\n<td>created_by.prenoms</td>\n<td>string</td>\n<td>Fistname</td>\n</tr>\n<tr>\n<td>terminal</td>\n<td>Object</td>\n<td>Ledger Terminal Details</td>\n</tr>\n<tr>\n<td>terminal.code</td>\n<td>String</td>\n<td>Terminal ID</td>\n</tr>\n<tr>\n<td>terminal.label</td>\n<td>String</td>\n<td>Terminal name</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["ledger","{{ledger_reference}}"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"173877e4-b334-4db4-8e88-516d02d6678e","name":"Get ledger detail","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}","disabled":true},{"key":"apisecure","value":"{{api_secure}}","disabled":true},{"key":"apireference","value":"{{api_reference}}","disabled":true},{"key":"salt","value":"{{salt}}","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{endpoint}}/ledger/{{ledger_reference}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1462"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 25 Jun 2024 11:17:16 GMT"},{"key":"x-amzn-RequestId","value":"5ce6df57-f06b-45b5-b20b-a36ccf6e2d16"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"Z68RgHmIjoEERRA="},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.58 (Amazon Linux) OpenSSL/3.0.8"},{"key":"x-amzn-Remapped-Date","value":"Tue, 25 Jun 2024 11:17:16 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7564e806c7d8686b031d863cf92ad6d2.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MAD56-P3"},{"key":"X-Amz-Cf-Id","value":"iFvcuB_lSAmCmR3lhesRWd7WjxaMMammAD2A9uRP1s4RlcNUBcp_ZA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"reference\": \"de7a9b8e-74be-4ced-a263-7323e242cf19\",\n    \"state\": 0,\n    \"opened_at\": \"2024-06-25T10:56:48+00:00\",\n    \"closed_at\": null,\n    \"nbInvoices\": 4,\n    \"nbSales\": 0,\n    \"createdAt\": \"2024-06-25T10:56:48+00:00\",\n    \"createdBy\": {\n        \"nom\": \"demo1\",\n        \"prenoms\": \"api\"\n    },\n    \"terminal\": {\n        \"code\": \"1857190405\",\n        \"label\": \"Terminal test\"\n    },\n    \"invoices\": [\n        {\n            \"order_reference\": \"SANDBOX-1719313381-qY75bS\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-06-25T11:03:02+00:00\",\n            \"code\": \"294447\",\n            \"merchant_reference\": \"SANDBOX-1719313381-zbvSd1\",\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\"\n            },\n            \"payments\": [],\n            \"currency\": \"XOF\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1719313489-fhrWBR\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-06-25T11:04:50+00:00\",\n            \"code\": \"913431\",\n            \"merchant_reference\": \"SANDBOX-1719313489-dhEyWA\",\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\"\n            },\n            \"payments\": [],\n            \"currency\": \"XOF\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1719313735-gt3tCa\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-06-25T11:08:55+00:00\",\n            \"code\": \"783068\",\n            \"merchant_reference\": \"SANDBOX-1719313735-f3tcIh\",\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\"\n            },\n            \"payments\": [],\n            \"currency\": \"XOF\"\n        },\n        {\n            \"order_reference\": \"SANDBOX-1719314128-NWL04y\",\n            \"amount\": 200,\n            \"state\": \"Pending\",\n            \"date_create\": \"2024-06-25T11:15:28+00:00\",\n            \"code\": \"279966\",\n            \"merchant_reference\": \"SANDBOX-1719314128-Z4Qej2\",\n            \"client\": {\n                \"lastname\": null,\n                \"firstname\": null,\n                \"phone\": \"+22890112783\"\n            },\n            \"payments\": [],\n            \"currency\": \"XOF\"\n        }\n    ],\n    \"totalAmount\": 0\n}"}],"_postman_id":"c370dc52-0308-4d47-9bc5-bda4bd6a2322"},{"name":"List ledger","event":[{"listen":"prerequest","script":{"id":"25ff702a-0203-4881-b9e6-a52be7c95912","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","packages":{}}},{"listen":"test","script":{"id":"4057c290-d228-4dc1-8db1-c89b6a94c822","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(200);","});",""],"type":"text/javascript","packages":{}}}],"id":"b76f2be4-73b8-4e0b-b142-8dc0fc3de299","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{endpoint}}/ledger/terminal/1857190405","description":"<p>This resource is used to get the list of ledger of a specific terminal.</p>\n<ul>\n<li>PATH Parameters:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>M/O</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>terminal_id</td>\n<td>String</td>\n<td>M</td>\n<td>Terminal ID</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>RESPONSE Parameters:</li>\n</ul>\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>reference</td>\n<td>string</td>\n<td>Ledger unique identifier</td>\n</tr>\n<tr>\n<td>state</td>\n<td>integer</td>\n<td>Ledger state  <br />0 =&gt; opened  <br />1 =&gt; closed</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>datetime</td>\n<td>Ledger date creation</td>\n</tr>\n<tr>\n<td>opened_at</td>\n<td>datetime</td>\n<td>Ledger open date</td>\n</tr>\n<tr>\n<td>closed_at</td>\n<td>datetime</td>\n<td>Ledger close date</td>\n</tr>\n<tr>\n<td>nb_invoices</td>\n<td>integer</td>\n<td>Number of invoices created</td>\n</tr>\n<tr>\n<td>nb_sales</td>\n<td>integer</td>\n<td>Number of sales</td>\n</tr>\n<tr>\n<td>created_by {}</td>\n<td>Object</td>\n<td>Details of user who creates the ledger</td>\n</tr>\n<tr>\n<td>created_by.username</td>\n<td>String</td>\n<td>username</td>\n</tr>\n<tr>\n<td>created_by.nom</td>\n<td>String</td>\n<td>Lastname</td>\n</tr>\n<tr>\n<td>created_by.prenoms</td>\n<td>String</td>\n<td>Fistname</td>\n</tr>\n<tr>\n<td>terminal {}</td>\n<td>Object</td>\n<td>Terminal Details</td>\n</tr>\n<tr>\n<td>terminal.code</td>\n<td>String</td>\n<td>Terminal ID</td>\n</tr>\n<tr>\n<td>terminal.label</td>\n<td>String</td>\n<td>Terminal Name</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["ledger","terminal","1857190405"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"daafd698-2ce4-4afa-aa08-1cbe5ed13e52","name":"List ledger","originalRequest":{"method":"GET","header":[{"key":"login","value":"{{login}}","disabled":true},{"key":"apisecure","value":"{{api_secure}}","disabled":true},{"key":"apireference","value":"{{api_reference}}","disabled":true},{"key":"salt","value":"{{salt}}","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTc0MjcsImlhdCI6MTcxOTMxMzgyNywianRpIjoiNGIxMTUxNGMtM2M1ZC00NWIxLTk1ZmQtYzgxODc3YmRmOTEzIiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiZGJkYmYwOTgtMWI3Yy00NzVmLThhMzEtYjc5YTQ0ZThkZmI5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImRiZGJmMDk4LTFiN2MtNDc1Zi04YTMxLWI3OWE0NGU4ZGZiOSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.kcOCj-o3gdeMXr_kbi0Nniun8Ch6EXDDC3LYXYBZvzKB_vvi92vVqn6MF-zE1uESacPdYxAFYm1TGPJXNO2iT7As-X7w0F0X1sXeJlX2Z-pHZMiCweVND6esGNk0Sdq9g3PK6uqphDOyOqpSjI9tCVbfB0XdeN-485b-5h3SOaEK2N4jmjCLTIjwKJ4YI4yjJ_h9H_mVxkkhYeWAnyIrbD4aLtme0abeBMIq64TbdHA0yjyrSetpw7rrdfIc24M-n9dcXgUuMBag_Q5JdktLHfVe38kI6nrhIMhEdslbl-AKVUtJoX6CDPsVBn3mWiaQmOhXenoPfBoordd6L7_2-w","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{endpoint}}/ledger/terminal/1857190405"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1818"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 25 Jun 2024 11:14:12 GMT"},{"key":"x-amzn-RequestId","value":"1f49531a-74a5-45cc-93cc-9041ba6a4338"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"Z670tE7ZDoEEe0A="},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.58 (Amazon Linux) OpenSSL/3.0.8"},{"key":"x-amzn-Remapped-Date","value":"Tue, 25 Jun 2024 11:14:12 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7564e806c7d8686b031d863cf92ad6d2.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MAD56-P3"},{"key":"X-Amz-Cf-Id","value":"DiL9tVjESZoKoDhliawtmlmr-7fIwOb4gioaQJZFuclgO4Vh1gV8sg=="}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"reference\": \"e48dddd1-ee6e-4240-b7df-9ff79718213c\",\n        \"state\": 0,\n        \"opened_at\": \"2024-06-25T11:12:39+00:00\",\n        \"closed_at\": null,\n        \"nbInvoices\": 0,\n        \"nbSales\": 0,\n        \"createdAt\": \"2024-06-25T11:12:39+00:00\",\n        \"createdBy\": {\n            \"nom\": \"demo1\",\n            \"prenoms\": \"api\"\n        },\n        \"terminal\": {\n            \"code\": \"1857190405\",\n            \"label\": \"Terminal test\"\n        },\n        \"invoices\": [],\n        \"totalAmount\": 0\n    },\n    {\n        \"reference\": \"5a3889b5-300e-4d5a-b1ba-e30180e824e9\",\n        \"state\": 0,\n        \"opened_at\": \"2024-06-25T11:11:45+00:00\",\n        \"closed_at\": null,\n        \"nbInvoices\": 0,\n        \"nbSales\": 0,\n        \"createdAt\": \"2024-06-25T11:11:45+00:00\",\n        \"createdBy\": {\n            \"nom\": \"demo1\",\n            \"prenoms\": \"api\"\n        },\n        \"terminal\": {\n            \"code\": \"1857190405\",\n            \"label\": \"Terminal test\"\n        },\n        \"invoices\": [],\n        \"totalAmount\": 0\n    },\n    {\n        \"reference\": \"de7a9b8e-74be-4ced-a263-7323e242cf19\",\n        \"state\": 0,\n        \"opened_at\": \"2024-06-25T10:56:48+00:00\",\n        \"closed_at\": null,\n        \"nbInvoices\": 3,\n        \"nbSales\": 0,\n        \"createdAt\": \"2024-06-25T10:56:48+00:00\",\n        \"createdBy\": {\n            \"nom\": \"demo1\",\n            \"prenoms\": \"api\"\n        },\n        \"terminal\": {\n            \"code\": \"1857190405\",\n            \"label\": \"Terminal test\"\n        },\n        \"invoices\": [\n            {\n                \"order_reference\": \"SANDBOX-1719313381-qY75bS\",\n                \"amount\": 200,\n                \"state\": \"Pending\",\n                \"date_create\": \"2024-06-25T11:03:02+00:00\",\n                \"code\": \"294447\",\n                \"merchant_reference\": \"SANDBOX-1719313381-zbvSd1\",\n                \"client\": {\n                    \"lastname\": null,\n                    \"firstname\": null,\n                    \"phone\": \"+22890112783\"\n                },\n                \"payments\": [],\n                \"currency\": \"XOF\"\n            },\n            {\n                \"order_reference\": \"SANDBOX-1719313489-fhrWBR\",\n                \"amount\": 200,\n                \"state\": \"Pending\",\n                \"date_create\": \"2024-06-25T11:04:50+00:00\",\n                \"code\": \"913431\",\n                \"merchant_reference\": \"SANDBOX-1719313489-dhEyWA\",\n                \"client\": {\n                    \"lastname\": null,\n                    \"firstname\": null,\n                    \"phone\": \"+22890112783\"\n                },\n                \"payments\": [],\n                \"currency\": \"XOF\"\n            },\n            {\n                \"order_reference\": \"SANDBOX-1719313735-gt3tCa\",\n                \"amount\": 200,\n                \"state\": \"Pending\",\n                \"date_create\": \"2024-06-25T11:08:55+00:00\",\n                \"code\": \"783068\",\n                \"merchant_reference\": \"SANDBOX-1719313735-f3tcIh\",\n                \"client\": {\n                    \"lastname\": null,\n                    \"firstname\": null,\n                    \"phone\": \"+22890112783\"\n                },\n                \"payments\": [],\n                \"currency\": \"XOF\"\n            }\n        ],\n        \"totalAmount\": 0\n    }\n]"}],"_postman_id":"b76f2be4-73b8-4e0b-b142-8dc0fc3de299"},{"name":"Open/Close a ledger","event":[{"listen":"prerequest","script":{"id":"cab559f5-7c85-4783-8819-abcbdc3350ba","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":"2fb369fd-b5ed-47db-897f-76777b64a165","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"4dded6db-5cb1-4a83-b1a9-4333b6b3ad08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","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\"state\": 1\n}"},"url":"{{endpoint}}/ledger/{{ledger_reference}}/update","description":"<p>This resource is used to closed a ledger</p>\n<ul>\n<li>PATH PARAMETERS</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>M/0</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ledger_reference</td>\n<td>String</td>\n<td>M</td>\n<td>Reference of the ledger</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>INPUT PARAMETERS</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>M/0</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>state</td>\n<td>Integer</td>\n<td>M</td>\n<td>Possibles value:  <br />0 =&gt; open legder  <br />1 =&gt; close ledger</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>RESPONSE PARAMETERS:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>TYpe</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>String</td>\n<td>\"success\" or \"error\"</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>Description of status</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["ledger","{{ledger_reference}}","update"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"86fe885f-f5f5-42e7-9dcd-890be956dc18","name":"Open/Close a ledger","originalRequest":{"method":"PUT","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\"state\": 1\n}"},"url":"{{endpoint}}/ledger/{{ledger_reference}}/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"49"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 05 May 2023 11:28:28 GMT"},{"key":"x-amzn-RequestId","value":"dd9be5ee-ffc4-4406-902d-5cbe8e82f2ad"},{"key":"Allow","value":"PUT"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"Eck-hECaDoEFwlw="},{"key":"Cache-Control","value":"max-age=0, must-revalidate, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.56 () OpenSSL/1.0.2k-fips"},{"key":"Expires","value":"Fri, 05 May 2023 11:28:28 GMT"},{"key":"x-amzn-Remapped-Date","value":"Fri, 05 May 2023 11:28:28 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 6b4e2529be13169ec5ee4214df435daa.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"CDG50-P2"},{"key":"X-Amz-Cf-Id","value":"93LZFg-GvcjOH1TiAoqIUTuiJXdkEXoiM_2BsuGgcoaqRAN47F4IsQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Ledger is closed\"\n}"}],"_postman_id":"4dded6db-5cb1-4a83-b1a9-4333b6b3ad08"}],"id":"c598afa5-cf78-45ce-b727-323bac7e4648","_postman_id":"c598afa5-cf78-45ce-b727-323bac7e4648","description":""},{"name":"Callback Url","item":[{"name":"Callback url","id":"77149b8b-1857-4817-b874-e71078d9103e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmRlcl9yZWZlcmVuY2UiOiIxNjM1MjYwMjkwLTlJVjdaQSIsImFtb3VudCI6NDAwMDAsInN0YXRlIjoiUGFpZCIsImRhdGVfY3JlYXRlIjoiMjAyMS0xMC0yNlQxNDo1ODoxMCswMDowMCIsImJpbGxfdXJsIjoiaHR0cHM6XC9cL2Rldi5zZW1vYS1wYXltZW50cy5vdmhcL2ZhY3R1cmVcLzE2MzUyNjAyOTAtOUlWN1pBIiwibWVyY2hhbnRfcmVmZXJlbmNlIjoiMTY5MjM4ODgwMiIsImNsaWVudCI6eyJwaG9uZSI6IisyMjg5MTk0MTM4MSJ9LCJyZWNlaXZlZF9hbW91bnQiOjQwMDAwLCJwYXltZW50cyI6W3siYW1vdW50Ijo0MDAwMCwidGhpcmRwYXJ0eV9yZWZlcmVuY2UiOiIyMDAxNDc4Mzc1MzA3Mjg0IiwicGF5bWVudF9kYXRlIjoiMjAyMS0xMC0yNlQxNTowMjoyNSswMDowMCIsImdhdGV3YXkiOnsibGliZWxsZSI6IlNlbW9hLU9yYWJhbmsifX1dfQ.w-uu3lcWo6p5-K5F0tSBsLyARmos1TTDGyKr2hkEHMQ\"}","options":{"raw":{"language":"json"}}},"url":"https://your.callbackURL.com","description":"<p>Example of callback:\nIn this example, apikey = ohPQj2Wi4XbjGBBSJVklnCp5qRr1XBBXE3vb\nWhen you decode the following token with this apikey, you should obtain the following result</p>\n<p>{\n  \"order_reference\": \"1635260290-9IV7ZA\",\n  \"amount\": 40000,\n  \"state\": \"Paid\",\n  \"date_create\": \"2021-10-26T14:58:10+00:00\",\n  \"bill_url\": \"<a href=\"https://dev.semoa-payments.ovh/facture/1635260290-9IV7ZA\">https://dev.semoa-payments.ovh/facture/1635260290-9IV7ZA</a>\",\n  \"merchant_reference\": \"1692388802\",\n  \"client\": {\n    \"phone\": \"+22891941381\"\n  },\n  \"received_amount\": 40000,\n  \"payments\": [\n    {\n      \"amount\": 40000,\n      \"thirdparty_reference\": \"2001478375307284\",\n      \"payment_date\": \"2021-10-26T15:02:25+00:00\",\n      \"gateway\": {\n        \"libelle\": \"Semoa-Orabank\"\n      }\n    }\n  ]\n}</p>\n","urlObject":{"protocol":"https","host":["your","callbackURL","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"77149b8b-1857-4817-b874-e71078d9103e"}],"id":"dcc361af-e749-4caa-9efb-3638b2df5b5a","description":"<p>Cashpay will notify your site by calling Callback url (POST) when a payment is validated, declined or cancelled. It is a called up from server to server. This means that the order form can be automatically validated even if the customer switches off or decides not to return to the eCommerce website, as this call does not pass through the browser.</p>\n<p>There are two differents methods to configure this url:</p>\n<p>. The url is configured on Cashpay merchant parameters</p>\n<p>. You provide the url when creating the bill (Section Create an order)</p>\n<p>Data are sent as JWT (Json Web Token). The token is signed using a secret key. You must decode this token to get data</p>\n<p>PHP example:</p>\n<p>token = JWT::encode(data, secretKey, algorithm='HS256')</p>\n<p>data = JWT::decode(token, secretKey, algorithm='HS256')</p>\n<p>secretKey is merchant's apikey</p>\n<p>NB: When you implement your callback Url, note that you need to decode data with your apikey to get bill information.</p>\n","_postman_id":"dcc361af-e749-4caa-9efb-3638b2df5b5a"},{"name":"Contacts","item":[{"name":"add contacts","event":[{"listen":"prerequest","script":{"id":"990979cc-a8f3-4b6e-a9eb-84eabab050bf","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":"9806a45d-febe-422a-9bb2-56e86adce4af","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript"}}],"id":"65647495-0c76-469e-bc2a-cd40b4ff0f9d","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":"{\t\n\t\"contacts\":[\n        {\"phone\": \"+22898486419\",\n        \"firstname\": \"UNKNOWN\",\n        \"lastname\": \"UNKNOWN\",\n        \"email\": \"unknown@gmail.com\"\n        },\n        {\n        \"phone\": \"+22890833218\",\n        \"firstname\": \"UNKNOWN\",\n        \"lastname\": \"UNKNOWN\"\n        }\n    ],\n    \"client_phone\": \"+22890112783\"\n}"},"url":"{{endpoint}}/contacts","description":"<p>This resource is used to add contacts to a client.</p>\n<ul>\n<li><p>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>contacts</td>\n<td>Array of objects</td>\n<td>M</td>\n<td>Array of contacts</td>\n</tr>\n<tr>\n<td>- phone</td>\n<td>String</td>\n<td>M</td>\n<td>Contact's phone number</td>\n</tr>\n<tr>\n<td>- lastname</td>\n<td>String</td>\n<td>O</td>\n<td>Contact's name</td>\n</tr>\n<tr>\n<td>- firstname</td>\n<td>String</td>\n<td>O</td>\n<td>Contact's surname</td>\n</tr>\n<tr>\n<td>- email</td>\n<td>String</td>\n<td>O</td>\n<td>Contact's email</td>\n</tr>\n<tr>\n<td>client_phone</td>\n<td>String</td>\n<td>M</td>\n<td>Client's Phone number ​</td>\n</tr>\n</tbody>\n</table>\n</div></li>\n<li><p>Response :</p>\n</li>\n</ul>\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>Status of the request : \"success\" or \"error\"</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>Description of the status</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["contacts"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"3c2a4b46-37eb-4f37-974f-70e78146664e","name":"add contacts","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":"{\t\n\t\"contacts\":[\n        {\"phone\": \"+22898486419\",\n        \"firstname\": \"UNKNOWN\",\n        \"lastname\": \"UNKNOWN\",\n        \"email\": \"unknown@gmail.com\"\n        },\n        {\n        \"phone\": \"+22890833218\",\n        \"firstname\": \"UNKNOWN\",\n        \"lastname\": \"UNKNOWN\"\n        }\n    ],\n    \"client_phone\": \"+22890112783\"\n}"},"url":"{{endpoint}}/contacts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 07 Oct 2021 10:16:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Apache/2.4.48 () OpenSSL/1.0.2k-fips"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, private"},{"key":"Allow","value":"POST"},{"key":"Expires","value":"Thu, 07 Oct 2021 10:16:00 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Contact registered\"\n}"}],"_postman_id":"65647495-0c76-469e-bc2a-cd40b4ff0f9d"}],"id":"0a1adc9d-ff3f-438d-bf0e-ad38f0cc07e1","_postman_id":"0a1adc9d-ff3f-438d-bf0e-ad38f0cc07e1","description":""},{"name":"TPOS","item":[{"name":"Create an order","event":[{"listen":"prerequest","script":{"id":"cab559f5-7c85-4783-8819-abcbdc3350ba","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","packages":{}}},{"listen":"test","script":{"id":"2fb369fd-b5ed-47db-897f-76777b64a165","exec":["pm.test(\"response is ok\", function(){","    pm.response.to.have.status(201);","});",""],"type":"text/javascript","packages":{}}}],"id":"7493f3ae-8952-4908-975b-04430168dc5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTYyNzAsImlhdCI6MTcxOTMxMjY3MCwianRpIjoiMjNiMzQ1OGEtNDI4NS00YmQ0LTk3OGQtZWUwNzMzMGQ0YjA5IiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiY2Y4Y2FmM2EtMDg4My00Y2NkLWE2ZTktNDY5Y2EwNjE2ZTY5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImNmOGNhZjNhLTA4ODMtNGNjZC1hNmU5LTQ2OWNhMDYxNmU2OSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.lMwCOrs5Pry8Flb3yl81CnO8Ome22Y2ThHHrTTnvx5UUA3K3yj69i3xrlx8VcxHy3XMIVC8yYZfaFEPSh8AlmwTQ_V50xNyKD0LHfYT9ePRRSZo_mEyKnYp9_qzlbVISzgBzcBabn0KHgu_CDcDcwz8yzjhi0cJRjMAc-vx_kXrORenpIOaREQks8pEh3nXcPkBODcmfT0jsd4gNIC1ei7jgfZdD7BraEFolztRiNEUWO7G3eLO2O7bh0zNM8Bxrj-l_u4wsdNZFiuvUWqB7Y87a9L7t2AmvDl1iBQ9ynhbRcS3gcKgkTPKTvzccSLiQG9F0IsBMYU5qpAYrDe15-g","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 200,\n\t\"client\": {\n\t\t\"phone\": \"+22890112783\"\n\t},\n    \"gateway\": {\n        \"reference\": \"14f4597d-ef96-4263-8107-1e1970959133\"\n    },\n    \"ledger\": {\n        \"reference\":\"de7a9b8e-74be-4ced-a263-7323e242cf19\"\n    },\n    \"currency\": \"XOF\",\n    \"callback_url\" : \"https://yourcallbackurl.com\"\n}"},"url":"{{endpoint}}/tpos/orders","description":"<ul>\n<li>Input Parameters</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>M/O</strong></th>\n<th><strong>Description</strong></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 paid</td>\n</tr>\n<tr>\n<td>merchant_reference</td>\n<td>String (255 char)</td>\n<td>M</td>\n<td>Merchant reference</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String (Text)</td>\n<td>O</td>\n<td>Description to be show on bill generated</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>M</td>\n<td>ISO 4217 (Example: XOF)</td>\n</tr>\n<tr>\n<td>callback_url</td>\n<td>String (255 char)</td>\n<td>O</td>\n<td>Cashpay will make a post on your callback url , when an update will be performed on you order ​</td>\n</tr>\n<tr>\n<td>client {}</td>\n<td>Object</td>\n<td>M</td>\n<td>Represents the customer’s information.</td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td>String</td>\n<td>M</td>\n<td>Client's phone number</td>\n</tr>\n<tr>\n<td>client.lastname</td>\n<td>String (255 char)</td>\n<td>O</td>\n<td>Client's lastname</td>\n</tr>\n<tr>\n<td>client.firstname</td>\n<td>String(255 char)</td>\n<td>O</td>\n<td>Client's firstname</td>\n</tr>\n<tr>\n<td>client.email</td>\n<td>String (255 char)</td>\n<td>O</td>\n<td>Client's email</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td>String</td>\n<td>O</td>\n<td>Client's city</td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>String (255 char)</td>\n<td>O</td>\n<td>Client's country</td>\n</tr>\n<tr>\n<td>client.address1</td>\n<td>String (255 char)</td>\n<td>O</td>\n<td>Client's fist address</td>\n</tr>\n<tr>\n<td>client.address2</td>\n<td>String (Text)</td>\n<td>O</td>\n<td>Client's second address</td>\n</tr>\n<tr>\n<td>gateway {}</td>\n<td>Object</td>\n<td>M</td>\n<td></td>\n</tr>\n<tr>\n<td>gateway.reference</td>\n<td>String</td>\n<td>M</td>\n<td>Gateway reference you want to use to pay the bill  <br /></td>\n</tr>\n<tr>\n<td>ledger {}</td>\n<td>Object</td>\n<td>M</td>\n<td></td>\n</tr>\n<tr>\n<td>ledger.reference</td>\n<td>String</td>\n<td>M</td>\n<td>Ledger reference</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>Response :</li>\n</ul>\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>state</td>\n<td>String</td>\n<td>Bill States Possible Values:  <br />Pending, Paid, Error, Canceled, Partial, Excess</td>\n</tr>\n<tr>\n<td>date_create</td>\n<td>DateTime</td>\n<td>Bill creation date</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>Description</td>\n</tr>\n<tr>\n<td>code</td>\n<td>String</td>\n<td>Short code generated and associated to the bill. Might be already used on a previous bill but will be set to another status than “Pending” or “Partial”.</td>\n</tr>\n<tr>\n<td>order_reference</td>\n<td>String</td>\n<td>CashPay’s internal unique reference</td>\n</tr>\n<tr>\n<td>merchant_reference</td>\n<td>String</td>\n<td>Merchant Reference</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>String</td>\n<td>Bill amount</td>\n</tr>\n<tr>\n<td>bill_url</td>\n<td>String</td>\n<td>URL of the bill generated on CashPay’s front Office.</td>\n</tr>\n<tr>\n<td>qrcode_bill_url</td>\n<td>String</td>\n<td>Qrocde Url of the bill created.</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>Bill currency</td>\n</tr>\n<tr>\n<td>client {}</td>\n<td>Object</td>\n<td>Customer infos</td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td>String</td>\n<td>Customer's phone number  <br /></td>\n</tr>\n<tr>\n<td>client.lastname</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>client.firstname</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>ledger {}</td>\n<td>Object</td>\n<td></td>\n</tr>\n<tr>\n<td>ledger.reference</td>\n<td>String</td>\n<td>Ledger reference</td>\n</tr>\n<tr>\n<td>payments_method []</td>\n<td>Array of Object</td>\n<td>Gateway’s list</td>\n</tr>\n<tr>\n<td>action</td>\n<td>String</td>\n<td>the action to follow to proceed with the payment (Ussd code or a link)</td>\n</tr>\n<tr>\n<td>method</td>\n<td>String</td>\n<td>Payment method: USSD, PUSH_USSD, MOBBILE_APP, or REDIRECT_URL</td>\n</tr>\n<tr>\n<td>gateway</td>\n<td>String</td>\n<td>Gateway name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>Description</td>\n</tr>\n<tr>\n<td>reference</td>\n<td>String</td>\n<td>Gateway Unique ID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["tpos","orders"],"host":["{{endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"a2b50673-3211-4ace-b48e-6b1484c6b032","name":"Create an order","originalRequest":{"method":"POST","header":[{"key":"login","value":"{{login}}","disabled":true},{"key":"apisecure","value":"{{api_secure}}","disabled":true},{"key":"apireference","value":"{{api_reference}}","disabled":true},{"key":"salt","value":"{{salt}}","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPV2pmTktHcVl5b2VFd2FNV0d1UFNTdkZaVW5jVjc1aUtDLXMxMjRQZThJIn0.eyJleHAiOjE3MTkzMTYyNzAsImlhdCI6MTcxOTMxMjY3MCwianRpIjoiMjNiMzQ1OGEtNDI4NS00YmQ0LTk3OGQtZWUwNzMzMGQ0YjA5IiwiaXNzIjoiaHR0cHM6Ly9sb2NrLnNlbW9hLWhvc3RpbmcuY29tL3JlYWxtcy9EZXYuZW52IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU2ZTFmYWIyLTRiNjUtNDY1MC05YTdjLTNmZTI0MWQyODU3MiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImNhc2hwYXkiLCJzZXNzaW9uX3N0YXRlIjoiY2Y4Y2FmM2EtMDg4My00Y2NkLWE2ZTktNDY5Y2EwNjE2ZTY5IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZWZhdWx0LXJvbGVzLWRldi5lbnYiLCJST0xFX1VTRVIiLCJvZmZsaW5lX2FjY2VzcyJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgb2ZmbGluZV9hY2Nlc3MgcHJvZmlsZSBpbnRlcm5hbF9hY2Nlc3MgZW1haWwgY2xpZW50X2FjY2VzcyIsInNpZCI6ImNmOGNhZjNhLTA4ODMtNGNjZC1hNmU5LTQ2OWNhMDYxNmU2OSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiYWRkcmVzcyI6e30sIm5hbWUiOiJkZW1vMSBhcGkiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhcGlfY2FzaHBheS5kZW1vIiwiZ2l2ZW5fbmFtZSI6ImRlbW8xIiwiZmFtaWx5X25hbWUiOiJhcGkiLCJlbWFpbCI6ImRlbW8xQGdtYWlsLmNvbSJ9.lMwCOrs5Pry8Flb3yl81CnO8Ome22Y2ThHHrTTnvx5UUA3K3yj69i3xrlx8VcxHy3XMIVC8yYZfaFEPSh8AlmwTQ_V50xNyKD0LHfYT9ePRRSZo_mEyKnYp9_qzlbVISzgBzcBabn0KHgu_CDcDcwz8yzjhi0cJRjMAc-vx_kXrORenpIOaREQks8pEh3nXcPkBODcmfT0jsd4gNIC1ei7jgfZdD7BraEFolztRiNEUWO7G3eLO2O7bh0zNM8Bxrj-l_u4wsdNZFiuvUWqB7Y87a9L7t2AmvDl1iBQ9ynhbRcS3gcKgkTPKTvzccSLiQG9F0IsBMYU5qpAYrDe15-g","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 200,\n\t\"client\": {\n\t\t\"phone\": \"+22893151517\"\n\t},\n    \"gateway\": {\n        \"reference\": \"14f4597d-ef96-4263-8107-1e1970959133\"\n    },\n    \"ledger\": {\n        \"reference\":\"de7a9b8e-74be-4ced-a263-7323e242cf19\"\n    },\n    \"currency\": \"XOF\",\n    \"callback_url\" : \"https://yourcallbackurl.com\"\n}"},"url":"{{endpoint}}/tpos/orders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"981"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 25 Jun 2024 11:15:28 GMT"},{"key":"x-amzn-RequestId","value":"43e60d77-d9ac-42da-9343-47eb6d4d1f68"},{"key":"x-amzn-Remapped-Upgrade","value":"h2,h2c"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"Z68AgHqvDoEEBtg="},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"x-amzn-Remapped-Server","value":"Apache/2.4.58 (Amazon Linux) OpenSSL/3.0.8"},{"key":"x-amzn-Remapped-Date","value":"Tue, 25 Jun 2024 11:15:28 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7564e806c7d8686b031d863cf92ad6d2.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MAD56-P3"},{"key":"X-Amz-Cf-Id","value":"rnz0OakVsQ43H8wkws_WEY-dKqoPlbYRrhf4t2Mx4WyAwI9wcEBjJg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"order_reference\": \"SANDBOX-1719314128-NWL04y\",\n    \"amount\": 200,\n    \"state\": \"Pending\",\n    \"date_create\": \"2024-06-25T11:15:28+00:00\",\n    \"bill_url\": \"https://sandbox.cashpay.tg/facture/SANDBOX-1719314128-NWL04y\",\n    \"code\": \"279966\",\n    \"merchant_reference\": \"SANDBOX-1719314128-Z4Qej2\",\n    \"client\": {\n        \"lastname\": null,\n        \"firstname\": null,\n        \"phone\": \"+22890112783\"\n    },\n    \"received_amount\": 0,\n    \"callback_url\": \"https://yourcallbackurl.com\",\n    \"callback_type\": null,\n    \"callback_id\": null,\n    \"redirect_url\": null,\n    \"currency\": \"XOF\",\n    \"ledger\": {\n        \"reference\": \"de7a9b8e-74be-4ced-a263-7323e242cf19\"\n    },\n    \"status\": \"success\",\n    \"message\": \"Bill created\",\n    \"qrcode_url\": \"http://sandbox.cashpay.tg/qr_code_url/https://sandbox.cashpay.tg/facture/SANDBOX-1719314128-NWL04y.png\",\n    \"payments_method\": [\n        {\n            \"gateway\": \"SandboxSemoa\",\n            \"method\": \"DIRECT_URL\",\n            \"action\": \"https://sandbox.cashpay.tg/facture/recap-sandbox/SANDBOX-1719314128-NWL04y/11\",\n            \"description\": \"Gateway de simulation de la sandbox\",\n            \"reference\": \"14f4597d-ef96-4263-8107-1e1970959133\",\n            \"id\": 11\n        }\n    ]\n}"}],"_postman_id":"7493f3ae-8952-4908-975b-04430168dc5f"}],"id":"920c6906-5e57-40d4-8879-e05edbe77d9b","_postman_id":"920c6906-5e57-40d4-8879-e05edbe77d9b","description":""}]}