إقرأ مجلة البنك العراقي الأول باللغات الكردية، العربية و الانجليزية لشهر حزيران ٢٠٢٤ !

back to developers

Web Payments

Welcome to FIB Online Payment Documentation, With the FIB Online payments service you can easily accept payments fast and easily on your web shop. All you need to do is connect with the create payment and check status endpoints or you can provide us a callback URL (we will be calling it when status is changed). The endpoints consume JSON request bodies and produce JSON responses. As a first step, please register for our sandbox environment. We kindly ask you to play around with our API and try to create payments and check the status of payments. When you feel comfortable accepting payments on your production environment, please fill out this FIB Integration Request Form so that we provide you with the credentials for your account. After applying for credentials, First Iraqi Bank will provide you with the required credentials which need to be added as properties for production. After a successful integration, you will be ready to offer“Pay with FIB”for your customers, and see all successful transactions from your shop in the FIB app.

Integration Process Diagram

initiate transaction diagram

API Reference

Our API is organized around REST, it has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. You can use the FIB API on the sandbox environment, which does not affect your live data or interact with the banking networks. The account credentials you use to authenticate the request determines whether the request is live mode or test mode.

The credentials consist of:

  • client_id
  • client_secret

Requests

All requests need to be authenticated with an Access Token acquired with the OAuth2 Client Credentials Grant Flow with theclient_id andclient_secret you got from us.

All API requests must be made over HTTPS or they will fail. You must authenticate for all requests.

API Flow

  • Authentication

    Authentication of the user and the credentials you were given, and giving you a token for your future requests.

  • Payment Creation

    Used to create a payment and getting QR codes and dynamic links to forward the user to the payment screen.

  • Checking payment status

    Used to check the status of a payment.

  • Payment Cancellation

    Used to cancel an active payment that has not been paid yet.

Please note that below examples will only show the relevant information in the request. A simple copy-paste of the request might therefore lead to errors in your product.

Authorization

Code Example

https://fib.stage.fib.iq/auth/realms/fib-online-shop/protocol/openid-connect/token
  • clientId: Your accounts unique identifier. Will be given to you by FIB.
  • clientSecret: A secret key to be stored on a safe place on your app. Will be given to you by FIB.
BODYURLENCODED
grant_typeclient_credentials
client_idClient id provided by FIB
client_secretClient Secret provided by FIB

Example Request

curl --location --request POST 'https://fib.stage.fib.iq
/auth/realms/fib-online-shop/protocol/openid-connect/token' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=Your client ID - Provided by FIB' \
--data-urlencode 'client_secret=Secret - Provided by FIB'

Example Response

{
    access_token:
        "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPdjBsNEJGOVRmVDlWNTEtVjZBeTRmYlVoQ0dMbTZXUVpxcXQ4S3lLOGhnIn0.eyJleHAiOjE2NDM2MzA4MDgsImlhdCI6MTY0MzYzMDc0OCwianRpIjoiOWE5ZmRmMGItMGRjMS00ZTdhLWI2NTMtM2MyMzg5ZDRiODg5IiwiaXNzIjoiaHR0cHM6Ly9maWIuZGV2LmF6dXJlLmxhd3JlbmNlLXNwcmluZy5jb20vYXV0aC9yZWFsbXMvZmliLW9ubGluZS1zaG9wIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6ImMxNmQ3YWM2LTc5NGUtNDViZi1hYzA3LWNhYTRiYmNjZjU5YiIsInR5cCI6IkJlYXJlciIsImF6cCI6Im9ubGluZS1zaG9wIiwic2Vzc2lvbl9zdGF0ZSI6IjMzZDdlZTk3LTc0NDQtNDg1ZC1iY2I3LTI1YWY1Njc5N2MwNyIsImFjciI6IjEiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiIsIkZJQl9QQVkiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6ImVtYWlsIHByb2ZpbGUiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImFjY291bnRfaWQiOiJmZmZkNmU4NC1hMTcyLTQ5YzctYmZlOC0yMjk4ZGQzYThlMjAiLCJjbGllbnRIb3N0IjoiOTMuOTEuMjAwLjE5OCIsIn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I6IjMzZDdlZTk3LTc0NDQtNDg1ZC1iY2I3LTI1YWY1Njc5N2MwNyIsInNjb3BlIjoiZW1haWwgcHJvZmlsZSJ9.YsExgjevG_8vAA-UhaT16rQLzyDC5fAcuBWMSK6i9qs",
    token_type: "bearer",
    "not-before-policy": 0,
    session_state: "33d7ee97-7444-485d-bcb7-25af56797c07",
    scope: "email profile",
  }

Create Payment

Code Example

https://fib.stage.fib.iq/protected/v1/payments

Request body

  • monetaryValue.amount:the amount of the payment.
  • monetaryValue.currency: the currency of the payment; currently only IQD is supported.
  • statusCallbackUrl: (Optional) The callback url that we will send a POST request to when status of the created payment changes. Callback URL should be able to handle POST requests with request body that contains two properties:
    • id : this will be the payment id.
    • status : this will be the payment status.
    Response code should be as follows
    • HTTP 202 - Accepted
    • HTTP 406 - Not acceptable
    • HTTP 500 - General error
    Response example is in Check Status endpoint section of the documentation.
  • description: (Optional) Description of the payment to help your customer to identify it in the FIB app, with the maximum length of 50 characters.

Expected Response

  • paymentId: A unique identifier of the payment, used later to check the status.
  • qrCode: A base64-encoded data URL of the QR code image that the user can scan with the FIB mobile app.
  • readableCode: A payment code that the user can enter manually in case he cannot scan the QR code.
  • personalAppLink: A link that the user can tap on his mobile phone to go to the corresponding payment screen in the FIB Personal app.
  • businessAppLink: A link that the user can tap on his mobile phone to go to the corresponding payment screen in the FIB Business app.
  • corporateAppLink: A link that the user can tap on his mobile phone to go to the corresponding payment screen in the FIB Corporate app.
  • validUntil: An ISO-8601-formatted date-time string, representing a moment in time when the payment expires.
AUTHORIZATIONBEARER TOKEN
Token<token>
BODYRAW

Code Example


{
  "monetaryValue": {
    "amount": "500.00",
    "currency": "IQD"
  },
  "statusCallbackUrl": "https://URL_TO_UPDATE_YOUR_PAYMENT_STATUS",
  "description": "Lorem ipsum dolor sit amet."
}

Example Request

{
  curl --location --request POST  'https://fib.stage.fib.iq/protected/v1/payments' 
 --header 'Content-Type: application/x-www-form-urlencoded' 
 --header 'Authorization: Bearer token you recieved with the Authorization endpoint' 
 --data-raw '{
  "monetaryValue": {
    "amount": "500.00",
    "currency": "IQD"
  },
  "statusCallbackUrl": "https://URL_TO_UPDATE_YOUR_PAYMENT_STATUS",
  "description": "Lorem ipsum dolor sit amet."
}

Example Response

{
{
  "paymentId": "9dfa724f-4784-4487-811b-63057b540503",
  "readableCode": "S3LE-NZ2S-ZNGF",
  "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAWo0lEQVR4Xu2
  bWZBd1XWGz0MGT9hmMPNgZjNDsLENBlvYmMHG2EkqVa5UOZUXx/ZLUhkqlVRleEiKSpUZNXWru89Rd0utVmtuTUAZ4UKA
  EVggISyhCRPZwkKAADFJqKXOjU+v5vL/Z6+tvdj33Nu656vvgcL/+vfep1YJqQ3Jn61MJ4SjgXCDLs4LnNTzjYZv0pomf
  7oynRDiB/bBDbo4L3BSzzcavklrWi2Wp5+Ter7R8E1a0+R7K9IJIX5gH9ygi/MCJ/V8o+GbtKbVYnn6OannGw3fpDWtFsv
  Tz0k932j4Jq1p8t0V6YQQP7APbtDFeYGTer7R8E1a02qxPP2c1PONhm/Smia3rUgLxQeVBd9Evw8n9bwLbrD1uOBmWz83
  2HpiwTfJTW5bnhaKBWXBN9Hvw0k974IbbD0uuNnWzw22nljwTXKrxRqDG2w9LrjZ1s8Ntp5Y8E1yk+8sTwvFgrLgm+j34
  aSed8ENth4X3Gzr5wZbTyz4JrnVYo3BDbYeF9xs6+cGW08s+Ca5ya3L00KxoCz4Jvp9OKnnXXCDrccFN9v6ucHWEwu+SW
  61WGNwg63HBTfb+rnB1hMLvklutVhjcIOtxwU32/q5wdYTC75JbvLtZWmhWCBw0ib2CpyMmw+Fm+P2h8I30e/DSZvYK3Ay
  t1osD9wctz8Uvol+H07axF6Bk7nJt5alhWKBwEmb2CtwMm4+FG6O2x8K30S/DydtYq/AydxqsTxwc9z+UPgm+n04aRN7BU
  7mVovlgZvj9ofCN9Hvw0mb2CtwM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lniewEldnBc4acu7xHmBk7rVYkUWzxM4
  qYvzAidteZc4L3BSN/nYjKxQLBY4aRN7BU6Wk48lnidwUhfnBU7a8i5xXuCkbvBiNRq+ie0+3BC3J1Ts9cENujgvcFLPh8LNu
  dVieeAGm9jrgxt0cV7gpJ4PhZtzk4/OyArFgrLgm9juww1xe0LFXh/coIvzAif1fCjcnFstlgdusIm9PrhBF+cFTur5ULg5N/
  nIjKxQLCgLvontPtwQtydU7PXBDbo4L3BSz4fCzbnVYnngBpvY64MbdHFe4KSeD4Wbc5OPdGaFYkFZ8E1s9+GGuD2hYq8PbtD
  FeYGTej4Ubs5N/rgzKxQLyoJvYrsPN8TtCRV7fXCDLs4LnNTzoXBzrnOxWk18kBVutvVzgy7O++AGW08s+Ca6yR91ZhNCfKgV
  brb1c4MuzvvgBltPLPgmutViGfu5QRfnfXCDrScWfBPdarGM/dygi/M+uMHWEwu+iW7yhx3ZhBAfaoWbbf3coIvzPrjB1hMLv
  olutVjGfm7QxXkf3GDriQXfRDf5g45sQogPtcLNtn5u0MV5H9xg64kF30S3WixjPzfo4rwPbrD1xIJvovt/4gjbI1dzo9UA
  AAAASUVORK5CYII=",
  "validUntil": "2022-01-31T12:15:44.020920Z",
  "personalAppLink": 
  "https://personal.stage.first-iraqi-bank.co/?link=https://personal.stage.first-iraqi-bank.co
  /onlinePayment/?identifier%3DS3LENZ2SZNGF&apn=com.firstiraqibank.personal.stage&ibi=
  se.core.Lawrencespring.development",
  "businessAppLink": 
  "https://business.stage.first-iraqi-bank.co/?link=https://business.stage.first-iraqi-bank.co
  /onlinePayment/?identifier%3DS3LENZ2SZNGF&apn=com.firstiraqibank.business.stage&ibi=
  se.core.Lawrencespring.business.development",
  "corporateAppLink": 
  "https://corporate.stage.first-iraqi-bank.co/?link=https://corporate.stage.first-iraqi-bank.co
  /onlinePayment/?identifier%3DS3LENZ2SZNGF&apn=com.firstiraqibank.corporate.stage&ibi=
  se.core.Lawrencespring.corporate.development"
}

Check Payment Status

Code Example

https://fib.stage.fib.iq/protected/v1/payments/{paymentid}/status

Requset

paymentId: Should be passed in the url path.

Expected Responses

  • paymentId: a unique identifier of the payment.
  • status: Expected values are: PAID | UNPAID | DECLINED .
  • validUntil: an ISO-8601-formatted date-time string, representing a moment in time when the payment expires.
  • paidAt: an ISO-8601-formatted date-time string, representing a moment in time when the payment is done.
  • amount:a JSON object, containing two key-value pairs; the amount and currency of the payment.
  • decliningReason: Expected Values are:
    • SERVER_FAILURE: Payment failure due to some internal error.
    • PAYMENT_EXPIRATION: Payment has expired.
    • PAYMENT_CANCELLATION: Payment canceled by the user.
  • declinedAt: an ISO-8601-formatted date-time string, representing a moment in time when the payment is declined.
  • paidBy: a JSON object, containing two key-value pairs; the name and iban of the customer.
AUTHORIZATIONBEARER TOKEN
Token<token>

Example Request

curl --location --request GET \
'https://fib.stage.fib.iq/protected/v1/payments/4d6f7625-60f7-48e3-82e3-b4592a4eb993/status' \
--data-raw

Example Response

{
  "paymentId": "4d6f7625-60f7-48e3-82e3-b4592a4eb993",
  "status": "UNPAID",
  "validUntil": "2022-01-31T12:26:12.544Z",
  "paidAt": null,
  "amount": {
    "amount": 500,
    "currency": "IQD"
  },
  "decliningReason": null,
  "declinedAt": null,
  "paidBy": null
}

Cancel Payment

Code Example

https://fib.stage.fib.iq/protected/v1/payments/4d6f7625-60f7-48e3-82e3-b4592a4eb993/cancel

Request

paymentId: Should be passed in the url path.

Response

204 No Content http status code.

Example Request

curl --location -g --request POST 'https://fib.stage.fib.iq/protected/v1/payments/{PAYMENT_ID}/cancel'
AUTHORIZATIONBEARER TOKEN
Token<token>

اتصل بنا

مركز الاتصال: متوفر من ٨:٠٠ ص إلى ١١:٥٩ م

مركز الاتصال: متوفر من ٨:٠٠ ص إلى ١١:٥٩ م

٦٩٧٧ ٢٢٠ ٠٦٦
دردش معنا على واتساب!

دردش معنا على واتساب!

٦٩٩٩ ٦٦٦ ٠٦٦
اتصل بنا عبر البريد الإلكتروني

اتصل بنا عبر البريد الإلكتروني

customer-service@fib.iq