{"info":{"name":"Hubtel v1 (sandbox)","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","description":"Generated from the Hubtel OpenAPI specs. Uses the Hubtel Sandbox environment."},"item":[{"name":"Verification","item":[{"name":"Look up a phone number's registered name","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/3e0841e70afc42fb97d13d19abd36384?destination=233501431586","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","3e0841e70afc42fb97d13d19abd36384"],"query":[{"key":"destination","value":"233501431586"}]},"description":"Returns the name a Ghanaian phone number is registered to, through the commission services host. Use the returned name to confirm the recipient before submitting a top-up."}},{"name":"Look up a wallet's registered name","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/rnv/v2/merchantaccount/merchants/{:collection_account}/mobilemoney/verify?channel=vodafone-gh&customerMsisdn=0501431586","host":["{{sandbox_url}}"],"path":["v1","rnv","v2","merchantaccount","merchants","{:collection_account}","mobilemoney","verify"],"query":[{"key":"channel","value":"vodafone-gh"},{"key":"customerMsisdn","value":"0501431586"}]},"description":"Returns whether a number is a registered mobile money wallet and the name it is registered to. Use it to confirm a recipient before a payout, or to reduce payment prompts to wrong numbers."}},{"name":"Validate a Ghana Card","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/rnv/v2/merchantaccount/merchants/{:collection_account}/ghanacard/verify","host":["{{sandbox_url}}"],"path":["v1","rnv","v2","merchantaccount","merchants","{:collection_account}","ghanacard","verify"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"ghanaCardNumber\": \"GHA-000000000-0\",\n  \"surname\": \"Doe\",\n  \"firstnames\": \"John\",\n  \"gender\": \"male\",\n  \"dateOfBirth\": \"dd/mm/yyyy\"\n}"},"description":"Checks a Ghana Card number with the National Identification Authority and returns the holder's details when it matches. Use it to onboard customers for regulated products such as loans."}},{"name":"Validate a Voter ID","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/rnv/v2/merchantaccount/merchants/{:collection_account}/voteridcard/verify","host":["{{sandbox_url}}"],"path":["v1","rnv","v2","merchantaccount","merchants","{:collection_account}","voteridcard","verify"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"voterIdCardNumber\": \"0000000000\",\n  \"surname\": \"Doe\",\n  \"othernames\": \"John\",\n  \"sex\": \"male\",\n  \"dateOfBirth\": \"yyyy/mm/dd\"\n}"},"description":"Checks a Voter ID card number and returns the holder's details when it matches. Use it when your verification process requires Voter ID details."}},{"name":"Verify an ID with customer consent","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/rnv/v2/merchantaccount/merchants/{:collection_account}/idcard/verify?idtype=ghanacard&idnumber=233XXXXXXXXX&network=MTN&consentType=ussd","host":["{{sandbox_url}}"],"path":["v1","rnv","v2","merchantaccount","merchants","{:collection_account}","idcard","verify"],"query":[{"key":"idtype","value":"ghanacard"},{"key":"idnumber","value":"233XXXXXXXXX"},{"key":"network","value":"MTN"},{"key":"consentType","value":"ussd"}]},"description":"Verifies a Ghana Card or Voter ID through the mobile network (MTN) with the customer's consent by USSD. The customer approves sharing their details on their phone before the result is returned."}},{"name":"Look up a bank account name","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/rnv/v2/merchantaccount/merchants/{:collection_account}/bank/verify/:bankCode/:accountNumber2","host":["{{sandbox_url}}"],"path":["v1","rnv","v2","merchantaccount","merchants","{:collection_account}","bank","verify",":bankCode",":accountNumber2"],"query":[]},"description":"Returns the account holder's name for a bank code and account number. Compare it with the name your customer gave you before paying out."}}]},{"name":"Refunds","item":[{"name":"Refund a payment","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/refund-api/refund/{:collection_account}/order/:transactionId","host":["{{sandbox_url}}"],"path":["v1","refund-api","refund","{:collection_account}","order",":transactionId"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"callbackUrl\": \"https://webhook.site/b503d1a9-e726-f315254a6ede\"\n}"},"description":"Refunds a completed mobile money payment in full, within 45 days. The refund is processed asynchronously and the result is POSTed to `callbackUrl`."}}]},{"name":"Balance & Transfers","item":[{"name":"Get your collection balance","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/trnf/api/inter-transfers/{:collection_account}","host":["{{sandbox_url}}"],"path":["v1","trnf","api","inter-transfers","{:collection_account}"],"query":[]},"description":"Returns the available balance of your collection (POS sales) account, which holds customer payments before settlement or transfer to your disbursement account."}},{"name":"Move money between your accounts","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/trnf/api/inter-transfers/{:collection_account}","host":["{{sandbox_url}}"],"path":["v1","trnf","api","inter-transfers","{:collection_account}"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Description\": \"Hubtel Transfer Test\",\n  \"Amount\": 0.8,\n  \"ClientReference\": \"bd0io3202ef49\",\n  \"DestinationAccountNumber\": \"11691\",\n  \"PrimaryCallbackUrl\": \"https://webhook.site/b513d1a9-e7826-a6ede\"\n}"},"description":"Transfers funds from your collection account to your disbursement account so you can pay out. The result arrives at your callback URL. If the callback does not arrive, use **Get a transfer's status**."}},{"name":"Get your disbursement balance","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/trnf/api/inter-transfers/prepaid/{:collection_account}","host":["{{sandbox_url}}"],"path":["v1","trnf","api","inter-transfers","prepaid","{:collection_account}"],"query":[]},"description":"Returns the available balance of your disbursement (prepaid) account, which funds payouts."}},{"name":"Get a transfer's status","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/trnf/api/inter-transfers/status/{:collection_account}?clientReference=76576343905406557","host":["{{sandbox_url}}"],"path":["v1","trnf","api","inter-transfers","status","{:collection_account}"],"query":[{"key":"clientReference","value":"76576343905406557"}]},"description":"Returns the status of a balance transfer by `clientReference`. Use it when a transfer callback hasn't arrived, before retrying with a new reference."}}]},{"name":"SMS","item":[{"name":"Send an SMS with a GET request","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/sms/v1/messages/send?clientsecret=sgrorne&clientid=qoohqvcp&from=Abrantie&to=233546335113&content=GoTesting","host":["{{sandbox_url}}"],"path":["v1","sms","v1","messages","send"],"query":[{"key":"clientsecret","value":"sgrorne"},{"key":"clientid","value":"qoohqvcp"},{"key":"from","value":"Abrantie"},{"key":"to","value":"233546335113"},{"key":"content","value":"GoTesting"}]},"description":"Sends one SMS with credentials and content in the query string. Prefer **Send an SMS** (POST): query strings may be recorded in server logs and expose your client secret."}},{"name":"Send an SMS","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/sms/v1/messages/send","host":["{{sandbox_url}}"],"path":["v1","sms","v1","messages","send"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"From\": \"AbrantieLai\",\n  \"To\": \"233546335113\",\n  \"Content\": \"This is a test. Kindly ignore.\"\n}"},"description":"Sends one SMS from an approved sender ID. The response includes a `messageId`; delivery is reported to your callback and via **Get a message**. Sender IDs are approved per business; in test mode any sender ID works."}},{"name":"Send the same SMS to many recipients","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/sms/v1/messages/batch/simple/send","host":["{{sandbox_url}}"],"path":["v1","sms","v1","messages","batch","simple","send"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"From\": \"AbrantieLai\",\n  \"Recipients\": [\n    \"233546335113\",\n    \"233501431586\"\n  ],\n  \"Content\": \"Welcome to the first ever bulk SMS via API in Ghana\"\n}"},"description":"Sends one message to a list of recipients and returns a `batchId` plus a `messageId` per recipient."}},{"name":"Send a different SMS to each recipient","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/sms/v1/messages/batch/personalized/send","host":["{{sandbox_url}}"],"path":["v1","sms","v1","messages","batch","personalized","send"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"From\": \"AbrantieCo\",\n  \"personalizedRecipients\": [\n    {\n      \"To\": \"233501431586\",\n      \"Content\": \"Hi Pheezy, thank you for all you do for this business\"\n    },\n    {\n      \"To\": \"233501431586\",\n      \"Content\": \"Hi Joe, thank you for all you do for this business\"\n    }\n  ]\n}"},"description":"Sends a different message to each recipient in one request, for example with each customer's name or balance. Returns a `batchId` and a `messageId` per recipient for delivery tracking."}},{"name":"Get a message","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/sms/v1/messages/:messageId","host":["{{sandbox_url}}"],"path":["v1","sms","v1","messages",":messageId"],"query":[]},"description":"Returns a message's delivery status: `delivered`, `undelivered`, `rejected` or `expired`."}},{"name":"Get a batch","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/sms/v1/messages/batch/:messageId","host":["{{sandbox_url}}"],"path":["v1","sms","v1","messages","batch",":messageId"],"query":[]},"description":"Returns the delivery status of every message in a batch. Use callback delivery updates to reduce repeated status requests."}}]},{"name":"Online Checkout","item":[{"name":"Create a checkout","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/payproxyapi/items/initiate","host":["{{sandbox_url}}"],"path":["v1","payproxyapi","items","initiate"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"totalAmount\": 100,\n  \"description\": \"Book Shop Checkout\",\n  \"callbackUrl\": \"https://webhook.site/8b4bbd0a-5f98-4b3d-abbe-b9b49767f7d5\",\n  \"returnUrl\": \"http://hubtel.com/online\",\n  \"merchantAccountNumber\": \"11684\",\n  \"cancellationUrl\": \"http://hubtel.com/online\",\n  \"clientReference\": \"inv0012\"\n}"},"description":"Creates a hosted checkout and returns a `checkoutUrl` to redirect your customer to, plus a `checkoutDirectUrl` for embedding. The customer chooses mobile money, card or Hubtel wallet on Hubtel's page. The final result arrives at `callbackUrl`; never fulfil an order from the `returnUrl` redirect alone."}}]},{"name":"Transaction Status","item":[{"name":"Check a collection's status","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/api-txnstatus/transactions/{:collection_account}/status?clientReference=inv0012","host":["{{sandbox_url}}"],"path":["v1","api-txnstatus","transactions","{:collection_account}","status"],"query":[{"key":"clientReference","value":"inv0012"}]},"description":"Returns the current status (`Paid`, `Unpaid` or `Refunded`) of a collection made through Checkout or Direct Receive Money. Use it when you have not received a final callback within 5 minutes, or to reconcile before fulfilling. Look up by `clientReference`, `hubtelTransactionId` or `networkTransactionId`."}}]},{"name":"Direct Receive Money","item":[{"name":"Charge a mobile money wallet","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/rmp/merchantaccount/merchants/{:collection_account}/receive/mobilemoney","host":["{{sandbox_url}}"],"path":["v1","rmp","merchantaccount","merchants","{:collection_account}","receive","mobilemoney"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"CustomerName\": \"Joe Doe\",\n  \"CustomerMsisdn\": \"233200000000\",\n  \"CustomerEmail\": \"username@example.com\",\n  \"Channel\": \"vodafone-gh\",\n  \"Amount\": 0.8,\n  \"PrimaryCallbackUrl\": \"https://webhook.site/b503d1a9-e726-f315254a6ede\",\n  \"Description\": \"Union Dues\",\n  \"ClientReference\": \"3jL2KlUy3vt21\"\n}"},"description":"Sends a payment prompt to the customer's phone. The response is `0001` (pending) while the customer decides. The final result is POSTed to `PrimaryCallbackUrl`, after the customer responds or the request expires. If no callback arrives within 5 minutes, call **Check a collection's status**. Prevent unsolicited prompts by charging only registered customers whose number cannot change at payment time, or verify unregistered numbers with an OTP first."}}]},{"name":"Direct Send Money","item":[{"name":"Pay out to a mobile money wallet","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/smp/api/merchants/{:collection_account}/send/mobilemoney","host":["{{sandbox_url}}"],"path":["v1","smp","api","merchants","{:collection_account}","send","mobilemoney"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"RecipientName\": \"Joe Doe\",\n  \"RecipientMsisdn\": \"233200000000\",\n  \"CustomerEmail\": \"username@example.com\",\n  \"Channel\": \"vodafone-gh\",\n  \"Amount\": 10,\n  \"PrimaryCallbackURL\": \"https://webhook.site/b503d1a9-e726-f315254a6ede\",\n  \"Description\": \"Union Dues\",\n  \"ClientReference\": \"25335r45pch53544044\"\n}"},"description":"Sends money from your disbursement account to a mobile money wallet. The response is pending; the final result is POSTed to `PrimaryCallbackUrl`. Your disbursement balance must cover the amount plus fees. If no callback arrives within 5 minutes, call **Check a payout's status**."}},{"name":"Check a payout's status","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/smrsc/api/merchants/{:collection_account}/transactions/status?clientReference=3jL2KlUy3vt21","host":["{{sandbox_url}}"],"path":["v1","smrsc","api","merchants","{:collection_account}","transactions","status"],"query":[{"key":"clientReference","value":"3jL2KlUy3vt21"}]},"description":"Returns the current status of a mobile money or bank payout by `clientReference`. Use it when no final callback has arrived within 5 minutes."}}]},{"name":"Send to Bank","item":[{"name":"Pay out to a bank account","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/smp/api/merchants/{:collection_account}/send/bank/gh/:bankCode","host":["{{sandbox_url}}"],"path":["v1","smp","api","merchants","{:collection_account}","send","bank","gh",":bankCode"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Amount\": 10,\n  \"BankName\": \"\",\n  \"BankBranch\": \"\",\n  \"BankBranchCode\": \"\",\n  \"BankAccountNumber\": \"4XXXXXXXXX\",\n  \"BankAccountName\": \"\",\n  \"ClientReference\": \"sendToBank101\",\n  \"PrimaryCallbackUrl\": \"https://webhook.site/b503d1a9-e726-f315254a6ede\",\n  \"Description\": \"Test Deposit\",\n  \"RecipientPhoneNumber\": \"\"\n}"},"description":"Sends money from your disbursement account to a Ghanaian bank account identified by `bankCode` in the path. Verify the account name first with **Look up a bank account name**. The final result is POSTed to `PrimaryCallbackUrl`."}}]},{"name":"Direct Debit","item":[{"name":"Start a direct debit pre-approval","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/preapproval/api/v2/merchant/{:collection_account}/preapproval/initiate","host":["{{sandbox_url}}"],"path":["v1","preapproval","api","v2","merchant","{:collection_account}","preapproval","initiate"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"clientReferenceId\": \"3jL2KlUy3vt21debitC\",\n  \"customerMsisdn\": \"233200000000\",\n  \"channel\": \"vodafone-gh-direct-debit\",\n  \"callbackUrl\": \"https://webhook.site/b503d1a9-e726-f315254a6ede\"\n}"},"description":"Asks a customer to approve future debits from their wallet by USSD. The response is pending (`2000`); the final result is POSTed to `callbackUrl` after the customer responds on the Virtual Phone or the request expires. Use the same test numbers as Receive Money. After approval you can charge them with Receive Money using a direct-debit channel."}},{"name":"Confirm a pre-approval with an OTP","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/preapproval/api/v2/merchant/{:collection_account}/preapproval/verifyotp","host":["{{sandbox_url}}"],"path":["v1","preapproval","api","v2","merchant","{:collection_account}","preapproval","verifyotp"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"customerMsisdn\": \"233200000000\",\n  \"hubtelPreApprovalId\": \"5f20092321d54eefb974dbfea6de5c34\",\n  \"clientReferenceId\": \"3jL2KlUy3vt21debitC\",\n  \"otpCode\": \"HNRM-8852\"\n}"},"description":"Completes a pre-approval started with the OTP flow, using the code the customer received. On success the customer's wallet can be debited without further prompts."}},{"name":"Get a pre-approval's status","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/preapproval/api/v2/merchant/{:collection_account}/preapproval/:clientReference/status","host":["{{sandbox_url}}"],"path":["v1","preapproval","api","v2","merchant","{:collection_account}","preapproval",":clientReference","status"],"query":[]},"description":"Returns whether a customer's direct debit pre-approval is pending, approved, failed or expired. Use it when a preapproval callback hasn't arrived, before retrying with a new reference."}},{"name":"Cancel a pre-approval","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/preapproval/api/v2/merchant/{:collection_account}/preapproval/:msisdn/cancel","host":["{{sandbox_url}}"],"path":["v1","preapproval","api","v2","merchant","{:collection_account}","preapproval",":msisdn","cancel"],"query":[]},"description":"Stops future debits for a customer's wallet. Do this when a loan is repaid or a subscription ends, so the customer isn't charged again."}},{"name":"Reactivate a pre-approval","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/preapproval/api/v2/merchant/{:collection_account}/preapproval/reactivate","host":["{{sandbox_url}}"],"path":["v1","preapproval","api","v2","merchant","{:collection_account}","preapproval","reactivate"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"callbackUrl\": \"https://webhook.site/b503d1af9-e726-f315254a6ede\",\n  \"customerMsisdn\": \"233200000000\"\n}"},"description":"Restores a cancelled or expired pre-approval, asking the customer to confirm again. Use it when a customer resumes a subscription or takes a new loan."}}]},{"name":"Recurring Invoice","item":[{"name":"Create a recurring invoice","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/rip/api/proxy/{:collection_account}/create-invoice","host":["{{sandbox_url}}"],"path":["v1","rip","api","proxy","{:collection_account}","create-invoice"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"orderDate\": \"2022-01-28T08:57:00\",\n  \"invoiceEndDate\": \"2022-01-31T08:57:00\",\n  \"description\": \"My recurring service\",\n  \"startTime\": \"14:00\",\n  \"paymentInterval\": \"DAILY\",\n  \"customerMobileNumber\": \"233240000000\",\n  \"paymentOption\": \"MobileMoney\",\n  \"channel\": \"mtn_gh_rec\",\n  \"customerName\": \"Joe Doe\",\n  \"recurringAmount\": 0.1,\n  \"totalAmount\": 0.1,\n  \"initialAmount\": 0.1,\n  \"currency\": \"GHS\",\n  \"callbackUrl\": \"https://webhook.site/b503d1a9-e726-f315254a6ede\"\n}"},"description":"Starts a recurring mobile-money invoice. The response is pending (`0001`) with a `requestId` and `otpPrefix`; the OTP lands on the Virtual Phone. After **Verify a recurring invoice** and the customer approves the prompt, the initial debit result is POSTed to `callbackUrl`. Use the same test numbers as Receive Money."}},{"name":"Verify a recurring invoice","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/rip/api/proxy/verify-invoice","host":["{{sandbox_url}}"],"path":["v1","rip","api","proxy","verify-invoice"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"recurringInvoiceId\": \"0f84e20a2839482e807128e8c21d08d6\",\n  \"requestId\": \"a6487bc44eae44849fd80326a0dd802a\",\n  \"otpCode\": \"OQDM-9514\"\n}"},"description":"Completes setup with the OTP from create (`otpPrefix-0000` in the sandbox). Hubtel then prompts the customer; the initial debit callback arrives at the `callbackUrl` from create after they respond or the request expires."}},{"name":"Cancel a recurring invoice","request":{"method":"DELETE","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/rip/api/proxy/{:collection_account}/cancel-invoice/:id","host":["{{sandbox_url}}"],"path":["v1","rip","api","proxy","{:collection_account}","cancel-invoice",":id"],"query":[]},"description":"Stops a recurring invoice so no further instalments are collected. A cancellation callback (`0005`) is POSTed to the invoice's `callbackUrl`. Instalments already collected are not refunded; use Refunds for that."}}]},{"name":"Commission Services","item":[{"name":"Top up MTN airtime","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/fdd76c884e614b1c8f669a3207b09a98","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","fdd76c884e614b1c8f669a3207b09a98"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"233246912184\",\n  \"Amount\": 0.5,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestEVD01011\"\n}"},"description":"Tops up MTN airtime from your disbursement (prepaid) balance. The response is pending (`0001`); the final result is POSTed to `CallbackUrl`. Destination test numbers follow Send Money payout scenarios (e.g. `233240000101` succeeds). Maximum amount is 100 cedis."}},{"name":"Top up Telecel airtime","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/f4be83ad74c742e185224fdae1304800","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","f4be83ad74c742e185224fdae1304800"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"233206439599\",\n  \"Amount\": 0.5,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestEVD01021\"\n}"},"description":"Tops up Telecel airtime from your disbursement (prepaid) balance. The response is pending (`0001`); the final result is POSTed to `CallbackUrl`. Destination test numbers follow Send Money payout scenarios (e.g. `233240000101` succeeds). Maximum amount is 100 cedis."}},{"name":"Top up AirtelTigo airtime","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/dae2142eb5a14c298eace60240c09e4b","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","dae2142eb5a14c298eace60240c09e4b"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"233574126849\",\n  \"Amount\": 0.5,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestEVD01027\"\n}"},"description":"Tops up AirtelTigo airtime from your disbursement (prepaid) balance. The response is pending (`0001`); the final result is POSTed to `CallbackUrl`. Destination test numbers follow Send Money payout scenarios (e.g. `233240000101` succeeds). Maximum amount is 100 cedis."}},{"name":"List MTN data bundles","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/b230733cd56b4a0fad820e39f66bc27c?destination=233246912184","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","b230733cd56b4a0fad820e39f66bc27c"],"query":[{"key":"destination","value":"233246912184"}]},"description":"Returns the available MTN data bundles for a phone number, supplied in the destination field. Use the returned bundle values when submitting a payment."}},{"name":"Buy MTN data bundle","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/b230733cd56b4a0fad820e39f66bc27c","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","b230733cd56b4a0fad820e39f66bc27c"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"233246912184\",\n  \"Amount\": 0.5,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestDATA01013\",\n  \"Extradata\": {\n    \"bundle\": \"data_bundle_1\"\n  }\n}"},"description":"Pays for MTN data bundles from your prepaid balance; look up a phone number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale."}},{"name":"List Telecel data bundles","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/fa27127ba039455da04a2ac8a1613e00?destination=233206439599","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","fa27127ba039455da04a2ac8a1613e00"],"query":[{"key":"destination","value":"233206439599"}]},"description":"Returns the available Telecel data bundles for a phone number, supplied in the destination field. Use the returned bundle values when submitting a payment."}},{"name":"Buy Telecel data bundle","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/fa27127ba039455da04a2ac8a1613e00","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","fa27127ba039455da04a2ac8a1613e00"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"233206439419\",\n  \"Amount\": 0.5,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestDATA01025\",\n  \"Extradata\": {\n    \"bundle\": \"25 MB\"\n  }\n}"},"description":"Pays for Telecel data bundles from your prepaid balance; look up a phone number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale."}},{"name":"List Telecel broadband","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/b9a1aa246ba748f9ba01ca4cdbb3d1d3?destination=0302450262","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","b9a1aa246ba748f9ba01ca4cdbb3d1d3"],"query":[{"key":"destination","value":"0302450262"}]},"description":"Returns the available Telecel broadband for a phone number, supplied in the destination field. Use the returned bundle values when submitting a payment."}},{"name":"Buy Telecel broadband","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/b9a1aa246ba748f9ba01ca4cdbb3d1d3","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","b9a1aa246ba748f9ba01ca4cdbb3d1d3"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"0302450262\",\n  \"Amount\": 1,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"567680374084840678\",\n  \"Extradata\": {\n    \"bundle\": \"P0444101\"\n  }\n}"},"description":"Pays for Telecel broadband from your prepaid balance; look up a phone number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale."}},{"name":"List AirtelTigo data bundles","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/06abd92da459428496967612463575ca?destination=233273833933","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","06abd92da459428496967612463575ca"],"query":[{"key":"destination","value":"233273833933"}]},"description":"Returns the available AirtelTigo data bundles for a phone number, supplied in the destination field. Use the returned bundle values when submitting a payment."}},{"name":"Buy AirtelTigo data bundle","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/06abd92da459428496967612463575ca","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","06abd92da459428496967612463575ca"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"233273833933\",\n  \"Amount\": 50,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestDATA01090\",\n  \"Extradata\": {\n    \"bundle\": \"DATA50\"\n  }\n}"},"description":"Pays for AirtelTigo data bundles from your prepaid balance; look up a phone number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale."}},{"name":"Look up a DStv account","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/297a96656b5846ad8b00d5d41b256ea7?destination=7029864396","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","297a96656b5846ad8b00d5d41b256ea7"],"query":[{"key":"destination","value":"7029864396"}]},"description":"Confirms a smartcard or customer number exists for DStv and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying."}},{"name":"Pay DStv","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/297a96656b5846ad8b00d5d41b256ea7","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","297a96656b5846ad8b00d5d41b256ea7"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"7029864396\",\n  \"Amount\": 50,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestTV0101\"\n}"},"description":"Pays for DStv from your prepaid balance; look up a smartcard or customer number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale."}},{"name":"Look up a GOtv account","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/e6ceac7f3880435cb30b048e9617eb41?destination=7032371505","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","e6ceac7f3880435cb30b048e9617eb41"],"query":[{"key":"destination","value":"7032371505"}]},"description":"Confirms a smartcard or customer number exists for GOtv and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying."}},{"name":"Pay GOtv","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/e6ceac7f3880435cb30b048e9617eb41","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","e6ceac7f3880435cb30b048e9617eb41"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"7032371505\",\n  \"Amount\": 50,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestTV0106\"\n}"},"description":"Pays for GOtv from your prepaid balance; look up a smartcard or customer number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale."}},{"name":"Look up a StarTimes account","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/6598652d34ea4112949c93c079c501ce?destination=02190617357","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","6598652d34ea4112949c93c079c501ce"],"query":[{"key":"destination","value":"02190617357"}]},"description":"Confirms a smartcard or customer number exists for StarTimes and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying."}},{"name":"Pay StarTimes","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/6598652d34ea4112949c93c079c501ce","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","6598652d34ea4112949c93c079c501ce"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"02190617357\",\n  \"Amount\": 50,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestTV0108\"\n}"},"description":"Pays for StarTimes from your prepaid balance; look up a smartcard or customer number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale."}},{"name":"Look up a ECG prepaid meter","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/e6d6bac062b5499cb1ece1ac3d742a84?destination=233541312238","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","e6d6bac062b5499cb1ece1ac3d742a84"],"query":[{"key":"destination","value":"233541312238"}]},"description":"Confirms a meter number exists for ECG prepaid and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying."}},{"name":"Pay ECG prepaid","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/e6d6bac062b5499cb1ece1ac3d742a84","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","e6d6bac062b5499cb1ece1ac3d742a84"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"233541312238\",\n  \"Amount\": 1,\n  \"CallbackUrl\": \"https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d\",\n  \"ClientReference\": \"TestDATA2022052105\",\n  \"Extradata\": {\n    \"bundle\": \"P09137104\"\n  }\n}"},"description":"Pays for ECG prepaid from your prepaid balance; look up a meter number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale."}},{"name":"Look up a Ghana Water meter","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/6c1e8a82d2e84feeb8bfd6be2790d71d?destination=091019010006&mobile=233242825109","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","6c1e8a82d2e84feeb8bfd6be2790d71d"],"query":[{"key":"destination","value":"091019010006"},{"key":"mobile","value":"233242825109"}]},"description":"Confirms a meter number exists for Ghana Water and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying."}},{"name":"Pay Ghana Water","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/cs/commissionservices/{:collection_account}/6c1e8a82d2e84feeb8bfd6be2790d71d","host":["{{sandbox_url}}"],"path":["v1","cs","commissionservices","{:collection_account}","6c1e8a82d2e84feeb8bfd6be2790d71d"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"Destination\": \"233548359582\",\n  \"Amount\": 1,\n  \"Extradata\": {\n    \"bundle\": \"080706070056\",\n    \"Email\": \"username@example.com\",\n    \"SessionId\": \"e7a113dd2f8b08b85a149d3db40854de2f13410b\"\n  },\n  \"CallbackUrl\": \"https://webhook.site/b630fc60-8041-470c-b13e-ee69ef15b2c2\",\n  \"ClientReference\": \"275438fce23f4983b9583abdf0ded9c7e\"\n}"},"description":"Pays for Ghana Water from your prepaid balance; look up a meter number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale."}}]},{"name":"Invoicing","item":[{"name":"Send an invoice","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/invoicing/api/v2.0/invoice/{:collection_account}/simple","host":["{{sandbox_url}}"],"path":["v1","invoicing","api","v2.0","invoice","{:collection_account}","simple"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"12345\",\n  \"dueDate\": \"2026-06-02T23:59:59Z\",\n  \"createdBy\": \"John\",\n  \"customerName\": \"John\",\n  \"customerPhoneNumber\": \"233555654321\",\n  \"customerEmail\": \"username@domain.com\",\n  \"note\": \"Test simple invoice\",\n  \"items\": [\n    {\n      \"description\": \"Item\",\n      \"quantity\": 1,\n      \"unitPrice\": 1\n    }\n  ],\n  \"discounts\": [\n    {\n      \"name\": \"Discount\",\n      \"value\": 1,\n      \"isFlat\": false\n    }\n  ],\n  \"fees\": [\n    {\n      \"name\": \"Fee\",\n      \"value\": 2,\n      \"isFlat\": true\n    }\n  ],\n  \"appliedTaxes\": [\n    {\n      \"name\": \"Tax\",\n      \"value\": 1,\n      \"isFlat\": false\n    }\n  ],\n  \"callbackUrl\": \"https://webhook.site/4636d303-1234-440f-9920-68e34f43ebf9\"\n}"},"description":"Creates an itemised invoice with optional discounts, fees and taxes and sends it by SMS and email with a payment link. Hubtel sends a callback when the invoice is paid."}},{"name":"Send a repeating invoice","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/invoicing/api/v2.0/invoice/{:collection_account}/repeat","host":["{{sandbox_url}}"],"path":["v1","invoicing","api","v2.0","invoice","{:collection_account}","repeat"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"invoiceNumber\": \"12345\",\n  \"dueDate\": \"2026-06-02T23:59:59Z\",\n  \"createdBy\": \"John\",\n  \"customerName\": \"John\",\n  \"customerPhoneNumber\": \"233555654321\",\n  \"customerEmail\": \"username@domain.com\",\n  \"note\": \"Test repeat invoice\",\n  \"items\": [\n    {\n      \"description\": \"Item\",\n      \"quantity\": 1,\n      \"unitPrice\": 1\n    }\n  ],\n  \"frequency\": \"Daily\",\n  \"shouldBeAutoDebited\": false,\n  \"discounts\": [\n    {\n      \"name\": \"Discount\",\n      \"value\": 1,\n      \"isFlat\": false\n    }\n  ],\n  \"fees\": [\n    {\n      \"name\": \"Fee\",\n      \"value\": 2,\n      \"isFlat\": true\n    }\n  ],\n  \"appliedTaxes\": [\n    {\n      \"name\": \"Tax\",\n      \"value\": 1,\n      \"isFlat\": false\n    }\n  ],\n  \"callbackUrl\": \"https://webhook.site/4636d303-1234-440f-9920-68e34f43ebf9\"\n}"},"description":"Creates an invoice that is re-issued on a schedule, optionally debited automatically. Use it for rent, fees or memberships billed the same way each period."}},{"name":"Get an invoice's status","request":{"method":"GET","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/invoicing/api/v2.0/invoice/{:collection_account}/:invoiceId/status-check","host":["{{sandbox_url}}"],"path":["v1","invoicing","api","v2.0","invoice","{:collection_account}",":invoiceId","status-check"],"query":[]},"description":"Returns whether an invoice is paid or unpaid and the payment details. Use it to reconcile if the invoice callback didn't arrive."}}]},{"name":"Programmable Services","item":[{"name":"Report service fulfilment","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/gs-callback/callback","host":["{{sandbox_url}}"],"path":["v1","gs-callback","callback"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"SessionId\": \"3c796dac28174f739de4262d08409c51\",\n  \"OrderId\": \"ac3307bcca7445618071e6b0e41b50b5\",\n  \"ServiceStatus\": \"success\",\n  \"MetaData\": null\n}"},"description":"Tells Hubtel whether your programmable service delivered what the customer paid for in a USSD session. Report whether fulfilment succeeded or failed so the payment can be settled or reversed."}}]},{"name":"Lending: credit data","item":[{"name":"Check a credit score","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/mcs-score/api/v1/score-check","host":["{{sandbox_url}}"],"path":["v1","mcs-score","api","v1","score-check"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"ghanaCard\": \"GHA-000000000-0\",\n  \"identifierName\": \"John Doe\",\n  \"identifierNationality\": \"Ghanaian\",\n  \"identifierDob\": \"1999-06-15T00:00:00Z\",\n  \"identifierMobileNumber\": \"2330000000\",\n  \"currencyOfCredit\": \"GHS\",\n  \"creditAmount\": 100,\n  \"purposeOfCheck\": \"Loan Application\",\n  \"typeOfCreditFacility\": \"Personal Loan\",\n  \"lenderReferenceId\": \"LOAN-REF-12345\",\n  \"voterId\": \"VO678232\",\n  \"passportNumber\": \"PAS67894\",\n  \"driverLicenseNumber\": \"234286382\",\n  \"ssnitNumber\": \"E10089883497\",\n  \"nhisNumber\": \"N49834984\",\n  \"tin\": \"T19892323\"\n}"},"description":"Returns a consumer's credit score and a basic debt summary from the credit bureau. Requires a lending agreement and the customer's consent; operated by mycreditscore.com.gh."}},{"name":"Get a consumer identity report","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/mcs-profile/api/v1/consumer-identity-report","host":["{{sandbox_url}}"],"path":["v1","mcs-profile","api","v1","consumer-identity-report"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"nationalIds\": [\n    {\n      \"identityType\": \"passport\",\n      \"identityNumber\": \"0000000\"\n    },\n    {\n      \"identityType\": \"driverlicense\",\n      \"identityNumber\": \"0000000\"\n    },\n    {\n      \"identityType\": \"ghanacard\",\n      \"identityNumber\": \"GHA-000000000-2\"\n    }\n  ],\n  \"names\": [\n    {\n      \"firstName\": \"John\",\n      \"lastName\": \"Doe\",\n      \"middleName\": \"\"\n    }\n  ],\n  \"numberAndEmail\": [\n    {\n      \"mobileNumber\": \"233000000000\",\n      \"email\": \"John.Doe@example.com\"\n    }\n  ],\n  \"dateOfBirth\": \"2007-11-21\",\n  \"gender\": \"male\",\n  \"reasonForRequest\": \"KYC\",\n  \"requestVerification\": true,\n  \"ghanaCardNumber\": \"GHA-000000000-2\",\n  \"identitySource\": \"General Report\",\n  \"reportType\": \"CreditReport\",\n  \"requestedBy\": \"John Doe\",\n  \"requestedTime\": \"2025-11-28T14:01:22.2373367Z\"\n}"},"description":"Returns the identity details the credit bureau holds for a consumer, to support identity verification. Requires the customer's consent; operated by mycreditscore.com.gh."}},{"name":"Get a consumer credit profile","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/mcs-basic-credit-report/api/v1/consumer-profile-detail","host":["{{sandbox_url}}"],"path":["v1","mcs-basic-credit-report","api","v1","consumer-profile-detail"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"ghanaCard\": \"GHA-000000000-0\",\n  \"identifierName\": \"\",\n  \"identifierNationality\": \"\",\n  \"identifierDob\": \"1999-06-15T00:00:00Z\",\n  \"identifierMobileNumber\": \"\",\n  \"currencyOfCredit\": \"\",\n  \"creditAmount\": 1,\n  \"purposeOfCheck\": \"\",\n  \"typeOfCreditFacility\": \"\",\n  \"lenderReferenceId\": \"\",\n  \"voterId\": \"\",\n  \"passportNumber\": \"\",\n  \"driverLicenseNumber\": \"\",\n  \"ssnitNumber\": \"\",\n  \"nhisNumber\": \"\",\n  \"tin\": \"\"\n}"},"description":"Returns a detailed credit profile: accounts, balances and payment behaviour. Requires customer consent; operated by mycreditscore.com.gh."}},{"name":"Get a compact credit report","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/mcs-basic-credit-report/api/v1/credit-profile-summary","host":["{{sandbox_url}}"],"path":["v1","mcs-basic-credit-report","api","v1","credit-profile-summary"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"ghanaCard\": \"GHA-000000000-2\",\n  \"identifierName\": \"\",\n  \"identifierNationality\": \"\",\n  \"identifierDob\": \"1997-06-04T00:00:00Z\",\n  \"identifierMobileNumber\": \"\",\n  \"currencyOfCredit\": \"\",\n  \"creditAmount\": 1,\n  \"purposeOfCheck\": \"\",\n  \"typeOfCreditFacility\": \"\",\n  \"lenderReferenceId\": \"\",\n  \"voterId\": \"\",\n  \"passportNumber\": \"\",\n  \"driverLicenseNumber\": \"\",\n  \"ssnitNumber\": \"\",\n  \"nhisNumber\": \"\",\n  \"tin\": \"\"\n}"},"description":"Returns a summary of a consumer's credit profile. Requires consent; operated by mycreditscore.com.gh."}},{"name":"Get repayment history","request":{"method":"POST","auth":{"type":"basic","basic":[{"key":"username","value":"{{api_id}}"},{"key":"password","value":"{{api_key}}"}]},"header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{sandbox_url}}/v1/mcs-score-debt/api/v1/repayment-history","host":["{{sandbox_url}}"],"path":["v1","mcs-score-debt","api","v1","repayment-history"],"query":[]},"body":{"mode":"raw","raw":"{\n  \"ghanaCard\": \"GHA-000000000-2\",\n  \"identifierName\": \"\",\n  \"identifierNationality\": \"\",\n  \"identifierDob\": \"1997-06-04T00:00:00Z\",\n  \"identifierMobileNumber\": \"\",\n  \"currencyOfCredit\": \"\",\n  \"creditAmount\": 1,\n  \"purposeOfCheck\": \"\",\n  \"typeOfCreditFacility\": \"\",\n  \"lenderReferenceId\": \"\",\n  \"voterId\": \"\",\n  \"passportNumber\": \"\",\n  \"driverLicenseNumber\": \"\",\n  \"ssnitNumber\": \"\",\n  \"nhisNumber\": \"\",\n  \"tin\": \"\"\n}"},"description":"Returns a consumer's history of repaying credit, month by month. Requires customer consent; operated by mycreditscore.com.gh."}}]}]}