{"info":{"_postman_id":"b3494593-d50b-4265-8e3f-a76fa2ffa0ca","name":"Paga Engine API","description":"<html><head></head><body><p>Every Paga Engine endpoint, grouped by use case, in the same order as the guides at <a href=\"https://developer-docs.paga.com\">https://developer-docs.paga.com</a>.</p>\n<p><strong>Get started</strong></p>\n<ol>\n<li>Fork this collection into your own workspace.</li>\n<li>Open the collection’s <strong>Variables</strong> tab and enter your Sandbox keys in <strong>Current value</strong>: <code>sandboxPublicKey</code>, <code>sandboxSecretKey</code> and <code>sandboxHashKey</code>.</li>\n<li>Send any request. The base URL, the <code>hash</code> header and a fresh <code>referenceNumber</code> are set for you.</li>\n</ol>\n<p><strong>Going live:</strong> add your Live keys to <code>livePublicKey</code>, <code>liveSecretKey</code> and <code>liveHashKey</code>, then change <code>mode</code> to <code>live</code>. Change it back to <code>sandbox</code> when you’re done. Postman’s console shows which one each request used.</p>\n<p>Every variable has a description in the Variables tab saying what it is and where to find it. The last three fill themselves in as you send requests.</p>\n<p>Keys go in <strong>Current value</strong> only, which stays on your computer. Never put keys in Initial value, and never share a workspace that contains Live keys.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"27804242","collectionId":"b3494593-d50b-4265-8e3f-a76fa2ffa0ca","publishedId":"2sBYHYuJJb","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-11-08T09:41:25.000Z"},"item":[{"name":"Checkout","item":[{"name":"1. Handle the payment notification","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: amount + timeStamp + paymentReference + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"amount\",\"timeStamp\",\"paymentReference\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","body.hash = hash;","pm.request.body.update(JSON.stringify(body, null, 2));"],"id":"380f539c-8f79-4db2-8c07-3d8fce2ac82b"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"b967c01c-027b-4e84-8636-2cb1b04a6235"}}],"id":"cfddcced-4c27-478d-9e8e-11147411a2cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"statusCode\": \"0\",\n  \"statusMessage\": \"success\",\n  \"paymentReference\": \"Paga_Auto_Ref_20250826_132929_yjmb\",\n  \"amount\": \"10.00\",\n  \"currency\": \"NGN\",\n  \"timeStamp\": \"2025-08-26T13:36:04\",\n  \"description\": null,\n  \"customerEmail\": \"testemail2@gmail.com\",\n  \"customerPhoneNumber\": \"+2348063334156\",\n  \"hash\": \"39453c520890841fe3a837701e60b7dba3f8d737696d8fa5a39e8566b9f96948eaac792e7c03783e67033c37bf6d123e1ff181f015e729e1bcfa70bd8a16ae97\"\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-checkout-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent to your callback URL when a Checkout payment completes. Check the hash, then respond with HTTP 200. Don’t fulfil from the browser redirect.</p>\n<p><strong>Hash:</strong> <code>amount + timeStamp + paymentReference + hashKey</code>. Use <code>amount</code> exactly as received, such as <code>10.00</code>.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/checkout-js\">https://developer-docs.paga.com/docs/checkout-js</a></p>\n","urlObject":{"path":["your-checkout-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cfddcced-4c27-478d-9e8e-11147411a2cd"},{"name":"2. Verify a charge","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"6dde2107-46ab-4f8b-bb67-022c8ba71dd2"}}],"id":"04c27680-0605-4f7c-914b-9b3977b1d521","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"paymentReference\": \"JHX-18743567\",\n  \"publicKey\": \"YOUR_PUBLIC_KEY\",\n  \"amount\": 1000,\n  \"currency\": \"NGN\"\n}","options":{"raw":{"language":"json"}}},"url":"{{checkoutBaseUrl}}/checkout/transaction/verify","description":"<p>Confirms a Checkout payment from your server at any time, using its <code>paymentReference</code>. Uses HTTP Basic only. <code>status_code</code> <code>0</code> means paid; <code>2</code> means pending.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/checkout-js\">https://developer-docs.paga.com/docs/checkout-js</a></p>\n","urlObject":{"path":["checkout","transaction","verify"],"host":["{{checkoutBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"04c27680-0605-4f7c-914b-9b3977b1d521"}],"id":"f4bade1c-0606-49c9-a349-79b7ccb9078a","description":"<p>Accept card, bank transfer, USSD and Paga Wallet payments on a page Paga hosts.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/checkout-js\">https://developer-docs.paga.com/docs/checkout-js</a></p>\n","_postman_id":"f4bade1c-0606-49c9-a349-79b7ccb9078a"},{"name":"Dynamic virtual account","item":[{"name":"1. Create a payment request","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"currency\",\"payer.phoneNumber\",\"payer.email\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"399890ec-d674-4063-8dba-2fef2dd17840"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}","try { pm.collectionVariables.set(\"lastPaymentRequestReference\", JSON.parse(pm.variables.replaceIn(pm.request.body.raw)).referenceNumber); } catch (e) {}"],"id":"4f903e68-be63-4b30-b527-f3e840d78373"}}],"id":"cb01a088-1c71-4c31-9b82-adbd710afbf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": 50,\n  \"currency\": \"NGN\",\n  \"payer\": {\n    \"name\": \"Bello Ramon\",\n    \"phoneNumber\": \"08064343187\"\n  },\n  \"payee\": {\n    \"name\": \"Your business name\"\n  },\n  \"expiryDateTimeUTC\": \"2026-11-10T15:35:00\",\n  \"isSuppressMessages\": true,\n  \"payerCollectionFeeShare\": 1,\n  \"payeeCollectionFeeShare\": 0,\n  \"isAllowPartialPayments\": false,\n  \"isAllowOverPayments\": false,\n  \"callBackUrl\": \"https://yourstore.com/webhooks/paga\",\n  \"paymentMethods\": [\n    \"BANK_TRANSFER\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/paymentRequest","description":"<p>Creates a payment request. The <code>paymentMethods</code> you send decide how your customer pays.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey</code>. Use an empty string for <code>payer.email</code> if you don’t send it.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/virtual-accounts\">https://developer-docs.paga.com/docs/virtual-accounts</a></p>\n","urlObject":{"path":["paymentRequest"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb01a088-1c71-4c31-9b82-adbd710afbf5"},{"name":"2. Check payment status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"a902e790-603f-4bfb-8eee-1ebac2288a21"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"6c4a4285-35ae-48b4-a189-a5b3de70e652"}}],"id":"4fd7d025-d0b6-4dc1-a051-78ce3f0bb567","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/status","description":"<p>Returns the status of a payment request. The outer <code>statusCode</code> only says whether your status request worked; the payment’s own status is in <code>data.statusCode</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/virtual-accounts\">https://developer-docs.paga.com/docs/virtual-accounts</a></p>\n","urlObject":{"path":["status"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4fd7d025-d0b6-4dc1-a051-78ce3f0bb567"},{"name":"3. Handle the callback","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: notificationId + statusCode + externalReferenceNumber + state + outstandingBalance + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"notificationId\",\"statusCode\",\"externalReferenceNumber\",\"state\",\"outstandingBalance\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","body.hash = hash;","pm.request.body.update(JSON.stringify(body, null, 2));"],"id":"c265da9c-bd65-485b-aeeb-eb471d293703"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"a2ca2e02-3dce-4bd4-991a-89c3cd20911a"}}],"id":"29f7cc69-d829-4fed-89a2-fac6d577c105","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"event\": \"PAYMENT_COMPLETE\",\n  \"notificationId\": \"a12ef82b-14d0-4a67-a08c-162b95154f59\",\n  \"statusCode\": \"0\",\n  \"statusMessage\": \"Payment Request has been authorized\",\n  \"externalReferenceNumber\": \"ORD-2026-0187\",\n  \"state\": \"CONSUMED\",\n  \"outstandingBalance\": 0,\n  \"paymentAmount\": 50.41,\n  \"cumulativePaymentAmount\": 50.41,\n  \"collectionFee\": 0.41,\n  \"fundingDetails\": {\n    \"payerName\": \"Bello Ramon\",\n    \"payerAccountNumber\": \"0980763285\"\n  },\n  \"hash\": \"33f9c9bd0785c2cc…\"\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent to your <code>callBackUrl</code> when a payment request is paid, expires or is cancelled. Check the hash, then respond with HTTP 200. Paga retries up to three times with the same <code>notificationId</code>, so de-duplicate on it.</p>\n<p><strong>Hash:</strong> <code>notificationId + statusCode + externalReferenceNumber + state + outstandingBalance + hashKey</code>. Format <code>outstandingBalance</code> with two decimal places and no commas; leave it out if it’s <code>null</code>.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/virtual-accounts\">https://developer-docs.paga.com/docs/virtual-accounts</a></p>\n","urlObject":{"path":["your-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"29f7cc69-d829-4fed-89a2-fac6d577c105"}],"id":"45a400f3-e4dc-42e8-af60-e5c62ea1df32","description":"<p>Give your customer a one-time Paga account number for a single payment by bank transfer.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/virtual-accounts\">https://developer-docs.paga.com/docs/virtual-accounts</a></p>\n","_postman_id":"45a400f3-e4dc-42e8-af60-e5c62ea1df32"},{"name":"Bank USSD","item":[{"name":"1. Get the customer’s bank","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"6abd3a7b-5164-43e6-ae36-f24049ff0456"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"72c256f1-50d2-4dc4-93da-283715058770"}}],"id":"855e9f60-da6b-497c-ae1b-4c74e92adc93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/banks","description":"<p>Lists the banks your customer can pay from, each with its <code>uuid</code>. Send the customer’s bank as <code>payer.bankId</code> for USSD and Direct Debit, or as <code>autoSweep.bankPublicId</code> for Subsidiary Accounts.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/bank-ussd-payment\">https://developer-docs.paga.com/docs/bank-ussd-payment</a></p>\n","urlObject":{"path":["banks"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"855e9f60-da6b-497c-ae1b-4c74e92adc93"},{"name":"2. Create a payment request","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"currency\",\"payer.phoneNumber\",\"payer.email\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"89b7ce6c-f880-4421-8ef8-f749fd668934"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}","try { pm.collectionVariables.set(\"lastPaymentRequestReference\", JSON.parse(pm.variables.replaceIn(pm.request.body.raw)).referenceNumber); } catch (e) {}"],"id":"b6d0a572-343b-49d6-864a-7d256047d9ae"}}],"id":"a6711af2-7bed-45f1-92a6-45c6a844342e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": 2500,\n  \"currency\": \"NGN\",\n  \"payer\": {\n    \"name\": \"Bello Ramon\",\n    \"phoneNumber\": \"08064343187\",\n    \"bankId\": \"40090E2F-7446-4217-9345-7BBAB7043C4C\"\n  },\n  \"payee\": {\n    \"name\": \"Your business name\"\n  },\n  \"expiryDateTimeUTC\": \"2026-11-10T15:35:00\",\n  \"payerCollectionFeeShare\": 1,\n  \"payeeCollectionFeeShare\": 0,\n  \"callBackUrl\": \"https://yourstore.com/webhooks/paga\",\n  \"paymentMethods\": [\n    \"FUNDING_USSD\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/paymentRequest","description":"<p>Creates a payment request. The <code>paymentMethods</code> you send decide how your customer pays.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey</code>. Use an empty string for <code>payer.email</code> if you don’t send it.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/bank-ussd-payment\">https://developer-docs.paga.com/docs/bank-ussd-payment</a></p>\n","urlObject":{"path":["paymentRequest"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6711af2-7bed-45f1-92a6-45c6a844342e"},{"name":"3. Check payment status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"98e6683d-a1be-4a7a-a197-8542cefcbcac"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"86b079af-1278-4e8e-b201-da75ab70361a"}}],"id":"ffa91afe-fb02-46ea-a49d-e254946b72e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/status","description":"<p>Returns the status of a payment request. The outer <code>statusCode</code> only says whether your status request worked; the payment’s own status is in <code>data.statusCode</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/bank-ussd-payment\">https://developer-docs.paga.com/docs/bank-ussd-payment</a></p>\n","urlObject":{"path":["status"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ffa91afe-fb02-46ea-a49d-e254946b72e6"},{"name":"4. Handle the callback","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: notificationId + statusCode + externalReferenceNumber + state + outstandingBalance + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"notificationId\",\"statusCode\",\"externalReferenceNumber\",\"state\",\"outstandingBalance\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","body.hash = hash;","pm.request.body.update(JSON.stringify(body, null, 2));"],"id":"2dfbd283-bd66-4f71-9240-d2dc29542fc3"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"82e888a6-2ae0-4e84-8836-63b4deaf9473"}}],"id":"d9b7eaa0-afe1-47c6-8a02-483837afe3b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"event\": \"PAYMENT_COMPLETE\",\n  \"notificationId\": \"a12ef82b-14d0-4a67-a08c-162b95154f59\",\n  \"statusCode\": \"0\",\n  \"statusMessage\": \"Payment Request has been authorized\",\n  \"externalReferenceNumber\": \"ORD-2026-0187\",\n  \"state\": \"CONSUMED\",\n  \"outstandingBalance\": 0,\n  \"paymentAmount\": 50.41,\n  \"cumulativePaymentAmount\": 50.41,\n  \"collectionFee\": 0.41,\n  \"fundingDetails\": {\n    \"payerName\": \"Bello Ramon\",\n    \"payerAccountNumber\": \"0980763285\"\n  },\n  \"hash\": \"33f9c9bd0785c2cc…\"\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-ussd-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent to your <code>callBackUrl</code> when a payment request is paid, expires or is cancelled. Check the hash, then respond with HTTP 200. Paga retries up to three times with the same <code>notificationId</code>, so de-duplicate on it.</p>\n<p><strong>Hash:</strong> <code>notificationId + statusCode + externalReferenceNumber + state + outstandingBalance + hashKey</code>. Format <code>outstandingBalance</code> with two decimal places and no commas; leave it out if it’s <code>null</code>.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/bank-ussd-payment\">https://developer-docs.paga.com/docs/bank-ussd-payment</a></p>\n","urlObject":{"path":["your-ussd-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d9b7eaa0-afe1-47c6-8a02-483837afe3b2"}],"id":"9b542b0c-d921-4841-92d1-4901e6232684","description":"<p>Give your customer a USSD code to pay from their bank, with no internet or card.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/bank-ussd-payment\">https://developer-docs.paga.com/docs/bank-ussd-payment</a></p>\n","_postman_id":"9b542b0c-d921-4841-92d1-4901e6232684"},{"name":"Direct Debit (Open Banking)","item":[{"name":"1. Start a hosted set-up session","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"5ab2e75b-e935-42de-809e-4d612ac8ec7c"}}],"id":"6b826538-11dc-4621-a3c5-b39006b276fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"accountReference\": \"CUST-000184-MANDATE\",\n  \"amountLimit\": 40000,\n  \"paymentMethods\": [\n    \"BANK_ACCOUNT_DIRECT_DEBIT\"\n  ],\n  \"callbackUrl\": \"https://yourstore.com/webhooks/paga\",\n  \"redirectUrl\": \"https://yourstore.com/mandate/complete\",\n  \"sessionExpirySeconds\": \"50000\",\n  \"paymentExpirySeconds\": \"157680000\",\n  \"additionalProperties\": {\n    \"payerPhoneNumber\": \"08064343187\",\n    \"payerEmail\": \"bello@example.com\",\n    \"authorizationAmount\": 40000\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{checkoutBaseUrl}}/checkout/charge-process/start","description":"<p>Creates a hosted Direct Debit set-up session. Redirect your customer to the returned <code>checkoutUrl</code>. This endpoint uses HTTP Basic only; it doesn’t use a <code>hash</code> header.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/direct-debit-api\">https://developer-docs.paga.com/docs/direct-debit-api</a></p>\n","urlObject":{"path":["checkout","charge-process","start"],"host":["{{checkoutBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b826538-11dc-4621-a3c5-b39006b276fd"},{"name":"2. Set up a mandate by API","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"currency\",\"payer.phoneNumber\",\"payer.email\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"b29c8f5e-2abd-4331-9dfe-4b950abb498a"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}","try { pm.collectionVariables.set(\"lastPaymentRequestReference\", JSON.parse(pm.variables.replaceIn(pm.request.body.raw)).referenceNumber); } catch (e) {}"],"id":"f285fe70-8ff5-4f05-9af7-f2f4dee78f0c"}}],"id":"49ac1856-4e95-45b7-a8ed-6fa0569a5db8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": 5000,\n  \"currency\": \"NGN\",\n  \"accountReference\": \"CUST-000185-MANDATE\",\n  \"payer\": {\n    \"name\": \"Bello Ramon\",\n    \"phoneNumber\": \"08064343187\",\n    \"email\": \"bello@example.com\",\n    \"address\": \"176 Herbert Macaulay Way, Yaba\",\n    \"bankId\": \"824d4b53-2752-49bb-b84a-20b69bb897ef\",\n    \"bankAccountNumber\": \"0697122703\"\n  },\n  \"payee\": {\n    \"name\": \"Your business name\"\n  },\n  \"isSingleUse\": false,\n  \"expiryDateTimeUTC\": \"2030-11-25T00:00:00\",\n  \"payerCollectionFeeShare\": 0,\n  \"payeeCollectionFeeShare\": 1,\n  \"isAllowPartialPayments\": true,\n  \"callBackUrl\": \"https://yourstore.com/webhooks/paga\",\n  \"paymentMethods\": [\n    \"DIRECT_DEBIT\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/paymentRequest","description":"<p>Creates a payment request. The <code>paymentMethods</code> you send decide how your customer pays.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey</code>. Use an empty string for <code>payer.email</code> if you don’t send it.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/direct-debit-api\">https://developer-docs.paga.com/docs/direct-debit-api</a></p>\n","urlObject":{"path":["paymentRequest"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"49ac1856-4e95-45b7-a8ed-6fa0569a5db8"},{"name":"3. Handle the mandate callback","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: statusCode + timeStamp + accountNumber + bankName + referenceNumber + mandateStatus + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"statusCode\",\"timeStamp\",\"accountNumber\",\"bankName\",\"referenceNumber\",\"mandateStatus\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","body.hash = hash;","pm.request.body.update(JSON.stringify(body, null, 2));"],"id":"1b305496-2f1f-46d5-8706-b4dddab0f4b6"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"f554cfea-f2a2-4205-891f-826e9ed7e733"}}],"id":"cc77396a-1fc5-498d-b833-ffe3e90c3185","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"event\": \"Tokenization\",\n  \"notificationId\": \"9f1c2e44-0b7a-4d6e-9c1f-2b8e7a6d5c40\",\n  \"statusCode\": \"004\",\n  \"statusMessage\": \"VERIFIED\",\n  \"mandateStatus\": \"VERIFIED\",\n  \"referenceNumber\": \"DD-2026-0042\",\n  \"accountReference\": \"CUST-000184-MANDATE\",\n  \"customerEmail\": \"bello@example.com\",\n  \"customerPhoneNumber\": \"+2348064343187\",\n  \"bankName\": \"Opay\",\n  \"accountNumber\": \"8872493187\",\n  \"currency\": \"NGN\",\n  \"receivedAuthorizationAmount\": 40000,\n  \"timeStamp\": \"2026-11-04T07:31:00.885302596Z\",\n  \"hash\": \"f2a126a8…\"\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-mandate-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent when the authorisation transfer arrives (<code>VERIFIED</code>) and when the bank approves the mandate (<code>APPROVED</code>). Both set-up methods send the same callbacks.</p>\n<p><strong>Hash:</strong> <code>statusCode + timeStamp + accountNumber + bankName + referenceNumber + mandateStatus + hashKey</code>, using each value exactly as received.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/direct-debit-api\">https://developer-docs.paga.com/docs/direct-debit-api</a></p>\n","urlObject":{"path":["your-mandate-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc77396a-1fc5-498d-b833-ffe3e90c3185"},{"name":"4. Check mandate status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"0a54c6b7-8df2-4cd1-a4af-2112f7a1400b"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"9d396ac0-b1d2-41cb-932c-050c53377e9e"}}],"id":"5bad9829-b973-4cba-b719-43d1b0782a92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/status","description":"<p>Returns the mandate’s status. Use <code>data.additionalData.mandate[].ProcessStatusId</code> (<code>PENDING</code>, <code>VERIFIED</code>, <code>APPROVED</code> or <code>REJECTED</code>) and charge only when it’s <code>APPROVED</code>. <code>data.statusCode</code> and <code>data.statusMessage</code> stay <code>1</code> and <code>pending</code> whatever happens to the mandate.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/direct-debit-api\">https://developer-docs.paga.com/docs/direct-debit-api</a></p>\n","urlObject":{"path":["status"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5bad9829-b973-4cba-b719-43d1b0782a92"},{"name":"5. Charge the mandate","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + accountReference + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"accountReference\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"b1f25cd9-ea6e-4cce-8a4a-c9d68a8fb589"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"bd96d1f8-ac91-425c-b7ee-c7bc65b23db0"}}],"id":"77f93bd3-0229-4e41-b980-05c43dcbae17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": 600,\n  \"accountReference\": \"CUST-000184-MANDATE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/chargeDebitMandate","description":"<p>Debits an approved mandate for any amount up to its limit. A successful response means the charge was accepted; fulfil only when the charge callback confirms it.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + accountReference + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/direct-debit-api\">https://developer-docs.paga.com/docs/direct-debit-api</a></p>\n","urlObject":{"path":["chargeDebitMandate"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"77f93bd3-0229-4e41-b980-05c43dcbae17"},{"name":"6. Handle the charge callback","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: statusCode + referenceNumber + accountReference + amount + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"statusCode\",\"referenceNumber\",\"accountReference\",\"amount\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","body.hash = hash;","pm.request.body.update(JSON.stringify(body, null, 2));"],"id":"e514a466-bb3e-4d6f-a1ac-b79ab6ade435"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"4ff0e9d5-62a5-4ceb-a53b-9cc7dd56eaac"}}],"id":"89619f74-7411-4cbb-8321-4d1f865a4896","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"event\": \"Charge_Complete\",\n  \"notificationId\": \"CHG-2026-0101\",\n  \"statusCode\": \"0\",\n  \"statusMessage\": \"SUCCESSFUL\",\n  \"processStatusId\": \"SUCCESSFUL\",\n  \"referenceNumber\": \"CHG-2026-0101\",\n  \"accountReference\": \"CUST-000184-MANDATE\",\n  \"amount\": \"600.00\",\n  \"currency\": \"NGN\",\n  \"senderName\": \"BELLO RAMON\",\n  \"sourceBankName\": \"Opay\",\n  \"sourceBankAccountNumber\": \"8872493187\",\n  \"hash\": \"c95f2466…\"\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-charge-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent when a mandate charge completes. Decide on <code>statusCode</code>, and look up any non-zero code before acting.</p>\n<p><strong>Hash:</strong> <code>statusCode + referenceNumber + accountReference + amount + hashKey</code>. <code>amount</code> has two decimal places and no commas, such as <code>50000.00</code>.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/direct-debit-api\">https://developer-docs.paga.com/docs/direct-debit-api</a></p>\n","urlObject":{"path":["your-charge-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"89619f74-7411-4cbb-8321-4d1f865a4896"},{"name":"7. Check charge status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"2353c701-6ba1-4277-87d9-8352b87cec09"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"7892306a-7e8d-483b-b69e-5b2fa93fea2a"}}],"id":"202bb340-13c5-4382-b473-19c7dd8aeb07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/getChargeMandateStatus","description":"<p>Returns the status of a charge, using the charge’s <code>referenceNumber</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/direct-debit-api\">https://developer-docs.paga.com/docs/direct-debit-api</a></p>\n","urlObject":{"path":["getChargeMandateStatus"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"202bb340-13c5-4382-b473-19c7dd8aeb07"},{"name":"8. Disable a mandate","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + accountReference + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"accountReference\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"9a12c3f9-3400-4bd9-9368-aeec4dd7e483"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"17b91fe7-9928-44a5-844b-dba513d77860"}}],"id":"21659b71-b611-46af-92a5-d653b51c8b36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"accountReference\": \"CUST-000184-MANDATE\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/disableMandate","description":"<p>Stops all future charges on a mandate. Its <code>ProcessStatusId</code> then becomes <code>REJECTED</code>, and it can’t be charged again.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + accountReference + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/direct-debit-api\">https://developer-docs.paga.com/docs/direct-debit-api</a></p>\n","urlObject":{"path":["disableMandate"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"21659b71-b611-46af-92a5-d653b51c8b36"}],"id":"1f611e56-a5a3-47c4-8884-761bf037677e","description":"<p>Get your customer’s permission once, then charge their bank account whenever a payment is due.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/direct-debit-api\">https://developer-docs.paga.com/docs/direct-debit-api</a></p>\n","_postman_id":"1f611e56-a5a3-47c4-8884-761bf037677e"},{"name":"Paga Wallet","item":[{"name":"1. Create a payment request","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"currency\",\"payer.phoneNumber\",\"payer.email\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"4cac448e-1903-4603-9085-9e6525727c91"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}","try { pm.collectionVariables.set(\"lastPaymentRequestReference\", JSON.parse(pm.variables.replaceIn(pm.request.body.raw)).referenceNumber); } catch (e) {}"],"id":"7c3429fc-2721-476d-8993-2e6e41cb1a44"}}],"id":"994e0ba5-80ee-4c69-bd22-547ec593e568","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": 3000,\n  \"currency\": \"NGN\",\n  \"payer\": {\n    \"name\": \"Bello Ramon\",\n    \"phoneNumber\": \"08064343187\"\n  },\n  \"payee\": {\n    \"name\": \"Your business name\"\n  },\n  \"expiryDateTimeUTC\": \"2026-11-10T15:35:00\",\n  \"payerCollectionFeeShare\": 1,\n  \"payeeCollectionFeeShare\": 0,\n  \"redirectUrl\": \"https://yourstore.com/payment/complete\",\n  \"callBackUrl\": \"https://yourstore.com/webhooks/paga\",\n  \"paymentMethods\": [\n    \"REQUEST_MONEY\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/paymentRequest","description":"<p>Creates a payment request. The <code>paymentMethods</code> you send decide how your customer pays.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey</code>. Use an empty string for <code>payer.email</code> if you don’t send it.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/paga-wallet\">https://developer-docs.paga.com/docs/paga-wallet</a></p>\n","urlObject":{"path":["paymentRequest"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"994e0ba5-80ee-4c69-bd22-547ec593e568"},{"name":"2. Check payment status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"3fd09b5f-e2d5-47c1-935b-23a22e287cb1"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"b44d5641-9840-411f-9292-f1e3d17df9c5"}}],"id":"d9d45b9e-9a55-45e3-8216-62d87639d2d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/status","description":"<p>Returns the status of a payment request. The outer <code>statusCode</code> only says whether your status request worked; the payment’s own status is in <code>data.statusCode</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/paga-wallet\">https://developer-docs.paga.com/docs/paga-wallet</a></p>\n","urlObject":{"path":["status"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d9d45b9e-9a55-45e3-8216-62d87639d2d0"},{"name":"3. Handle the callback","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: notificationId + statusCode + externalReferenceNumber + state + outstandingBalance + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"notificationId\",\"statusCode\",\"externalReferenceNumber\",\"state\",\"outstandingBalance\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","body.hash = hash;","pm.request.body.update(JSON.stringify(body, null, 2));"],"id":"b1648f44-ff91-49df-8dac-c0b72f4f57bc"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"3b094ae4-0a77-48e8-8b83-6e73ecf23431"}}],"id":"b024acc5-f2f8-4bac-9303-dc742723e15b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"event\": \"PAYMENT_COMPLETE\",\n  \"notificationId\": \"a12ef82b-14d0-4a67-a08c-162b95154f59\",\n  \"statusCode\": \"0\",\n  \"statusMessage\": \"Payment Request has been authorized\",\n  \"externalReferenceNumber\": \"ORD-2026-0187\",\n  \"state\": \"CONSUMED\",\n  \"outstandingBalance\": 0,\n  \"paymentAmount\": 50.41,\n  \"cumulativePaymentAmount\": 50.41,\n  \"collectionFee\": 0.41,\n  \"fundingDetails\": {\n    \"payerName\": \"Bello Ramon\",\n    \"payerAccountNumber\": \"0980763285\"\n  },\n  \"hash\": \"33f9c9bd0785c2cc…\"\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-wallet-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent to your <code>callBackUrl</code> when a payment request is paid, expires or is cancelled. Check the hash, then respond with HTTP 200. Paga retries up to three times with the same <code>notificationId</code>, so de-duplicate on it.</p>\n<p><strong>Hash:</strong> <code>notificationId + statusCode + externalReferenceNumber + state + outstandingBalance + hashKey</code>. Format <code>outstandingBalance</code> with two decimal places and no commas; leave it out if it’s <code>null</code>.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/paga-wallet\">https://developer-docs.paga.com/docs/paga-wallet</a></p>\n","urlObject":{"path":["your-wallet-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b024acc5-f2f8-4bac-9303-dc742723e15b"}],"id":"a67cfc42-a477-4d2e-9fd7-6656c7bf4758","description":"<p>Request payment from a Paga wallet holder, who approves it in the Paga app.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/paga-wallet\">https://developer-docs.paga.com/docs/paga-wallet</a></p>\n","_postman_id":"a67cfc42-a477-4d2e-9fd7-6656c7bf4758"},{"name":"Bank Transfer (ACH, Wire and Swift)","item":[{"name":"1. Create a payment request","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"currency\",\"payer.phoneNumber\",\"payer.email\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"98ffb8f0-e629-420a-93db-7177c39b607c"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}","try { pm.collectionVariables.set(\"lastPaymentRequestReference\", JSON.parse(pm.variables.replaceIn(pm.request.body.raw)).referenceNumber); } catch (e) {}"],"id":"dbfb3564-27df-4fa7-8192-3a0886275c98"}}],"id":"05097fef-532b-4c76-8950-404305a2e874","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": 80000,\n  \"currency\": \"NGN\",\n  \"payer\": {\n    \"name\": \"Jill Scott\",\n    \"phoneNumber\": \"+19175247723\",\n    \"currency\": \"USD\"\n  },\n  \"payee\": {\n    \"name\": \"Your business name\"\n  },\n  \"expiryDateTimeUTC\": \"2026-10-27T22:04:00\",\n  \"payerCollectionFeeShare\": 1,\n  \"payeeCollectionFeeShare\": 0,\n  \"isAllowPartialPayments\": false,\n  \"isAllowOverPayments\": true,\n  \"callBackUrl\": \"https://yourstore.com/webhooks/paga\",\n  \"narration\": \"Invoice 0042\",\n  \"paymentMethods\": [\n    \"BANK_TRANSFER\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{usdBaseUrl}}/paymentRequest","description":"<p>Creates a payment request. The <code>paymentMethods</code> you send decide how your customer pays.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey</code>. Use an empty string for <code>payer.email</code> if you don’t send it.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/paga-dynamic-payment-identifier-usd-collection\">https://developer-docs.paga.com/docs/paga-dynamic-payment-identifier-usd-collection</a></p>\n","urlObject":{"path":["paymentRequest"],"host":["{{usdBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"05097fef-532b-4c76-8950-404305a2e874"},{"name":"2. Handle the webhook","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"6e0fd0d5-f717-417e-a28a-d23706c0bb45"}}],"id":"d7379b0a-2bac-4e67-a8d4-4d3ef50f4b7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"event\": \"CAPTURED\",\n  \"referenceNumber\": \"INV-2026-0042\",\n  \"paymentId\": \"01a130c8-fec1-78e9-9bb1-a90e5797e9a0\",\n  \"paymentStatus\": \"CAPTURED\",\n  \"receivedAmounts\": {\n    \"currency\": \"USD\",\n    \"amounts\": {\n      \"BASE\": 515.06\n    }\n  },\n  \"serviceDetails\": {\n    \"sourceCurrency\": \"USD\",\n    \"destinationCurrency\": \"NGN\",\n    \"foreignExchangeRate\": 1670.5475,\n    \"destinationAmount\": 800000\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-usd-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent as <code>CAPTURED</code> when a dollar payment clears, or <code>FUNDING_FAILED</code> if Paga received money but couldn’t accept it. Index payments by <code>referenceNumber</code> and <code>paymentId</code>, and respond with HTTP 200 without fulfilling twice if a webhook repeats.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/paga-dynamic-payment-identifier-usd-collection\">https://developer-docs.paga.com/docs/paga-dynamic-payment-identifier-usd-collection</a></p>\n","urlObject":{"path":["your-usd-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d7379b0a-2bac-4e67-a8d4-4d3ef50f4b7e"},{"name":"3. Check payment status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + paymentCurrency + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"paymentCurrency\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"edffbb7e-0c87-4f0d-979b-1a2e7f997e02"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"afdfa60d-45d5-4289-b757-dcc209bbbe5f"}}],"id":"a93e4c0d-0a2b-4d69-a13d-7099431eab36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\",\n  \"paymentCurrency\": \"USD\"\n}","options":{"raw":{"language":"json"}}},"url":"{{usdBaseUrl}}/status","description":"<p>Returns the status of a USD payment request. The outer <code>statusCode</code> says whether your status request worked; the payment’s own status is in <code>data.statusCode</code>, where <code>1</code> means still pending.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + paymentCurrency + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/paga-dynamic-payment-identifier-usd-collection\">https://developer-docs.paga.com/docs/paga-dynamic-payment-identifier-usd-collection</a></p>\n","urlObject":{"path":["status"],"host":["{{usdBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a93e4c0d-0a2b-4d69-a13d-7099431eab36"}],"id":"a6641fbc-c3a7-47e8-9197-0fee788d7e06","description":"<p>Collect US dollars from customers abroad by ACH, US domestic wire or SWIFT, settled in naira.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/paga-dynamic-payment-identifier-usd-collection\">https://developer-docs.paga.com/docs/paga-dynamic-payment-identifier-usd-collection</a></p>\n","_postman_id":"a6641fbc-c3a7-47e8-9197-0fee788d7e06"},{"name":"Refunds","item":[{"name":"1. Refund or cancel a payment request","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + refundAmount + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"refundAmount\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"d4d43c8a-6108-497c-b0ff-634797c1845c"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"17cc203f-b159-4c63-bcb8-62e92ba53969"}}],"id":"86802c3e-544f-42ff-a991-dae91d7e294c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"paymentRequestReference\": \"\",\n  \"refundAmount\": 1000,\n  \"currency\": \"NGN\",\n  \"reason\": \"Item out of stock\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/refund/v2","description":"<p>Refunds a paid payment request in full or in part, or cancels one that hasn’t been paid. Send one request per partial refund, each with its own <code>referenceNumber</code>. Reusing a <code>referenceNumber</code> returns status code <code>102</code> and never refunds twice.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + refundAmount + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/refunds\">https://developer-docs.paga.com/docs/refunds</a></p>\n","urlObject":{"path":["refund","v2"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86802c3e-544f-42ff-a991-dae91d7e294c"},{"name":"2. Check refund status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"4636b360-14f7-4d0a-9eec-53ba98b2c1e8"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"023a7e63-90b0-47df-b053-32cd528f74e1"}}],"id":"e98c7cb0-75b5-4c4e-985b-d957fbe90321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/status","description":"<p>Call with the original payment request’s <code>referenceNumber</code>. <code>data.refundStatus</code> shows <code>refunded</code> once the refund is made.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/refunds\">https://developer-docs.paga.com/docs/refunds</a></p>\n","urlObject":{"path":["status"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e98c7cb0-75b5-4c4e-985b-d957fbe90321"}],"id":"e9384113-6fec-4e51-8ae4-57ce09455250","description":"<p>Refund a paid payment request in full or in parts, or cancel one that hasn’t been paid.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/refunds\">https://developer-docs.paga.com/docs/refunds</a></p>\n","_postman_id":"e9384113-6fec-4e51-8ae4-57ce09455250"},{"name":"Subsidiary Accounts","item":[{"name":"1. Create an account","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["pm.variables.set(\"newAccountReference\", \"CUST-\" + Date.now());","// Paga request hash: referenceNumber + accountReference + iifiNumber + autoSweep.bankPublicId + autoSweep.destination + autoSweep.accountNumber + callbackUrl + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"accountReference\",\"iifiNumber\",\"autoSweep.bankPublicId\",\"autoSweep.destination\",\"autoSweep.accountNumber\",\"callbackUrl\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"02aa3187-83c9-4c3c-9705-c67e489ec8d5"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}","try { pm.collectionVariables.set(\"subsidiaryAccount\", pm.response.json().accountReference || pm.variables.get(\"newAccountReference\")); } catch (e) {}"],"id":"3cc6685e-4fcb-446f-8def-a8e939d17894"}}],"id":"1c124931-8a66-4bd7-b506-e1ab569cf8b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"accountReference\": \"{{newAccountReference}}\",\n  \"accountName\": \"Bello Ramon\",\n  \"firstName\": \"Bello\",\n  \"lastName\": \"Ramon\",\n  \"phoneNumber\": \"08012345678\",\n  \"email\": \"bello@example.com\",\n  \"iifiNumber\": \"22222132329\",\n  \"fundingTransactionLimit\": 500000,\n  \"fundingDailyLimit\": 2000000,\n  \"status\": \"ACTIVE\",\n  \"callbackUrl\": \"https://yourstore.com/webhooks/paga\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/subsidiary-accounts","description":"<p>Creates a subsidiary account. Leave out <code>autoSweep</code> for a ledger-backed account that holds funds; set <code>autoSweep.destination</code> to <code>VIRTUAL_ACCOUNT</code> or <code>BANK</code> for a virtual account that settles straight away. Reusing a <code>referenceNumber</code> or <code>accountReference</code> returns status code <code>102</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + accountReference + iifiNumber + autoSweep.bankPublicId + autoSweep.destination + autoSweep.accountNumber + callbackUrl + hashKey</code>. Note that <code>bankPublicId</code> comes before <code>destination</code>, the opposite of update.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["subsidiary-accounts"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c124931-8a66-4bd7-b506-e1ab569cf8b9"},{"name":"2. Handle a funding notification","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: transactionReference + transactionDate + amount + accountNumber + timestamp + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"transactionReference\",\"transactionDate\",\"amount\",\"accountNumber\",\"timestamp\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"x-paga-hash-v3\", value: hash });","pm.request.headers.upsert({ key: \"x-paga-hash-v3-parameters\", value: HASH_FIELDS.join(\",\") + \",hashKey\" });"],"id":"5d9821a4-afbd-442c-8243-82c8653b69ff"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"4303446e-ae0b-479b-acef-19bf0cd6f22e"}}],"id":"fbd29725-67cd-4621-a336-334e2263f2ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"statusCode\": \"0\",\n  \"statusMessage\": \"success\",\n  \"transactionReference\": \"MPVAT-P_20260621182337959_1097807834\",\n  \"fundingTransactionReference\": \"DFB-U_20260621182337653_1097807831\",\n  \"fundingPaymentReference\": \"000013203297\",\n  \"accountNumber\": \"0750529406\",\n  \"accountName\": \"Bello Ramon\",\n  \"amount\": 5000,\n  \"clearingFeeAmount\": 37.5,\n  \"payerDetails\": {\n    \"paymentMethod\": \"BANK_TRANSFER\",\n    \"payerName\": \"OKOYE CHIZOBA\",\n    \"payerBankName\": \"GT Bank\",\n    \"payerBankAccountNumber\": \"0697122703\"\n  },\n  \"narration\": \"NIP Transfer to Your business - Bello Ramon\",\n  \"transactionDate\": \"2026-06-21T17:23:37.653\"\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-funding-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent when someone pays into a subsidiary account. The hash is in the <code>x-paga-hash-v3</code> header, not the body. Respond with <code>{\"status\": \"SUCCESS\"}</code>.</p>\n<p><strong>Hash:</strong> the fields named in <code>x-paga-hash-v3-parameters</code>, in order: <code>transactionReference + transactionDate + amount + accountNumber + timestamp + hashKey</code>.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["your-funding-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbd29725-67cd-4621-a336-334e2263f2ff"},{"name":"3. Charge an account","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + currency + narration + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"currency\",\"narration\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"443b5352-bc5b-4911-b3f1-6f0599c6d760"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"7c44436b-1a73-4edb-85bd-1433b11a6bca"}}],"id":"a3ce3a6b-ffce-45e3-a168-342b9f013ec2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": 1000,\n  \"currency\": \"NGN\",\n  \"narration\": \"Service fee\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/subsidiary-accounts/:accountIdentifier/charge","description":"<p>Debits a ledger-backed account. Not available on virtual accounts. Retrying with the same <code>referenceNumber</code> never moves money twice.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + currency + narration + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["subsidiary-accounts",":accountIdentifier","charge"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[{"id":"10a1eaf0-7f98-45ef-8009-2d2fd69110ff","type":"any","value":"CUST-000184-WALLET","key":"accountIdentifier"}]}},"response":[],"_postman_id":"a3ce3a6b-ffce-45e3-a168-342b9f013ec2"},{"name":"4. Top up an account","event":[{"listen":"prerequest","script":{"id":"35a21f2d-0313-4604-bb14-85638c699525","exec":["// Paga request hash: referenceNumber + amount + currency + narration + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"currency\",\"narration\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"7b7459c3-5469-4eaa-a61c-bd0a9f5c879a","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"7cf0a678-053d-4a36-88be-b7a17f7c4204","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": 500,\n  \"currency\": \"NGN\",\n  \"narration\": \"Bonus credit\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/subsidiary-accounts/:accountIdentifier/top-up","description":"<p>Credits a ledger-backed account from your business balance. Not available on virtual accounts.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + currency + narration + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["subsidiary-accounts",":accountIdentifier","top-up"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[{"type":"any","value":"CUST-000184-WALLET","key":"accountIdentifier"}]}},"response":[],"_postman_id":"7cf0a678-053d-4a36-88be-b7a17f7c4204"},{"name":"5. Transfer between accounts","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + sourceAccountIdentifier + destinationAccountIdentifier + amount + currency + narration + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"sourceAccountIdentifier\",\"destinationAccountIdentifier\",\"amount\",\"currency\",\"narration\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"c578c3c7-0b16-433a-96c3-b3ccfb9a3aa4"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"35541015-d589-4208-b8e6-6daa0ef949ee"}}],"id":"a4b53da5-0f02-4846-9022-1f149960522c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"sourceAccountIdentifier\": \"CUST-000184-WALLET\",\n  \"destinationAccountIdentifier\": \"CUST-000221-WALLET\",\n  \"amount\": 1500,\n  \"currency\": \"NGN\",\n  \"narration\": \"Payment for goods\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/subsidiary-accounts/transfer","description":"<p>Moves money between two ledger-backed accounts. Paga sends one callback, for the source account only.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + sourceAccountIdentifier + destinationAccountIdentifier + amount + currency + narration + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["subsidiary-accounts","transfer"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4b53da5-0f02-4846-9022-1f149960522c"},{"name":"6. Handle a charge, top-up or transfer callback","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: externalReferenceNumber + transactionDate + amount + accountNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"externalReferenceNumber\",\"transactionDate\",\"amount\",\"accountNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","body.hash = hash;","pm.request.body.update(JSON.stringify(body, null, 2));"],"id":"564e208f-5b3b-4277-ad21-c1a5c5a03302"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"5956d4d3-877d-4fcc-872f-c1f139bc63fb"}}],"id":"669dcf50-e0fc-42fa-8c4a-e400bddfd15c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"event\": \"SUBSIDIARY_ACCOUNT_CHARGE_COMPLETE\",\n  \"notificationId\": \"913ee825-a17d-477c-8231-07dfb95442bb\",\n  \"statusCode\": \"0\",\n  \"statusMessage\": \"SUCCESS\",\n  \"externalReferenceNumber\": \"REF-CHARGE-001\",\n  \"transactionType\": \"DEBIT\",\n  \"transactionDate\": \"2026-11-03 22:13:53.977\",\n  \"accountReference\": \"CUST-000184-WALLET\",\n  \"totalDebitAmount\": 25,\n  \"fee\": 0,\n  \"amount\": \"25.00\",\n  \"accountNumber\": \"0750529406\",\n  \"hash\": \"148b4f94…\",\n  \"timestamp\": \"2026-11-03T21:13:54.081104984\"\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-account-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent when a charge (<code>SUBSIDIARY_ACCOUNT_CHARGE_COMPLETE</code>), top-up (<code>SUBSIDIARY_ACCOUNT_TOP_UP_COMPLETE</code>) or transfer (<code>SUBSIDIARY_ACCOUNT_TRANSFER_COMPLETE</code>, source account only) completes.</p>\n<p><strong>Hash:</strong> <code>externalReferenceNumber + transactionDate + amount + accountNumber + hashKey</code>. <code>amount</code> is a formatted string with commas, such as <code>1,000.00</code>; don’t convert it to a number.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["your-account-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"669dcf50-e0fc-42fa-8c4a-e400bddfd15c"},{"name":"7. Retrieve an account","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + accountIdentifier + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"accountIdentifier\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"84cf4873-f6ce-48a9-9aa6-8052ac09e2af"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"dfce18a0-aede-46a3-a4f3-6a05fe990b61"}}],"id":"5c74e8a5-46e7-4afa-bb1f-42d3819dda82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"url":"{{collectBaseUrl}}/subsidiary-accounts/:accountIdentifier?referenceNumber={{ref}}","description":"<p>Returns an account’s details, limits, callback URL and balance.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + accountIdentifier + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["subsidiary-accounts",":accountIdentifier"],"host":["{{collectBaseUrl}}"],"query":[{"key":"referenceNumber","value":"{{ref}}"}],"variable":[{"id":"7459c7ac-0359-4197-a29e-1562da507310","type":"any","value":"CUST-000184-WALLET","key":"accountIdentifier"}]}},"response":[],"_postman_id":"5c74e8a5-46e7-4afa-bb1f-42d3819dda82"},{"name":"8. Update an account","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + accountIdentifier + iifiNumber + autoSweep.destination + autoSweep.bankPublicId + autoSweep.accountNumber + callbackUrl + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"accountIdentifier\",\"iifiNumber\",\"autoSweep.destination\",\"autoSweep.bankPublicId\",\"autoSweep.accountNumber\",\"callbackUrl\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"613feddb-e6ef-4a63-a3de-d1f9b8c8ecfb"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"90df29e4-fa56-4388-abc5-7fd274603805"}}],"id":"ebd64311-7b3e-421f-af49-a8a69ff19bdd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"accountName\": \"St Jones School\",\n  \"status\": \"DISABLED\"\n}","options":{"raw":{"language":"json"}}},"url":"{{collectBaseUrl}}/subsidiary-accounts/:accountIdentifier","description":"<p>Changes an account. Send only what you want to change. <code>accountNumber</code> and <code>accountReference</code> can’t be changed.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + accountIdentifier + iifiNumber + autoSweep.destination + autoSweep.bankPublicId + autoSweep.accountNumber + callbackUrl + hashKey</code>. Note that <code>destination</code> comes before <code>bankPublicId</code>, the opposite of create.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["subsidiary-accounts",":accountIdentifier"],"host":["{{collectBaseUrl}}"],"query":[],"variable":[{"id":"9f1165c3-4eda-49e2-b3b3-44137f299ae0","type":"any","value":"CUST-000184-WALLET","key":"accountIdentifier"}]}},"response":[],"_postman_id":"ebd64311-7b3e-421f-af49-a8a69ff19bdd"},{"name":"9. Get the balance","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + accountIdentifier + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"accountIdentifier\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"6d7b0564-bd68-497d-a107-506f68ca519f"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"bfe7be70-479d-463a-9dc8-a5eaccb76c61"}}],"id":"7aedcac9-aaf5-4898-ac64-228a32f7ea94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"url":"{{collectBaseUrl}}/subsidiary-accounts/:accountIdentifier/balance?referenceNumber={{ref}}","description":"<p>Returns an account’s balance.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + accountIdentifier + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["subsidiary-accounts",":accountIdentifier","balance"],"host":["{{collectBaseUrl}}"],"query":[{"key":"referenceNumber","value":"{{ref}}"}],"variable":[{"id":"bf9f0585-65a1-4b72-bfe2-bfdd1215dc7a","type":"any","value":"CUST-000184-WALLET","key":"accountIdentifier"}]}},"response":[],"_postman_id":"7aedcac9-aaf5-4898-ac64-228a32f7ea94"},{"name":"10. Get transaction history","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: accountIdentifier + startDateTimeUTC + endDateTimeUTC + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"accountIdentifier\",\"startDateTimeUTC\",\"endDateTimeUTC\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"ab8af656-a6dc-4f5c-9d7a-16e2c4f4d487"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"68a23c05-93a6-4b34-b464-8b48b6a121dd"}}],"id":"1496bc5d-d5cf-4dc5-8d2e-46b14b24d399","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{publicKey}}"},{"key":"password","value":"{{secretKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"url":"{{collectBaseUrl}}/subsidiary-accounts/:accountIdentifier/history?referenceNumber={{ref}}&startDateTimeUTC=2026-06-01T00:00:00&endDateTimeUTC=2026-06-30T23:59:59&pageSize=20&pageNumber=0","description":"<p>Returns an account’s transactions, up to 3 months at a time. Pages start at 0. <code>referenceNumber</code> is required, but isn’t part of this hash.</p>\n<p><strong>Hash:</strong> <code>accountIdentifier + startDateTimeUTC + endDateTimeUTC + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","urlObject":{"path":["subsidiary-accounts",":accountIdentifier","history"],"host":["{{collectBaseUrl}}"],"query":[{"key":"referenceNumber","value":"{{ref}}"},{"key":"startDateTimeUTC","value":"2026-06-01T00:00:00"},{"key":"endDateTimeUTC","value":"2026-06-30T23:59:59"},{"key":"pageSize","value":"20"},{"key":"pageNumber","value":"0"}],"variable":[{"id":"0daa2a05-d8d3-4712-b14e-7029abbf5955","type":"any","value":"CUST-000184-WALLET","key":"accountIdentifier"}]}},"response":[],"_postman_id":"1496bc5d-d5cf-4dc5-8d2e-46b14b24d399"}],"id":"0d43a69f-7d79-43d9-8e90-954f430c2ac3","description":"<p>Give each customer a permanent Paga account number that holds funds or settles straight to you.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/subsidiary-accounts\">https://developer-docs.paga.com/docs/subsidiary-accounts</a></p>\n","_postman_id":"0d43a69f-7d79-43d9-8e90-954f430c2ac3"},{"name":"Your business account","item":[{"name":"1. Check your balance","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"90496ef0-f636-4472-b5f7-f15402c9df2c"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"bcbc142c-7ea0-4469-b601-1a661e5b674d"}}],"id":"f25fb5d0-54e4-40ae-aec8-82102ad32dc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/accountBalance","description":"<p>Returns your business account balance. Check <code>availableBalance</code>, not <code>totalBalance</code>, before a payout run: it’s what you can actually send.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/your-business-account\">https://developer-docs.paga.com/docs/your-business-account</a></p>\n","urlObject":{"path":["accountBalance"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f25fb5d0-54e4-40ae-aec8-82102ad32dc8"},{"name":"2. Get your transaction history","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"1e6d2b29-4b19-45f3-9162-d0cb4b76afce"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"bafb5de9-a24d-4152-abac-141ecefcf4d6"}}],"id":"41c8d0e0-5d9c-4281-aede-3d777b8395a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"startDateUTC\": \"2026-11-01T00:00:00\",\n  \"endDateUTC\": \"2026-11-04T00:00:00\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/transactionHistory","description":"<p>Returns every transaction on your business account between two dates: money in, money out and fees, up to 10,000 at a time. Use it to reconcile your records with Paga’s.</p>\n<p>Prefer a file? Download your transaction history as CSV or PDF from the business portal, with no code needed: go to <strong>Transaction history</strong> and select <strong>Export</strong>, or open <strong>Account statement</strong>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/your-business-account\">https://developer-docs.paga.com/docs/your-business-account</a></p>\n","urlObject":{"path":["transactionHistory"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"41c8d0e0-5d9c-4281-aede-3d777b8395a8"},{"name":"3. Get your recent transactions","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"70634ada-1911-40fe-84aa-0408fef56bcc"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"aedbdd2f-35c6-4a7e-b07d-e32d7b9b7414"}}],"id":"43c72b2f-ad71-4b60-a890-adb7255ad2d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"locale\": \"en\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/recentTransactionHistory","description":"<p>Returns the last 5 transactions on your business account, newest first, without a date range. For anything further back, use transaction history.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/your-business-account\">https://developer-docs.paga.com/docs/your-business-account</a></p>\n","urlObject":{"path":["recentTransactionHistory"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"43c72b2f-ad71-4b60-a890-adb7255ad2d0"}],"id":"0419ab87-fb29-48d0-96fa-48883135d415","description":"<p>Check the balance and transaction history of your Paga business account, where every payment you collect arrives and every payout is paid from. Your transaction history can also be downloaded as CSV or PDF from the business portal, under Transaction history → Export, or Account statement.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/your-business-account\">https://developer-docs.paga.com/docs/your-business-account</a></p>\n","_postman_id":"0419ab87-fb29-48d0-96fa-48883135d415"},{"name":"Money transfer","item":[{"name":"1. Get the bank’s UUID","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"868edaf9-926f-41de-860d-32204e23045b"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"b7e57b31-4a6e-4e0b-b583-e4826dca7434"}}],"id":"624e1b50-c7ed-4a94-a97b-94cc6d2cec6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/getBanks","description":"<p>Lists every institution you can pay, with its UUID. UUIDs never change, but new institutions are added every month, so cache the list and refresh it weekly or monthly.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/money-transfer-payout\">https://developer-docs.paga.com/docs/money-transfer-payout</a></p>\n","urlObject":{"path":["getBanks"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"624e1b50-c7ed-4a94-a97b-94cc6d2cec6f"},{"name":"2. Validate the account","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + destinationBankUUID + destinationBankAccountNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"destinationBankUUID\",\"destinationBankAccountNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"e8ce6b8c-3f87-43c3-8254-476e4d287651"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"dcc4e918-0a49-43ec-809e-3df723aa9827"}}],"id":"8acc8d36-ab2d-41fe-8e5a-52dfa322d7c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": \"5000.00\",\n  \"currency\": \"NGN\",\n  \"destinationBankUUID\": \"40090E2F-7446-4217-9345-7BBAB7043C4C\",\n  \"destinationBankAccountNumber\": \"0000000000\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/validateDepositToBank","description":"<p>Confirms the account exists and returns the account holder’s name and the fee, before you send money.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + destinationBankUUID + destinationBankAccountNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/money-transfer-payout\">https://developer-docs.paga.com/docs/money-transfer-payout</a></p>\n","urlObject":{"path":["validateDepositToBank"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8acc8d36-ab2d-41fe-8e5a-52dfa322d7c1"},{"name":"3. Send the money","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + destinationBankUUID + destinationBankAccountNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"destinationBankUUID\",\"destinationBankAccountNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"608a4b06-85d3-4cd9-8d69-5e6a49b912c4"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"022f699e-64c5-4e3a-88e2-99d90f8022f7"}}],"id":"cc2d9e7a-e4a7-4246-983c-95b54cd130aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": \"5000.00\",\n  \"currency\": \"NGN\",\n  \"destinationBankUUID\": \"40090E2F-7446-4217-9345-7BBAB7043C4C\",\n  \"destinationBankAccountNumber\": \"0000000000\",\n  \"remarks\": \"Salary for June\",\n  \"statusCallbackUrl\": \"https://yourstore.com/webhooks/paga-payouts\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/depositToBank","description":"<p>Sends money from your business balance to a bank account, or to a Paga wallet using Paga’s UUID <code>AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + destinationBankUUID + destinationBankAccountNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/money-transfer-payout\">https://developer-docs.paga.com/docs/money-transfer-payout</a></p>\n","urlObject":{"path":["depositToBank"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc2d9e7a-e4a7-4246-983c-95b54cd130aa"},{"name":"4. Handle the notification","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + transactionDate + transactionId + amount + sessionId + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"transactionDate\",\"transactionId\",\"amount\",\"sessionId\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"x-paga-hash\", value: hash });","pm.request.headers.upsert({ key: \"x-paga-hash-parameters\", value: HASH_FIELDS.join(\",\") + \",hashKey\" });"],"id":"b1f90811-2695-4db9-bd0c-604d9b16ffea"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));"],"id":"a3b91d3e-e8d0-49cb-ab17-82fff1b1e26b"}}],"id":"ca3acd0b-3202-4677-bd37-2985c0c8df9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"responseCode\": 0,\n  \"message\": \"Successfully deposited N5,000.00 to bank account ******8830. Transaction Id: RP658.\",\n  \"referenceNumber\": \"PAY-2026-0311\",\n  \"transactionId\": \"RP658\",\n  \"transactionReference\": \"SCBS-U_20261103110225559_989465645_RP658_bfrgw\",\n  \"transactionType\": \"USER_SEND_CASH_TO_BANK_ACCOUNT_SETTLED\",\n  \"transactionDate\": \"2026-11-03 11:02:25.56\",\n  \"amount\": \"5000.0\",\n  \"currency\": \"NGN\",\n  \"fee\": 53.75,\n  \"vat\": 3.75,\n  \"sessionId\": \"100002261103110226001406467019\",\n  \"destinationAccountHolderNameAtBank\": \"Test Customer\",\n  \"reversalId\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://yourstore.com/your-status-callback-url","description":"<p><strong>Sends a signed test callback to your own server</strong>, as Paga would. Set <code>yourServerBaseUrl</code> in the collection’s Variables tab, then send it to check your callback handling.</p>\n<p><strong>Paga sends this to your server.</strong> You don’t call it; build an endpoint at your callback URL that accepts it.</p>\n<p>Sent to your <code>statusCallbackUrl</code> once a transfer is processed. Verify the <code>x-paga-hash</code> header, decide on <code>responseCode</code>, then respond with HTTP 200 and <code>{\"status\": \"SUCCESS\"}</code>. Until Paga gets that, it retries, each time with a new <code>x-paga-attempt-id</code>; de-duplicate on <code>referenceNumber</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + transactionDate + transactionId + amount + sessionId + hashKey</code>, using each value exactly as received.</p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/money-transfer-payout\">https://developer-docs.paga.com/docs/money-transfer-payout</a></p>\n","urlObject":{"path":["your-status-callback-url"],"host":["https://yourstore.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca3acd0b-3202-4677-bd37-2985c0c8df9c"},{"name":"5. Check the transaction status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"e6619d13-2ef7-48d1-9f48-445b62c4397a"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"61f65d31-7e32-4800-93e2-825a6dad5701"}}],"id":"ae594c7d-f0ab-4559-9b45-dd9db7134b9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\",\n  \"locale\": \"en\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/transactionStatus","description":"<p>Checks a transaction from the last 48 hours. Decide on <code>responseCode</code>, not <code>status</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/money-transfer-payout\">https://developer-docs.paga.com/docs/money-transfer-payout</a></p>\n","urlObject":{"path":["transactionStatus"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae594c7d-f0ab-4559-9b45-dd9db7134b9f"}],"id":"0291c889-6ed7-4018-8954-4df46dd4106f","description":"<p>Send money from your business balance to 570+ banks and financial institutions in Nigeria, or to a Paga wallet.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/money-transfer-payout\">https://developer-docs.paga.com/docs/money-transfer-payout</a></p>\n","_postman_id":"0291c889-6ed7-4018-8954-4df46dd4106f"},{"name":"Airtime and data","item":[{"name":"1. Get the mobile operator","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"dd47b7d7-f8a7-4183-a687-cde379cd5d16"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"57016191-bd15-4fdb-b9e3-9be621c18ec3"}}],"id":"aad9efdc-e482-45ea-8dad-9ffd38f48709","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"locale\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/getMobileOperators","description":"<p>Lists the networks you can top up. Send a network’s <code>mobileOperatorCode</code> as <code>mobileOperatorPublicId</code> when you buy, and as <code>operatorPublicId</code> when you list data bundles. Cache the list.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/airtime-and-data-purchase\">https://developer-docs.paga.com/docs/airtime-and-data-purchase</a></p>\n","urlObject":{"path":["getMobileOperators"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aad9efdc-e482-45ea-8dad-9ffd38f48709"},{"name":"2. For data, pick a bundle","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + operatorPublicId + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"operatorPublicId\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"d52233c9-d78b-4778-9ddb-ea5602a1a96d"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"d5a7da4c-9430-4fa7-bf70-46cbafac7e0a"}}],"id":"9f339143-a61d-4fcd-8809-aa21f8778f74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"operatorPublicId\": \"42419156-DD57-4737-8373-20678CD9AA29\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/getDataBundleByOperator","description":"<p>Lists a network’s data bundles. Send a bundle’s <code>serviceId</code> as <code>mobileOperatorServiceId</code>, and exactly its <code>servicePrice</code> as <code>amount</code>. Bundles rarely change, so cache the list and refresh it monthly.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + operatorPublicId + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/airtime-and-data-purchase\">https://developer-docs.paga.com/docs/airtime-and-data-purchase</a></p>\n","urlObject":{"path":["getDataBundleByOperator"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f339143-a61d-4fcd-8809-aa21f8778f74"},{"name":"3. Buy the airtime or data","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + destinationPhoneNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"destinationPhoneNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"98fe55df-d7ac-4f22-a2cc-3000a94011aa"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"de4513cf-5e27-4449-abd3-0ad6f3a028ab"}}],"id":"82aa7007-5536-42cb-af36-a3813b826c14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": \"500\",\n  \"currency\": \"NGN\",\n  \"destinationPhoneNumber\": \"08063332187\",\n  \"mobileOperatorPublicId\": \"42419156-DD57-4737-8373-20678CD9AA29\",\n  \"isDataBundle\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/airtimePurchase","description":"<p>Tops up a phone with airtime or data from your business balance. There’s no callback: decide on <code>responseCode</code>, and check the transaction status if you need to.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + destinationPhoneNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/airtime-and-data-purchase\">https://developer-docs.paga.com/docs/airtime-and-data-purchase</a></p>\n","urlObject":{"path":["airtimePurchase"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"82aa7007-5536-42cb-af36-a3813b826c14"},{"name":"4. Check the transaction status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"e19ebb4c-bdc6-431e-8830-401e47f40786"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"cad8090c-72af-4a4e-a9d8-6fd817c03967"}}],"id":"c15a4d66-de3a-4f57-83c5-a7e49c0d72ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/transactionStatus","description":"<p>Checks a transaction from the last 48 hours. Decide on <code>responseCode</code>, not <code>status</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/airtime-and-data-purchase\">https://developer-docs.paga.com/docs/airtime-and-data-purchase</a></p>\n","urlObject":{"path":["transactionStatus"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c15a4d66-de3a-4f57-83c5-a7e49c0d72ad"}],"id":"f8404255-f639-4da1-9f2b-c5b9a9e59f8e","description":"<p>Top up any of Nigeria’s 190 million+ phone numbers on MTN, Airtel, Glo and 9mobile with airtime or data.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/airtime-and-data-purchase\">https://developer-docs.paga.com/docs/airtime-and-data-purchase</a></p>\n","_postman_id":"f8404255-f639-4da1-9f2b-c5b9a9e59f8e"},{"name":"Bill payment","item":[{"name":"1. Find the biller","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"f5e500af-0e24-4862-86bd-7bda17cd5dc8"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"08d6cca5-3faf-4fde-a6d0-a218ed91dcf8"}}],"id":"a4be5542-a797-484d-8300-d63ee1df8c35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/getMerchants","description":"<p>Lists every biller, with the <code>uuid</code> you pay. Cache the list.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/bill-payment\">https://developer-docs.paga.com/docs/bill-payment</a></p>\n","urlObject":{"path":["getMerchants"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4be5542-a797-484d-8300-d63ee1df8c35"},{"name":"2. Pick the service","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + merchantPublicId + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"merchantPublicId\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"36de4edb-be0e-4890-94a4-bfebaaad4337"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"03fb05f9-22bc-4086-b292-71f9be1a757b"}}],"id":"acb25ace-bcba-4ff6-a67e-b7c15bdaab06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"merchantPublicId\": \"A3878DC1-F07D-48E7-AA59-8276C3C26647\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/getMerchantServices","description":"<p>Lists what a biller can be paid for. No services means any amount; services with <code>price</code> <code>0.0</code> mean the customer chooses the amount; otherwise pay the service’s price.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + merchantPublicId + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/bill-payment\">https://developer-docs.paga.com/docs/bill-payment</a></p>\n","urlObject":{"path":["getMerchantServices"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"acb25ace-bcba-4ff6-a67e-b7c15bdaab06"},{"name":"3. Validate the customer","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + merchantAccount + merchantReferenceNumber + merchantServiceProductCode + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"merchantAccount\",\"merchantReferenceNumber\",\"merchantServiceProductCode\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"e10f7364-8837-4b0c-a3c0-82f291746749"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"d5669622-9fdd-4f89-bd60-da113001e5d8"}}],"id":"9bac6c6d-2ad5-4855-9605-e35b4754e33b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"merchantAccount\": \"A3878DC1-F07D-48E7-AA59-8276C3C26647\",\n  \"merchantReferenceNumber\": \"8110411076\",\n  \"merchantServiceProductCode\": \"STARTERE36\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/getMerchantAccountDetails","description":"<p>Checks a meter, smart card or account number and returns the customer’s name. If your customer chose a service, always send its <code>code</code> as <code>merchantServiceProductCode</code>; billers that don’t need it ignore it. Use an empty string in the hash otherwise.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + merchantAccount + merchantReferenceNumber + merchantServiceProductCode + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/bill-payment\">https://developer-docs.paga.com/docs/bill-payment</a></p>\n","urlObject":{"path":["getMerchantAccountDetails"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9bac6c6d-2ad5-4855-9605-e35b4754e33b"},{"name":"4. Pay the bill","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + amount + merchantAccount + merchantReferenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\",\"amount\",\"merchantAccount\",\"merchantReferenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"88472f0c-d3ed-4690-8365-02ad79a9d3c3"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"e53508ea-c44e-450c-9103-667f5a22bee5"}}],"id":"c3f9b5ed-90fa-4d4e-a7bf-c79c13b25ae9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"{{ref}}\",\n  \"amount\": 6000,\n  \"currency\": \"NGN\",\n  \"merchantAccount\": \"A3878DC1-F07D-48E7-AA59-8276C3C26647\",\n  \"merchantReferenceNumber\": \"8110411076\",\n  \"merchantService\": [\n    \"STARTERE36\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/merchantPayment","description":"<p>Pays a bill from your business balance. There’s no callback: decide on <code>responseCode</code>. <code>integrationStatus</code> is for information only.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + amount + merchantAccount + merchantReferenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/bill-payment\">https://developer-docs.paga.com/docs/bill-payment</a></p>\n","urlObject":{"path":["merchantPayment"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3f9b5ed-90fa-4d4e-a7bf-c79c13b25ae9"},{"name":"5. Check the transaction status","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Paga request hash: referenceNumber + hashKey","// Generated from the API reference. Reads the values actually being sent.","const HASH_FIELDS = [\"referenceNumber\"];","const raw = pm.request.body && pm.request.body.raw ? pm.variables.replaceIn(pm.request.body.raw) : \"\";","const body = raw ? JSON.parse(raw) : {};","const params = {};","pm.request.url.query.each((q) => { params[q.key] = pm.variables.replaceIn(q.value); });","pm.request.url.variables.each((v) => { params[v.key] = pm.variables.replaceIn(v.value); });","const valueOf = (field) => params[field] !== undefined ? params[field] : field.split(\".\").reduce((node, key) => (node == null ? undefined : node[key]), body);","const hashKey = pm.variables.get(\"hashKey\");","const text = HASH_FIELDS.map((f) => { const v = valueOf(f); return v == null ? \"\" : String(v); }).join(\"\") + hashKey;","const hash = CryptoJS.SHA512(text).toString(CryptoJS.enc.Hex);","pm.request.headers.upsert({ key: \"hash\", value: hash });"],"id":"09bc0182-e028-4316-9993-d8c965b59426"}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));","// Remember this step's reference, so the next status check can use it.","try { const sent = JSON.parse(pm.variables.replaceIn(pm.request.body.raw || \"{}\")); if (sent.referenceNumber && !String(pm.request.body.raw).includes(\"lastReference\")) pm.collectionVariables.set(\"lastReference\", sent.referenceNumber); } catch (e) {}"],"id":"b8ef88e2-b902-4b56-bb1b-bb0cae62f47f"}}],"id":"5fd17e2c-eb96-4b29-a93e-15a5f908c598","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"principal","value":"{{publicKey}}"},{"key":"credentials","value":"{{secretKey}}"}],"body":{"mode":"raw","raw":"{\n  \"referenceNumber\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{businessBaseUrl}}/transactionStatus","description":"<p>Checks a transaction from the last 48 hours. Decide on <code>responseCode</code>, not <code>status</code>.</p>\n<p><strong>Hash:</strong> <code>referenceNumber + hashKey</code></p>\n<p>API reference: <a href=\"https://developer-docs.paga.com/reference\">https://developer-docs.paga.com/reference</a> · Guide: <a href=\"https://developer-docs.paga.com/docs/bill-payment\">https://developer-docs.paga.com/docs/bill-payment</a></p>\n","urlObject":{"path":["transactionStatus"],"host":["{{businessBaseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5fd17e2c-eb96-4b29-a93e-15a5f908c598"}],"id":"bcaef106-3336-40db-9ad7-2f9f3fe97c40","description":"<p>Pay 100+ billers across every essential service in Nigeria, from electricity and TV to internet and exams.</p>\n<p>Guide: <a href=\"https://developer-docs.paga.com/docs/bill-payment\">https://developer-docs.paga.com/docs/bill-payment</a></p>\n","_postman_id":"bcaef106-3336-40db-9ad7-2f9f3fe97c40"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// One collection for Sandbox and Live. Set `mode` in the collection's Variables tab.","const SERVERS = {","  sandbox: { collectBaseUrl: \"https://beta-collect.paga.com\", usdBaseUrl: \"https://qa1-collect.paga.com\", checkoutBaseUrl: \"https://beta-checkout.paga.com\", businessBaseUrl: \"https://beta.mypaga.com/paga-webservices/business-rest/secured\" },","  live: { collectBaseUrl: \"https://collect.paga.com\", usdBaseUrl: \"https://collect.paga.com\", checkoutBaseUrl: \"https://checkout.paga.com\", businessBaseUrl: \"https://www.mypaga.com/paga-webservices/business-rest/secured\" },","};","const ALIASES = { sandbox: \"sandbox\", test: \"sandbox\", testing: \"sandbox\", beta: \"sandbox\", live: \"live\", production: \"live\", prod: \"live\" };","const typed = String(pm.collectionVariables.get(\"mode\") || \"sandbox\").trim().toLowerCase();","const mode = ALIASES[typed];","if (!mode) throw new Error(\"`mode` is “\" + typed + \"”. Set it to sandbox (or test) for testing, or live (or production) for real payments.\");","for (const [key, url] of Object.entries(SERVERS[mode])) pm.variables.set(key, url);","","// Use the keys for the chosen mode, so Sandbox and Live keys are never mixed up.","for (const name of [\"publicKey\", \"secretKey\", \"hashKey\"]) {","  const value = pm.collectionVariables.get(mode + name.charAt(0).toUpperCase() + name.slice(1));","  if (!value) throw new Error(\"Set \" + mode + name.charAt(0).toUpperCase() + name.slice(1) + \" in the collection’s Variables tab (Current value).\");","  pm.variables.set(name, value);","}","if (mode === \"live\") console.warn(\"Paga Engine · LIVE: real money will move.\"); else console.log(\"Paga Engine · Sandbox\");","","// A fresh, unique reference for every request, so repeat runs never clash.","pm.variables.set(\"ref\", \"PG-\" + Date.now() + \"-\" + Math.floor(Math.random() * 1e6));"],"id":"ad2e6220-3406-431f-bf94-e4a1970b4e5c"}}],"variable":[{"key":"mode","value":"sandbox","description":"Where every request goes. Type sandbox (or test) to test with no real money, or live (or production) for real payments. Capitals don’t matter. Anything else stops the request."},{"key":"sandboxPublicKey","value":"","description":"Your Sandbox public key. Log in to the Sandbox business portal (https://beta-business.paga.com) and open your API keys. See https://developer-docs.paga.com/docs/introduction. Enter it in Current value."},{"key":"sandboxSecretKey","value":"","description":"Your Sandbox secret key, also called the password. Same place as the public key, in the Sandbox business portal. Enter it in Current value only."},{"key":"sandboxHashKey","value":"","description":"Your Sandbox hash key, sometimes labelled HMAC. Same place, in the Sandbox business portal. Used to sign every request. Enter it in Current value only."},{"key":"livePublicKey","value":"","description":"Your Live public key. Log in to the Live business portal (https://business.paga.com) and open your API keys. Live keys work once your business is approved. Enter it in Current value."},{"key":"liveSecretKey","value":"","description":"Your Live secret key. Same place, in the Live business portal. Enter it in Current value only, and never in a shared workspace."},{"key":"liveHashKey","value":"","description":"Your Live hash key, sometimes labelled HMAC. Same place, in the Live business portal. Enter it in Current value only, and never in a shared workspace."},{"key":"yourServerBaseUrl","value":"https://yourstore.com","description":"Optional. Your server’s address, such as https://api.yourcompany.com. Only used by the “Handle the …” requests, which send signed test callbacks to your server."},{"key":"lastReference","value":"","description":"Filled in automatically. Holds the referenceNumber of the last request you sent, so status checks look it up. To check an older transaction, paste its reference here."},{"key":"lastPaymentRequestReference","value":"","description":"Filled in automatically by “Create a payment request”. Used by Refunds, which need the original payment request’s reference."},{"key":"subsidiaryAccount","value":"CUST-000184-WALLET","description":"Filled in automatically by “Create an account” with your new account’s accountReference, and used by every later Subsidiary Accounts step. The starting value is only an example."}]}