{"info":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","description":"<html><head></head><body><p>All requests to the Sparkle Virtual Account API must have a bearer token attached to the request header</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9944725","collectionId":"4d867488-6745-42bc-89c5-2c389f90ee05","publishedId":"2s93RZM9Zv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"14233B","highlight":"46B839"},"publishDate":"2026-02-20T06:51:03.000Z"},"item":[{"name":"Auth","item":[{"name":"Auth","event":[{"listen":"test","script":{"id":"6569604a-af9d-4058-b3ba-453d5570c1a1","exec":["var jsonData = pm.response.json();","","var valueToSet = jsonData.data.access_token;","","//   // Set the collection variable","pm.environment.set(\"authorization_token\", valueToSet);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"97cdb45a-2bc2-49f8-bb28-0e5818a8c2cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/auth","description":"<p>This request allows you get the access token that you'd use in making your API calls.</p>\n<p>When testing with Postman, use the Basic Auth type for authorization using your client key as username and secret key as password.</p>\n<p>When making an API call encode your client key and secret key using base 64 encoding.</p>\n<p>eg. base64_encode(clientKey:secretKey)<br />the encoding must be in that exact format.</p>\n","urlObject":{"path":["api","v1","integrations","merchant","auth"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"4b4647c4-b7f4-449a-9580-14d67225a604","name":"200: Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic Y2tfOGEwYTNmYmVhYzQ5ZDVlY2MxZTk3OWYwOGMwZjVjMDU3OTU2NjY4MDpza183YmY0ZGU1NmQzYzJiMmRlOGY4NTk5Yjk0ZTIwMWI4YThiZjA5Yzdi'","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 07:24:47 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 07:24:47 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9999"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"access_token\": \"eyJpdiI6IlN5M2ExVytEMy9EODRITUN3SW1Ic1E9PSIsInZhbHVlIjoiM3cwcXdZZE9SMDd4UlZKRFZGY21oNVkwbkZxWTc3S2VZdDZUeDNpM0tXND0iLCJtYWMiOiI4YTE1ZGZhMjM1MGUwMzY1NGY2MzJjZGE5MzEyZWM1ZjAwZmUxMGU0OTg4ZDZiZGZlZDI0ZWZmZWJkMzFkNmEzIiwidGFnIjoiIn0=\",\n        \"expires_in\": 1681382883\n    }\n}"},{"id":"e94fa130-c97e-4aa6-8e54-5818acf2a223","name":"401: Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic Y2tfOGEwYTNmYmVhYzQ5ZDVlY2MxZTk3OWYwOGMwZjVjMDU3OTU2NjY4MDpza183YmY0ZGU1NmQzYzJiMmRlOGY4NTk5Yjk0ZTIwMWI4YThiZjA5Yzd","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/auth"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 07:28:48 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 07:28:48 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9999"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Invalid authorization passed.\"\n}"}],"_postman_id":"97cdb45a-2bc2-49f8-bb28-0e5818a8c2cc"}],"id":"66ac95ab-f171-4482-a3cd-0e37926f9a8e","_postman_id":"66ac95ab-f171-4482-a3cd-0e37926f9a8e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}}},{"name":"Merchant","item":[{"name":"Overview","id":"6088e636-2ba2-477a-84fa-4a792221891c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/overview","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","overview"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"19326e89-8810-42f2-96d4-e3818c3ccc35","name":"200: Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/overview"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 06:36:04 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 06:36:04 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9998"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"total_revenue_sum\": \"190,000\",\n        \"total_disbursement_sum\": \"5000.00\",\n        \"pending_settlements_sum\": \"50000.00\",\n        \"total_transactions_count\": 5\n    }\n}"}],"_postman_id":"6088e636-2ba2-477a-84fa-4a792221891c"},{"name":"Get Customer By ID","id":"bc9d41b2-e968-416e-aa93-da650388ebe4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/customer/:customerId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","customer",":customerId"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[{"type":"any","value":"74","key":"customerId"}]}},"response":[{"id":"f54188ce-6e92-45e4-93a9-475f5f948e5f","name":"200: Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":{"raw":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/customer/:customerId","protocol":"https","host":["virtual-account-api","sparkle","fyi"],"path":["api","v1","integrations","merchant","customer",":customerId"],"variable":[{"key":"customerId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 07:26:44 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 07:26:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9999"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"GITECH (Default Customer)\",\n        \"email\": null,\n        \"phone\": \"07030102953\",\n        \"external_reference\": \"dd3d60a4-3468-424e-8c3a-458d1348c95e\",\n        \"bank_verification_number\": \"\",\n        \"is_active\": 1,\n        \"accounts\": [\n            {\n                \"id\": 1,\n                \"account_number\": \"9900000009\",\n                \"account_name\": \"GITECH(Default Account)\",\n                \"bank_name\": \"Sparkle Bank\",\n                \"bank_code\": \"51310\",\n                \"account_balance\": \"0.00\",\n                \"external_reference\": \"default-account\",\n                \"callback_url\": \"\",\n                \"is_permanent\": 1,\n                \"is_test\": 0,\n                \"expires_at\": null,\n                \"is_active\": 1,\n                \"created_at\": \"2023-04-11 17:27:11\",\n                \"updated_at\": \"14 hours ago\"\n            }\n        ],\n        \"created_at\": \"2023-04-11T16:27:11.000000Z\",\n        \"updated_at\": \"2023-04-11T16:27:11.000000Z\"\n    }\n}"},{"id":"e294c4b4-a896-49e7-bfe0-72d9deb03664","name":"404: Not Found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":{"raw":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/customer/:customerId","protocol":"https","host":["virtual-account-api","sparkle","fyi"],"path":["api","v1","integrations","merchant","customer",":customerId"],"variable":[{"key":"customerId","value":"12"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 07:26:44 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 07:26:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9999"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Unable to fetch Customer, invalid data\"\n}"}],"_postman_id":"bc9d41b2-e968-416e-aa93-da650388ebe4"},{"name":"Get Customers","id":"e2ea473c-a136-4182-982d-770f339507c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/customers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","customers"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"17f1f652-d21a-43f7-9540-e524298d962a","name":"200: Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/customers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 07:29:27 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 07:29:27 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9998"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 3,\n            \"name\": \"Loras\",\n            \"email\": \"iedomwande@yahoo.com\",\n            \"phone\": \"\",\n            \"external_reference\": \"kuy76etghyiyo9kw-0wohb\",\n            \"bank_verification_number\": \"93003940393\",\n            \"is_active\": 1,\n            \"accounts\": [\n                {\n                    \"id\": 3,\n                    \"account_number\": \"9900000023\",\n                    \"account_name\": \"Loras\",\n                    \"bank_name\": \"Sparkle Bank\",\n                    \"bank_code\": \"51310\",\n                    \"account_balance\": \"0.00\",\n                    \"external_reference\": \"spk-09876-09876-oiuhgf\",\n                    \"callback_url\": \"\",\n                    \"is_permanent\": 1,\n                    \"is_test\": 0,\n                    \"expires_at\": null,\n                    \"is_active\": 1,\n                    \"created_at\": \"2023-04-10 22:25:39\",\n                    \"updated_at\": \"9 minutes ago\"\n                }\n            ],\n            \"created_at\": \"2023-04-06T14:23:33.000000Z\",\n            \"updated_at\": \"2023-04-06T14:23:33.000000Z\"\n        },\n        {\n            \"id\": 1,\n            \"name\": \"GITECH(Default Customer)\",\n            \"email\": null,\n            \"phone\": \"\",\n            \"external_reference\": \"b2a604d8-49b4-4743-9462-db5697ff25fd\",\n            \"bank_verification_number\": \"\",\n            \"is_active\": 1,\n            \"accounts\": [\n                {\n                    \"id\": 1,\n                    \"account_number\": \"9900000009\",\n                    \"account_name\": \"GITECH(Default Account)\",\n                    \"bank_name\": \"Sparkle Bank\",\n                    \"bank_code\": \"51310\",\n                    \"account_balance\": \"100000000.00\",\n                    \"external_reference\": \"default-account\",\n                    \"callback_url\": \"\",\n                    \"is_permanent\": 1,\n                    \"is_test\": 0,\n                    \"expires_at\": null,\n                    \"is_active\": 1,\n                    \"created_at\": \"2023-04-06 14:16:27\",\n                    \"updated_at\": \"4 days ago\"\n                }\n            ],\n            \"created_at\": \"2023-04-06T13:16:27.000000Z\",\n            \"updated_at\": \"2023-04-06T13:16:27.000000Z\"\n        }\n    ]\n}"}],"_postman_id":"e2ea473c-a136-4182-982d-770f339507c4"},{"name":"Settlements","id":"cc53a4f4-4dfd-4e1a-abf9-576600a9f40c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/settlements","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","settlements"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"3c1156f2-7e16-4407-8717-b18b22fd7582","name":"200: Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/settlements"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 07:34:14 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 07:34:14 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9999"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 4,\n            \"type\": \"Credit\",\n            \"amount\": 190000,\n            \"fee\": \"20.00\",\n            \"running_balance\": 9985000,\n            \"settled\": 1,\n            \"is_fraudulent\": 0,\n            \"status\": \"Successful\",\n            \"external_reference\": \"SP23347cd4-d8c1-p9d1-jqxt\",\n            \"description\": \"Incoming\",\n            \"settlement_batch_id\": \"SPK64301a2dc909a7.66905660\",\n            \"merchant_notified_at\": null,\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\",\n                \"email\": null,\n                \"phone\": \"\",\n                \"external_reference\": \"b2a604d8-49b4-4743-9462-db5697ff25fd\",\n                \"bank_verification_number\": \"\",\n                \"is_active\": 1,\n                \"created_at\": \"2023-04-06T13:16:27.000000Z\",\n                \"updated_at\": \"2023-04-06T13:16:27.000000Z\"\n            },\n            \"created_at\": \"2023-04-07T13:57:17.000000Z\",\n            \"updated_at\": \"2023-04-07T13:27:09.000000Z\"\n        }\n    ]\n}"}],"_postman_id":"cc53a4f4-4dfd-4e1a-abf9-576600a9f40c"}],"id":"73fc1bf6-28b2-4695-8509-16132f065ba2","description":"<p>This collection contains endpoints for merchants to get visibility on operations</p>\n","_postman_id":"73fc1bf6-28b2-4695-8509-16132f065ba2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}}},{"name":"Account","item":[{"name":"Create Account","event":[{"listen":"prerequest","script":{"id":"022a4ac6-0b1e-4f9e-837c-ee524f4bf633","exec":["// Generate a unique transaction reference","const timestamp = Date.now();","const randomNumber = Math.floor(Math.random() * 100000);","const transactionReference = `TX-${timestamp}-${randomNumber}`;","","// Save the reference in an environment variable","pm.environment.set(\"transaction_reference\", transactionReference);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"ab590e68-1a84-447c-83bf-7a1c0eee648d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Charles See\",\n    // \"bank_verification_number\" : \"28282828280\",\n    \"email\" : \"seer@sparkle.ng\",\n    \"external_reference\" : \"01K5H2KQOKT03MA8GTNQZ1NTF3\",\n    \"is_active\" : 1,\n    \"expires_at\" : \"2025-11-17 14:55:00\",\n    \"amount\" : \"8900.39\",\n    \"type\": \"dynamic\",\n    \"purpose\": \"invoice\",\n    \"routing_account\" : \"1000000460\"\n\n    // 9900001116\n}\n","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/account/create-account","description":"<p>This request allows you create virtual accounts for customers.</p>\n<p>Payload parameters descriptions can be found below</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameters</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>The name of the customer (string)</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>bank_verification_number</code></td>\n<td>The bvn belonging to the customer (string)</td>\n<td>No</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>Email Address of the customer (string)</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>external_reference</code></td>\n<td>A unique reference string for each account created. (string)</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>is_permanent (deprecated)</code></td>\n<td>Determine if the account to be created is a temporary account or not. (boolean: 1 or 0)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>is_active</code></td>\n<td>Determine if the account to be created is active or not. boolean: 1 or 0)</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>expires_at</code></td>\n<td>Determine the expiration date of a temporary account (date_format:Y-m-d H:m:s)</td>\n<td>No (Required if <code>is_permanent = 0</code>)</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>Specify the account type  <br />`dynamic`, `temporary`, `permanent`</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>amount</code></td>\n<td>The amount to be specified for the transaction</td>\n<td>No (Required if <code>type = `dynamic`</code>)</td>\n</tr>\n<tr>\n<td><code>purpose</code></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>routing_account</code></td>\n<td></td>\n<td>N0 (Required if <code>purpose</code> is = <code>invoice</code>)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","account","create-account"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"8c344728-b000-46c2-9110-a410a41db076","name":"(Permanent)200: Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Arnold Lee\",\n    \"bank_verification_number\" : \"28282828280\",\n    \"email\" : \"lee@sparkle.ng\",\n    \"external_reference\" : \"tyu92i-cv3iEn-f0ei3in-r0VJWK12-pelWKR3\",\n    \"type\" : \"permanent\",\n    \"is_active\" : 1\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/customer/create-account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 24 Apr 2024 07:57:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9997"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 84,\n        \"name\": \"Arnold Lee\",\n        \"email\": \"lee@sparkle.ng\",\n        \"phone\": \"\",\n        \"external_reference\": \"tyu92i-cv3iEn-f0ei3in-r0VJWK12-pelWKR3\",\n        \"bank_verification_number\": \"28282828280\",\n        \"is_active\": 1,\n        \"account\": {\n            \"id\": 67,\n            \"account_number\": \"9900000669\",\n            \"account_name\": \"Arnold Lee\",\n            \"bank_name\": \"Sparkle Bank\",\n            \"bank_code\": \"090325\",\n            \"account_balance\": \"0.00\",\n            \"external_reference\": \"tyu92i-cv3iEn-f0ei3in-r0VJWK12-pelWKR3\",\n            \"callback_url\": \"\",\n            \"is_permanent\": 1,\n            \"is_test\": 0,\n            \"expires_at\": null,\n            \"is_active\": 1,\n            \"type\": \"permanent\",\n            \"created_at\": \"2024-04-24 08:57:56\",\n            \"updated_at\": \"1 second ago\"\n        },\n        \"created_at\": \"2024-04-24T07:57:56.000000Z\",\n        \"updated_at\": \"2024-04-24T07:57:56.000000Z\"\n    }\n}"},{"id":"5509eb17-5a28-422f-9a5c-80ff3c4d756e","name":"One time (Dynamic) 200: Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Charles See\",\n    // \"bank_verification_number\" : \"28282828280\",\n    \"email\" : \"seer@sparkle.ng\",\n    \"external_reference\" : \"01K5H2KQKT03MA68GTNQZ1NTF3\",\n    \"is_active\" : 1,\n    \"expires_at\" : \"2025-09-22 10:30:00\",\n    \"amount\" : \"8900.39\",\n    \"type\": \"dynamic\",\n    \"purpose\": \"invoice\", // for special purposes only\n    \"routing_account\" : \"1000000460\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/account/create-account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8001"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 30 Oct 2024 13:28:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9997"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 54,\n        \"name\": \"Burrowed Deppy\",\n        \"email\": \"lee@sparkle.ng\",\n        \"phone\": \"\",\n        \"external_reference\": \"TX-1730294883142-39012\",\n        \"bank_verification_number\": \"28282828280\",\n        \"is_active\": 1,\n        \"account\": {\n            \"id\": 47,\n            \"account_number\": \"9900000425\",\n            \"account_name\": \"Burrowed Deppy\",\n            \"bank_name\": \"Sparkle Bank\",\n            \"bank_code\": \"090325\",\n            \"account_balance\": \"0.00\",\n            \"external_reference\": \"TX-1730294883142-39012\",\n            \"callback_url\": \"\",\n            \"is_permanent\": 0,\n            \"is_test\": 0,\n            \"expires_at\": \"2027-10-30 08:09:00\",\n            \"is_active\": 0,\n            \"type\": \"dynamic\",\n            \"settlement_account_number\": \"9900000023\",\n            \"created_at\": \"2024-10-30 14:28:03\",\n            \"updated_at\": \"1 second ago\"\n        },\n        \"created_at\": \"2024-10-30T13:28:03.000000Z\",\n        \"updated_at\": \"2024-10-30T13:28:03.000000Z\"\n    }\n}"},{"id":"2b435bff-8ff9-4a80-b99c-e50033df0c3c","name":"(Temporary) 200: Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Burrowed Deppy\",\n    \"bank_verification_number\" : \"28282828280\",\n    \"email\" : \"lee@sparkle.ng\",\n    \"external_reference\" : \"{{transaction_reference}}\",\n    \"type\" : \"temporary\",\n    \"is_active\" : 1,\n    \"expires_at\" : \"2027-10-30 08:09\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/account/create-account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8001"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 30 Oct 2024 13:28:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9997"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 54,\n        \"name\": \"Burrowed Deppy\",\n        \"email\": \"lee@sparkle.ng\",\n        \"phone\": \"\",\n        \"external_reference\": \"TX-1730294883142-39012\",\n        \"bank_verification_number\": \"28282828280\",\n        \"is_active\": 1,\n        \"account\": {\n            \"id\": 47,\n            \"account_number\": \"9900000425\",\n            \"account_name\": \"Burrowed Deppy\",\n            \"bank_name\": \"Sparkle Bank\",\n            \"bank_code\": \"090325\",\n            \"account_balance\": \"0.00\",\n            \"external_reference\": \"TX-1730294883142-39012\",\n            \"callback_url\": \"\",\n            \"is_permanent\": 0,\n            \"is_test\": 0,\n            \"expires_at\": \"2024-10-30 08:09:00\",\n            \"is_active\": 0,\n            \"type\" : \"temporary\",\n            \"settlement_account_number\": \"9900000023\",\n            \"created_at\": \"2024-10-30 14:28:03\",\n            \"updated_at\": \"1 second ago\"\n        },\n        \"created_at\": \"2024-10-30T13:28:03.000000Z\",\n        \"updated_at\": \"2024-10-30T13:28:03.000000Z\"\n    }\n}"}],"_postman_id":"ab590e68-1a84-447c-83bf-7a1c0eee648d"},{"name":"Deactivate Account","id":"cd45b058-b416-4ce8-8d4d-c92ec2bc8549","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/customer/:customerId/deactivate","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","customer",":customerId","deactivate"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[{"type":"any","value":"89","key":"customerId"}]}},"response":[{"id":"21782838-5ac0-4437-8a69-7e63e7354e01","name":"200: Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":{"raw":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/customer/:customerId/deactivate","protocol":"https","host":["virtual-account-api","sparkle","fyi"],"path":["api","v1","integrations","merchant","customer",":customerId","deactivate"],"variable":[{"key":"customerId","value":"39"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 07:30:31 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 07:30:31 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9999"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 3,\n        \"account_number\": \"9900000023\",\n        \"account_name\": \"Loras\",\n        \"bank_name\": \"Sparkle Bank\",\n        \"bank_code\": \"51310\",\n        \"account_balance\": \"0.00\",\n        \"external_reference\": \"spk-09876-09876-oiuhgf\",\n        \"callback_url\": \"\",\n        \"is_permanent\": 1,\n        \"is_test\": 0,\n        \"expires_at\": null,\n        \"is_active\": 0,\n        \"customer\": {\n            \"id\": 3,\n            \"name\": \"Loras\",\n            \"email\": \"iedomwande@yahoo.com\",\n            \"phone\": \"\",\n            \"external_reference\": \"kuy76etghyiyo9kw-0wohb\",\n            \"bank_verification_number\": \"93003940393\",\n            \"is_active\": 1,\n            \"created_at\": \"2023-04-06T14:23:33.000000Z\",\n            \"updated_at\": \"2023-04-06T14:23:33.000000Z\"\n        },\n        \"created_at\": \"2023-04-10 22:25:39\",\n        \"updated_at\": \"6 minutes ago\"\n    }\n}"},{"id":"c4b4e5bd-d1fe-4e9a-b65a-ed66008beee7","name":"404: Not Found","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":{"raw":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/customer/:customerId/deactivate","protocol":"https","host":["virtual-account-api","sparkle","fyi"],"path":["api","v1","integrations","merchant","customer",":customerId","deactivate"],"variable":[{"key":"customerId","value":"39"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 07:30:31 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 07:30:31 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9999"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Invalid customer id. Record not found\"\n}"}],"_postman_id":"cd45b058-b416-4ce8-8d4d-c92ec2bc8549"},{"name":"Account","id":"c798ee60-515d-405c-99be-c254ed73e046","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","description":"<p><a href=\"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/\">https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/</a></p>\n","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/account","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","account"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"ea04b9ec-7a4e-4c3e-9755-20e135180075","name":"200: Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 07:10:22 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 07:10:22 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9998"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 1,\n        \"business_name\": \"GITECH\",\n        \"level\": 1,\n        \"address\": null,\n        \"business_desc\": null,\n        \"business_category\": null,\n        \"general_email\": null,\n        \"country\": \"Nigeria\",\n        \"balance\": 10174980,\n        \"is_debit_blocked\": 0,\n        \"is_live\": 1,\n        \"disbursements_via_api\": 0,\n        \"send_customer_receipt\": 0,\n        \"callback_url\": null,\n        \"logo\": null,\n        \"identifier\": \"372443d1-a323-458d-86d8-fe8c0fdc9573\",\n        \"settlement_account\": {\n            \"id\": 1,\n            \"account_number\": \"9900000009\",\n            \"account_name\": \"GITECH(Default Account)\",\n            \"bank_name\": \"Sparkle Bank\",\n            \"bank_code\": \"51310\",\n            \"account_balance\": \"100000000.00\",\n            \"external_reference\": \"default-account\",\n            \"callback_url\": \"\",\n            \"is_permanent\": 1,\n            \"is_test\": 0,\n            \"expires_at\": null,\n            \"is_active\": 1,\n            \"created_at\": \"2023-04-06 14:16:27\",\n            \"updated_at\": \"4 days ago\"\n        },\n        \"accounts\": [\n            {\n                \"id\": 1,\n                \"account_number\": \"9900000009\",\n                \"account_name\": \"GITECH(Default Account)\",\n                \"bank_name\": \"Sparkle Bank\",\n                \"bank_code\": \"51310\",\n                \"account_balance\": \"100000000.00\",\n                \"external_reference\": \"default-account\",\n                \"callback_url\": \"\",\n                \"is_permanent\": 1,\n                \"is_test\": 0,\n                \"expires_at\": null,\n                \"is_active\": 1,\n                \"created_at\": \"2023-04-06 14:16:27\",\n                \"updated_at\": \"4 days ago\"\n            }\n        ],\n        \"created_at\": \"2023-04-06T13:16:26.000000Z\",\n        \"updated_at\": \"2023-04-07T13:27:09.000000Z\"\n    }\n}"}],"_postman_id":"c798ee60-515d-405c-99be-c254ed73e046"},{"name":"Cancel Account Transaction","id":"e56a333d-251f-4f72-b070-7d66c91e72c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"external_reference\": \"TX-1731318884227-48404\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/account/cancel-transaction","description":"<p>This request allows you cancel a dynamic account transaction before it expires</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","account","cancel-transaction"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"a8ae7ffd-843d-4c40-8b31-d0cdfd520943","name":"Cancel Account Transaction","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"external_reference\": \"TX-1731318884227-48404\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/account/cancel-transaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8001"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 11 Nov 2024 09:54:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9997"},{"key":"Vary","value":"Origin"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 75,\n        \"account_number\": \"9900000748\",\n        \"account_name\": \"Charles See\",\n        \"bank_name\": \"Sparkle Bank\",\n        \"bank_code\": \"090325\",\n        \"account_balance\": \"0.00\",\n        \"external_reference\": \"TX-1731318884227-48404\",\n        \"callback_url\": \"\",\n        \"is_permanent\": 0,\n        \"is_test\": 0,\n        \"expires_at\": \"2024-11-30 22:20:20\",\n        \"is_active\": 0,\n        \"type\": \"dynamic\",\n        \"settlement_account_number\": \"9900000023\",\n        \"customer\": {\n            \"id\": 105,\n            \"name\": \"Charles See\",\n            \"email\": \"see@sparkle.ng\",\n            \"phone\": \"\",\n            \"external_reference\": \"TX-1731318884227-48404\",\n            \"bank_verification_number\": \"28282828280\",\n            \"is_active\": 0,\n            \"created_at\": \"2024-11-11T09:54:44.000000Z\",\n            \"updated_at\": \"2024-11-11T09:54:57.000000Z\"\n        },\n        \"created_at\": \"2024-11-11 10:54:44\",\n        \"updated_at\": \"1 second ago\"\n    }\n}"}],"_postman_id":"e56a333d-251f-4f72-b070-7d66c91e72c6"}],"id":"cfbd9d29-4b5c-4571-bb89-3202948098e9","_postman_id":"cfbd9d29-4b5c-4571-bb89-3202948098e9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}}},{"name":"Transaction","item":[{"name":"Transactions","id":"4edf5a66-3e53-4c66-9fb3-bfd3a6f9dacd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/transactions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","transactions"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"d30e823b-39f3-48ea-97a7-ca8b5e961817","name":"200: Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/transactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 06:36:07 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 06:36:07 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9997"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 5,\n            \"type\": \"Credit\",\n            \"amount\": 50000,\n            \"fee\": \"10.00\",\n            \"running_balance\": 9985000,\n            \"settled\": 0,\n            \"is_fraudulent\": 0,\n            \"status\": \"Successful\",\n            \"external_reference\": \"SP23347cd4-d8c1-p9d1-rtbv\",\n            \"description\": \"Incoming\",\n            \"settlement_batch_id\": null,\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\"\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\"\n            },\n            \"created_at\": \"2023-04-07T14:57:17.000000Z\",\n            \"updated_at\": \"2023-04-07T14:57:17.000000Z\"\n        },\n        {\n            \"id\": 4,\n            \"type\": \"Credit\",\n            \"amount\": 190000,\n            \"fee\": \"20.00\",\n            \"running_balance\": 9985000,\n            \"settled\": 1,\n            \"is_fraudulent\": 0,\n            \"status\": \"Successful\",\n            \"external_reference\": \"SP23347cd4-d8c1-p9d1-jqxt\",\n            \"description\": \"Incoming\",\n            \"settlement_batch_id\": \"SPK64301a2dc909a7.66905660\",\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\"\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\"\n            },\n            \"created_at\": \"2023-04-07T13:57:17.000000Z\",\n            \"updated_at\": \"2023-04-07T13:27:09.000000Z\"\n        },\n        {\n            \"id\": 3,\n            \"type\": \"Debit\",\n            \"amount\": 5000,\n            \"fee\": \"0.00\",\n            \"running_balance\": 9985000,\n            \"settled\": 0,\n            \"is_fraudulent\": 0,\n            \"status\": \"Successful\",\n            \"external_reference\": \"SP23947dd1-d8c1-f7f1-fiet\",\n            \"description\": \"Test transfer from virtual account service\",\n            \"settlement_batch_id\": null,\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\"\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\"\n            },\n            \"created_at\": \"2023-04-06T13:57:17.000000Z\",\n            \"updated_at\": \"2023-04-06T13:57:17.000000Z\"\n        },\n        {\n            \"id\": 2,\n            \"type\": \"Debit\",\n            \"amount\": 5000,\n            \"fee\": \"0.00\",\n            \"running_balance\": 9990000,\n            \"settled\": 0,\n            \"is_fraudulent\": 0,\n            \"status\": \"Pending\",\n            \"external_reference\": \"SP23947dd1-d8c1-f7f1-cih4\",\n            \"description\": \"Test transfer from virtual account service\",\n            \"settlement_batch_id\": null,\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\"\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\"\n            },\n            \"created_at\": \"2023-04-06T13:44:31.000000Z\",\n            \"updated_at\": \"2023-04-06T13:44:31.000000Z\"\n        },\n        {\n            \"id\": 1,\n            \"type\": \"Debit\",\n            \"amount\": 5000,\n            \"fee\": \"0.00\",\n            \"running_balance\": 9995000,\n            \"settled\": 0,\n            \"is_fraudulent\": 0,\n            \"status\": \"Pending\",\n            \"external_reference\": \"SP23947dd1-d8c1-f7f1-c1b4\",\n            \"description\": \"Test transfer from virtual account service\",\n            \"settlement_batch_id\": null,\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\"\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\"\n            },\n            \"created_at\": \"2023-04-06T13:43:40.000000Z\",\n            \"updated_at\": \"2023-04-06T13:43:40.000000Z\"\n        }\n    ]\n}"}],"_postman_id":"4edf5a66-3e53-4c66-9fb3-bfd3a6f9dacd"},{"name":"Transaction By Reference","id":"a6bdff64-eb74-4a60-ba04-cfcbf27c446d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/transactions/:reference","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","transactions",":reference"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[{"type":"any","value":"01K5H2KQKT03MA68GTNQZ1NTF3","key":"reference"}]}},"response":[{"id":"4cfde937-607e-45d3-a42a-e98cc24a7797","name":"200: Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":{"raw":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/transactions/:reference","protocol":"https","host":["virtual-account-api","sparkle","fyi"],"path":["api","v1","integrations","merchant","transactions",":reference"],"variable":[{"key":"reference","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 06:36:07 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 06:36:07 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9997"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 55,\n        \"type\": \"Credit\",\n        \"amount\": 54940,\n        \"fee\": \"0.00\",\n        \"running_balance\": 9644230,\n        \"source_bank_code\": \"316036\",\n        \"source_bank_account\": \"7586732392\",\n        \"source_account_name\": \"Genevieve Herzog\",\n        \"settled\": 0,\n        \"is_fraudulent\": 0,\n        \"status\": \"Successful\",\n        \"external_reference\": \"51310241107181102340977698844\",\n        \"description\": \"\",\n        \"settlement_batch_id\": null,\n        \"merchant_notified_at\": \"2024-11-07 18:00:03\",\n        \"account\": {\n            \"id\": 74,\n            \"account_number\": \"9900000731\",\n            \"account_name\": \"Charles See\",\n            \"bank_name\": \"Sparkle Bank\",\n            \"bank_code\": \"090325\",\n            \"account_balance\": \"0.00\",\n            \"external_reference\": \"TX-1730997588243-84183\",\n            \"callback_url\": \"\",\n            \"is_permanent\": 0,\n            \"is_test\": 0,\n            \"expires_at\": \"2024-11-30 22:20:20\",\n            \"is_active\": 0,\n            \"type\": \"dynamic\",\n            \"settlement_account_number\": \"9900000023\",\n            \"created_at\": \"2024-11-07 17:39:48\",\n            \"updated_at\": \"3 days ago\"\n        },\n        \"customer\": {\n            \"id\": 104,\n            \"name\": \"Charles See\",\n            \"email\": null,\n            \"phone\": null,\n            \"external_reference\": null,\n            \"bank_verification_number\": null,\n            \"is_active\": null,\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        \"created_at\": \"2024-11-07T16:39:48.000000Z\",\n        \"updated_at\": \"2024-11-07T17:00:03.000000Z\"\n    }\n}"}],"_postman_id":"a6bdff64-eb74-4a60-ba04-cfcbf27c446d"},{"name":"Transactions (Periodically)","id":"36db52d5-a249-421a-b3a6-df73f2b26afa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/transactions?from_date=&to_date=&count","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","transactions"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[{"description":{"content":"<p>Y-m-d (1870-12-12)</p>\n","type":"text/plain"},"key":"from_date","value":""},{"description":{"content":"<p>Y-m-d (2070-05-23)</p>\n","type":"text/plain"},"key":"to_date","value":""},{"description":{"content":"<p>int</p>\n","type":"text/plain"},"key":"count","value":null}],"variable":[]}},"response":[{"id":"56571f0f-3fdd-4292-a2f8-0a06639a7fd1","name":"200: Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJpdiI6IkJoRlh1QTdndjE0eXQydjNKS3p3VEE9PSIsInZhbHVlIjoiMzBHcjcvSHZVY004RDUwOWNsbXduNmUrQVpPanZBQmFTRlMzRkd3V2hsWT0iLCJtYWMiOiIwYTcwNjFkNGNiYzA4ODMwMDQzYzMyYjAzYTNlNmYyNTI5NmU1N2U1Mjk5ZjQ0MDJjYmQ4MGM3MWY0MzllYWNhIiwidGFnIjoiIn0=","type":"text"}],"url":{"raw":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/transactions?from_date=&to_date=&count","protocol":"https","host":["virtual-account-api","sparkle","fyi"],"path":["api","v1","integrations","merchant","transactions"],"query":[{"key":"from_date","value":"","description":"Y-m-d (1870-12-12)"},{"key":"to_date","value":"","description":"Y-m-d (2070-05-23)"},{"key":"count","value":null,"description":"int"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Date","value":"Wed, 12 Apr 2023 06:37:25 GMT"},{"key":"Date","value":"Wed, 12 Apr 2023 06:37:25 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9997"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 5,\n            \"type\": \"Credit\",\n            \"amount\": 50000,\n            \"fee\": \"10.00\",\n            \"running_balance\": 9985000,\n            \"settled\": 0,\n            \"is_fraudulent\": 0,\n            \"status\": \"Successful\",\n            \"external_reference\": \"SP23347cd4-d8c1-p9d1-rtbv\",\n            \"description\": \"Incoming\",\n            \"settlement_batch_id\": null,\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\",\n                \"account_name\": null,\n                \"bank_name\": null,\n                \"bank_code\": null,\n                \"account_balance\": null,\n                \"external_reference\": null,\n                \"callback_url\": null,\n                \"is_permanent\": null,\n                \"is_test\": null,\n                \"expires_at\": null\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\",\n                \"email\": null,\n                \"phone\": null,\n                \"external_reference\": null,\n                \"bank_verification_number\": null,\n                \"is_active\": null,\n                \"created_at\": null,\n                \"updated_at\": null\n            },\n            \"created_at\": \"2023-04-07T14:57:17.000000Z\",\n            \"updated_at\": \"2023-04-07T14:57:17.000000Z\"\n        },\n        {\n            \"id\": 4,\n            \"type\": \"Credit\",\n            \"amount\": 190000,\n            \"fee\": \"20.00\",\n            \"running_balance\": 9985000,\n            \"settled\": 1,\n            \"is_fraudulent\": 0,\n            \"status\": \"Successful\",\n            \"external_reference\": \"SP23347cd4-d8c1-p9d1-jqxt\",\n            \"description\": \"Incoming\",\n            \"settlement_batch_id\": \"SPK64301a2dc909a7.66905660\",\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\",\n                \"account_name\": null,\n                \"bank_name\": null,\n                \"bank_code\": null,\n                \"account_balance\": null,\n                \"external_reference\": null,\n                \"callback_url\": null,\n                \"is_permanent\": null,\n                \"is_test\": null,\n                \"expires_at\": null\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\",\n                \"email\": null,\n                \"phone\": null,\n                \"external_reference\": null,\n                \"bank_verification_number\": null,\n                \"is_active\": null,\n                \"created_at\": null,\n                \"updated_at\": null\n            },\n            \"created_at\": \"2023-04-07T13:57:17.000000Z\",\n            \"updated_at\": \"2023-04-07T13:27:09.000000Z\"\n        },\n        {\n            \"id\": 3,\n            \"type\": \"Debit\",\n            \"amount\": 5000,\n            \"fee\": \"0.00\",\n            \"running_balance\": 9985000,\n            \"settled\": 0,\n            \"is_fraudulent\": 0,\n            \"status\": \"Successful\",\n            \"external_reference\": \"SP23947dd1-d8c1-f7f1-fiet\",\n            \"description\": \"Test transfer from virtual account service\",\n            \"settlement_batch_id\": null,\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\",\n                \"account_name\": null,\n                \"bank_name\": null,\n                \"bank_code\": null,\n                \"account_balance\": null,\n                \"external_reference\": null,\n                \"callback_url\": null,\n                \"is_permanent\": null,\n                \"is_test\": null,\n                \"expires_at\": null\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\",\n                \"email\": null,\n                \"phone\": null,\n                \"external_reference\": null,\n                \"bank_verification_number\": null,\n                \"is_active\": null,\n                \"created_at\": null,\n                \"updated_at\": null\n            },\n            \"created_at\": \"2023-04-06T13:57:17.000000Z\",\n            \"updated_at\": \"2023-04-06T13:57:17.000000Z\"\n        },\n        {\n            \"id\": 2,\n            \"type\": \"Debit\",\n            \"amount\": 5000,\n            \"fee\": \"0.00\",\n            \"running_balance\": 9990000,\n            \"settled\": 0,\n            \"is_fraudulent\": 0,\n            \"status\": \"Pending\",\n            \"external_reference\": \"SP23947dd1-d8c1-f7f1-cih4\",\n            \"description\": \"Test transfer from virtual account service\",\n            \"settlement_batch_id\": null,\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\",\n                \"account_name\": null,\n                \"bank_name\": null,\n                \"bank_code\": null,\n                \"account_balance\": null,\n                \"external_reference\": null,\n                \"callback_url\": null,\n                \"is_permanent\": null,\n                \"is_test\": null,\n                \"expires_at\": null\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\",\n                \"email\": null,\n                \"phone\": null,\n                \"external_reference\": null,\n                \"bank_verification_number\": null,\n                \"is_active\": null,\n                \"created_at\": null,\n                \"updated_at\": null\n            },\n            \"created_at\": \"2023-04-06T13:44:31.000000Z\",\n            \"updated_at\": \"2023-04-06T13:44:31.000000Z\"\n        },\n        {\n            \"id\": 1,\n            \"type\": \"Debit\",\n            \"amount\": 5000,\n            \"fee\": \"0.00\",\n            \"running_balance\": 9995000,\n            \"settled\": 0,\n            \"is_fraudulent\": 0,\n            \"status\": \"Pending\",\n            \"external_reference\": \"SP23947dd1-d8c1-f7f1-c1b4\",\n            \"description\": \"Test transfer from virtual account service\",\n            \"settlement_batch_id\": null,\n            \"merchant_notified_at\": null,\n            \"account\": {\n                \"id\": 1,\n                \"account_number\": \"9900000009\",\n                \"account_name\": null,\n                \"bank_name\": null,\n                \"bank_code\": null,\n                \"account_balance\": null,\n                \"external_reference\": null,\n                \"callback_url\": null,\n                \"is_permanent\": null,\n                \"is_test\": null,\n                \"expires_at\": null\n            },\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"GITECH(Default Customer)\",\n                \"email\": null,\n                \"phone\": null,\n                \"external_reference\": null,\n                \"bank_verification_number\": null,\n                \"is_active\": null,\n                \"created_at\": null,\n                \"updated_at\": null\n            },\n            \"created_at\": \"2023-04-06T13:43:40.000000Z\",\n            \"updated_at\": \"2023-04-06T13:43:40.000000Z\"\n        }\n    ]\n}"}],"_postman_id":"36db52d5-a249-421a-b3a6-df73f2b26afa"}],"id":"f94a43b2-448f-4dd6-9ea9-4987dc217fd1","_postman_id":"f94a43b2-448f-4dd6-9ea9-4987dc217fd1","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}}},{"name":"Payout","item":[{"name":"Institution List","id":"e4b51b58-cf39-4431-aaff-c7a9aaebcd19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/institution-list","description":"<p>This request allows you fetch the list of banks funds can be settled into.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","payout","institution-list"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"f5e4c04a-a912-4d02-b3bd-2bdc159ff496","name":"Institution List","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/institution-list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8001"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 11 Nov 2024 09:51:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9999"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1000,\n        \"InstitutionCode\": \"090325\",\n        \"InstitutionName\": \"Sparkle Microfinance Bank\",\n        \"Category\": \"\",\n        \"dump\": \"\",\n        \"created_at\": \"\",\n        \"updated_at\": \"\",\n        \"deleted_at\": \"\",\n        \"logo\": \"\"\n    },\n    {\n        \"id\": 1,\n        \"InstitutionCode\": \"000013\",\n        \"InstitutionName\": \"GT Bank PLC\",\n        \"Category\": \"\",\n        \"dump\": null,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"deleted_at\": null,\n        \"logo\": \"https://cloudfilesstore.blob.core.windows.net/icons/Banks/000013.png\"\n    },\n    {\n        \"id\": 2,\n        \"InstitutionCode\": \"000001\",\n        \"InstitutionName\": \"STERLING BANK\",\n        \"Category\": \"2\",\n        \"dump\": null,\n        \"created_at\": \"2024-03-22T04:56:25.000000Z\",\n        \"updated_at\": \"2024-03-22T04:56:25.000000Z\",\n        \"deleted_at\": null,\n        \"logo\": \"https://cloudfilesstore.blob.core.windows.net/icons/Banks/000001.png\"\n    }\n]"}],"_postman_id":"e4b51b58-cf39-4431-aaff-c7a9aaebcd19"},{"name":"Name Enquiry","id":"bbbfa728-e435-40b6-9b8c-40eceb4395ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"account_no\" : \"0016819451\",\n    \"bank_code\" : \"000013\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/name-enquiry","description":"<p>This request allows you create virtual accounts for customers.</p>\n<p>Payload parameters descriptions can be found below</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameters</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>account_no</code></td>\n<td>The destination bank account number (string)</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>bank_code</code></td>\n<td>The <code>InstitutionCode</code> gotten from the <code>payout/institution-list</code> response (string)</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","payout","name-enquiry"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"c4ed78cc-e800-48a0-b314-aff9af62ce49","name":"200: Success (inter bank)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"account_no\" : \"1000011196\",\n    \"bank_code\" : \"090325\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/name-enquiry"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 24 Apr 2024 09:58:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"10000"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"ResponseCode\": 0,\n        \"BankVerificationNumber\": \"********\",\n        \"ChannelCode\": \"2\",\n        \"KYCLevel\": \"2\",\n        \"DestinationInstitutionCode\": \"000013\",\n        \"SessionID\": \"090325250618120617891464610993\",\n        \"AccountNumber\": \"0016819451\",\n        \"AccountName\": \"EDOMWANDE IKPONMWOSA GEORGE\"\n    }\n}"},{"id":"22f30ad6-d7bd-441a-a44c-2dbf3561e697","name":"200: Success (intra bank)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"account_no\" : \"1001174584\",\n    \"bank_code\" : \"090325\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/name-enquiry"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jan 2025 09:50:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9996"},{"key":"Vary","value":"Origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"AccountName\": \"Ikponmwosa Edomwande\",\n        \"AccountNumber\": \"1001174584\"\n    }\n}"},{"id":"371fb767-e850-4979-865e-f1166d7d24f5","name":"400: Bad Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"account_no\" : \"1000011196\",\n    \"bank_code\" : \"090325\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/name-enquiry"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"0.0.0.0:9900"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 24 Apr 2024 09:58:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"10000"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Beneficiary Account not found\"\n}"}],"_postman_id":"bbbfa728-e435-40b6-9b8c-40eceb4395ab"},{"name":"Transfer","event":[{"listen":"prerequest","script":{"id":"ea3acaf1-3871-4ddb-978d-7de4765cb01c","exec":["// Generate a unique transaction reference","const timestamp = Date.now();","const randomNumber = Math.floor(Math.random() * 1000000000);","const transactionReference = `TX-${timestamp}-${randomNumber}`;","","// Save the reference in an environment variable","pm.environment.set(\"transaction_reference\", transactionReference);"],"type":"text/javascript","packages":{}}}],"id":"b90c6c68-e36f-44f6-bade-400862104c97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"beneficiaryAccountNumber\" : \"1000011196\",\n    \"destinationInstitutionCode\" : \"090325\",\n    \"beneficiaryAccountName\" : \"HARRY POTTER\",\n    \"narration\" : \"testing\",\n    \"amount\" : \"1000000\",\n    \"transactionReference\" : \"{{transaction_reference}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/transfer","description":"<p>This request allows you make funds transfer to any specified bank of choice.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameters</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>beneficiaryAccountNumber</code></td>\n<td>The destination bank account number (string) belonging to the beneficiary</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>destinationInstitutionCode</code></td>\n<td>The <code>InstitutionCode</code> gotten from the <code>payout/institution-list</code> response (string)</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>beneficiaryAccountName</code></td>\n<td>The destination bank account name (string) belonging to the beneficiary</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>narration</code></td>\n<td>A short description for the. transaction</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>amount</code></td>\n<td>The amount to be sent to the beneficiary (numeric)</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>transactionReference</code></td>\n<td>A unique reference string for each transaction created. (string)  <br />  <br />For interbank transfers kindly make use of the session ID gotten from the `<code>name-enquiry</code>` endpoint</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","payout","transfer"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"ae1ee966-2850-4e98-8d44-de2e16db113b","name":"200: success (intra bank)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"beneficiaryAccountNumber\" : \"1001174584\",\n    \"destinationInstitutionCode\" : \"090325\",\n    \"beneficiaryAccountName\" : \"Ikponmwosa Edomwande\",\n    \"narration\" : \"testing\",\n    \"amount\" : \"2\",\n    \"transactionReference\" : \"{{transaction_reference}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/transfer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jan 2025 09:15:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9993"},{"key":"Vary","value":"Origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"status\": \"success\",\n        \"message\": \"Transaction Successful...\",\n        \"ResponseCode\": \"00\"\n    }\n}"},{"id":"bb524218-3ddd-4e99-af5a-022259579693","name":"200: success (inter bank)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"beneficiaryAccountNumber\" : \"0016819451\",\n    \"destinationInstitutionCode\" : \"000013\",\n    \"beneficiaryAccountName\" : \"EDOMWANDE IKPONMWOSA GEORGE\",\n    \"narration\" : \"testing\",\n    \"amount\" : \"5\",\n    \"transactionReference\" : \"090325250109100142589829135460\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/transfer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jan 2025 09:32:05 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9992"},{"key":"Vary","value":"Origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"ResponseCode\": \"00\",\n        \"PaymentReference\": \"090325250109100142589829135460\",\n        \"Narration\": \"testing\",\n        \"OriginatorAccountNumber\": 9900009538,\n        \"OriginatorBankVerificationNumber\": 10000000001,\n        \"Amount\": 5,\n        \"NameEnquiryRef\": \"090325250109100142589829135460\",\n        \"BeneficiaryKYCLevel\": 2,\n        \"ChannelCode\": 6,\n        \"OriginatorKYCLevel\": 3,\n        \"DestinationInstitutionCode\": \"000013\",\n        \"BeneficiaryAccountNumber\": \"0016819451\",\n        \"OriginatorAccountName\": \"Development Institute(Default Account)\",\n        \"BeneficiaryBankVerificationNumber\": 0,\n        \"TransactionLocation\": \"\",\n        \"BeneficiaryAccountName\": \"EDOMWANDE IKPONMWOSA GEORGE\",\n        \"SessionID\": \"090325250109100104479586093272\"\n    }\n}"},{"id":"bc458112-fffc-4178-b9bb-9a9ad6e05a88","name":"500","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"beneficiaryAccountNumber\" : \"1001174584\",\n    \"destinationInstitutionCode\" : \"09035\",\n    \"beneficiaryAccountName\" : \"Ikponmwosa Edomwande\",\n    \"narration\" : \"testing\",\n    \"amount\" : \"2\",\n    \"transactionReference\" : \"{{transaction_reference}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/transfer"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jan 2025 09:22:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9998"},{"key":"Vary","value":"Origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Unable to payout at the moment. Please try again later.\"\n}"},{"id":"0256dd3f-0391-4200-803c-5f9d7359e76b","name":"422","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"beneficiaryAccountNumber\" : \"0016819451\",\n    \"destinationInstitutionCode\" : \"000013\",\n    \"beneficiaryAccountName\" : \"EDOMWANDE IKPONMWOSA GEORGE\",\n    \"narration\" : \"testing\",\n    \"amount\" : \"9003993\",\n    \"transactionReference\" : \"090325250109100142589829135460\"\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/payout/transfer"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jan 2025 09:30:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9996"},{"key":"Vary","value":"Origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"failed\",\n    \"data\": \"The amount must not be greater than 500000.\"\n}"}],"_postman_id":"b90c6c68-e36f-44f6-bade-400862104c97"}],"id":"a325c906-bbe1-4d2a-b4fb-aabd3308bb37","_postman_id":"a325c906-bbe1-4d2a-b4fb-aabd3308bb37","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}}},{"name":"Simulate Inbound Payment","id":"967c2a04-2e96-4d5f-9f83-9e586c1a5b6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\" : 4090,\n    \"virtual_account_number\" : \"9900000030\",\n    \"narration\" : \"\",\n    \"transaction_reference\" : \"\",\n    \"simulate_failure\" : 0\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/simulate/payment","description":"<p>This request allows you simulate a payment into virtual accounts.</p>\n<p>Payload parameters descriptions can be found below</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameters</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>virtual_account_number</code></td>\n<td>The virtual account number of the customer (string)</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td><code>narration</code></td>\n<td>Narration</td>\n<td>No</td>\n</tr>\n<tr>\n<td><code>simulate_failure</code></td>\n<td>This can be used to simulate a failed transaction when set to `true` (values are 1 or 0)</td>\n<td>No</td>\n</tr>\n<tr>\n<td><code>transaction_reference</code></td>\n<td>A unique reference string</td>\n<td>No</td>\n</tr>\n<tr>\n<td><code>amount</code></td>\n<td>The amount to be specified for the transaction</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]},"isInherited":true,"source":{"_postman_id":"4d867488-6745-42bc-89c5-2c389f90ee05","id":"4d867488-6745-42bc-89c5-2c389f90ee05","name":"Sparkle Virtual Account","type":"collection"}},"urlObject":{"path":["api","v1","integrations","merchant","simulate","payment"],"host":["https://virtual-account-api.sparkle.fyi"],"query":[],"variable":[]}},"response":[{"id":"b957bcc1-c482-4984-ab47-52c719c930d3","name":"200: success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\" : 54990,\n    \"virtual_account_number\" : \"9900000030\",\n    \"narration\" : \"\",\n    \"transaction_reference\" : \"\",\n    \"simulate_failure\" : 0\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/simulate/payment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8001"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 28 Feb 2025 07:22:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9996"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"merchant_team_id\": 3,\n        \"external_reference\": \"51310250228080202907308077703\",\n        \"customer_id\": 4,\n        \"account_id\": 4,\n        \"amount\": 54940,\n        \"fee\": 40,\n        \"status\": 1,\n        \"type\": 1,\n        \"running_balance\": 8419080,\n        \"beneficiary_account_number\": \"9900000030\",\n        \"beneficiary_account_name\": \"Theory\",\n        \"source_bank_account\": \"4544965042\",\n        \"source_account_name\": \"Luigi Fahey V\",\n        \"source_bank_code\": \"158388\",\n        \"source_bvn\": null,\n        \"is_fraudulent\": 0,\n        \"description\": \"\",\n        \"response_code\": null,\n        \"data\": null,\n        \"updated_at\": \"2025-02-28T07:22:03.000000Z\",\n        \"created_at\": \"2025-02-28T07:22:02.000000Z\",\n        \"id\": 195,\n        \"merchant_notified_at\": \"2025-02-28T07:22:03.367117Z\"\n    }\n}"},{"id":"e13795dd-eb34-465f-86ce-e8da1df02bdb","name":"Inactive account","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\" : 54990,\n    \"virtual_account_number\" : \"9900000731\",\n    \"narration\" : \"\",\n    \"transaction_reference\" : \"\",\n    \"simulate_failure\" : 0\n}","options":{"raw":{"language":"json"}}},"url":"https://virtual-account-api.sparkle.fyi/api/v1/integrations/merchant/simulate/payment"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8001"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 28 Feb 2025 07:22:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"10000"},{"key":"X-RateLimit-Remaining","value":"9999"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Account number is not longer active\"\n}"}],"_postman_id":"967c2a04-2e96-4d5f-9f83-9e586c1a5b6e"},{"name":"Webhook","id":"4260e767-14c8-4c3f-b2df-83039dc0c409","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"event\": \"transaction.credit.successful\",\n    \"account_reference\": null,\n    \"reference\": \"testingwebEt4g25trre7\",\n    \"amount\": 200.0,\n    \"fee\": \"0.00\",\n    \"beneficiary_account_number\": \"9900033881\",\n    \"beneficiary_account_name\": \"Star Labs\",\n    \"sender_bank_account\": \"6430300306\",\n    \"sender_account_name\": \"Dr. Isabel Sipes DDS\",\n    \"sender_bank_code\": \"068779\",\n    \"status\": \"successful\",\n    \"currency\": \"NGN\",\n    \"account_type\": \"permanent\",\n    \"description\": \"Test001\",\n    \"created_at\": \"2024-11-20T10:42:28.000000Z\"\n}\n\n</code></pre><p>To ensure the authenticity of webhook requests, we include a <strong>signature</strong> in the <code>SPC-X-Signature</code> header. You can verify this signature using your <strong>secret key</strong> to confirm the request is from us and hasn’t been tampered with. Here's how to verify it in <strong>simple steps</strong>:  </p>\n<ul>\n<li><p>Look for the <code>SPC-X-Signature</code> header in the incoming webhook request. (example SPC-X-Signature: 5f4dcc3b5aa765d61d8327deb882cf99...)</p>\n</li>\n<li><p>Use the entire <strong>raw JSON body</strong> of the webhook request.</p>\n</li>\n<li><p>Do not modify or re-encode the payload (e.g., no extra spaces, no escaping slashes).</p>\n</li>\n<li><p>Generate a <strong>SHA-512 HMAC hash</strong> of the raw payload using your <strong>secret key</strong>.</p>\n</li>\n<li><p>Compare the computed signature with the <code>SPC-X-Signature</code> header. If they match, the request is valid.</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const crypto = require('crypto');\nconst secretKey = 'your-secret-key';\nconst payload = '{\"event\":\"transaction.credit.successful\",\"reference\":\"txn_12345\",\"amount\":1000,\"currency\":\"NGN\"}';\nconst signature = crypto.createHmac('sha512', secretKey).update(payload).digest('hex');\nconsole.log(signature); // Compare this with the header\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">import hmac\nimport hashlib\n\nsecret_key = 'your-secret-key'.encode()\npayload = '{\"event\":\"transaction.credit.successful\",\"reference\":\"txn_12345\",\"amount\":1000,\"currency\":\"NGN\"}'.encode()\nsignature = hmac.new(secret_key, payload, hashlib.sha512).hexdigest()\nprint(signature)  # Compare this with the header\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">$secretKey = 'your-secret-key';\n$payload = '{\"event\":\"transaction.credit.successful\",\"reference\":\"txn_12345\",\"amount\":1000,\"currency\":\"NGN\"}';\n$signature = hash_hmac('sha512', $payload, $secretKey);\necho $signature; // Compare this with the header\n\n</code></pre>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"4260e767-14c8-4c3f-b2df-83039dc0c409"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"4be39528-b8b5-4899-b1f5-a106465c71fe","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"18c3bdcc-9616-4dbc-85c9-3962678c265e","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://virtual-account-api.sparkle.fyi","type":"string"}]}