production
development
https://apigateway.bankalfalah.com/bankalfalah/sb
Paths
/v1
post /v1
clientIdHeader
X-IBM-Client-Id
(apiKey located in header)
clientSecretHeader
X-IBM-Client-Secret
(apiKey located in header)
OAuth
OAuth
(oauth2 application)
OAuth Authentication
Token URL
https://apigateway.bankalfalah.com/bankalfalah/sb/oauthproviderapi/oauth2/token
Scopes
GetToken
RequestBody
Required in body
object
Content-Type
Optional in header
string
application/json
Accept
Optional in header
string
application/json
200
200 OK
500
Error
Example Request
Example Response
POST https://apigateway.bankalfalah.com/bankalfalah/sb/bafapi-card-create-new-card-physical/v1
Try this operation
No response. This is a mixed content call. It is not possible to test HTTP APIs from an HTTPS secured Portal site and vice versa.
No response. This is a cross-origin call. Make sure the server accepts requests from this portal. Or if using self-signed SSL certificates then paste the URL above into your browser to accept the certificate before trying again (On Internet Explorer it must be the same browser tab.).
Definitions
{
"properties": {
"customerType": {
"type": "string",
"example": "00"
},
"customerCategory": {
"properties": [],
"type": "string"
},
"status": {
"properties": [],
"type": "string",
"example": "00"
},
"CNIC": {
"properties": [],
"type": "string",
"example": "4220105741165"
},
"uniqueIdentifier": {
"properties": [],
"type": "string"
},
"dateOfBirth": {
"properties": [],
"type": "string",
"example": "19900101"
},
"homePhone": {
"properties": [],
"type": "string",
"example": "923242119171"
},
"mobileNumber": {
"properties": [],
"type": "string",
"example": "923242119171"
},
"fathersName": {
"properties": [],
"type": "string",
"example": "Muhammad Ali"
},
"mothersName": {
"properties": [],
"type": "string",
"example": "ADC"
},
"email": {
"properties": [],
"type": "string",
"example": "UPI@TEST.COM"
},
"company": {
"properties": [],
"type": "string",
"example": "Company Name"
},
"city": {
"properties": [],
"type": "string",
"example": "135"
},
"country": {
"properties": [],
"type": "string",
"example": "PK"
},
"homeAddress1": {
"properties": [],
"type": "string",
"example": "st Floor, Branchless Department"
},
"homeAddress2": {
"properties": [],
"type": "string",
"example": "Bank Alfalah, Head Office, B.A"
},
"homeAddress3": {
"properties": [],
"type": "string",
"example": "Building, I.I Chundrigar Road,"
},
"homeAddress4": {
"properties": [],
"type": "string",
"example": "Karachi"
},
"homeAddress5": {
"properties": [],
"type": "string"
},
"officeAddress1": {
"properties": [],
"type": "string"
},
"officeAddress2": {
"properties": [],
"type": "string"
},
"officeAddress3": {
"properties": [],
"type": "string"
},
"officeAddress4": {
"properties": [],
"type": "string"
},
"officeAddress5": {
"properties": [],
"type": "string"
},
"designation": {
"properties": [],
"type": "string"
},
"firstName": {
"properties": [],
"type": "string",
"example": "Muhammad"
},
"middleName": {
"properties": [],
"type": "string",
"example": "TAHA"
},
"lastName": {
"properties": [],
"type": "string",
"example": "Siddiqui"
},
"BRANCH_CODE": {
"properties": [],
"type": "string",
"example": "3698"
},
"passportNo": {
"properties": [],
"type": "string"
},
"gender": {
"properties": [],
"type": "string",
"example": "M"
},
"homePostalCode": {
"properties": [],
"type": "string"
},
"officePostalCode": {
"properties": [],
"type": "string"
},
"province": {
"properties": [],
"type": "string"
},
"nationality": {
"properties": [],
"type": "string",
"example": "Pakistani"
},
"placeOfBirth": {
"properties": [],
"type": "string"
},
"title": {
"properties": [],
"type": "string",
"example": "Mrs"
},
"custLanguage": {
"properties": [],
"type": "string"
},
"primaryProductCode": {
"properties": [],
"type": "string",
"example": "3001"
},
"supplementaryProductCode": {
"properties": [],
"type": "string"
},
"nameOnCard": {
"properties": [],
"type": "string",
"example": "Muhammad TAHA"
},
"supplementaryNameOnCard": {
"properties": [],
"type": "string"
},
"cardId": {
"properties": [],
"type": "string"
},
"accountId": {
"properties": [],
"type": "string",
"example": "1000111777711"
},
"accountCurrency": {
"properties": [],
"type": "string",
"example": "586"
},
"accountType": {
"properties": [],
"type": "string",
"example": "10"
},
"terminalId": {
"properties": [],
"type": "string"
},
"requestId": {
"properties": [],
"type": "string"
},
"srequestId": {
"properties": [],
"type": "string"
},
"BILLINGFLAG": {
"properties": [],
"type": "string",
"example": "H"
},
"machineId": {
"properties": [],
"type": "string"
}
},
"additionalProperties": false,
"required": [
"customerType",
"customerCategory",
"status",
"CNIC",
"uniqueIdentifier",
"dateOfBirth",
"homePhone",
"mobileNumber",
"fathersName",
"mothersName",
"email",
"company",
"city",
"country",
"homeAddress1",
"homeAddress2",
"homeAddress3",
"homeAddress4",
"homeAddress5",
"officeAddress1",
"officeAddress2",
"officeAddress3",
"officeAddress4",
"officeAddress5",
"designation",
"firstName",
"middleName",
"lastName",
"BRANCH_CODE",
"passportNo",
"gender",
"homePostalCode",
"officePostalCode",
"province",
"nationality",
"placeOfBirth",
"title",
"custLanguage",
"primaryProductCode",
"supplementaryProductCode",
"nameOnCard",
"supplementaryNameOnCard",
"cardId",
"accountId",
"accountCurrency",
"accountType",
"terminalId",
"requestId",
"srequestId",
"BILLINGFLAG",
"machineId"
]
}
{
"type": "object",
"properties": {
"CUSTOMERTYPE": {
"type": "string"
},
"STATUS": {
"type": "string"
},
"CNIC": {
"type": "string"
},
"DATEOFBIRTH": {
"type": "string"
},
"HOMEPHONE": {
"type": "string"
},
"MOBILENUMBER": {
"type": "string"
},
"FATHERSNAME": {
"type": "string"
},
"MOTHERSNAME": {
"type": "string"
},
"EMAIL": {
"type": "string"
},
"COMPANY": {
"type": "string"
},
"CITY": {
"type": "string"
},
"COUNTRY": {
"type": "string"
},
"HOMEADDRESS1": {
"type": "string"
},
"HOMEADDRESS2": {
"type": "string"
},
"HOMEADDRESS3": {
"type": "string"
},
"HOMEADDRESS4": {
"type": "string"
},
"HOMEADDRESS5": {
"type": "string"
},
"OFFICEADDRESS1": {
"type": "string"
},
"OFFICEADDRESS2": {
"type": "string"
},
"OFFICEADDRESS3": {
"type": "string"
},
"OFFICEADDRESS4": {
"type": "string"
},
"OFFICEADDRESS5": {
"type": "string"
},
"DESIGNATION": {
"type": "string"
},
"FIRSTNAME": {
"type": "string"
},
"MIDDLENAME": {
"type": "string"
},
"LASTNAME": {
"type": "string"
},
"BILLINGFLAG": {
"type": "string"
},
"BRANCH_CODE": {
"type": "string"
},
"GENDER": {
"type": "string"
},
"HOMEPOSTALCODE": {
"type": "string"
},
"OFFICEPOSTALCODE": {
"type": "string"
},
"PROVINCE": {
"type": "string"
},
"NATIONALITY": {
"type": "string"
},
"PLACEOFBIRTH": {
"type": "string"
},
"TITLE": {
"type": "string"
},
"PRIMARYPRODUCTCODE": {
"type": "string"
},
"SUPPLEMENTARYPRODUCTCODE": {
"type": "string"
},
"NAMEONCARD": {
"type": "string"
},
"cardId": {
"type": "string"
},
"accountId": {
"type": "string"
},
"accountCurrency": {
"type": "string"
},
"accountType": {
"type": "string"
},
"terminalId": {
"type": "string"
}
},
"example": {
"CUSTOMERTYPE": "00",
"STATUS": "00",
"CNIC": "4220105741165",
"DATEOFBIRTH": "19900101",
"HOMEPHONE": "23242119171",
"MOBILENUMBER": "923242119171",
"FATHERSNAME": "M PAPA",
"MOTHERSNAME": "ADC",
"EMAIL": "UPI@TEST.COM",
"COMPANY": "Company Name",
"CITY": "135",
"COUNTRY": "PK",
"HOMEADDRESS1": "1st Floor, Branchless Department,",
"HOMEADDRESS2": "Bank Alfalah, Head Office, B.A",
"HOMEADDRESS3": "Building, I.I Chundrigar Road,",
"HOMEADDRESS4": "Karachi",
"HOMEADDRESS5": "",
"OFFICEADDRESS1": "",
"OFFICEADDRESS2": "",
"OFFICEADDRESS3": "",
"OFFICEADDRESS4": "",
"OFFICEADDRESS5": "",
"DESIGNATION": "",
"FIRSTNAME": "Muhammad",
"MIDDLENAME": "TAHA",
"LASTNAME": "Siddiqui",
"BILLINGFLAG": "H",
"BRANCH_CODE": "3698",
"GENDER": "M",
"HOMEPOSTALCODE": "",
"OFFICEPOSTALCODE": "",
"PROVINCE": "",
"NATIONALITY": "Pakistani",
"PLACEOFBIRTH": "",
"TITLE": "Mrs",
"PRIMARYPRODUCTCODE": "3001",
"SUPPLEMENTARYPRODUCTCODE": "",
"NAMEONCARD": "Muhammad TAHA",
"cardId": "",
"accountId": "1000111777711",
"accountCurrency": "586",
"accountType": "10",
"terminalId": ""
}
}
{
"type": "object",
"properties": {
"ResponseCode": {
"type": "string"
},
"ResponseDesc": {
"type": "string"
}
},
"example": {
"ResponseCode": "99",
"ResponseDesc": "Failed"
}
}