{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"7299bc22-2f0d-4dc8-bf53-7c3479b0424d","name":"Hisa Go Partner","description":"**Note**: all amounts to and from the system are in kobo\n\nQ/A\n\n_Are these credentials for a sandbox or live environment?_\n\nThese credentials are on sandbox but performs live transactions to make you integration easier. You have NGN 5000 for test and the recipients will get actual value, therefore perform each test with small amounts. Remember, all amounts to and from the system are in Kobo. Once you are done with testing, a different API key and URL will be used for Live environment. But your email and password remains the same (you can chose to request change though).\n\n_What are the uses of email, phone number and password? Are these used for authorization?_\n\nAuthorization uses only the api key. However, the email, phone and password can be used to access admin dashboard for monitoring and reporting purposes only. The dashboard url will be shared seperately once integration is completed.\n\n_You API docs says that authorization is by Bearer Token and that we are expected to use the apikey you just provided, however, I just tried a request using Postman and I am getting an unauthorized response._\n\nNote that the api key is to be passed as the token.  \ne.g --header 'Authorization: Bearer {your apikey}'\n\nhere is a sample CURL:  \ncurl --location 'http://{{hostURL}}/api/airtime'  \n\\--header 'Content-Type: application/json'  \n\\--header 'Authorization: Bearer {your apikey}'  \n\\--data '{  \n\"msisdn\": \"07030000000\",  \n\"amount\": 1000,  \n\"ref\": \"test-of-10-naira\",  \n\"network\": \"mtn\"  \n}  \n'\n\nIf the authorization issue persists, kindly share your sample request\n\n### **Appendix 1: HTTP Response Codes**\n\n| **Code** | **Meaning** | **Remarks** |\n| --- | --- | --- |\n| 200 | Request processed successfully | Check transaction status for the actual outcome of the transaction. |\n| 400 | Bad Request | Invalid request parameters (e.g., format or amount). |\n| 401 | Unauthorized | Invalid token or API key. |\n| 402 | Insufficient Balance | Wallet balance insufficient or other wallet-related error. |\n| 403 | Account Not Approved | Your account has not yet been approved. |\n| 404 | Not Found | Invalid or non-existent endpoint. |\n| 412 | Email Not Verified | Verify your email to gain access. |\n| 422 | Validation error | The request failed validation |\n| 500 | Server Error | Error not related to the request. |\n\n---\n\n### **Appendix 2: Transaction Status Codes**\n\n| **Status Code** | **Status** | **Meaning** | **Remarks** |\n| --- | --- | --- | --- |\n| 06 | Pending | Transaction still pending. | Rare case. Do not retry. Check status after 3 minutes. |\n| 00 | Successful | Transaction processed successfully. | — |\n| 01 | Failed | Transaction failed on the telco side. | — |\n| 02 | InvalidMsisdn | Invalid or barred MSISDN. | — |\n| 03 | InvalidAmount | Amount requested is invalid. | — |\n| 04 | TelcoError | Error while vending on the telco side. | — |\n| 05 | InternalError | Internal processing error. | — |\n| 08 | InsufficientBalance | Your balance is insufficient for this transaction |  |\n| 09 | InvalidTelco | Invalid telco specified in request. | — |\n\n---\n\n### **Appendix 3: Network IDs**\n\n| **Code** | **Network** |\n| --- | --- |\n| mtn | MTN |\n| airtel | Airtel |\n| ninemobile | 9mobile |\n| glo | Globacom |\n\n**Validation Errors:**  \nWhen request fails validation, gttp 422 is returned. The body has the following structure:\n\n{  \n\"error\": \"The reason for the validation failure\",  \n\"errors\": {  \n\"param_1\": \\[  \n\"the error with param_1\"  \n\\],\n\n\"param_2\": \\[  \n\"the error with param_2\"  \n\\]  \n},  \n\"message\": \"The reason for the validation failure\",  \n}\n\ne.g request:  \n{  \n\"msisdn\": \"07034481876\",  \n\"amount\": 5000, // in kobo  \n\"ref\": \"test-mtn-may-17-3\",  \n\"network\": “qti”  \n}\n\nresponse:  \nHttp 422  \n{  \n\"error\": \"The selected network is not valid\",  \n\"errors\": {  \n\"network\": \\[  \n\"The selected network is not valid\"  \n\\]  \n},  \n\"message\": \"The selected network is not valid\"  \n}","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"14135488","team":1662302,"collectionId":"7299bc22-2f0d-4dc8-bf53-7c3479b0424d","publishedId":"2sA3dyiWfZ","public":true,"publicUrl":"https://documenter-api.postman.tech/view/14135488/2sA3dyiWfZ","privateUrl":"https://go.postman.co/documentation/14135488-7299bc22-2f0d-4dc8-bf53-7c3479b0424d","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.12.14","publishDate":"2024-07-05T08:37:59.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/c51c81d443cde0adf648d0f554adb624644dd43eac52b5128e0c3aba65da3798","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sA3dyiWfZ"}