--- swagger: "2.0" info: x-ibm-name: campaignservices title: CampaignServices version: 1.0.0 description: "" name: "" schemes: - https basePath: /CampaignServices consumes: - application/json produces: - application/json securityDefinitions: Oauth 2.1 B2B: type: oauth2 description: B2B Authorization flow: application scopes: campaign_data: data Restricted: restricted tokenUrl: https://$(api.endpoint.hostname)/$(api.org.name)/$(env.path)/b2b/token x-scopeValidate: tls-profile: sergey.paponov@dbank.co.il security: - Oauth 2.1 B2B: - campaign_data - Oauth 2.1 B2B: - Restricted x-ibm-configuration: testable: true enforced: true phase: realized paths: /accountProfileOffers: post: summary: http://bunny.dev.local//#/NewEndPoint/CampaignServices/CreateAccountProfileOffers/20503 operationId: createaccountprofileoffers.CreateAccountProfileOffers responses: 201: description: OK schema: $ref: '#/definitions/CreateAccountProfileOffersResponse' parameters: - name: body in: body schema: $ref: '#/definitions/CreateAccountProfileOffersRequest' - $ref: '#/parameters/Authorization' - $ref: '#/parameters/Content-Authorization' - $ref: '#/parameters/Accept-Language' - $ref: '#/parameters/X-Global-Transaction-ID' - $ref: '#/parameters/Accept' - $ref: '#/parameters/Content-Type' description: b8470398-9aed-4419-b8ac-b819a65ec392 security: - Oauth 2.1 B2B: - campaign_data definitions: error: properties: error: type: array items: type: string warning: type: array items: type: string additionalProperties: false required: - error noData: additionalProperties: false GetCampaignValuePropositionsResponse: properties: data: title: data description: אובייקט אב type: object properties: valuePropositions: type: array items: title: valuePropositions description: מערך הצעות ערך type: object properties: accountID: title: accountID description: מזהה חשבון type: string pattern: ^[0-9]{1,4}-[0-9]{1,10}$ example: 140-334543 externalAccountID: title: externalAccountID description: מזהה חשבון במערכת חיצונית type: string valuePropositionID: title: valuePropositionID description: מזהה הצעת ערך type: string campaignID: title: campaignID description: מזהה קמפיין type: number minimum: 0 priority: title: priority description: עדיפות type: number minimum: 0 propositionReasonText: title: propositionReasonText description: סיבה type: string example: '"פוטנציאליים לתוכנית משפחה על פי הקריטריונים של החשבון"' handlingBranchID: title: handlingBranchID description: סניף מנהל type: string maxLength: 4 required: - campaignID - priority - valuePropositionID - accountID - handlingBranchID - externalAccountID required: - valuePropositions GetOfferBranchResponse: properties: data: title: data description: אובייקט אב type: object properties: offers: type: array items: title: offers description: מערך הצעות type: object properties: offerName: title: offerName description: שם הצעה type: string currentAccountBalance: title: currentAccountBalance description: יתרת עו"ש type: number offerScore: title: offerScore description: ציון הצעה type: number accountName: title: accountName description: שם חשבון type: string example: ועד בית הנדיב 13 רמת-ישי approvedCreditAddition: title: approvedCreditAddition description: תוספת אשראי מאושרת type: number offerReasonDescription: title: offerReasonDescription description: שם סיבת הצעה type: string offerProductName: title: offerProductName description: שם מוצר הצעה type: string offerSubProductName: title: offerSubProductName description: שם תת מוצר הצעה type: string offerPriority: title: offerPriority description: עדיפות הצעה (סימון הצעה) type: string enum: - High - Low - Medium handlingBranchID: title: handlingBranchID description: סניף מנהל type: string maxLength: 4 accountID: title: accountID description: מזהה חשבון type: string pattern: ^[0-9]{1,4}-[0-9]{1,10}$ example: 140-334543 customerSalary: title: customerSalary description: משכורת של לקוח type: number creditFacility: title: creditFacility description: מסגרת קו אשראי type: number offerID: title: offerID description: מזהה הצעה type: number businessProductsCount: title: businessProductsCount description: כמות מוצרים בנקאיים (עוגנים) type: number required: - offerID - accountID - offerScore offersCount: title: offersCount description: מספר הצעות סה"כ type: number UpdateOfferBranchRequest: properties: accountID: title: accountID description: מזהה חשבון type: string pattern: ^[0-9]{1,4}-[0-9]{1,10}$ example: 140-334543 caseCreationTimestamp: title: caseCreationTimestamp description: מועד יצירת הפניה type: string format: date-time required: - caseCreationTimestamp - accountID UpdateOfferBranchResponse: properties: data: title: data description: אובייקט אב type: object properties: [] CreateAccountProfileRecommendationsRequest: properties: customerStatus: title: customerStatus description: סטאטוס לקוח type: string enum: - New - ActiveWithoutProducts - ActiveWithProducts - Inactive - Potential - PasserBy accountOwnerType: title: accountOwnerType description: סוג בעלי חשבון type: string enum: - Group - Single investmentProductsExpected: title: investmentProductsExpected description: היקף פאסיבה הצפויה בחשבון type: number minimum: 0 expectedSalaryTotal: title: expectedSalaryTotal description: סה"כ משכורת צפויה type: number accountType: title: accountType description: סוג חשבון type: string enum: - Private - Business accountParticipants: type: array items: title: accountParticipants description: משתתפים בחשבון type: object properties: employmentStatusGroup: title: employmentStatusGroup description: קבוצת סטאטוס עבודה type: string enum: - NationalService - Soldier - Employee - Pensioner - SelfEmployed - Youth - Unemployed - DischargedSoldier - Student - Other employmentSubStatusGroup: title: employmentSubStatusGroup description: קבוצת תת סטאטוס תעסוקה type: string enum: - CapitalMarketsAndFinance - FirstDegreeStudent - RetiredTeacher - SelfEmployedOther - Teacher - Doctor - SecondDegreeStudent - RetiredOther - SelfEmployedDoctor - StateWorker - EmployeeOther - RetiredStateWorker - Lawyer - SelfEmployedLawyer - HighTech - Other customerID: title: customerID description: מזהה לקוח type: string partialOrFullBirthDate: title: partialOrFullBirthDate description: תאריך לידה חלקי או מלא type: string minLength: 4 maxLength: 8 example: 021960 03021960 1960 workPlaceType: title: workPlaceType description: סוג מקום עבודה (הסדר) type: string enum: - CapitalMarketsAndFinance - Outsourcing - HighTech birthDateFormat: title: birthDateFormat description: מבנה תאריך לידה type: string enum: - NoDateOfBirth - WithinYear - Year - YearMonth - YearMonthDay required: - customerID - partialOrFullBirthDate - employmentStatusGroup - employmentSubStatusGroup required: - expectedSalaryTotal - customerStatus - accountParticipants CreateAccountProfileRecommendationsResponse: properties: data: title: data description: אובייקט אב type: object properties: recommendations: type: array items: title: recommendations description: רשימת הצעות/ המלצות לפתיחת חשבון type: object properties: subProductCode: title: subProductCode description: 'קוד תת מוצר ' type: string minimum: 0 statusCertificatesRequiredQuantity: title: statusCertificatesRequiredQuantity description: כמות נדרשת של תעודות תומכות סטטוס type: number isSelectedRecommendation: title: isSelectedRecommendation description: האם המלצה נבחרת type: boolean customerGroupDescription: title: customerGroupDescription description: תיאור קבוצת לקוח type: string minimum: 0 creditCardOffer: title: creditCardOffer description: הצעה לכרטיס אשראי type: boolean recommendationPriority: title: recommendationPriority description: עדיפות המלצה type: number commisionTrackOffer: title: commisionTrackOffer description: הצעת מסלול עמלות type: boolean recommendationID: title: recommendationID description: מזהה המלצה type: string customerSegmentCode: title: customerSegmentCode description: קוד פלח הלקוח type: string minimum: 0 statusCertificates: type: array items: title: statusCertificates description: תעודות תומכות סטטוס type: object properties: statusCertificateType: title: statusCertificateType description: סוג תעודת תומכת סטטוס type: string enum: - PensionSlip - EmployeeCard - NationalServiceCertificate - ArmyReleasePapers - ArmyServiceCard - DoctorCertificate - TeachersUnionCard - Paycheck - BarAssociationCard - StudentCard - TuitionPaymentApproval statusCertificateDescription: title: statusCertificateDescription description: תיאור תעודת תומכת סטטוס type: string digitalBranchOffer: title: digitalBranchOffer description: הצעה לצירוף לסניף דיגיטלי/טאצר type: boolean customerID: title: customerID description: מזהה לקוח type: string minimum: 0 debitCardOffer: title: debitCardOffer description: הצעת כרטיס חיוב type: boolean debitCardType: title: debitCardType description: סוג כרטיס חיוב type: string enum: - Young - Regular recommendationType: title: recommendationType description: סוג המלצה type: string enum: - Participant - CustomerStatus - Digital customerGroupCode: title: customerGroupCode description: קוד קבוצת הלקוח type: string minimum: 0 customerSegmentDescription: title: customerSegmentDescription description: תיאור פלח הלקוח type: string minimum: 0 required: - recommendationID - recommendationPriority - isSelectedRecommendation - subProductCode - commisionTrackOffer - digitalBranchOffer - creditCardOffer required: - recommendations CreateAccountProfileOffersResponse: properties: data: title: data description: אובייקט אב type: object properties: accountOpeningOffers: type: array items: title: accountOpeningOffers description: רשימת הצעות/ המלצות לפתיחת חשבון type: object properties: subProductCode: title: subProductCode description: 'קוד תת מוצר ' type: string minimum: 0 statusCertificatesRequiredQuantity: title: statusCertificatesRequiredQuantity description: כמות נדרשת של תעודות תומכות סטטוס type: number customerGroupDescription: title: customerGroupDescription description: תיאור קבוצת לקוח type: string minimum: 0 creditCardOffer: title: creditCardOffer description: הצעה לכרטיס אשראי type: boolean commisionTrackOffer: title: commisionTrackOffer description: הצעת מסלול עמלות type: boolean offerPriority: title: offerPriority description: עדיפות המלצה type: number customerSegmentCode: title: customerSegmentCode description: קוד פלח הלקוח type: string minimum: 0 statusCertificates: type: array items: title: statusCertificates description: תעודות תומכות סטטוס type: object properties: statusCertificateType: title: statusCertificateType description: סוג תעודת תומכת סטטוס type: string enum: - PensionSlip - EmployeeCard - NationalServiceCertificate - ArmyReleasePapers - ArmyServiceCard - DoctorCertificate - AccountantLicense - TeachersUnionCard - Paycheck - BarAssociationCard - StudentCard - TuitionPaymentApproval statusCertificateDescription: title: statusCertificateDescription description: תיאור תעודת תומכת סטטוס type: string digitalBranchOffer: title: digitalBranchOffer description: הצעה לצירוף לסניף דיגיטלי/טאצר type: boolean customerID: title: customerID description: מזהה לקוח type: string minimum: 0 offerID: title: offerID description: מזהה הצעה type: string accountOpeningOfferType: title: accountOpeningOfferType description: סוג המלצה type: string enum: - Participant - CustomerStatus - Digital debitCardOffer: title: debitCardOffer description: הצעת כרטיס חיוב type: boolean debitCardType: title: debitCardType description: סוג כרטיס חיוב type: string enum: - Young - Regular customerGroupCode: title: customerGroupCode description: קוד קבוצת הלקוח type: string minimum: 0 customerSegmentDescription: title: customerSegmentDescription description: תיאור פלח הלקוח type: string minimum: 0 isSelectedOffer: title: isSelectedOffer description: האם ההמלצה הנבחרת type: boolean required: - offerID - offerPriority - isSelectedOffer - subProductCode - commisionTrackOffer - digitalBranchOffer - creditCardOffer required: - accountOpeningOffers CreateAccountProfileOffersRequest: properties: customerStatus: title: customerStatus description: סטאטוס לקוח type: string enum: - New - ActiveWithoutProducts - ActiveWithProducts - Inactive - Potential - PasserBy accountOwnerType: title: accountOwnerType description: סוג בעלי חשבון type: string enum: - Group - Single investmentProductsExpected: title: investmentProductsExpected description: היקף פאסיבה הצפויה בחשבון type: number minimum: 0 expectedSalaryTotal: title: expectedSalaryTotal description: סה"כ משכורת צפויה type: number accountType: title: accountType description: סוג חשבון type: string enum: - Private - Business accountParticipants: type: array items: title: accountParticipants description: משתתפים בחשבון type: object properties: employmentStatusGroup: title: employmentStatusGroup description: קבוצת סטאטוס עבודה type: string enum: - NationalService - Soldier - Employee - Pensioner - SelfEmployed - Youth - Unemployed - DischargedSoldier - Student - Other employmentSubStatusGroup: title: employmentSubStatusGroup description: קבוצת תת סטאטוס תעסוקה type: string enum: - CapitalMarketsAndFinance - FirstDegreeStudent - RetiredTeacher - Teacher - Accountant - Doctor - SecondDegreeStudent - SelfEmployedDoctor - StateWorker - RetiredStateWorker - Lawyer - SelfEmployedLawyer - HighTech - Other customerID: title: customerID description: מזהה לקוח type: string partialOrFullBirthDate: title: partialOrFullBirthDate description: תאריך לידה חלקי או מלא type: string minLength: 4 maxLength: 8 example: 021960 03021960 1960 workPlaceType: title: workPlaceType description: סוג מקום עבודה (הסדר) type: string enum: - CapitalMarketsAndFinance - Outsourcing - HighTech birthDateFormat: title: birthDateFormat description: מבנה תאריך לידה type: string enum: - NoDateOfBirth - WithinYear - Year - YearMonth - YearMonthDay required: - customerID - employmentStatusGroup - employmentSubStatusGroup required: - expectedSalaryTotal - customerStatus - accountParticipants additionalProperties: false tags: [] parameters: Authorization: name: Authorization type: string required: true in: header description: "" Content-Authorization: name: Content-Authorization type: string required: true in: header description: שדה לשתיחת JWT Accept-Language: name: Accept-Language type: string required: true in: header X-Global-Transaction-ID: name: X-Global-Transaction-ID type: string required: false in: header Accept: name: Accept type: string required: true in: header Content-Type: name: Content-Type type: string required: false in: header X-Forwarded-For: name: X-Forwarded-For type: string required: false in: header x-client-certificate: name: x-client-certificate type: string required: false in: header x-ibm-endpoints: - endpointUrl: https://mtls-api.discountbank.co.il/prod/d type: - production - development ...