{"info":{"_postman_id":"0d1b7d26-f09a-49fb-bcd4-0089651249f0","name":"ZenithPay_old","description":"<html><head></head><body><h1 id=\"api-documentation-assign-dedicated-virtual-account\">API Documentation: Assign Dedicated Virtual Account</h1>\n<p>This document outlines the process for assigning a dedicated virtual account to an API user using the <code>dedicated_account/assign</code> endpoint.</p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p><code>POST https://zenithpay.ng/api/dedicated_account/assign</code></p>\n<h2 id=\"description\">Description</h2>\n<p>This endpoint allows you to programmatically assign a dedicated virtual account to a specified API user. This account can then be used for receiving payments and will be linked to the provided user details.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>This endpoint requires authentication using a Bearer Token.</p>\n<ul>\n<li><p><strong>Header:</strong> <code>Authorization: Bearer YOUR_AUTH_TOKEN</code></p>\n</li>\n<li><p>Replace <code>YOUR_AUTH_TOKEN</code> with your actual authentication token obtained from XpressVerify.</p>\n</li>\n</ul>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"method\">Method</h3>\n<p><code>POST</code></p>\n<h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Content-Type</code></td>\n<td><code>application/x-www-form-urlencoded</code></td>\n<td>The media type of the request body. (As per the provided <code>CURLOPT_POSTFIELDS</code> array)</td>\n</tr>\n<tr>\n<td><code>Accept</code></td>\n<td><code>application/json</code></td>\n<td>Specifies that the client can process JSON responses.</td>\n</tr>\n<tr>\n<td><code>Accept-Encoding</code></td>\n<td><code>gzip, deflate</code></td>\n<td>(Optional) Indicates acceptable content encodings.</td>\n</tr>\n<tr>\n<td><code>Authorization</code></td>\n<td><code>Bearer YOUR_AUTH_TOKEN</code></td>\n<td>Your unique authentication token.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"body-form-data\">Body (Form Data)</h3>\n<p>The request body should be sent as <code>application/x-www-form-urlencoded</code> with the following parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>bvn</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>The Bank Verification Number (BVN) of the user.</td>\n<td><code>12345678910</code></td>\n</tr>\n<tr>\n<td><code>account_name</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>The desired name for the virtual account.</td>\n<td><code>ZTS</code></td>\n</tr>\n<tr>\n<td><code>first_name</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>The first name of the user.</td>\n<td><code>John</code></td>\n</tr>\n<tr>\n<td><code>last_name</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>The last name of the user.</td>\n<td><code>Doe</code></td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>The email address of the user. This will be used for notifications.</td>\n<td><code>JohnDoe@doe.ng</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"example-request-php-curl\">Example Request (PHP cURL)</h2>\n<p>PHP</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">$curl = curl_init();\ncurl_setopt_array($curl, array(\n  CURLOPT_URL =&gt; '{{BaseURL}}/api/dedicated_account/assign',\n  CURLOPT_RETURNTRANSFER =&gt; true,\n  CURLOPT_ENCODING =&gt; '',\n  CURLOPT_MAXREDIRS =&gt; 10,\n  CURLOPT_TIMEOUT =&gt; 0,\n  CURLOPT_FOLLOWLOCATION =&gt; true,\n  CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n  CURLOPT_CUSTOMREQUEST =&gt; 'POST',\n  CURLOPT_POSTFIELDS =&gt; array('bvn' =&gt; '12345678910','account_name' =&gt; 'ZTS','first_name' =&gt; 'John','last_name' =&gt; 'Doe','email' =&gt; 'JohnDoe@doe.ng'),\n  CURLOPT_HTTPHEADER =&gt; array(\n    'Accept: application/json',\n    'Accept-Encoding: gzip, deflate,',\n    'Authorization: Bearer YOUR_AUTH_TOKEN' // &lt;--- Add your bearer token here\n  ),\n));\n$response = curl_exec($curl);\ncurl_close($curl);\necho $response;\n?&gt;\n\n</code></pre>\n<p><strong>Note:</strong> Replace <code>YOUR_AUTH_TOKEN</code> with your actual authentication token.</p>\n<h2 id=\"response\">Response</h2>\n<p>The API will respond with a JSON object.</p>\n<h3 id=\"success-response-status-code-200-ok\">Success Response (Status Code: <code>200 OK</code>)</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": true,\n    \"response_code\": \"00\",\n    \"accountReference\": \"ZTSVA-01JXBCKMGSDD6FXDNTNB\",\n    \"accountName\": \"ZTS PAYYOURBILLS(ZTS)\",\n    \"customerEmail\": \"John@Doe.ng\",\n    \"customerName\": \"John\",\n    \"bankName\": \"PALMPAY\",\n    \"accountNumber\": \"1234567890\",\n    \"identityType\": \"personal\",\n    \"BVN\": \"12345678911\",\n    \"accountStatus\": \"Enabled\",\n    \"createdOn\": \"2025-06-09T22:22:33.417004Z\",\n    \"processed_by\": \"ZTSPayPoint\"\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"API Documentation: Assign Dedicated Virtual Account","slug":"api-documentation-assign-dedicated-virtual-account"}],"owner":"13400303","collectionId":"0d1b7d26-f09a-49fb-bcd4-0089651249f0","publishedId":"2sB2x9krVa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-06-19T12:47:19.000Z"},"item":[{"name":"Dedicate Account","id":"f5c885d4-a6b7-4349-b882-8a1bdbd0271c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Accept-Encoding","value":"gzip, deflate, br","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bvn","value":"","type":"text","uuid":"2b8d968f-6af1-43c6-acf9-2890010d4761"},{"key":"account_name","value":"","type":"text","uuid":"bb35750d-49a4-4447-8a33-f70a0ec52ee7"},{"key":"first_name","value":"","type":"text","uuid":"9bfb9816-865d-45af-9187-261aa40de7d9"},{"key":"last_name","value":"","type":"text","uuid":"9255641c-faa2-457f-8ce9-06733787af74"},{"key":"email","value":"","type":"text","uuid":"ed241b1a-3324-4f24-acf1-2dc93e751e97"}]},"url":"https://zenithpay.ng/api/dedicated_account/assign","urlObject":{"protocol":"https","path":["api","dedicated_account","assign"],"host":["zenithpay","ng"],"query":[],"variable":[]}},"response":[{"id":"60b2bd3d-4ac6-407c-b445-9a0e411cce53","name":"Dedicate Account","originalRequest":{"method":"POST","header":[],"url":"https://zenithpay.ng/api/dedicated_account/assign"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f5c885d4-a6b7-4349-b882-8a1bdbd0271c"},{"name":"New Request","id":"b7090fe4-a11b-44b4-aba1-d4c0b09d7583","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"b7090fe4-a11b-44b4-aba1-d4c0b09d7583"}]}