{"info":{"_postman_id":"19d548f7-994d-47a8-82ee-9f9e514ab55d","name":"Smart API .NG","description":"<html><head></head><body><p>Register on <a href=\"https://smartapi.ng\">smartapi.ng</a> to get your API Key.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13059825","collectionId":"19d548f7-994d-47a8-82ee-9f9e514ab55d","publishedId":"2sAYk8v3PR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-20T06:51:03.000Z"},"item":[{"name":"Webhook Notification","item":[],"id":"a7f620a8-d36e-40b8-8a03-ceb36e21fab0","description":"<p>Go to Profile on <a href=\"https://smartapi.ng\">smartapi.ng</a> to update Webhook URL.</p>\n<p>Use below code in your webhook file to receive notification from us.</p>\n<p>$body = @file_get_contents(\"php://input\");<br />$body=json_decode($body,true);</p>\n<p>$code=$body['code'];//status code<br />$status=$body['status'];//status code<br />$response=$body['response'];<br />$reference=$body['reference'];<br />$product=$body['product'];// e.g MTN SME 1GB<br />$recipient=$body['recipient'];<br />$amount=$body['amount']; //amount debited<br />$date=$body['date'];</p>\n","_postman_id":"a7f620a8-d36e-40b8-8a03-ceb36e21fab0"},{"name":"List of Plan IDs","item":[],"id":"830ea86b-18d6-4c56-97c3-f41e5dd7f674","description":"<p>Login to your <a href=\"https://smartapi.ng/\">Smart API</a> account and click on Developer's API from Services menu. Then click on API and select List of Plan IDs from the dropdown.</p>\n","_postman_id":"830ea86b-18d6-4c56-97c3-f41e5dd7f674"},{"name":"Wallet Balance","id":"2443bd45-28e4-4378-90cc-43f4cb56d286","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"pin","value":"1234","type":"text","uuid":"dcd161df-3cae-46a3-9ebe-fecac933a3e8"}]},"url":"https://sabuss.com/vtu/api/balance/{API_KEY}","urlObject":{"protocol":"https","path":["vtu","api","balance","{API_KEY}"],"host":["sabuss","com"],"query":[],"variable":[]}},"response":[{"id":"5af24c59-9a58-45ce-9aeb-4bf66c411c3d","name":"Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"pin","value":"1234","type":"text","uuid":"dcd161df-3cae-46a3-9ebe-fecac933a3e8"}]},"url":"https://sabuss.com/vtu/api/balance/7PcG9VUYB32FACIL0Q8SJ5N64ZR1aEMWfOHdbDTXKe9853LG9kjFfvAb5CBEbaeD8J0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 12 Mar 2025 07:28:56 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"200\",\n    \"status\": \"success\",\n    \"response\": \"Wallet balance is fetched successfully.\",\n    \"balance\": \"0\"\n}"}],"_postman_id":"2443bd45-28e4-4378-90cc-43f4cb56d286"},{"name":"Buy Mobile Data","id":"56e2df65-0425-4f6d-a1db-1a85c4d8dc47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"pin","value":"1234","type":"text","uuid":"f7d9da55-823e-495d-99e7-339e4b16909d"},{"key":"plan_id","value":"2226","type":"text","uuid":"18ab5373-2156-43d8-b1c3-7f424dfba6ec"},{"key":"phone","value":"08011223344","type":"text","uuid":"5b923a8b-5d67-442e-b205-9c4a7be9b925"},{"key":"reference","value":"","type":"text","uuid":"5ea89af3-3284-4a16-8e4a-90b83db736e0"}]},"url":"https://sabuss.com/vtu/api/buy/{API_KEY}","description":"<p>Error codes:</p>\n<p>200 » success</p>\n<p>400 » pending</p>\n<p>800 » failed</p>\n<p>900 » reversed</p>\n","urlObject":{"protocol":"https","path":["vtu","api","buy","{API_KEY}"],"host":["sabuss","com"],"query":[],"variable":[]}},"response":[{"id":"e729392c-dae6-4d79-bb4b-8e94159e4ece","name":"Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"pin","value":"1234","type":"text","uuid":"f7d9da55-823e-495d-99e7-339e4b16909d"},{"key":"plan_id","value":"2226","type":"text","uuid":"18ab5373-2156-43d8-b1c3-7f424dfba6ec"},{"key":"phone","value":"08011223344","type":"text","uuid":"5b923a8b-5d67-442e-b205-9c4a7be9b925"},{"key":"reference","value":"","type":"text","uuid":"5ea89af3-3284-4a16-8e4a-90b83db736e0"}]},"url":"https://sabuss.com/vtu/api/buy/{API_KEY}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 12 Mar 2025 07:33:42 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"400\",\n    \"status\": \"pending\",\n    \"product\": \"MTN SME 500MB\",\n    \"response\": \"Your order is processed successfully to 08011223344. Update is sent to Webhook.\",\n    \"reference\": \"202503120833KCBVI41\"\n}"}],"_postman_id":"56e2df65-0425-4f6d-a1db-1a85c4d8dc47"},{"name":"Query/Fetch Transaction","id":"5c9f19b1-a586-41a5-a2c8-9e0f8bbfb8ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"pin","value":"1234","type":"text","uuid":"34f8bca3-68f6-4d91-ad49-b5e62f04b58d"},{"key":"reference","value":"202503120833KCBVI41","type":"text","uuid":"1cb7f558-7d26-43c7-8567-7c7749743ed3"}]},"url":"https://sabuss.com/vtu/api/query/{API_KEY}","urlObject":{"protocol":"https","path":["vtu","api","query","{API_KEY}"],"host":["sabuss","com"],"query":[],"variable":[]}},"response":[{"id":"2227dd96-ab59-41a6-a261-b5a43d49d956","name":"Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"pin","value":"1234","type":"text","uuid":"34f8bca3-68f6-4d91-ad49-b5e62f04b58d"},{"key":"reference","value":"202503120833KCBVI41","type":"text","uuid":"1cb7f558-7d26-43c7-8567-7c7749743ed3"}]},"url":"https://sabuss.com/vtu/api/query/7PcG9VUYB32FACIL0Q8SJ5N64ZR1aEMWfOHdbDTXKe9853LG9kjFfvAb5CBEbaeD8J0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 12 Mar 2025 07:42:06 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"900\",\n    \"status\": \"reversed\",\n    \"response\": \"Your wallet has already been refunded.\",\n    \"reference\": \"202503120833KCBVI41\",\n    \"product\": \"MTN SME 500MB\",\n    \"recipient\": \"08011223344\",\n    \"amount\": \"326.7\",\n    \"date\": \"Mar 12, 2025 08:33 AM\"\n}"}],"_postman_id":"5c9f19b1-a586-41a5-a2c8-9e0f8bbfb8ae"},{"name":"Buy VTU Airtime","id":"d92d38ac-cc00-47fa-9297-d74cd2506c8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"pin","value":"1234","type":"text","uuid":"a42c3863-bae0-453f-a4a2-b48cf09a4434"},{"key":"plan_id","value":"10","type":"text","uuid":"c2e81378-bb03-4a5a-b645-a96bf9cfdc97"},{"key":"phone","value":"08011223344","type":"text","uuid":"05ce4ca3-80ec-4fcc-8464-f28be025e6bc"},{"key":"amount","value":"50","type":"text","uuid":"9a72b30e-3461-46be-a5b0-e4dd9843b16a"},{"key":"reference","value":"","type":"text","uuid":"5a0b7cb8-5d7e-40fd-bb61-07cbdfa07c81"}]},"url":"https://sabuss.com/vtu/api/buy/{API_KEY}","urlObject":{"protocol":"https","path":["vtu","api","buy","{API_KEY}"],"host":["sabuss","com"],"query":[],"variable":[]}},"response":[{"id":"9244940f-1616-4bc4-991f-b841098394ae","name":"Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"pin","value":"1234","type":"text","uuid":"a42c3863-bae0-453f-a4a2-b48cf09a4434"},{"key":"plan_id","value":"10","type":"text","uuid":"c2e81378-bb03-4a5a-b645-a96bf9cfdc97"},{"key":"phone","value":"08011223344","type":"text","uuid":"05ce4ca3-80ec-4fcc-8464-f28be025e6bc"},{"key":"amount","value":"50","type":"text","uuid":"9a72b30e-3461-46be-a5b0-e4dd9843b16a"},{"key":"reference","value":"","type":"text","uuid":"5a0b7cb8-5d7e-40fd-bb61-07cbdfa07c81"}]},"url":"https://sabuss.com/vtu/api/buy/{API_KEY}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 13 Mar 2025 09:08:17 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"400\",\n    \"status\": \"pending\",\n    \"product\": \"MTN Airtime\",\n    \"response\": \"Your order is processed successfully to 08011223344. Update is sent to Webhook.\",\n    \"reference\": \"202503131008VBCDO15\"\n}"}],"_postman_id":"d92d38ac-cc00-47fa-9297-d74cd2506c8d"}]}