bcs-notifications-managemet-api-services icon

bcs-notifications-managemet-api-services

(0 reviews)
Administración de notificaciones enviadas a los clientes a través de cualquier canal de comunicación del banco

home

resources/logo-bank-dc362fa6-a729-426b-ad80-644c7585771b.png


API INFORMATION

Title: notifications-management-api-services


Version: 1.0.0

Protocols: HTTPS

URI Sandbox: https://notifications-management-api-services-dev.us-e1.cloudhub.io/

URI QA: https://notifications-management-api-services-qa.us-e1.cloudhub.io/

URILive: https://notifications-management-api-services-prod.us-e1.cloudhub.io/

DOWLOAD RAML

DESCRIPTION

This service allows Management of Notifications, which allows the following operations:

Summary


-Send SMS

Path:

POST

/notificationSMSManagement/v1/Accounts:

Headers

X-Invoker-BranchId: Office code

X-Invoker-TerminalId: Term code

X-Invoker-Component: Component

X-Invoker-UserIPAddress: Client IP Address

X-Invoker-ServerIPAddress: Server IP Address

X-Invoker-UserMACAddress: Client MAC Address

X-Invoker-ServerMACAddress: Server MAC Address

X-Invoker-ProcessDate: Process date

X-Invoker-TxId: Id TX

X-Invoker-SessionKey: Session key

X-Invoker-Source: Origin

X-Invoker-Country: Country

X-Invoker-ProcessBpmId: ID BPM process

X-Invoker-ProcessId: Process ID

X-Invoker-Network: Net

X-Invoker-subChannel: Subchannel with which the transaction must be registered.

X-Invoker-User: User

X-Invoker-Action: Action

X-Invoker-Destination: Destination

X-Invoker-ModifierUser: Modification user

X-Invoker-ReferencedNumber: Reference number

X-Invoker-RequestNumber: Request number

X-Invoker-CustId: Client code

Headers Security

X-Security-CustLoginIdSi: Used to identify the user who logs in

X-Security-ClientID: The Mule expression to use for obtaining the client ID from

X-Security-ClientSecret: The Mule expression to use for obtaining the client secret from API requests

X-Security-Token: Used to send a valid OAuth 2 access token

Body:

govIssueIdent: Identification given by the local government (Required)

govIssueIdentType: Type of customer identification. (CC, CE, LC, NI, OT, PA or RC)
identSerialNum: Number customer Identification

depAcctStmtRec: Contains information of product number.

depAcctId: Accounts Information
 - acctId: Accounts number

notification: Information for Send SMS (Required)

sourceCode: Source
subSourceCode: Secondary source
state: Transaction Status
message: **(Required)**
 - desc: SMS message
mobileOperator: Mobile operator to send SMS

contactInfo: Contains customer phone information

phoneNum: Customer phone information
Example of Body to Send SMS
{
   "govIssueIdent":{
  "identSerialNum":"1234567890",
  "govIssueIdentType":"CC"
   },
   "depAcctStmtRec":{
  "depAcctId":{
 "acctId":"24026781578"
  }
   },
   "notification":{
  "sourceCode":"FD",
  "subSourceCode":"S07",
  "state":"",
      "message":{
         "desc":"Bienvenido(a) al Banco Caja Social con su Cuentamiga 24026787064, Al recibir su Tarjeta Debito asigne clave en cualquier cajero del Banco"
      },
      "mobileOperator":"",
      "priority":"0"
   },
   "contactInfo":{
      "phoneNum":{
         "phone":"3103400745",
         "phoneType":"C"
      }
   }
}

Response information:

responseType: Used to return the response

notification: Information of Notification

Example of Body to Response Successfull
{
 "notification": {
   "sequence": "996697330"
 }
}

-Send EMail

Path:

POST

/notificationEMAILManagement/v1/Accounts

Headers

X-Invoker-BranchId: Office code

X-Invoker-TerminalId: Term code

X-Invoker-Component: Component

X-Invoker-UserIPAddress: Client IP Address

X-Invoker-ServerIPAddress: Server IP Address

X-Invoker-UserMACAddress: Client MAC Address

X-Invoker-ServerMACAddress: Server MAC Address

X-Invoker-ProcessDate: Process date

X-Invoker-TxId: Id TX

X-Invoker-SessionKey: Session key

X-Invoker-Source: Origin

X-Invoker-Country: Country

X-Invoker-ProcessBpmId: ID BPM process

X-Invoker-ProcessId: Process ID

X-Invoker-Network: Net

X-Invoker-subChannel: Subchannel with which the transaction must be registered.

X-Invoker-User: User

X-Invoker-Action: Action

X-Invoker-Destination: Destination

X-Invoker-ModifierUser: Modification user

X-Invoker-ReferencedNumber: Reference number

X-Invoker-RequestNumber: Request number

X-Invoker-CustId: Client code

Headers Security

X-Security-CustLoginIdSi: Used to identify the user who logs in

X-Security-ClientID: The Mule expression to use for obtaining the client ID from

X-Security-ClientSecret: The Mule expression to use for obtaining the client secret from API requests

X-Security-Token: Used to send a valid OAuth 2 access token

Body:

govIssueIdent: Identification given by the local government (Required)

govIssueIdentType: Type of customer identification. (CC, CE, LC, NI, OT, PA or RC)
identSerialNum: Number customer Identification

depAcctStmtRec: Contains information of product number.

depAcctId: Accounts Information
 - acctId: Accounts number

notification: Information for Send SMS (Required)

sourceCode: Source
subSourceCode: Secondary source
state: Transaction Status
emailToInfo: Primary mailing address
 - emailAddr: Primary mailing address  (Required)
emailToCcInfo: Mail CC (Required)
 - emailAddr: Mail CC copies send separated by commas “,”
subject: Email subject to be notified
message: **(Required)**
 - desc: SMS message
file: File information List
 - fileType: File Type
 - fileName: File Name
 - fileBase64: Data File
Example of Body to Send Email
{
   "govIssueIdent":{
      "govIssueIdentType":"CC",
      "identSerialNum":"1023947444"
   },
   "depAcctStmtRec":{
      "depAcctId":{
         "acctId":"24026781578"
      }
   },
   "notification":{
      "sourceCode":"SA",
      "subSourceCode":"E05",
      "state":"Y",
      "emailToInfo":{
         "emailAddr":"genericoaut@bancocajasocial.com"
      },
      "emailToCcInfo":{
         "emailAddr":"copia1@bancocajasocial.com , copia2@bancocajasocial.com"
      },
      "subject":"Adquisicion producto financiero del Banco Caja Social",
      "message":{
         "desc":"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n\"http://www.w3.org/TR/html4/strict.dtd\">\n<HTML>\n<HEAD>\n<TITLE>STAR NOTIFICACIONES - BCSC</TITLE>\n<META name=\"author\" content=\"BCSC\">\n<META name=\"keywords\" content=\"\">\n<META name=\"date\" content=\"2021-12-10T12:00:00+00:00\">\n<STYLE type=\"text/css\">\n</STYLE>\n</HEAD>\n<BODY lang=\"es\">\n<P>Estimado Cliente: <B>EYNER FABIAN ARIAS TRIANA</B></p>\n<div><p style=\"align:justify\">\n Nuestro compromiso con nuestros clientes es siempre dar información oportuna de los servicios adquiridos con la entidad, de manera que adjunto encontrará los documentos que certifican la apertura de cuenta con número <B>24116083285</B>, incluyendo las condiciones y beneficios.\n<P> </P>\n<P></P>\n<P>Para abrir los documentos tendrá que ingresar el número de su documento de identidad.</P>\n<P> </P>\n<P>Gracias por confiar en el Banco Caja Social.</P>\n<P> </P>\n<P>Si tiene alguna inquietud, puede comunicarse con nuestra Linea Amiga, 307 7060 en Bogota y 01 8000 910 038 desde el resto del pais.</P>\n<P></P>\n<P></P>\n<P><B>Banco Caja Social, su Banco Amigo.</B></P>\n<P>Tildes omitidas para manejar compatibilidad entre agentes de correo</P>\n<P></P>\n</div>\n</BODY>\n</HTML>"
      },
      "file":[
         {
            "fileBase64":"JVBERi0xLj",
            "fileName":"CartaBienvenidaNOMINAAPNOMINA.pdf",
            "fileType":"application/binary"
         }
      ]
   }
}

Response information:

responseType: Used to return the response

notification: Information of Notification

Example of Body to Response Successfull
{
 "notification": {
   "sequence": "996697330"
 }
}
> Errors Code.
Additional the error code of APIKit this resource it has some custom errors code or bussines errors and all errors used the following structure.
{
    "responseType": {
        "value": "ER"
    },
    "responseDetail": {
        "errorCode": "00001",
        "errorDesc": "No hay conexión a la base de datos.",
        "errorType": "DB"
    }
}
HTTP CodeError CodeError TypeDescription
20000000DBsuccessful response
40000001DBNo database connection
40010002VALThe office code has no value
40010003VALError when validating the obligation in an EMAIL notification
40010004VALError when validating the obligation in an SMS notification
40020002SPStored procedure failed to insert notification
40020003SPThe stored procedure could not calculate the sequence
40020004SPThe stored procedure generated an exception in the database
40030002WSVariable initialization error
40030003WSDatasource invocation error
40030004WSError in the WS
> Diagram of sequence.

####

resources/image-300d0651-97fd-42f9-9e83-b09d50621edf.png


- Notify Customer (POST):

Path:

/notification-management/v1/customer:

Headers

X-Invoker-BranchId: Office code

X-Invoker-TerminalId: Term code

X-Invoker-Component: Component

X-Invoker-UserIPAddress: Client IP Address

X-Invoker-ServerIPAddress: Server IP Address

X-Invoker-UserMACAddress: Client MAC Address

X-Invoker-ServerMACAddress: Server MAC Address

X-Invoker-ProcessDate: Process date

X-Invoker-TxId: Id TX

X-Invoker-SessionKey: Session key

X-Invoker-Source: Origin

X-Invoker-Country: Country

X-Invoker-ProcessBpmId: ID BPM process

X-Invoker-ProcessId: Process ID

X-Invoker-Network: Net

X-Invoker-subChannel: Subchannel with which the transaction must be registered.

X-Invoker-User: User

X-Invoker-Action: Action

X-Invoker-Destination: Destination

X-Invoker-ModifierUser: Modification user

X-Invoker-ReferencedNumber: Reference number

X-Invoker-RequestNumber: Request number

X-Invoker-CustId: Client code

Request information:

govIssueIdent: govIssueIdent object
    govIssueIdentType: Contains information related to client identification type (CC, CE, PA, TI, NI, NIT, PE)
    identSerialNum: Contains information related to client identification number
notification: notification object
    mobileOperator: Contains information related to mobile operator
    subject: Contains information related to Subject of the email to notify
    priority: Contains information related to Priority
    type: Contains information related to Type of shipment (SMS, MAIL, DUAL)
    message: message object
        desc: Contains information related to SMS message
    email: email object
        desc: Contains information related to Message of the email to notify
    file: file array object
        binData: Contains information related to Attached binary file
        fileName: Contains information related to Attached file name
        fileType: Contains information related to Type of content of the attached file.
        fileDesc: Contains information related to Description of content of the attached file.

Example Body request :

{
  "govIssueIdent": {
    "govIssueIdentType": "CC",
    "identSerialNum": "1116232178"
  },
  "notification": {
    "mobileOperator": "",
    "subject": "Adquisicion producto financier",
    "priority": 0,
    "type": "DUAL",
    "message": {
      "desc": "Bienvenido(a) al Banco Caja Social con su Cuentamiga, Al recibir su Tarjeta Debito asigne clave en cualquier cajero del Banco"
    },
    "email": {
      "desc": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n\"http://www.w3.org/TR/html4/strict.dtd\">\n<HTML>\n<HEAD>\n<TITLE>STAR NOTIFICACIONES - BCSC</TITLE>\n<META name=\"author\" content=\"BCSC\">\n<META name=\"keywords\" content=\"\">\n<META name=\"date\" content=\"2021-12-10T12:00:00+00:00\">\n<STYLE type=\"text/css\">\n</STYLE>\n</HEAD>\n<BODY lang=\"es\">\n<P>Estimado Cliente</p>\n<div><p style=\"align:justify\">\n Nuestro compromiso con nuestros clientes es siempre dar información oportuna de los servicios adquiridos con la entidad, de manera que adjunto encontrará los documentos que certifican la apertura de cuenta con número, incluyendo las condiciones y beneficios.\n<P></P>\n<P></P>\n<P>Para abrir los documentos tendrá que ingresar el número de su documento de identidad.</P>\n<P></P>\n<P>Gracias por confiar en el Banco Caja Social.</P>\n<P></P>\n<P>Si tiene alguna inquietud, puede comunicarse con nuestra Linea Amiga desde el resto del pais.</P>\n<P></P>\n<P></P>\n<P><B>Banco Caja Social, su Banco Amigo.</B></P>\n<P>Tildes omitidas para manejar compatibilidad entre agentes de correo</P>\n<P></P>\n</div>\n</BODY>\n</HTML>"
    },
    "file": [
      {
        "binData": "JVBEti0xLjUKJeLjz6MKMSAwIG6iago8PC6Nb2REYXRlKFqkODltV9uFezXPyfmklmkcZ/ysa5GHY",
        "fileName": "CartaBienvenida.pdf",
        "fileType": "application/binary ",
        "fileDesc": ""
      }
    ]
  }
}

Response information:

> Response 200.
{
  "responseType": {
    "value": "OK"
  },
  "notification": {
    "message": {
      "sequence": "824572533"
    },
    "email":{
      "sequence": "824692822"
    }
  }
}
> Error response.
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
    {
    "responseType": {
        "value": "ER"
    },
    "responseDetail": {
        "errorCode": "00101",
        "errorDesc": "El cliente no tiene celular",
        "errorType": "RGN"
    }
}
> Errors Code.
HTTP CodeError CodeError TypeDescription
20000000DBRespuesta exitosa
50000001DBNo hay conexión a la base de datos
40010002VALEl codigo de oficina no tiene valor
40010003VALError al validar la obligatoriedad en una notificación EMAIL
40010004VALError al validar la obligatoriedad en una notificación SMS
50020002SPEl procedimiento almacenado no pudo insertar la notificacion
50020003SPEl procedimiento almacenado no pudo calcular la sequencia
50020004SPEl procedimiento almacenado genero una exception en la base de datos
50030002WSError en inicializacion de varibles
50030003WSError en invocacion de Datasource
50030004WSError en el WS
40000100RGNEl valor del tipo envio debe ser (MAIL, SMS o DUAL)
40000101RGNEl cliente no tiene celular
40000102RGNEl cliente no tiene correo
40000103TECEl cliente no tiene celular - El cliente no tiene correo
40450001BDEPERSONA NATURAL NO EXISTE
> Diagram of sequence.

####

resources/DiagramaSecuenciaNotificarCliente-1a94d68e-dfb6-48e7-b36c-fd43f326e31a.jpg

####


Send SMS Notification:

Description: This resource manage the sending of SMS text messages.

Path: /notification-management/v2/sms


- Send SMS Notification (POST):

Path:

/notification-management/v2/sms:

Headers

X-Invoker-BranchId: Office code

X-Invoker-TerminalId: Term code

X-Invoker-Component: Component

X-Invoker-UserIPAddress: Client IP Address

X-Invoker-ServerIPAddress: Server IP Address

X-Invoker-UserMACAddress: Client MAC Address

X-Invoker-ServerMACAddress: Server MAC Address

X-Invoker-ProcessDate: Process date

X-Invoker-TxId: Id TX

X-Invoker-SessionKey: Session key

X-Invoker-Source: Origin

X-Invoker-Country: Country

X-Invoker-ProcessBpmId: ID BPM process

X-Invoker-ProcessId: Process ID

X-Invoker-Network: Net

X-Invoker-Channel: Channel with which the transaction must be registered (minLength:3 "007")

X-Invoker-subChannel: Subchannel with which the transaction must be registered

X-Invoker-User: User

X-Invoker-Action: Action

X-Invoker-Destination: Destination

X-Invoker-ModifierUser: Modification user

X-Invoker-ReferencedNumber: Reference number

X-Invoker-RequestNumber: Request number

X-Invoker-CustId: Client code

Headers Security

X-Security-CustLoginId: Used to identify the user who logs in

ClientID: The Mule expression to use for obtaining the client ID from

ClientSecret: The Mule expression to use for obtaining the client secret from API requests

Authorization: Used to send a valid OAuth 2 access token

Request information:

{
    "notification": {
        "sourceCode": "OF",
        "subSourceCode": "E01",
        "depAcctId": {
            "acctId": ""
        },
        "mobileOperator": "2",
        "cellPhone": "304123456783",
        "mnemonic": "CC1234567",
        "additionalData": [
            {
                "name": "Parametro1",
                "value": "JUAN PEREZ"
            },
            {
                "name": "Parametro2",
                "value": "2012-01-01"
            }
        ]
    }
}

Response information:

> Response 200.
{
  "responseType": {
    "value": "OK"
  }
}
> Error response.
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
    "responseType": {
        "value": "ER"
    },
    "responseDetail": {
        "errorCode": "00004",
        "errorDesc": "Parametros de plantilla de notificacion incorrectos",
        "errorType": "INP"
    }
}

####


Reviews