{"info":{"_postman_id":"c9572f29-1602-4663-a9c0-04c540ffb2fa","name":"Offgrid SPOI ","description":"<html><head></head><body><p>This document gives an overview of the range of services that makes it possible to collect payment on behalf of off-grid service providers and get paid.\nThis suite of APIs provides access to an array of Offgrid services which comprises both Solar Home System (SHS) providers and Solar Mini-grids. </p>\n<p>Some of the available services we have provided APIs for include related APIs like Device number validation, Solar Subscription payment, Buy product and Transaction Status services. </p>\n<p>These services come from multiple providers, however, we have wrapped around them an abstraction layer to provide a consistent interface to integrators regardless of the underlying service provider. </p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5735281","collectionId":"c9572f29-1602-4663-a9c0-04c540ffb2fa","publishedId":"TW6tMAQF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-01-24T18:00:04.000Z"},"item":[{"name":"List of Available Solar Companies Copy","id":"e960d744-0ba3-45ec-b24e-24682fee8469","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer 10c50522-bd3e-379f-8861-66a62b8fc199","type":"text","description":"<p>Authorization header used for Basic authentication and oauth. Format of the header\n                                parameter follows the standard for Basic and Bearer.</p>\n"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/solar-companies","description":"<p>This endpoint returns all the available solar companies</p>\n<p>Authorization        </p>\n<p>Responses</p>\n<p>200   Ok\n404   Not Found</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c9572f29-1602-4663-a9c0-04c540ffb2fa","id":"c9572f29-1602-4663-a9c0-04c540ffb2fa","name":"Offgrid SPOI ","type":"collection"}},"urlObject":{"protocol":"https","path":["offgrid","v1","solar-companies"],"host":["api","omnibranches","com"],"query":[],"variable":[]}},"response":[{"id":"eace9cd2-b259-411e-b680-e0c95e663000","name":"List of Available Solar Companies","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {key}","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":""},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Sun, 24 Jan 2021 17:53:10 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"1\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"ASOLAR\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"CLOUD ENERGY\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"SMARTER GRID\"\n        },\n        {\n            \"id\": 4,\n            \"name\": \"OOLU SOALR\"\n        },\n        {\n            \"id\": 5,\n            \"name\": \"PAS SOLAR\"\n        },\n        {\n            \"id\": 6,\n            \"name\": \"SOSAI\"\n        },\n        {\n            \"id\": 7,\n            \"name\": \"A4&T\"\n        },\n        {\n            \"id\": 8,\n            \"name\": \"GLP\"\n        },\n        {\n            \"id\": 9,\n            \"name\": \"AZURI\"\n        },\n        {\n            \"id\": 10,\n            \"name\": \"NAYO\"\n        },\n        {\n            \"id\": 11,\n            \"name\": \"KONEXA\"\n        },\n        {\n            \"id\": 12,\n            \"name\": \"FENIX\"\n        },\n        {\n            \"id\": 13,\n            \"name\": \"D.LIGHT\"\n        },\n        {\n            \"id\": 14,\n            \"name\": \"BEEBEE JUMP\"\n        },\n        {\n            \"id\": 15,\n            \"name\": \"SALPHA\"\n        }\n    ],\n    \"message\": \"list of active solar companies\"\n}"},{"id":"53cf20ec-6e5c-412b-91d3-82ed0158deb7","name":"List of Available Solar Companies","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {key}","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/solar-companies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Sun, 24 Jan 2021 17:53:10 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"1\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"ASOLAR\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"CLOUD ENERGY\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"SMARTER GRID\"\n        },\n        {\n            \"id\": 4,\n            \"name\": \"OOLU SOALR\"\n        },\n        {\n            \"id\": 5,\n            \"name\": \"PAS SOLAR\"\n        },\n        {\n            \"id\": 6,\n            \"name\": \"SOSAI\"\n        },\n        {\n            \"id\": 7,\n            \"name\": \"A4&T\"\n        },\n        {\n            \"id\": 8,\n            \"name\": \"GLP\"\n        },\n        {\n            \"id\": 9,\n            \"name\": \"AZURI\"\n        },\n        {\n            \"id\": 10,\n            \"name\": \"NAYO\"\n        },\n        {\n            \"id\": 11,\n            \"name\": \"KONEXA\"\n        },\n        {\n            \"id\": 12,\n            \"name\": \"FENIX\"\n        },\n        {\n            \"id\": 13,\n            \"name\": \"D.LIGHT\"\n        },\n        {\n            \"id\": 14,\n            \"name\": \"BEEBEE JUMP\"\n        },\n        {\n            \"id\": 15,\n            \"name\": \"SALPHA\"\n        }\n    ],\n    \"message\": \"list of active solar companies\"\n}"}],"_postman_id":"e960d744-0ba3-45ec-b24e-24682fee8469"},{"name":"Get Solar products by Id filter by payment method","id":"42dff4ac-2467-460e-82fb-101a8d18279c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {key}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/solar-companies/8/products","description":"<p>Fetch solar products available by solar company Id\nRequest</p>\n<p>Request URL : /offgrid/v1/solar-companies/{id}/products</p>\n<p>Request Header\nAuthorization string Authorization header used for Basic authentication and oauth. Format of the header parameter follows the standard for Basic and Bearer.</p>\n<p>Responses\n200 : Okay, list solar company\n404: solar company with id, {id} is invalid</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c9572f29-1602-4663-a9c0-04c540ffb2fa","id":"c9572f29-1602-4663-a9c0-04c540ffb2fa","name":"Offgrid SPOI ","type":"collection"}},"urlObject":{"protocol":"https","path":["offgrid","v1","solar-companies","8","products"],"host":["api","omnibranches","com"],"query":[],"variable":[]}},"response":[{"id":"c59cbb07-4638-4a2f-897d-239009fb054d","name":"Get Solar products by Id filter by payment method=outright","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {key}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.omnibranches.com/offgrid/v1/solar-companies/8//products?paymentmethod=outright","protocol":"https","host":["api","omnibranches","com"],"path":["offgrid","v1","solar-companies","8","","products"],"query":[{"key":"paymentmethod","value":"outright"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Fri, 29 Oct 2021 05:54:23 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"01\",\n    \"data\": [\n        {\n            \"id\": \"8\",\n            \"solar_company\": \"GLP\",\n            \"products\": [\n                {\n                    \"id\": 551,\n                    \"name\": \"Pro All Night (Up Front)\",\n                    \"amount\": 11200,\n                    \"payment_method\": \"outright\"\n                }\n            ],\n            \"meta\": {\n                \"buy\": {\n                    \"fields\": [\n                        {\n                            \"field\": \"email\",\n                            \"description\": \"customer email address\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"fullname\",\n                            \"description\": \"customer name\",\n                            \"type\": \"String\",\n                            \"optional\": \"no\"\n                        },\n                        {\n                            \"field\": \"address\",\n                            \"description\": \"customer address\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"description\",\n                            \"description\": \"transaction description\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"mobile_number\",\n                            \"description\": \"customer phone number\",\n                            \"type\": \"String\",\n                            \"optional\": \"no\"\n                        },\n                        {\n                            \"field\": \"meta\",\n                            \"description\": \"This is an object you can use to include any additional information \",\n                            \"type\": \"Object\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"external_ref\",\n                            \"description\": \"Partner unique reference/transactionId\",\n                            \"type\": \"String\",\n                            \"optional\": false\n                        },\n                        {\n                            \"field\": \"amount\",\n                            \"description\": \"The service amount for this package\",\n                            \"type\": \"dobule\",\n                            \"optional\": false\n                        }\n                    ]\n                },\n                \"payGo\": {\n                    \"fields\": [\n                        {\n                            \"field\": \"meter_no/device_no\",\n                            \"description\": \"solar meter no or device no\",\n                            \"type\": \"String\",\n                            \"optional\": \"no\"\n                        },\n                        {\n                            \"field\": \"mobile_number\",\n                            \"description\": \"customer mobile number\",\n                            \"type\": \"String\",\n                            \"optional\": \"no\"\n                        },\n                        {\n                            \"field\": \"email\",\n                            \"description\": \"customer email address\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"fullname\",\n                            \"description\": \"customer name\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"meta\",\n                            \"description\": \"This is an object you can use to include any additional information \",\n                            \"type\": \"Object\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"external_ref\",\n                            \"description\": \"Partner unique reference/transactionId\",\n                            \"type\": \"String\",\n                            \"optional\": false\n                        },\n                        {\n                            \"field\": \"amount\",\n                            \"description\": \"The service amount for this package\",\n                            \"type\": \"dobule\",\n                            \"optional\": false\n                        }\n                    ]\n                }\n            },\n            \"collection_support\": true\n        }\n    ],\n    \"message\": \"GLP product listing , filtered by outright\"\n}"},{"id":"d2ee53a9-e204-4b5c-9b8e-17e565695a70","name":"Get Solar products by Id filter by payment method=payGo","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {key}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.omnibranches.com/offgrid/v1/solar-companies/8//products?paymentmethod=payGo","protocol":"https","host":["api","omnibranches","com"],"path":["offgrid","v1","solar-companies","8","","products"],"query":[{"key":"paymentmethod","value":"payGo"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Fri, 29 Oct 2021 06:40:06 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"01\",\n    \"data\": [\n        {\n            \"id\": \"8\",\n            \"solar_company\": \"GLP\",\n            \"products\": [\n                {\n                    \"id\": 508,\n                    \"name\": \"Home 60 (Pay Go)\",\n                    \"amount\": 6000,\n                    \"payment_method\": \"payGo\"\n                }\n            ],\n            \"meta\": {\n                \"buy\": {\n                    \"fields\": [\n                        {\n                            \"field\": \"email\",\n                            \"description\": \"customer email address\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"fullname\",\n                            \"description\": \"customer name\",\n                            \"type\": \"String\",\n                            \"optional\": \"no\"\n                        },\n                        {\n                            \"field\": \"address\",\n                            \"description\": \"customer address\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"description\",\n                            \"description\": \"transaction description\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"mobile_number\",\n                            \"description\": \"customer phone number\",\n                            \"type\": \"String\",\n                            \"optional\": \"no\"\n                        },\n                        {\n                            \"field\": \"meta\",\n                            \"description\": \"This is an object you can use to include any additional information \",\n                            \"type\": \"Object\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"external_ref\",\n                            \"description\": \"Partner unique reference/transactionId\",\n                            \"type\": \"String\",\n                            \"optional\": false\n                        },\n                        {\n                            \"field\": \"amount\",\n                            \"description\": \"The service amount for this package\",\n                            \"type\": \"dobule\",\n                            \"optional\": false\n                        }\n                    ]\n                },\n                \"payGo\": {\n                    \"fields\": [\n                        {\n                            \"field\": \"meter_no/device_no\",\n                            \"description\": \"solar meter no or device no\",\n                            \"type\": \"String\",\n                            \"optional\": \"no\"\n                        },\n                        {\n                            \"field\": \"mobile_number\",\n                            \"description\": \"customer mobile number\",\n                            \"type\": \"String\",\n                            \"optional\": \"no\"\n                        },\n                        {\n                            \"field\": \"email\",\n                            \"description\": \"customer email address\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"fullname\",\n                            \"description\": \"customer name\",\n                            \"type\": \"String\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"meta\",\n                            \"description\": \"This is an object you can use to include any additional information \",\n                            \"type\": \"Object\",\n                            \"optional\": \"yes\"\n                        },\n                        {\n                            \"field\": \"external_ref\",\n                            \"description\": \"Partner unique reference/transactionId\",\n                            \"type\": \"String\",\n                            \"optional\": false\n                        },\n                        {\n                            \"field\": \"amount\",\n                            \"description\": \"The service amount for this package\",\n                            \"type\": \"dobule\",\n                            \"optional\": false\n                        }\n                    ]\n                }\n            },\n            \"collection_support\": true\n        }\n    ],\n    \"message\": \"GLP product listing , filtered by payGo\"\n}"}],"_postman_id":"42dff4ac-2467-460e-82fb-101a8d18279c"},{"name":"Buy Solar Product","id":"8583997c-d1bf-42fd-ad47-815f9422644d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer 10c50522-bd3e-379f-8861-66a62b8fc199"}],"body":{"mode":"raw","raw":"{\n    \"fullname\":\"Adegbola Kudi\",\n    \"mobile_number\": \"09078385949\",\n\t\"amount\":\"65953\",\n    \"external_ref\":\"09664\",\n    \"email\":\"adegbolakudi@yahoo.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/3/674/buy","description":"<p>This endpoint will be used when a customer is trying to pay for the pay-go or outright plan for a solar system. \nPAY-GO\nIn case of pay-go, the payment is a portion of the total cost of the solar device which is spread over a period of time. This endpoint is for the initial payment (down payment) which gives the customer access to the solar device for the duration of the period paid for which is a function of the amount.</p>\n<p>OUTRIGHT\nThis endpoint will be used when a customer is trying to pay for the outright plan for a solar system. The payment is the total cost of the solar device; the customer will not be required to make any other payments.\nOn successful payment and installation (or delivery), the customer gets a solar ID which is the identifier for the customer with the service provider (Solar company)</p>\n<p>On successful payment and installation (or delivery), the customer gets a solar ID which is the identifier for the customer with the service provider (Solar company). The Solar ID will be used for subsequent payments (Pay-go) which will be done using the /vas/pay-up/ endpoint.</p>\n","urlObject":{"protocol":"https","path":["offgrid","v1","products","3","674","buy"],"host":["api","omnibranches","com"],"query":[],"variable":[]}},"response":[{"id":"b11af9d8-fa9c-480b-bead-bbdd78ad7166","name":"Buy Solar Product","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {key}"}],"body":{"mode":"raw","raw":"{\n    \"fullname\":\"Adegbola Kudi\",\n    \"mobile_number\": \"09078385949\",\n\t\"amount\":\"5000\",\n    \"external_ref\":\"\",\n    \"email\":\"adegbolakudi@yahoo.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/{solar_company_id}/{product_id}/buy"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"94d3f1d1-9928-4e87-921b-945ca78a700c","name":"Buy Solar Product - Invalid product ID","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {key}"}],"body":{"mode":"raw","raw":"{\n    \"fullname\":\"Adegbola Kudi\",\n    \"mobile_number\": \"09078385949\",\n\t\"amount\":\"5000\",\n    \"external_ref\":\"\",\n    \"email\":\"adegbolakudi@yahoo.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/2/1/buy"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Mon, 25 Jan 2021 03:42:20 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": \"0\",\n    \"data\": null,\n    \"message\": \"product id, 1 is invalid\"\n}"},{"id":"97c122b4-ced7-4419-b22a-cea309829568","name":"Buy Solar Product- Insufficent Wallet Balance","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {key}"}],"body":{"mode":"raw","raw":"{\n    \"fullname\":\"Adegbola Kudi\",\n    \"mobile_number\": \"09078385949\",\n\t\"amount\":\"65953\",\n    \"external_ref\":\"0114\",\n    \"email\":\"adegbolakudi@yahoo.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/3/674/buy"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Mon, 25 Jan 2021 03:48:05 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Headers","value":"authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": \"0\",\n    \"data\": \"\",\n    \"message\": \"Insufficient wallet balance\"\n}"},{"id":"4c270af5-e22d-47fe-848e-5c1e978d1b9b","name":"Buy Solar Product, sucsess response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {key}"}],"body":{"mode":"raw","raw":"{\n    \"fullname\":\"Adegbola Kudi\",\n    \"mobile_number\": \"09078385949\",\n\t\"amount\":\"65953\",\n    \"external_ref\":\"09967764\",\n    \"email\":\"adegbolakudi@yahoo.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/3/674/buy"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Fri, 29 Oct 2021 06:41:16 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Headers","value":"authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"1\",\n    \"data\": {\n        \"transactionId\": \"e697a9e50102431bb5ab9c7c0a0fadd1\",\n        \"amount\": \"65953.0\",\n        \"external_ref\": \"09967764\",\n        \"token\": \"null\"\n    },\n    \"message\": \"Successful\"\n}"}],"_postman_id":"8583997c-d1bf-42fd-ad47-815f9422644d"},{"name":"Get Transaction Status with External Ref","id":"f3a14b3e-00a2-4905-881e-86a5270abb9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer 10c50522-bd3e-379f-8861-66a62b8fc199","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"mobileNo\":\"2348032249455\",\n\t\"amount\":\"100\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/pay/status?external_ref=0115","description":"<p>This endpoint is used to get transaction status using the externel reference number\n<a href=\"https://api.omnibranches.com/offgrid/v1/products/pay/status?external_ref=%7Bexternal_ref%7D\">https://api.omnibranches.com/offgrid/v1/products/pay/status?external_ref={external_ref}</a></p>\n","urlObject":{"protocol":"https","path":["offgrid","v1","products","pay","status"],"host":["api","omnibranches","com"],"query":[{"key":"external_ref","value":"0115"}],"variable":[]}},"response":[{"id":"99c7944f-6647-44df-ab07-6fe7e7f36759","name":"Get Transaction Status with External Ref - Transaction does not exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{nw_test}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"mobileNo\":\"2348032249455\",\n\t\"amount\":\"100\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.omnibranches.com/offgrid/v1/products/pay/status?external_ref=0115","protocol":"https","host":["api","omnibranches","com"],"path":["offgrid","v1","products","pay","status"],"query":[{"key":"external_ref","value":"0115"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Mon, 25 Jan 2021 03:50:59 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Headers","value":"authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": \"0\",\n    \"data\": \"\",\n    \"message\": \"Transaction does not exist\"\n}"},{"id":"e5d5b73d-3b31-427b-bdd1-2a342f7118aa","name":"Get Transaction Status with External Ref","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{nw_test}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"mobileNo\":\"2348032249455\",\n\t\"amount\":\"100\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.omnibranches.com/offgrid/v1/products/pay/status?external_ref=0114","protocol":"https","host":["api","omnibranches","com"],"path":["offgrid","v1","products","pay","status"],"query":[{"key":"external_ref","value":"0114"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Sat, 23 Jan 2021 10:31:37 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Headers","value":"authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"1\",\n    \"data\": {\n        \"transactionId\": \"6447150b517b42e5a71fa4773269e93b\",\n        \"amount\": \"3000.0\",\n        \"external_ref\": \"0114\",\n        \"token\": \"null\"\n    },\n    \"message\": \"Successful\"\n}"}],"_postman_id":"f3a14b3e-00a2-4905-881e-86a5270abb9e"},{"name":"Pay Up","id":"51295e19-bd8d-4e64-87fd-1e504c79bc36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer 10c50522-bd3e-379f-8861-66a62b8fc199","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"meter_no\": \"51802114\",\r\n    \"mobile_number\": \"08035367567\",\r\n    \"email\": \"jad@jad.com\",\r\n    \"fullname\":\"adeaga femi\",\r\n    \"external_ref\" : 19800004,\r\n  \"amount\":\"100\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/3/pay-up","description":"<p>This endpoint is used to make payment for solar panels that payment_method = payGo. Using this endpoint enables the payment of solar products subscriptions.</p>\n","urlObject":{"protocol":"https","path":["offgrid","v1","products","3","pay-up"],"host":["api","omnibranches","com"],"query":[],"variable":[]}},"response":[{"id":"4176e8d7-d389-4b3d-a4e6-5177696a76d2","name":"Pay Up","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{nw_test}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"meter_no\": \"111113452\",\r\n    \"mobile_number\": \"09992392329\",\r\n    \"email\": \"jad@jad.com\",\r\n    \"fullname\":\"adeaga femi\",\r\n    \"external_ref\" : 1104,\r\n  \"amount\":\"100\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/1/pay-up"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Sat, 23 Jan 2021 10:57:37 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": \"0\",\n    \"data\": {\n        \"transactionId\": \"e1f03809f64246b780fe57ddf2aaa92f\",\n        \"amount\": \"100\",\n        \"external_ref\": \"1104\",\n        \"token\": \"null\"\n    },\n    \"message\": \"Invalid Unit Serial Number\"\n}"},{"id":"8c03e35e-3423-4335-a220-a10e2bad7e10","name":"Pay Up( Existing transaction Reference)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{nw_test}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"meter_no\": \"51802114\",\r\n    \"mobile_number\": \"09992392329\",\r\n    \"email\": \"jad@jad.com\",\r\n    \"fullname\":\"adeaga femi\",\r\n    \"external_ref\" : 1304,\r\n  \"amount\":\"100\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/3/pay-up"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Wed, 05 May 2021 06:05:09 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": \"0\",\n    \"data\": \"\",\n    \"message\": \"Transaction with merchant ref: 1304 already exist\"\n}"},{"id":"57d77ced-38a1-4b4f-9109-e136954e3e6b","name":"Pay Up (Invalid MSISDN)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{nw_test}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"meter_no\": \"51802114\",\r\n    \"mobile_number\": \"09992392329\",\r\n    \"email\": \"jad@jad.com\",\r\n    \"fullname\":\"adeaga femi\",\r\n    \"external_ref\" : 1704,\r\n  \"amount\":\"100\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/3/payment=pay-up"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Wed, 05 May 2021 06:06:11 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": \"0\",\n    \"data\": {\n        \"transactionId\": \"b15c20d801d746d88b77afb069975e2d\",\n        \"amount\": \"100\",\n        \"external_ref\": \"1704\",\n        \"token\": \"null\"\n    },\n    \"message\": \"INVALID-MSISDN\"\n}"},{"id":"fcbc3e8f-d532-4079-9169-d74df2930e06","name":"Pay Up (Success)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{nw_test}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"meter_no\": \"51802114\",\r\n    \"mobile_number\": \"08035367567\",\r\n    \"email\": \"jad@jad.com\",\r\n    \"fullname\":\"adeaga femi\",\r\n    \"external_ref\" : 1804,\r\n  \"amount\":\"100\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/3/pay-up"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Wed, 05 May 2021 06:10:40 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"1\",\n    \"data\": {\n        \"transactionId\": \"12cb28d6b1c543ceae82c696123137dc\",\n        \"amount\": \"100\",\n        \"external_ref\": \"1804\",\n        \"token\": \"030 316 569 381 094 340 055\"\n    },\n    \"message\": \"SUCCESS\"\n}"}],"_postman_id":"51295e19-bd8d-4e64-87fd-1e504c79bc36"},{"name":"Validate Meter or Device Id","id":"4f6e8bd6-62e3-4424-8f56-925e221cbad4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer 10c50522-bd3e-379f-8861-66a62b8fc199"}],"body":{"mode":"raw","raw":"\"accountReference\",\n\"amount\",\n                            \"description\": \"Amount\",\n                            \"type\": \"double\",\n                            \"optional\": false\n                        },\n                        {\n                            \"field\": \"subcriberMsisdn\",\n                            \"description\": \"Customer mobile no\",\n                            \"type\": \"String\",\n                            \"optional\": false\n                        },\n                        {\n                            \"field\": \"subcriberName\",\n                            \"description\": \"Customer name\",\n                            \"type\": \"String\",\n                            \"optional\": true\n                        },\n                        {\n                            \"field\": \"customerEmail\",\n                            \"description\": \"Customer Email\",\n                            \"type\": \"String\",\n                            \"optional\": true\n                        },\n                        {\n                            \"field\": \"merchantTxRef\",\n                            \"description\": \"Merchant unique reference/transactionId\",\n                            \"type\": \"String\",\n                            \"optional\": false\n\n\n\n\n\ncustomerName\n    \"meter_no\": \"51802114\",\n    \"amount\":\"100\",\n    \"mobile_number\": \"09078385949\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/3/validate","description":"<p>This endpoint will be used to verify the Customer ID (Solar Box ID) if it exists on the Solar company’s system before a payment is made for the solar device. This returns success only if the ID exists and otherwise if it does not exist.</p>\n<p>Note: This should be used before the Pay-up endpoint is called.</p>\n","urlObject":{"protocol":"https","path":["offgrid","v1","products","3","validate"],"host":["api","omnibranches","com"],"query":[],"variable":[]}},"response":[{"id":"c9c42982-3e54-40d8-85db-b4d09396105a","name":"Validate Meter success","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {key}"}],"body":{"mode":"raw","raw":"{\n\n    \"meter_no\": \"51802114\",\n    \"amount\":\"100\",\n    \"mobile_number\": \"09078385949\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.omnibranches.com/offgrid/v1/products/3/validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.10.3 (Ubuntu)"},{"key":"Date","value":"Fri, 29 Oct 2021 07:51:08 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Origin"},{"key":"Expires","value":"0"},{"key":"Pragma","value":"no-cache"},{"key":"X-XSS-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"1\",\n    \"data\": \"\",\n    \"message\": \"SUCCESS\"\n}"}],"_postman_id":"4f6e8bd6-62e3-4424-8f56-925e221cbad4"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"a0201485-e18c-4721-a786-44bfb50c2b63","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b1c40a96-5a3a-4a70-92ee-8900a93d9300","type":"text/javascript","exec":[""]}}],"variable":[{"key":"Bearer_key","value":"Bearer 10c50522-bd3e-379f-8861-66a62b8fc199"}]}