# Validate Transaction Source: https://doc.seerbit.com/api-reference/account/validate-transaction https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/validate This option is used to complete an account transaction, when OTP is required # Generate Encrypted Secret Key Source: https://doc.seerbit.com/api-reference/authentication/generate-encrypted-secret-key https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /encrypt/keys To make API calls on SeerBit, you will be required to pass a bearer token. To generate a token simply pass your pubic and secret key to rceive a token to process further API calls. # 3DS Authorise Source: https://doc.seerbit.com/api-reference/authorise/3ds-authorise https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/authorise3ds PIN and CVV are not Required to complete Transaction. Authorization is completed on 3DS. # Authorise Source: https://doc.seerbit.com/api-reference/authorise/authorise https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/authorise In SeerBit API, the term “authorisation” indicates, that payment is authorised but not captured. This allows a merchant to cancel transaction at their discretion, typically based but not limited to fraud-related activities. This authorisation state is valid for a limited period of time, which provides a window to cancel the transaction. # Check Status Source: https://doc.seerbit.com/api-reference/card/check-status https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml get /payments/query/STG10948E242065R569A22tAQM85EQW4 This Operation allows you to check the status of a transaction via the status check api. This is done by making a Get request to the endpoint below with your payment reference. # OTP Momo Source: https://doc.seerbit.com/api-reference/momo/otp-momo https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/momo/otp When making MOMO transfers, and OTP is required to complete the payment # Charge Card Source: https://doc.seerbit.com/api-reference/non-3ds-payment/charge-card https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/charge This payment option is used to charge non 3d transactions # Create Order After Payment Source: https://doc.seerbit.com/api-reference/order-checkout/create-order-after-payment https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /products/orders Create an order after payment # Create Order Before Payment Source: https://doc.seerbit.com/api-reference/order-checkout/create-order-before-payment https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/order Create an order before payment # Get an Order with Payment Reference Source: https://doc.seerbit.com/api-reference/order-checkout/get-an-order-with-payment-reference https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml get /products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/paymentReference/0w0eimkizc41602513327447 Get order details with payment reference # Get Order with Order Id Source: https://doc.seerbit.com/api-reference/order-checkout/get-order-with-order-id https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml get /products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u/orderId/wil0f47b62 Get order details with OrderId # Get Orders Source: https://doc.seerbit.com/api-reference/order-checkout/get-orders https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml get /products/orders/publicKey/SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u Get a list of orders # Update Order Source: https://doc.seerbit.com/api-reference/order-checkout/update-order https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml put /products/orders Update an order # Get Banks Source: https://doc.seerbit.com/api-reference/payment-method/get-banks https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml get /banks/merchant/SBTESTPUBK_p8GqvFSFNCBahSJinczKd9aIPoRUZfda Get list of banks # Initiate Payment Source: https://doc.seerbit.com/api-reference/payment-method/initiate-payment https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/initiates Accept more payments with our unified payments API. Accept payments from all major cards and the most popular local and alternative payment methods all in a single integration. # Cancel Source: https://doc.seerbit.com/api-reference/preauthorization/cancel https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/cancel Cancel a payment if supported by the payment method. # Capture Source: https://doc.seerbit.com/api-reference/preauthorization/capture https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/capture Captures a payment if supported by the payment method. # Refund Source: https://doc.seerbit.com/api-reference/preauthorization/refund https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/refund Refunds a payment if supported by the payment method. # Get a Subscription Source: https://doc.seerbit.com/api-reference/recurrent/get-a-subscription https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml get /recurring/billingId/TPR2181t55PER542RPP1U1W4391WO Get customer subscription # Initiate Subscription Source: https://doc.seerbit.com/api-reference/recurrent/initiate-subscription https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /recurring/subscribes To complete this transaction, merchant is expected to redirect to the 3DSecure site via the redirect URL provided with the response below. However if the redirect url is not returned and the code is S20 and the message is transaction is pending, the Validate OTP endpoint should be called as the customer would have received a token either by email or sms on the customers phone. To get the subscription created or the status of a subscription for the customer, the GET Subscription endpoint is called by passing the paymentReference as billingId. # Generate Hash Source: https://doc.seerbit.com/api-reference/standard-checkout/generate-hash https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /encrypt/hashs This is used to ensure the request payload has not been altered # Payment Link From Checkout Source: https://doc.seerbit.com/api-reference/standard-checkout/payment-link-from-checkout https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments SeerBit Checkout Standard Initialises a transaction from merchants server to generate a payment link which redirects your customers to a page to make payment and after payment has been made the customer is redirected back to the merchants website. # Tokenize a Card Source: https://doc.seerbit.com/api-reference/tokenize/tokenize-a-card https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/tokenize In order to store your customers payment details, you need to pass some additional parameter when making the first payment request using the payments/tokenize endpoint, the Cvv field and pin are optional(this could be null). After the first payment is made, the payment details is collected and a token is generated for it which is then stored for future use. # Authentication Source: https://doc.seerbit.com/authentication Which credential each SeerBit API expects, and how to produce it. Every SeerBit API is authenticated with the **public key** and **secret key** from your dashboard, under **Settings > API Keys**. What differs is the form those keys take on the request. > **Security Note**: Only the public key belongs in client-side code. The secret key authenticates requests as you — keep it on your server, never in a browser or mobile app, and never in source control. ## Which credential do I need? Find the API you are integrating, and use the mechanism on that row. | If you are building | Send | How to produce it | | - | - | - | | [Standard Checkout](/online-payments/integrations/standard-checkout), invoicing, subscriptions, payment links, virtual accounts, tokenisation | `Authorization: Bearer ` | [Exchange your keys for a token](#bearer-token) | | [Simple Checkout](/online-payments/integrations/simple-checkout) | `public_key` in the inline config | Copy it from the dashboard — no exchange needed | | [In-store POS](/in-store/overview) | `PublicKey` header **and** a `Hash` header | [Sign the request body yourself](#signing-a-request-body) | | [Payout](/online-payments/payment-features/payout) | `Public-Key` header, a bearer token, **and** `X-Seerbit-Signature` | [Sign the request body yourself](#signing-a-request-body) | | [Pocket](/online-payments/payment-features/pocket) | `Public-Key` header and a bearer token | Authenticate against the Pocket login endpoint | If you are only collecting payments online, the [bearer token](#bearer-token) is the only one you need. ## Bearer token Most collection APIs authenticate with a bearer token generated from your two keys, joined by a full stop, **secret key first**. POST ```bash theme={null} https://seerbitapi.com/api/v2/encrypt/keys ``` #### Request ```json theme={null} { "key": "YOUR_SECRET_KEY.YOUR_PUBLIC_KEY" } ``` #### Response ```json theme={null} { "status": "SUCCESS", "data": { "code": "00", "EncryptedSecKey": { "encryptedKey": "SNt8kjeVjsdTG4lPlwg6sTvpVAay2RA7hoCEzHPkIQa+MNfDepx4VBr5JMgLb5Q5anq9XoN2pXU850bumqBWFVw1T1ZW5w8N+Sq/" }, "message": "Successful" } } ``` Take the token from `data.EncryptedSecKey.encryptedKey` and send it on subsequent calls: ```bash theme={null} curl --location 'https://seerbitapi.com/api/v2/payments' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer YOUR_ENCRYPTED_KEY' \ --data '{ ... }' ``` Generate the token on your server. Because it is derived from your secret key, a token in client-side code is as exposed as the key itself. ## Signing a request body The in-store and payout APIs do not use a bearer token alone. They require a signature over the **exact bytes of the request body**, computed with your secret key and sent in a header — `Hash` for in-store, `X-Seerbit-Signature` for payout. ``` signature = HMAC-SHA256( secretKey, requestBody ) ``` Compute it in your own code rather than calling an endpoint, so the signed bytes are the bytes you actually transmit. Whitespace or key-order differences between what you hash and what you send produce a mismatch. Worked examples in seven languages are on the pages that need them: Python, Node, Java, PHP, C#, Ruby and Go, with the `Hash` header. Generating `X-Seerbit-Signature` for single and bulk payouts. ## Hash endpoint SeerBit also exposes an endpoint that returns a hash for a payload, for cases where computing one locally is impractical. POST ```bash theme={null} https://seerbitapi.com/api/v2/encrypt/hashs ``` Post the payload you intend to send, and the response carries the transaction result for it. > **Note**: Prefer computing signatures locally where you can. A round trip to hash a body means the signed bytes and the transmitted bytes are produced separately, which is the usual cause of signature mismatches. ## Next steps Use a bearer token to take a test payment end to end. Which key pair you are using, and how to tell. # Bank Codes Source: https://doc.seerbit.com/development-resources/bank-codes/overview NIP institution codes to use as the bankCode when sending a payout to a Nigerian bank account. Use these codes as the `bankCode` when you [send a payout](/online-payments/payment-features/payout) to a Nigerian bank account. Each code is the six-digit NIP institution code that identifies the receiving bank on the NIBSS Instant Payment network. > **Fetch the live list in production.** Banks merge, change names and lose licences, so this page is a reference snapshot. Call the [bank list endpoint](/online-payments/payment-features/payout#bank-list) for the current list, and use this page to look up a code while you build. > **These are not the three-digit CBN sort codes** (such as `058`). NIP codes are six digits — GTBank is `000013`. Sending a three-digit code as the payout `bankCode` will not resolve to the right bank. | Category | Institutions | | - | - | | [Commercial banks](#commercial-banks) | 33 | | [Payment service banks](#payment-service-banks) | 4 | | [Mobile money operators](#mobile-money-operators) | 35 | | [Microfinance banks](#microfinance-banks) | 315 | | [Merchant banks](#merchant-banks) | 6 | | [Mortgage banks and savings and loans](#mortgage-banks-and-savings-and-loans) | 24 | | [Finance companies](#finance-companies) | 10 | | [Payment service providers](#payment-service-providers) | 14 | ## Commercial banks Deposit money banks licensed by the CBN. | Institution | Code | | - | - | | Access Bank | `000014` | | Central Bank of Nigeria | `000028` | | Citi Bank | `000009` | | Diamond Bank | `000005` | | Ecobank Bank | `000010` | | eNaira | `000033` | | Enterprise Bank | `000019` | | FCMB | `000003` | | Fidelity Bank | `000007` | | First Bank of Nigeria | `000016` | | Globus Bank | `000027` | | GTBank Plc | `000013` | | Heritage | `000020` | | JAIZ Bank | `000006` | | Keystone Bank | `000002` | | Lotus Bank | `000029` | | Optimus Bank | `000036` | | Parallex Bank | `000030` | | Polaris Bank | `000008` | | Premium Trust Bank | `000031` | | Providus Bank | `000023` | | Signature Bank | `000034` | | StanbicIBTC Bank | `000012` | | StandardChartered | `000021` | | Sterling Bank | `000001` | | Suntrust Bank | `000022` | | Taj Bank | `000026` | | Titan Trust Bank | `000025` | | Union Bank | `000018` | | United Bank for Africa | `000004` | | Unity Bank | `000011` | | Wema Bank | `000017` | | Zenith Bank Plc | `000015` | ## Payment service banks | Institution | Code | | - | - | | 9Payment Service Bank | `120001` | | HopePSB | `120002` | | MoMo PSB | `120003` | | SmartCash PSB | `120004` | ## Mobile money operators | Institution | Code | | - | - | | Access Yello | `100052` | | AccessMobile | `100013` | | Cellulant | `100005` | | Contec Global Infotech Limited (NowNow) | `100032` | | Eartholeum | `100021` | | Ecobank Xpress Account | `100008` | | EcoMobile | `100030` | | eTranzact | `100006` | | FBNMobile | `100014` | | FCMB Easy Account | `100031` | | FET | `100001` | | Fidelity Mobile | `100019` | | FortisMobile | `100016` | | GoMoney | `100022` | | GTMobile | `100009` | | Hedonmark | `100017` | | Innovectives Kesh | `100029` | | Kegow (Chamsmobile) | `100036` | | M36 | `100035` | | Mkudi | `100011` | | MoneyBox | `100020` | | One Finance | `100026` | | Paga | `100002` | | PalmPay Limited | `100033` | | Parkway-ReadyCash | `100003` | | Paycom(Opay) | `100004` | | Stanbic IBTC @ease wallet | `100007` | | TagPay | `100023` | | Taj\_Pinspay | `080002` | | TeasyMobile | `100010` | | TitanPaystack | `100039` | | VTNetworks | `100012` | | Zenith Eazy Wallet | `100034` | | ZenithMobile | `100018` | | Zinternet Nigera Limited | `100025` | ## Microfinance banks | Institution | Code | | - | - | | AB Microfinance Bank | `090270` | | Above Only Microfinance Bank | `090260` | | ABU Microfinance Bank | `090197` | | Abulesoro Microfinance Bank | `090545` | | Accion Microfinance Bank | `090134` | | Ada Microfinance Bank | `090483` | | Addosser Microfinance Bank | `090160` | | Adeyemi College Staff Microfinance Bank | `090268` | | Advans La Fayette Microfinance Bank | `090155` | | Afekhafe Microfinance Bank | `090292` | | Afemai Microfinance Bank | `090518` | | Akpo Microfinance Bank | `090608` | | Aku Microfinance Bank | `090531` | | Akuchuckwu Microfinance Bank | `090561` | | AL-Barakah Microfinance Bank | `090133` | | Al-Hayat Microfinance Bank | `090277` | | Alekun Microfinance Bank | `090259` | | Alert Microfinance Bank | `090297` | | Allworkers Microfinance Bank | `090131` | | Ally Microfinance Bank | `090548` | | Alpha Kapital Microfinance Bank | `090169` | | Alvana Microfinance Bank | `090489` | | Amac Microfinance Bank | `090394` | | Amju Unique Microfinance Bank | `090180` | | AMML MFB | `090116` | | Amoye Microfinance Bank | `090610` | | Ampersand Microfinance Bank | `090529` | | Anchorage Microfinance Bank | `090476` | | Aniocha Microfinance bank | `090469` | | Apeks Microfinance Bank | `090143` | | Apple Microfinance Bank | `090376` | | Aramoko Microfinance Bank | `090307` | | Arise Microfinance Bank | `090282` | | Aspire Microfinance Bank | `090544` | | AssetMatrix Microfinance Bank | `090287` | | Assets Microfinance Bank | `090473` | | Astrapolaris Microfinance Bank | `090172` | | Auchi Microfinance Bank | `090264` | | Ave Maria Microfinance Bank | `090600` | | Aztec Microfinance Bank | `090540` | | Baines Credit Microfinance Bank | `090188` | | Balera Microfinance Bank | `090563` | | Balogun Fulani Microfinance Bank | `090181` | | Balogun Gambari Microfinance Bank | `090326` | | Banc Corp MFB | `090581` | | BC Kash Microfinance Bank | `090127` | | Beststar MFB | `090615` | | BIPC Microfinance Bank | `090336` | | BishopGate Microfinance Bank | `090555` | | BluePrint Investments Microfinance Bank | `090538` | | Boctrust Microfinance Bank | `090117` | | BOI Microfinance Bank | `090444` | | Boji MFB | `090494` | | Borgu Microfinance Bank | `090395` | | Bosak Microfinance Bank | `090176` | | Bowen Microfinance Bank | `090148` | | Brethren Microfinance Bank | `090293` | | Bridgeway Microfinance Bank | `090393` | | Brightway Microfinance Bank | `090308` | | Broadview Microfinance Bank | `090568` | | Business Support Microfinance Bank | `090406` | | Caretaker Microfinance Bank | `090472` | | CashConnect Microfinance Bank | `090360` | | Cedar Microfinance Bank | `090562` | | CEMCS Microfinance Bank | `090154` | | Changan RTS Microfinance Bank | `090470` | | Chase Microfinance Bank | `090523` | | Chikum Microfinance Bank | `090141` | | Chukwunenye MFB | `090490` | | Cintrust Microfinance Bank | `090480` | | CIT Microfinance Bank | `090144` | | Coalcamp Microfinance Bank | `090254` | | Coastline Microfinance Bank | `090374` | | Confidence MFB | `090530` | | Conpro Microfinance Bank | `090380` | | Consistent Trust Microfinance Bank | `090553` | | Consumer Microfinance Bank | `090130` | | Corestep Microfinance Bank | `090365` | | Covenant MFB | `070006` | | Credit Afrique Microfinance Bank | `090159` | | Creditville MFB | `090611` | | Crescent Microfinance Bank | `090526` | | Davodani Microfinance Bank | `090391` | | Daylight Microfinance Bank | `090167` | | e-Barcs Microfinance Bank | `090156` | | Eagle Flight Microfinance Bank | `090294` | | EdFin Microfinance Bank | `090310` | | Egwafin Microfinance Bank | `090556` | | EK-Reliable Microfinance Bank | `090389` | | Ekondo MFB | `090097` | | Emeralds Microfinance Bank | `090273` | | Empire trust MFB | `090114` | | Enrich Microfinance Bank | `090539` | | Esan Microfinance Bank | `090189` | | Eso-E Microfinance Bank | `090166` | | Evangel Microfinance Bank | `090304` | | Evergreen Microfinance Bank | `090332` | | EWT Microfinance Bank | `090572` | | Excellent Microfinance Bank | `090541` | | Eyowo | `090328` | | FairMoney Microfinance Bank | `090551` | | FAST Microfinance Bank | `090179` | | FCMB BETA | `090409` | | FCT Microfinance Bank | `090290` | | Federal Polytechnic Nekede Microfinance Bank | `090398` | | Federal University Dutse Microfinance Bank | `090318` | | Fedeth Microfinance Bank | `090482` | | FedPoly Nasarawa Microfinance Bank | `090298` | | FFS Microfinance Bank | `090153` | | Fidfund Microfinance Bank | `090126` | | FIMS MFB | `090507` | | FinaTrust Microfinance Bank | `090111` | | Firmus Microfinance Bank | `090366` | | First Midas Microfinance Bank | `090575` | | First Option Microfinance Bank | `090285` | | First Royal Microfinance Bank | `090164` | | Flourish MFB | `090614` | | Fortis Microfinance Bank | `070002` | | Fullrange Microfinance Bank | `090145` | | Futo Microfinance Bank | `090158` | | Gabsyn Microfinance Bank Limited | `090591` | | Gashua Microfinance Bank | `090168` | | Gbede Microfinance Bank | `090579` | | Giant Stride Microfinance Bank | `090475` | | Gidauniyar Alheri MFB | `090621` | | Giginya Microfinance bank | `090411` | | Girei Microfinance Bank | `090186` | | Glory Microfinance Bank | `090278` | | GMB Microfinance Bank | `090408` | | GOLDMAN MFB | `090574` | | Good Neigbours Microfinance Bank | `090467` | | Goodnews Microfinance Bank | `090495` | | Gowans Microfinance Bank | `090122` | | Green Energy Microfinance Bank | `090550` | | GreenBank Microfinance Bank | `090178` | | Greenville Microfinance Bank | `090269` | | Grooming Microfinance Bank | `090195` | | GTI Microfinance Bank | `090385` | | Hackman Microfinance Bank | `090147` | | Halal Credit Microfinance Bank | `090291` | | Hasal Microfinance Bank | `090121` | | Headway Microfinance Bank | `090363` | | HighStreet Microfinance Bank | `090175` | | IBA Microfinance Bank | `090598` | | IBILE Microfinance Bank | `090118` | | IBOLO Microfinance Bank | `090532` | | Iboma Fadama Microfinance Bank | `090519` | | Ibu-Aje Microfinance Bank | `090488` | | Ijebu-Ife Microfinance Bank | `090546` | | Ikenne Microfinance Bank | `090324` | | Ikire Microfinance Bank | `090279` | | Ikoyi-Osun Microfinance Bank | `090536` | | Ilaro Poly Microfinance Bank | `090571` | | Ilisan Microfinance Bank | `090370` | | Imo State Microfinance Bank | `090258` | | Infinity Microfinance Bank | `090157` | | Interland Microfinance Bank | `090386` | | IRL Microfinance Bank | `090149` | | Isaleoyo Microfinance Bank | `090377` | | Island Microfinance Bank | `090584` | | Iwade MFB Ltd | `090578` | | Iwoama Microfinance Bank | `090543` | | Iyamoye Microfinance Bank | `090570` | | Iyeru Okin Microfinance Bank | `090337` | | Iyin Ekiti MFB | `090620` | | Jessefield Microfinance Bank | `090352` | | KadPoly Microfinance Bank | `090320` | | Kayvee Microfinance Bank | `090554` | | KC Microfinance Bank | `090549` | | KCMB Microfinance Bank | `090191` | | Kenechukwu Microfinance Bank | `090602` | | Kontagora Microfinance Bank | `090299` | | Kuda Microfinance Bank | `090267` | | Lapo Microfinance Bank | `090177` | | Lavender Microfinance Bank | `090271` | | Legend Microfinance Bank | `090372` | | Lifegate Microfinance Bank | `090557` | | Light MFB | `090477` | | Lobrem Microfinance Bank | `090537` | | Lovonus Microfinance Bank | `090265` | | MAB Allianz MFB | `090623` | | Macrod MFB | `090603` | | Mainland Microfinance Bank | `090323` | | Mainstreet Microfinance Bank | `090171` | | Maintrust Microfinance Bank | `090465` | | Malachy Microfinance Bank | `090174` | | Maritime Microfinance Bank | `090410` | | MayFair Microfinance Bank | `090321` | | Medef Microfinance Bank | `090612` | | Megapraise Microfinance Bank | `090280` | | Mercury MFB | `090589` | | Mgbidi Microfinance Bank | `090528` | | Microbiz MFB | `090587` | | Microcred Microfinance Bank | `090136` | | Midland Microfinance Bank | `090192` | | MintFinex Microfinance Bank | `090281` | | Mkobo Microfinance Bank | `090455` | | Molusi Microfinance Bank | `090362` | | Money Trust Microfinance Bank | `090129` | | Moyofade Microfinance Bank | `090448` | | Mutual Benefits Microfinance Bank | `090190` | | Mutual Trust Microfinance Bank | `090151` | | Nagarta Microfinance Bank | `090152` | | Nassarawa Microfinance Bank | `090349` | | Navy Microfinance Bank | `090263` | | Ndiorah Microfinance Bank | `090128` | | Neptune Microfinance Bank | `090329` | | New Dawn Microfinance Bank | `090205` | | New Golden Pastures Microfinance Bank | `090378` | | Nigerian Prisons Microfinance Bank | `090505` | | NIRSAL Microfinance Bank | `090194` | | Nkpolu-Ust MFB | `090535` | | Nnew Women Microfinance Bank | `090283` | | NPF MicroFinance Bank | `070001` | | Nsuk MFB | `090491` | | Numo Microfinance Bank | `090516` | | Nuture Microfinance Bank | `090364` | | Nwannegadi Microfinance Bank | `090399` | | OAU Microfinance Bank | `090345` | | Oche Microfinance Bank | `090333` | | Octopus Microfinance Bank | `090576` | | Ohafia Microfinance Bank | `090119` | | Ojokoro Microfinance Bank | `090527` | | Oke-Aro Oredegbe Microfinance Bank | `090565` | | Okpoga Microfinance Bank | `090161` | | Okuku Microfinance Bank | `090566` | | Olabisi Onabanjo University Microfinance Bank | `090272` | | OLOFIN OWENA Microfinance Bank | `090468` | | Olowolagba Microfinance Bank | `090404` | | Oluchukwu Microfinance Bank | `090471` | | Omiye Microfinance Bank | `090295` | | Oraukwu MFB | `090492` | | Orisun MFB | `090588` | | Orokam Microfinance Bank | `090567` | | Oscotech Microfinance Bank | `090396` | | Otech Microfinance Bank | `090580` | | Otuo Microfinance Bank | `090542` | | Page Financials | `070008` | | Parralex Microfinance bank | `090004` | | PatrickGold Microfinance Bank | `090317` | | PecanTrust Microfinance Bank | `090137` | | Pennywise Microfinance Bank | `090196` | | Personal Trust Microfinance Bank | `090135` | | Petra Microfinance Bank | `090165` | | Pillar Microfinance Bank | `090289` | | Polybadan Microfinance Bank | `090534` | | Polyunwana Microfinance Bank | `090296` | | Preeminent Microfinance Bank | `090412` | | Prestige Microfinance Bank | `090274` | | Pristine Divitis Microfinance Bank | `090499` | | Projects Microfinance Bank | `090503` | | Purplemoney Microfinance Bank | `090303` | | Qube Microfinance Bank | `090569` | | Quickfund Microfinance Bank | `090261` | | Randalpha Microfinance Bank | `090496` | | Rayyan MFB | `090616` | | Regent Microfinance Bank | `090125` | | Rehoboth Microfinance Bank | `090463` | | Reliance Microfinance Bank | `090173` | | RenMoney Microfinance Bank | `090198` | | Rephidim Microfinance Bank | `090322` | | Richway Microfinance Bank | `090132` | | Rigo Microfinance Bank | `090433` | | RIMA Growth Pathway Microfinance Bank | `090515` | | Rockshield Microfinance Bank | `090547` | | Rolez Microfinance Bank | `090405` | | Royal Exchange Microfinance Bank | `090138` | | Safe Haven Microfinance Bank | `090286` | | Sagamu Microfinance Bank | `090140` | | SEAP Microfinance Bank | `090513` | | Seed Capital Microfinance Bank | `090112` | | Seedvest Microfinance Bank | `090369` | | Shalom Microfinance Bank | `090502` | | Shepherd Trust Microfinance Bank | `090401` | | Shield Microfinance Bank | `090559` | | Shongom Microfinance Bank | `090558` | | Snow MFB | `090573` | | Solid Allianze MFB | `090506` | | Solidrock microfinance Bank | `090524` | | Sparkle | `090325` | | Stanford Microfinance Bak | `090162` | | Stateside Microfinance Bank | `090583` | | Stellas Microfinance Bank | `090262` | | Sulspap Microfinance Bank | `090305` | | Supreme Microfinance Bank | `090564` | | Tanadi Microfinance Bank | `090560` | | Tasued Microfinance Bank | `090593` | | TCF MFB | `090115` | | Think Finance Microfinance Bank | `090373` | | Trident Microfinance Bank | `090146` | | TripleA Microfinance Bank | `090525` | | Trust Microfinance Bank | `090327` | | Trustfund Microfinance Bank | `090276` | | U & C Microfinance Bank | `090315` | | UDA Microfinance Bank | `090403` | | Uhuru Microfinance Bank | `090517` | | Ummah Microfinance Bank | `090609` | | UNAAB Microfinance Bank | `090331` | | Uniben Microfinance Bank | `090266` | | Unical Microfinance Bank | `090193` | | Unimaid Microfinance Bank | `090464` | | UniUyo Microfinance Bank | `090338` | | UNN MFB | `090251` | | Verdant Microfinance Bank | `090474` | | Verite Microfinance Bank | `090123` | | VFD MFB | `090110` | | Virtue Microfinance Bank | `090150` | | Visa Microfinance Bank | `090139` | | Waya Microfinance Bank | `090950` | | Wetland Microfinance Bank | `090120` | | Xslnce Microfinance Bank | `090124` | | YCT Microfinance Bank | `090466` | | Yes Microfinance Bank | `090142` | | Yobe Microfinance Bank | `090252` | | Zikora Microfinance Bank | `090504` | ## Merchant banks | Institution | Code | | - | - | | Coronation Merchant Bank | `060001` | | FBNQUEST Merchant Bank | `060002` | | FSDH Merchant Bank | `400001` | | Greenwich Merchant Bank | `060004` | | Nova Merchant Bank | `060003` | | Rand Merchant Bank | `000024` | ## Mortgage banks and savings and loans | Institution | Code | | - | - | | Abbey Mortgage Bank | `070010` | | AG Mortgage Bank | `100028` | | Akwa Savings & Loans Limited | `070025` | | ASOSavings & Loans | `090001` | | Brent Mortgage Bank | `070015` | | Coop Mortgage Bank | `070021` | | Delta Trust Microfinance Bank | `070023` | | FBN Mortgages Limited | `090107` | | FHA Mortgage Bank | `070026` | | First Generation Mortgage Bank | `070014` | | Gateway Mortgage Bank | `070009` | | Haggai Mortgage Bank Limited | `070017` | | Homebase Mortgage Bank | `070024` | | Imperial Homes Mortgage Bank | `100024` | | Infinity Trust Mortgage Bank | `070016` | | Jubilee-Life Mortgage Bank | `090003` | | Lagos Building Investment Company | `070012` | | MayFresh Mortgage Bank | `070019` | | New Prudential Bank | `090108` | | Omoluabi savings and loans | `070007` | | Platinum Mortgage Bank | `070013` | | Refuge Mortgage Bank | `070011` | | SafeTrust | `090006` | | Trustbond Mortgage Bank | `090005` | ## Finance companies | Institution | Code | | - | - | | AAA Finance | `050005` | | Branch International Financial Services | `050006` | | Dignity Finance | `050013` | | Enco Finance | `050012` | | Fast Credit | `050009` | | FEWCHORE FINANCE COMPANY LIMITED | `050002` | | Fundquest Financial Services Limited | `050010` | | SageGrey Finance Limited | `050003` | | Tekla Finance Limited | `050007` | | Trinity Financial Services Limited | `050013` | ## Payment service providers Switches and payment processors that hold NIP codes. | Institution | Code | | - | - | | 3line Card Management Limited | `110005` | | Accelerex Network Limited | `090202` | | Crowdforce | `110017` | | Cyberspace Limited | `110014` | | First Apple Limited | `110004` | | Flutterwave Technology Solutions Limited | `110002` | | Intellifin | `100027` | | Interswitch Limited | `110003` | | NIP Virtual Bank | `999999` | | PayAttitude Online | `110001` | | Paystack Payment Limited | `110006` | | Prophius | `110032` | | Teamapt Limited | `110007` | | Vas2nets Limited | `110015` | # Currency Codes Source: https://doc.seerbit.com/development-resources/currency-codes/overview Supported currencies and their ISO codes. | Field | Type | Currency Code | | - | - | - | | Nigeria | Nigerian Naira | NGN | | Ghana | Ghanaian Cedi | GHS | | Kenya | Kenya Shilling | KES | | Tanzania | Tanzanian Shilling | TZS | | United States | US Dollar | USD | | Cameroon, Senegal | CFA Franc BCEAO | XOF | # Raw Acquirer Responses Source: https://doc.seerbit.com/development-resources/responses/raw-acquirer-responses Common raw card-scheme responses behind a declined transaction. A successful API call (HTTP 200) does not mean the payment succeeded — the transaction can still be refused or cancelled by the card issuer. When that happens, `data.code` carries a failure code and `reason` explains why. Codes prefixed `SM_` map to the authorisation response returned by the issuer or card scheme, known as the **raw acquirer response**. See [SeerBit status codes](/development-resources/responses/seerbit-status-code) for the full list, and [verify a payment](/online-payments/after-payments/verify-payment) for how to read a result before fulfilling an order. ## Mastercard and Visa Raw responses These are the most common raw responses from Visa and Mastercard for refused or cancelled transactions. The response code is returned with or without a leading zero. | Type | Raw Responses | Description | | - | - | - | | Cancelled | 00: Approved or completed successfully | The transaction was cancelled after being initially approved by the issuer. This can be due to various reasons, for example, if the shopper returns goods after purchase | | Refused | 01: Refer to card issuer | The transaction was refused by the card issuer. The shopper should contact their bank for clarification. The shopper can try again after resolving the issue with their bank, or use another payment method | | Refused | 03: Invalid merchant | The transaction was refused by the card issuer. The shopper should contact their bank for clarification. The shopper can try again after resolving the issue with their bank, or use another payment method | | Refused | 04: Capture card / Pick-up | The card issuer requests to retain the card. This can be due to a suspected counterfeit or stolen card. This reason is used in an E-Commerce environment although it originates from a POS (Point Of Sale) environment | # Response Handling Source: https://doc.seerbit.com/development-resources/responses/response-handling The shape of an error response and how to read it. When a request fails, the response object contains the following fields: | Field | Type | Required? | | - | - | - | | message | `string` | Yes | | error | `string` | Yes | ```json theme={null} { "message": "Confirm Merchant Environment", "error": "PROCESSING" } ``` The `error` value is a short machine-readable label and `message` explains the failure. For transaction outcomes — as opposed to request errors — read `data.code` instead, and see [SeerBit status codes](/development-resources/responses/seerbit-status-code). # SeerBit Status Code Source: https://doc.seerbit.com/development-resources/responses/seerbit-status-code Look up what a SeerBit response code means. SeerBit uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the **2xx** range indicate success. Codes in the **Sxx** range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). The code S12 indicates failed transactions and is extended in other failed response codes with prefix SM\_. ## Http Status Code | Code | Description | | - | - | | 200 - Ok | Everything as expected | | 400 - Bad request | The request was unacceptable, often due to missing a required parameter | | 401 - Invalid merchant key provided | No valid API key provided. | | 402 - Request failed | The parameters were valid but the request failed | | 404 - Not found | The requested resource is not found | | 500-504 - Internal Server Error | Something went wrong on Seerbit's end | ## SeerBit Status Code | Code | Description | | - | - | | `00` | Successful | | `07` | Transaction not found for the supplied reference (returned by the [refunds API](/online-payments/after-payments/refund#refunds-api)) | | `S0` | Your transaction timed out. Please check status shortly | | `S1` | No valid API key provided. | | `S2` | Invalid Amount | | `S3` | Transaction not permitted by merchant | | `S4` | Invalid Currency | | `S5` | Invalid/Missing parameters | | `S6` | Invalid country | | `S7` | Generic error occurred | | `S10` | Null/Missing authentication code | | `S11` | Unable to connect to destination | | `S12` | Transaction Failed | | `S13` | Invalid payout type | | `S14` | Transaction reference must be unique | | `S15` | Invalid ID type | | `S18` | Transaction reference must be unique | | `S19` | Validation Failed, Check Amount or Currency | | `S20` | Transaction is pending | | `S22` | Card token generated | | `S24` | Invalid network | | `S25` | Sorry we could not complete your transaction. Please try again | | `S26` | Sorry name validation failed. Please try again | | `S404` | No data found | | `S12-15` | Failure declined (no such issuer) | | `SM_01` | Refer to card issuer | | `SM_02` | Refer to card issuer's special conditions | | `SM_03` | Invalid merchant | | `SM_04` | Pick up card | | `SM_05` | Do not honor | | `SM_06` | Error | | `SM_07` | Pick up card, special condition | | `SM_09` | Request in progress | | `SM_10` | Approved for partial amount | | `SM_11` | Approved VIP | | `SM_12` | Invalid transaction | | `SM_13` | Invalid amount | | `SM_14` | Invalid card number | | `SM_14_1` | Invalid card CVV | | `SM_14_2` | Invalid card expiry | | `SM_15` | No such issuer | | `SM_16` | Update Track #3 | | `SM_17` | Customer cancellation | | `SM_18` | Customer dispute | | `SM_19` | Re-enter transaction | | `SM_20` | Invalid response | | `SM_21` | No action taken | | `SM_22` | Suspected malfunction | | `SM_23` | Unacceptable transaction fee | | `SM_24` | File update not supported by receiver | | `SM_25` | Unable to locate record on file | | `SM_26` | Duplicate file update record, old record replaced | | `SM_27` | File update field edit error | | `SM_28` | File update file locked out | | `SM_29` | File update not successful, contact acquirer | | `SM_30` | Format error | | `SM_31` | Bank not supported by switch | | `SM_32` | Completed partially | | `SM_33` | Expired card | | `SM_34` | Suspected fraud | | `SM_35` | Card acceptor contact acquirer | | `SM_36` | Restricted card | | `SM_37` | Card acceptor call acquirer security | | `SM_38` | Allowable PIN tries exceeded | | `SM_39` | No credit account | | `SM_40` | Request function not supported | | `SM_41` | Lost card | | `SM_42` | No universal account | | `SM_43` | Stolen card, pick up | | `SM_44` | No investment account | | `SM_51` | Not sufficient funds | | `SM_52` | No cheque account | | `SM_53` | No savings account | | `SM_54` | Expired card | | `SM_55` | Incorrect PIN | | `SM_56` | No card record | | `SM_57` | Transaction not permitted to card holder | | `SM_58` | Transaction not permitted to acquirer | | `SM_59` | Suspected fraud | | `SM_60` | Card acceptor contact acquirer | | `SM_61` | Exceeds withdrawal amount limits | | `SM_62` | Restricted card | | `SM_63` | Security violation | | `SM_64` | Original amount incorrect | | `SM_65` | Exceeds withdrawal frequency limit | | `SM_66` | Card acceptor call acquirer's security department | | `SM_67` | Hard capture (requires that the card be picked up at ATM) | | `SM_68` | Response received too late | | `SM_75` | Allowable number of PIN tries exceeded | | `SM_81` | Reserved for private use | | `SM_90` | Cut-off is in process (switch ending a day's business and starting the next). Transaction can be sent again in a few minutes | | `SM_91` | Issuer or switch inoperative | | `SM_92` | Financial institution or intermediate network facility cannot be found for routing | | `SM_93` | Transaction cannot be completed; violation of law | | `SM_94` | Duplicate transaction | | `SM_95` | Reconcile Error | | `SM_96` | System Malfunction | | `SM_97` | Advises that reconciliation totals have been reset | | `SM_98` | MAC error | | `SM_99` | Reserved for National Use | | `SM_2` | Transaction declined | | `SM_7` | Payment server processing error | | `SM_8` | Transaction Declined - Transaction Type not supported | | `SM_9` | Bank declined transaction (Do not contact bank) | | `SM_A` | Transaction Aborted | | `SM_B` | Transaction Blocked | | `SM_C` | Transaction Cancelled | | `SM_D` | Deferred Transaction | | `SM_E` | Transaction Declined - Refer to card issuer | | `SM_F` | 3D Secure authentication failed | | `SM_I` | Card security code failed | | `SM_L` | Shopping transaction locked | | `SM_N` | Cardholder is not enrolled in 3D Secure | | `SM_P` | Transaction is pending | | `SM_R` | Retry limits exceeded; transaction not processed | | `SM_T` | Address verification failed | | `SM_U` | Card security code failed | | `SM_V` | Address verification and card security code failed | | `SMV_A` | The signature on the response received from the issuer could not be validated | | `SMV_C` | Card brand not supported | | `SMV_D` | Error communicating with the directory server | | `SMV_E` | The cardholder is not enrolled | | `SMV_F` | An error exists in the request format from the merchant | | `SMV_I` | Internal error | | `SMV_M` | The cardholder is not enrolled | | `SMV_N` | Verification failed | | `SMV_P` | Error receiving input from issuer | | `SMV_S` | The signature on the response received from the issuer could not be validated | | `SMV_T` | The cardholder session timed out and the cardholder's browser never returned from the issuer site | | `SMV_U` | The verification was unable to be completed. This can be caused by network or system failures | | `INP` | Transaction in progress | | `INP2` | Transaction is in progress | | `X23` | Transaction Expired | | `SM_X23` | Sorry your transaction has expired, please try again | | `S24` | Invalid network | | `S25` | Sorry we could not complete your transaction. Please try again | | `S26` | Sorry name validation failed. Please try again | # Go Live Source: https://doc.seerbit.com/go-live Take your integration from a working test payment to processing real money. By this point you should have a working test payment. If not, start with the [Quickstart](/quickstart) — it takes about ten minutes and gets you the test transaction this page assumes. Going live is three things: getting approved, swapping your keys, and re-pointing your webhooks. ## 1. Submit your business for approval Live keys only appear once SeerBit has approved your business. * **Complete onboarding**: upload the required KYC documents in your [dashboard](https://dashboard.seerbit.com/#/auth/login). * **Wait for approval**: the team reviews your application and notifies you when your live account is activated. image of seerbit onboarding page ## 2. Swap your API keys Replace the test keys in your configuration with your live keys, from **Settings > API Keys**. Nothing else changes — the base URL is the same in both modes, so the keys are what switch you over. See [Test and live modes](/test-and-live). image of seerbit settings page ## 3. Re-point your webhooks **Webhook subscriptions do not carry over between modes.** Configure your production webhook URL in the live dashboard, or you will stop receiving notifications the moment you switch keys. image of seerbit settings page See [Webhooks](/online-payments/after-payments/webhook-events) for the acknowledgment contract your endpoint must satisfy. ## 4. Run one real transaction Process a small real payment and confirm it end to end: the charge succeeds, your webhook fires, and [verifying the payment](/online-payments/after-payments/verify-payment) returns what you expect with `mode` reading `live`. ## Before you call it done * **Verify server-side before fulfilling.** Check the status code, the amount and the currency — never fulfil from a browser redirect alone. See [Verify a payment](/online-payments/after-payments/verify-payment). * **Handle `PENDING`.** Local payment methods commonly return it, and a pending payment is not a paid one. See [status codes](/development-resources/responses/seerbit-status-code). * **Make your references unique and idempotent.** A reused `paymentReference` is rejected; a retried timeout should query the original rather than re-charge. * **Add the [payment methods](/payment-methods/overview)** your customers actually use in each country you sell into. # Initiate transaction Source: https://doc.seerbit.com/in-store/initiate-transaction Start a payment on a connected SeerBit POS terminal. POST ```bash theme={null} https://seerbitapi.com/isv-pos/api/v1/transactions ``` Starts a transaction on the terminal identified by `posid`, for the amount given in `transactionValue`, and pushes it directly to the terminal for processing. ## Required headers | Header | Value | | - | - | | `Content-Type` | `application/json` | | `PublicKey` | Your SeerBit public key | | `Hash` | HMAC-SHA256(secretKey, requestBody) — see Authentication | ## Request sample ```bash cURL theme={null} curl --location 'https://seerbitapi.com/isv-pos/api/v1/transactions' \ --header 'Content-Type: application/json' \ --header 'PublicKey: YOUR_PUBLIC_KEY' \ --header 'Hash: YOUR_GENERATED_HASH' \ --data '{ "orderId": "112990000323", "posid": "2214HX01", "transactionValue": "50.00", "metadata": "{\"created_by\": \"john\", \"source\": \"odoo_pos_seerbit\", \"pos_config_id\": 5}", "webhookUrl": "https://webhook.site/97a4-b3d5-a9b9c7b7863b", "transactionRef": "A87EE5e51709977888779DAA4E05" }' ``` ```json JSON theme={null} { "orderId": "112990000323", "posid": "2214HX01", "transactionValue": "50.00", "metadata": "{\"created_by\": \"john\", \"source\": \"odoo_pos_seerbit\", \"pos_config_id\": 5}", "webhookUrl": "https://webhook.site/97a4-b3d5-a9b9c7b7863b", "transactionRef": "A87EE5e51709977888779DAA4E05" } ``` ## Request fields | Field | Required? | Description | | - | - | - | | `orderId` | Required | Merchant-assigned order identifier. | | `posid` | Required | Identifier of the target POS terminal the transaction should be routed to. | | `transactionValue` | Required | Transaction amount, as a decimal string (e.g. `"50.00"`). | | `metadata` | Optional | Free-form JSON, passed as an escaped string, for any extra context you want to attach. | | `webhookUrl` | Optional | Include this if you'd like a webhook notification sent once the transaction completes. | | `transactionRef` | Optional | Client-supplied reference for retry/idempotency, generated by the server if omitted. | ## Response sample ```json 201 Created theme={null} { "transactionRef": "A87EE5e51709977888779DAA4E05", "orderId": "112990000323", "status": "OPEN", "message": "Transaction initiated successfully", "createdAt": "2026-07-02T23:23:01Z" } ``` ## Response fields | Field | Description | | - | - | | `transactionRef` | Server-confirmed transaction reference for this attempt. | | `orderId` | Echoes the `orderId` submitted at initiation. | | `status` | Initial transaction status — `OPEN` immediately after a successful initiation. | | `message` | Human-readable confirmation message. | | `createdAt` | UTC timestamp the transaction record was created. | Use the `orderId` returned above to poll for the outcome. # Overview Source: https://doc.seerbit.com/in-store/overview Accept card-present payments on a SeerBit POS terminal from your ERP, POS software, or retail management system. The SeerBit ISV POS Transaction API enables third-party applications such as ERP systems, POS software, and retail management solutions to initiate payment requests on a connected SeerBit POS terminal and monitor transaction progress until completion. Initiating a transaction pushes it directly to the target POS terminal for processing. Once the terminal completes the payment, the transaction record is updated automatically. Integrating applications can either poll the status endpoint using the `orderId` returned at initiation, or rely on a webhook to be notified the moment a transaction reaches a final state — `COMPLETED` or `FAILED`. | Base URL | Auth | Content-Type | Request Hash | | - | - | - | - | | `https://seerbitapi.com/isv-pos` | `PublicKey` header | `application/json` | HMAC-SHA256 | ## Authentication ### API key All endpoints require a valid `PublicKey` header containing your SeerBit public key. Obtain your public key from your SeerBit account team. ```bash theme={null} PublicKey: YOUR_PUBLIC_KEY ``` ### Request hashing Every call must include a `Hash` header — an HMAC-SHA256 signature of the request body, computed with your SeerBit secret key and Base64-encoded. Generate it before you initiate the request. This protects the request from tampering in transit and is validated on the server against the raw bytes it receives. ``` Hash = Base64( HMAC-SHA256( secretKey, requestBody ) ) ``` | Header | Value | | - | - | | `Hash` | Base64-encoded HMAC-SHA256 signature of the exact request body | > **Important**: The signature must be computed over the exact bytes your HTTP client transmits — not a re-serialized copy of the JSON. Differences in whitespace, key order, or encoding between the hashed bytes and the transmitted bytes will produce a hash mismatch and an `INVALID_HASH` response. > **Security Note**: Never expose your secret key in client-side code — generate the hash on your server or backend service, not in a browser. ### Generating the hash Use the snippet in your language of choice to hash your exact request body with your SeerBit secret key — found on your SeerBit dashboard under **API/Integration** settings — before you initiate a request. Whichever language you use, the result is the same: a Base64-encoded HMAC-SHA256 signature, sent in the `Hash` header. ```python Python theme={null} import hmac, hashlib, base64 def generate_hash(secret_key: str, request_body: str) -> str: signature = hmac.new( key=secret_key.encode("utf-8"), msg=request_body.encode("utf-8"), digestmod=hashlib.sha256, ).digest() return base64.b64encode(signature).decode("utf-8") # Example secret_key = "YOUR_SECRET_KEY" request_body = ( '{"orderId":"ORD-100234","posid":"TERMINAL01",' '"transactionValue":"1000.00"}' ) hash_value = generate_hash(secret_key, request_body) print(f"Hash: {hash_value}") ``` ```javascript NODE theme={null} const crypto = require('crypto'); function generateHash(secretKey, requestBody) { return crypto.createHmac('sha256', secretKey).update(requestBody).digest('base64'); } // Example const secretKey = 'YOUR_SECRET_KEY'; const requestBody = JSON.stringify({ orderId: 'ORD-100234', posid: 'TERMINAL01', transactionValue: '1000.00', }); const hash = generateHash(secretKey, requestBody); console.log(`Hash: ${hash}`); ``` ```java Java theme={null} import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; import java.util.Base64; public class SeerBitHash { public static String generateHash(String secretKey, String requestBody) throws Exception { Mac mac = Mac.getInstance("HmacSHA256"); mac.init(new SecretKeySpec(secretKey.getBytes("UTF-8"), "HmacSHA256")); byte[] hmacBytes = mac.doFinal(requestBody.getBytes("UTF-8")); return Base64.getEncoder().encodeToString(hmacBytes); } public static void main(String[] args) throws Exception { String secretKey = "YOUR_SECRET_KEY"; String requestBody = "{\"orderId\":\"ORD-100234\",\"posid\":\"TERMINAL01\"," + "\"transactionValue\":\"1000.00\"}"; String hash = generateHash(secretKey, requestBody); System.out.println("Hash: " + hash); } } ``` ```php PHP theme={null} Whichever language you use, this produces a request in the following shape: ```bash theme={null} curl -X POST "https://seerbitapi.com/isv-pos/api/v1/transactions" \ -H "Content-Type: application/json" \ -H "PublicKey: YOUR_PUBLIC_KEY" \ -H "Hash: " \ --data '' ``` ## Before you integrate * **PublicKey authentication**: every request must include a valid `PublicKey` header. Obtain your public key from your SeerBit account team. * **Request hashing**: every call must include a `Hash` header, generated before you initiate the request (see [Request hashing](#request-hashing) above). * **Webhooks are optional**: pass a `webhookUrl` in the initiate payload if you'd rather receive a push notification than poll the status endpoint. * **The terminal must be linked**: the terminal referenced by `posid` must already be linked to your SeerBit account. ## Where to go next Start a payment on a connected terminal. Poll for the outcome and settlement detail. Get notified the moment a transaction resolves. ## Error handling All error responses share a consistent shape: ```json theme={null} { "error": "ERROR_CODE", "message": "Human-readable error description", "details": {}, "timestamp": "2026-07-03T07:10:25Z", "traceId": "abc123xyz" } ``` #### Error codes | HTTP / Code | Description | | - | - | | `400` · `INVALID_REQUEST` | Request body failed validation. | | `401` · `MISSING_API_KEY` | The `PublicKey` header is missing. | | `401` · `INVALID_API_KEY` | The API key could not be validated. | | `401` · `MISSING_HASH` | A request was sent without a `Hash` header. | | `401` · `INVALID_HASH` | The `Hash` header did not match the request body. | | `403` · `TERMINAL_NOT_ASSIGNED` | The `posid` is not linked to your business. | | `404` · `TRANSACTION_NOT_FOUND` | No transaction exists for the given reference. | | `409` · `DUPLICATE_REFERENCE` | The `orderId` or `transactionRef` has already been used. | | `500` · `WRITE_FAILED` | The transaction record could not be saved. Retry the request. | | `500` · `INTERNAL_ERROR` | Unexpected server error. | ### Worked examples ##### 1. Invalid API key Occurs when the `PublicKey` provided cannot be validated. ```json 401 Unauthorized theme={null} { "error": "INVALID_API_KEY", "message": "Failed to validate public key", "timestamp": "2026-07-03T07:10:25Z" } ``` ##### 2. Missing or invalid hash Occurs when a request omits the `Hash` header, or the header does not match the request body. ```json 401 Unauthorized theme={null} { "error": "INVALID_HASH", "message": "Request hash validation failed", "timestamp": "2026-07-15T09:42:07Z", "traceId": "b21ac4e0-551" } ``` ##### 3. Terminal not assigned Occurs when the `posid` submitted is not linked to your business. ```json 403 Forbidden theme={null} { "error": "TERMINAL_NOT_ASSIGNED", "message": "Terminal is not assigned to your business", "details": { "posid": "2214HX01" }, "timestamp": "2026-07-15T09:44:31Z", "traceId": "9a13cd02-447" } ``` ##### 4. Duplicate order ID Occurs when the `orderId` submitted has already been used on a previous transaction. ```json 409 Conflict theme={null} { "error": "DUPLICATE_REFERENCE", "message": "Transaction reference already exists", "details": { "reference": "order_id: 112990000323" }, "timestamp": "2026-07-03T07:11:12Z", "traceId": "f6ef7e1f-078" } ``` ##### 5. Duplicate transaction reference Occurs when the `transactionRef` submitted has already been used on a previous transaction. ```json 409 Conflict theme={null} { "error": "DUPLICATE_REFERENCE", "message": "Transaction reference already exists", "details": { "reference": "transactionRef: ITA87EE5e51709977888779DAA4E05" }, "timestamp": "2026-07-03T07:11:54Z", "traceId": "d7602a39-189" } ``` # Transaction status Source: https://doc.seerbit.com/in-store/transaction-status Retrieve the current status and settlement detail for a POS transaction. GET ```bash theme={null} https://seerbitapi.com/isv-pos/api/v1/transactions/{orderId}/status ``` Retrieves the current status of a transaction. Once a transaction reaches a final state, this endpoint also returns the full settlement detail for the attempt. > **Important**: Use the `orderId` from the initiation response as the path parameter — not the `transactionRef`. ## Required headers | Header | Value | | - | - | | `Content-Type` | `application/json` | | `PublicKey` | Your SeerBit public key | ## Request sample ```bash cURL theme={null} curl --location 'https://seerbitapi.com/isv-pos/api/v1/transactions/112990000323/status' \ --header 'Content-Type: application/json' \ --header 'PublicKey: YOUR_PUBLIC_KEY' ``` ## Response sample ```json 200 OK theme={null} { "orderId": "112990000323", "transactionRef": "A87EE5e51709977888779DAA4E05", "status": "COMPLETED", "transactionValue": "50.00", "posId": "2214HX01", "amountPaid": "50.00", "cardNumber": "411111******1234", "paymentType": "CARD", "response": "Transaction successful", "responseCode": "200", "merchantId": "SBT-MERCH-004521", "sessionId": "000435317658", "transactionTime": "2026-07-02T23:26:34Z" } ``` > **Note**: While a transaction is still `OPEN` or `PENDING`, settlement fields such as `amountPaid`, `cardNumber`, `paymentType`, `response`, and `responseCode` will not yet be populated. ## Response fields | Field | Description | | - | - | | `orderId` | Echoes the `orderId` submitted at initiation. | | `transactionRef` | The reference for the transaction being queried. | | `status` | Current transaction status (see [Status values](#status-values) below). | | `transactionValue` | Transaction amount that was requested, as a decimal string. | | `posId` | Identifier of the POS terminal the transaction was routed to. | | `amountPaid` | Amount actually captured on the terminal. Present once the transaction resolves. | | `cardNumber` | Masked card number used for payment (first six / last four digits shown). | | `paymentType` | Payment instrument used, e.g. `CARD`, `TRANSFER`, `USSD`. | | `response` | Human-readable detail on the transaction outcome, e.g. an incorrect PIN entry. | | `responseCode` | One of three possible values: `200` (SUCCESS), `400` (FAILED), or `401` (CANCELED). | | `merchantId` | Identifier of the merchant the terminal is registered under. | | `sessionId` | The SeerBit reference for this transaction — use this value when reconciling with SeerBit. | | `transactionTime` | UTC timestamp the transaction reached its current status. | ## Status values | Status | Meaning | | - | - | | `OPEN` | Transaction has been initiated and is waiting for the POS terminal to process it. | | `PENDING` | Transaction exists but the POS terminal has not reconciled it yet. | | `COMPLETED` | Transaction completed successfully; settlement fields are populated. | | `FAILED` | Transaction failed on the terminal or was declined by the card scheme. | Supply a `webhookUrl` at initiation and SeerBit will push the result to you instead. # In-Store Webhooks Source: https://doc.seerbit.com/in-store/webhooks Receive push notifications when a POS transaction reaches a final state. If a `webhookUrl` was supplied at initiation, SeerBit sends a webhook event for the transaction — a `transaction.completed` event when the transaction is successful, and a `transaction.failed` event when it fails on the POS. > **Before you integrate**: Your webhook endpoint must be publicly accessible and able to receive `POST` requests from the SeerBit API. ## Notifications ### Delivery headers | Header | Description | | - | - | | `X-Webhook-Event` | Event type, e.g. `transaction.completed`. | | `X-Webhook-Event-Id` | Unique identifier for this webhook delivery. | | `X-Webhook-Signature` | HMAC-SHA256 signature of the payload — present only if a signing secret has been configured for your webhook. | | `X-Webhook-Encrypted` | `true` if the payload body is AES-256-GCM encrypted for your business. | ### Payload samples ```json Transaction completed theme={null} { "id": "evt_94c252f8-075", "type": "transaction.completed", "timestamp": "2026-07-03T13:34:28.456360900Z", "data": { "orderId": "112990000323", "transactionRef": "ITA87EE5e51709977888779DAA4E05", "status": "COMPLETED", "transactionValue": "50.00", "posId": "2214HX01", "amountPaid": "50.00", "cardNumber": "411111******1234", "paymentType": "CARD", "response": "Transaction successful", "responseCode": "200", "merchantId": "SBT-MERCH-004521", "sessionId": "000435317658", "transactionTime": "03-07-2026 02:34 PM", "completedAt": "2026-07-03T13:34:28.456414484Z" } } ``` ```json Transaction failed theme={null} { "id": "evt_d906afd6-d6e", "type": "transaction.failed", "timestamp": "2026-07-02T22:54:23.496206016Z", "data": { "orderId": "1122223", "transactionRef": "ITA87EE5510999DAA4E05", "status": "FAILED", "transactionValue": "5.00", "posId": "2214HX01", "responseCode": "400", "response": "Incorrect PIN entered", "sessionId": "000435317652", "transactionTime": "02-07-2026 11:54 PM", "completedAt": "2026-07-02T22:54:23.496266234Z" } } ``` > **Note**: Fields such as `responseCode` and `response` reflect the decline reason where the terminal or card scheme provides one. `amountPaid`, `cardNumber`, and `paymentType` are generally absent on a failed attempt. ### Payload fields | Field | Description | | - | - | | `id` | Unique identifier for this webhook event. | | `type` | Event type: `transaction.completed` or `transaction.failed`. | | `timestamp` | UTC timestamp the event was generated. | | `orderId` | Echoes the `orderId` submitted at initiation. | | `transactionRef` | The transaction reference for this attempt. | | `status` | Final transaction status: `COMPLETED` or `FAILED`. | | `transactionValue` | Transaction amount that was requested, as a decimal string. | | `posId` | Identifier of the POS terminal the transaction was processed on. | | `amountPaid` | Amount captured on the terminal. Present on completed transactions. | | `cardNumber` | Masked card number used for payment. Present on completed transactions. | | `paymentType` | Payment instrument used, e.g. `CARD`. | | `response` | Human-readable detail on the transaction outcome, e.g. an incorrect PIN entry. | | `responseCode` | One of three possible values: `200` (SUCCESS), `400` (FAILED), or `401` (CANCELED). | | `merchantId` | Identifier of the merchant the terminal is registered under. | | `sessionId` | The SeerBit reference for this transaction — use this value when reconciling with SeerBit. | | `transactionTime` | Local timestamp the transaction was processed on the terminal. | | `completedAt` | UTC timestamp the transaction reached its terminal status. | ## Decrypting encrypted webhooks If your SeerBit account team has enabled payload encryption for your business, webhook payloads are encrypted with AES-256-GCM before delivery and `X-Webhook-Encrypted` is set to `true`. Follow the steps below to decrypt them on your end. | Property | Value | | - | - | | Algorithm | AES-256-GCM | | Key derivation | SHA-256 hash of your SeerBit secret key | | IV length | 12 bytes, random, prepended to the ciphertext | | Tag length | 128 bits (16 bytes), appended to the ciphertext | | Encoding | Base64 of IV + ciphertext + GCM tag | ##### Steps to decrypt 1. Base64-decode the webhook payload body. 2. Take the first 12 bytes as the IV (initialization vector). 3. Take the last 16 bytes as the GCM authentication tag. 4. Derive the AES key as `SHA-256(secretKey)`. 5. Decrypt the remaining bytes (the ciphertext) using AES-256-GCM with the derived key, IV, and tag. # Welcome Source: https://doc.seerbit.com/index

Welcome to SeerBit documentation

Explore documentation, tools, and best practices to power your payment experience with SeerBit.

## Developer Tools
## Use Cases
## Integrated Software Partners View all