--- swagger: "2.0" info: x-ibm-name: bafapi-card-create-new-card-virtual title: BAFAPI Create New Virtual Card version: 1.0.0 description: "" schemes: - https basePath: /bafapi-card-create-new-card-virtual consumes: - application/json produces: - application/json securityDefinitions: OAuth: type: oauth2 description: OAuth Authentication flow: application scopes: GetToken: "" tokenUrl: https://apigateway.bankalfalah.com/bankalfalah/sb/oauthproviderapi/oauth2/token clientIdHeader: type: apiKey in: header name: X-IBM-Client-Id clientSecretHeader: type: apiKey in: header name: X-IBM-Client-Secret security: - clientIdHeader: [] clientSecretHeader: [] OAuth: - GetToken x-ibm-configuration: testable: true enforced: true phase: realized paths: /v1: post: responses: 200: description: Success schema: $ref: '#/definitions/Response Body' 500: description: Error schema: $ref: '#/definitions/Error Response' parameters: - name: RequestBody required: true in: body schema: $ref: '#/definitions/RequestData' tags: [] definitions: RequestData: description: "" type: object properties: productCode: type: string nameOnCard: type: string expiry: type: string branchCode: type: string accountId: type: string AccountType: type: string AccountCurrency: type: string customerData: type: object properties: customerType: type: string customerCategory: type: string registrationIdType: type: string depositSource: type: string status: type: string cnic: type: string nic: 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 activitionDate: type: string lastUpdatedDate: type: string registrationDate: type: string passportNo: type: string oldCustomerId: type: string transactionAlerts: type: string channelAlerts: type: string transactionInsurance: type: string faxNumber: type: string gender: type: string internalBranchId: type: string hostCustomerId: type: string homePostalCode: type: string officesPostalCode: type: string maritalstatus: type: string province: type: string occupation: type: string nationality: type: string placeOfBirth: type: string title: type: string custLanguage: type: string isFirstLogin: type: string custDispenseAlgo: type: string shortCode: type: string typeOfActivity: type: string MONTHLYINCOME: type: string example: productCode: "9091" nameOnCard: Abdul Quddose expiry: 07/2022 branchCode: "0007" accountId: "12281006755555" AccountType: "20" AccountCurrency: "586" customerData: customerType: "00" customerCategory: BANKED registrationIdType: Registration ID Type depositSource: Deposit Source status: "00" cnic: "5555555555555" nic: "5555555555555" dateOfBirth: "" homePhone: "" mobileNumber: 01234567891 fathersName: "" mothersName: "" email: taimjamal@gmail.com company: Company city: "" country: "" homeAddress1: "" homeAddress2: Home Address 2 homeAddress3: Home Address 3 homeAddress4: Home Address 4 homeAddress5: Home Address 5 officeAddress1: Office Address 1 officeAddress2: Office Address 2 officeAddress3: Office Address 3 officeAddress4: Office Address 4 officeAddress5: Office Address 5 designation: Business Consultant firstName: Abdul middleName: "" lastName: Quddose billingFlag: Billing Flag activitionDate: 18/12/2019 lastUpdatedDate: 18/12/2019 registrationDate: 18/12/2019 passportNo: PK23545234 oldCustomerId: "1111" transactionAlerts: "" channelAlerts: "" transactionInsurance: "" faxNumber: "1111" gender: "" internalBranchId: "" hostCustomerId: "55555" homePostalCode: "" officesPostalCode: "75220" maritalstatus: "" province: "" occupation: "" nationality: "" placeOfBirth: "" title: "" custLanguage: "" isFirstLogin: sample string 56 custDispenseAlgo: sample string 57 shortCode: "1111" typeOfActivity: sample string 59 MONTHLYINCOME: "" Response Body: description: "" type: object properties: CustomerUniqueId: type: string AccountID: type: string CardID: type: string example: CustomerUniqueId: "1000003376590" AccountID: 12281006755555 -20-586 CardID: "22145099" Error Response: description: "" type: object properties: ResponseCode: type: string ResponseDesc: type: string example: ResponseCode: "99" ResponseDesc: Failed x-ibm-endpoints: - endpointUrl: https://apigateway.bankalfalah.com/bankalfalah/sb type: - production - development ...