bcs-cards-management-api-services icon

bcs-cards-management-api-services

(0 reviews)
Operaciones con relacionadas con tarjetas crédito o debito

home

resources/logo-bank-8397f1b1-a30a-4e21-b5e7-c1ae401c7958.png


API INFORMATION

Title: cards-management-api-services


Version: 1.0.0

Protocols: HTTPS

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

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

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

DOWLOAD RAML

DESCRIPTION

The purpose of this API is mangament Credit or debit card transactions, which allows the following operations:

Summary


-Apply Debit Card

Path:

/cardsManagement/v1/DebitCard

Headers

Response information:

responseType: Used to return the response


-Account Holds.

Path:

POST

/cards-management/v1/account-holds

Body:

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

identSerialNum: Number customer Identification

flagAllDebCardsBlock: Indicates if all debit cards associated with the client are going to be blocked

additionalAcctId: List with Number of Associated Accounts

> Example when sending flagAllDebCardsBlock value false.
 {
  "govIssueIdentType": "CC",
  "identSerialNum": "99999999",
  "flagAllDebCardsBlock": false,
  "additionalAcctId":["4985340009999999"]
 }
> Example when sending flagAllDebCardsBlock value true.
 {
  "govIssueIdentType": "CC",
  "identSerialNum": "99999999",
  "flagAllDebCardsBlock": true,
  "additionalAcctId":[]
 }
> Response 200.
{
    "responseType": {
        "value": "OK"
    }
}
> Errors Code.
Additional the error code of APIKit this resource it has some custom errors code or bussines errors and all errors used the follogin structur.
{
    "responseType": {
        "value": "ER"
    },
    "responseDetail": {
        "errorCode": "2",
        "errorDesc": "Error description.",
        "errorType": "CLI"
    }
}
HTTP CodeError CodeError TypeDescription
40450001VAL14-CARD DOES NOT EXIST
40050002VAL62-CARD IS BLOCKED
40050003VAL21-INVALID INFORMATION
50050004VAL89-GENERAL ERROR
50050005VALTHERE IS AN ERROR IN ONE OF THE CARDS TO BLOCK
500(Core system error)(Core system type error)Any error that is not identified will return a 500 error with the description returned by the core system
> Diagram of sequence.

####

resources/image-15714e8f-4ca5-45b9-96ba-749c3cbcfc8a.png

##


-Credit Card Replacement.

Path:

POST

/cards-management/v1/card-orders/credit-card/replacement

Body:

acctId: Product number.

(If the channel know what is the number of card can send acctID on clear, and if the channel not know your need send encrypted value).

lockCode: Lock code (At the moment inly 01 is available)

> Example.
 {
  "acctId": "4570211273204425",
  "lockCode": "01"
 }

{
  "acctId": "f46626ae2ffa16e81c96b8374cd4b259",
  "lockCode": "01"
 }
> Response 200.
{
    "responseType": {
        "value": "OK"
    }
}
> Errors Code.
Additional the error code of APIKit this resource it has some custom errors code or bussines errors and all errors used the follogin structur.
{
    "responseType": {
        "value": "ER"
    },
    "responseDetail": {
        "errorCode": "2",
        "errorDesc": "Error description.",
        "errorType": "CLI"
    }
}
HTTP CodeError CodeError TypeDescription
40000001OCPIt is not possible to send that number of records per page
40000002OCPInitial position error
40000003OCPError in the number of records to consult
40000004OCPInitial position is Greater than reg total
40000824OCPRequired field
40004650OCPIt is not possible to send that number of records per page
40004651OCPInitial position error
40004652OCPError in the number of records to consult
40004658OCPInitial position is Greater than reg total
40004660OCPThere must be at least one non-null transaction sequence
40004661OCPThere must be at least one non-null transaction sequence
40004662OCPDeadline associated with the transaction sequence is null
40004663OCPSequence or term must be > 0
40400014OCPInvalid card number
40400020OCPThere is no data for this card
40400156OCPThere is more than one establishment code
40401074OCPThe number of periods elapsed between today's date and the last card cycle change is less than the minimum number of periods to make another change
40400731OCPThe new billing cycle must be different from the current one
40401093OCPTransaction does not exist
40404129OCPThe term cannot be greater than the one defined as parameter
40404657OCPThere is no data for this card
40404664OCPTransaction not found
50000170OCPSystem error
40402501OCPThere is no parameter
40004588OCPCard presents definitive locks
40002269OCPExpired card
40000429OCPExpired card
50002043OCPNo stages have been parameterized for the selected product
50002928OCPRequest was denied
50001243OCPBin does not exist
40004363OCPNumber of obligation to buy wrong or not allowed
40004154OCPThe Bin does not allow a fixed term
50004153OCPThe required number of months have not passed since the last change
50002424OCPThe card is in Mora
50010100BDThere was an error in the database.
50004653OCPBin is not personal
50004654OCPProduct is not a natural person
50004655OCPClient is legal
50004656OCPCard must be covered or main
50004659OCPThere is more than one establishment code
50004815OCPTransaction term equal to the current one
50004816OCPPurchase transaction term outside the defined range
50004817OCPPurchase transaction term outside the defined range
50004818OCPCard with locks
50004819OCPCard shows pending minimum payment
50004820OCPFixed-term indicator must contain value Y or N
50004821OCPFixed term indicator must contain value
50004822OCPCard is Priority Pass
50004823OCPThe query reports replacement indicator = NO
40004152OCPRequired field
500(Core system error)(Core system type error)Any error that is not identified will return a 500 error with the description returned by the core system
> Diagram of sequence.

####

resources/image-49f46b28-6bbd-4ba3-9843-29809084561b.png

##


-Debit Card Replacement

Description:

This service allows you to ask for a debit card replacement.

Path:

POST: /cards-management/v1/card-orders/debit-card/replacement

Headers:

NameDescriptionExample
X-Invoker-ChannelChannel of origin of consumption007
X-Invoker-ATMIdAmt code1102
X-Invoker-BranchIdOffice code1102
X-Invoker-TerminalIdTerm code
X-Invoker-ComponentComponent
X-Invoker-UserIPAddressClient IP Address10.5.43.214
X-Invoker-ServerIPAddressServer IP Address192.168.169.197
X-Invoker-UserMACAddressClient MAC Address0E-A5-38-F7-C3-09
X-Invoker-ProcessDateProcess date2023-05-02
X-Invoker-TxIdId TX
X-Invoker-SessionKeySession key
X-Invoker-SourceOrigin
X-Invoker-CountryCountry
X-Invoker-ProcessBpmIdID BPM process
X-Invoker-ProcessIdProcess ID
X-Invoker-NetworkNet
X-Invoker-subChannelSubchannel with which the transaction must be registered.
X-Invoker-UserUser
X-Invoker-ActionAction
X-Invoker-DestinationDestination
X-Invoker-ModifierUserModification
X-Invoker-ReferencedNumberReference number
X-Invoker-RequestNumberRequest number
X-Invoker-CustIdUsed to identify the user who logs in
client_idCustomer identifier154-111-1111-222
client_secretCustomer key
AuthorizationBarear tokenBarear 2312323
AcceptAccept type formatcontent-type

Body:

> Mapping request:

Field NameDescriptionTypeRequired
trn.govIssueIdent.govIssueIdentTypeContains information related to client identification typeStringYes
trn.govIssueIdent.identSerialNumContains information related to client identification numberStringYes
trn.depAcctId.acctIdContains information related to the accountStringYes
trn.operationTypeType of replacement for the debit cardStringNo
trn.fee.amtContains information related to the commission cost valueStringYes
trn.cardAcctId.blockTypeFieldConstains information related to the blocked typeStringYes
trn.cardAcctId.acctIdContains information related to the debit card numberStringYes
trn.reasonReason for replacementStringYes
trn.postAddr.typeType of delivery for the cardStringYes
trn.trnSrcTransaction source/channelStringYes
trn.entprAgreement.spRefIdId of the service allyStringYes
trn.entprAgreement.svcIdentId of the card paymentStringYes
trn.entprAgreement.svcRqUIDId of the service paymentStringYes
trn.postAddr.addr1Contains information of the delivery addressStringNo
trn.postAddr.cityContains information of the delivery cityStringNo
trn.postAddr.countryContains information of the delivery countryStringYes
trn.postAddr.postalCodeContains information of the delivery postal codeIntegerNo
trn.contactInfo.emailAddrUser email addressStringNo
trn.contactInfo.cellPhoneUser cell phone numberStringNo

> Request Example:

{
    "trn":{
        "operationType": "1",
        "reason": "IVR01",
        "trnSrc": "TEL",
        "fee":{
          "amt": "00000000100000"
        },
        "depAcctId":{
            "acctId":"24500036202"
        },
        "cardAcctId":{
            "blockTypeField":"",
            "acctId":"5496162795737624"
        },
        "govIssueIdent":{
            "govIssueIdentType":"CC",
            "identSerialNum":"51680607"
        },
        "contactInfo":{
            "emailAddr":"EMAIL@EMAIL.COM",
            "cellPhone":"3000000000"
        },
        "postAddr":{
            "type":"NAL",
            "addr1":"carrera 10 numero 10",
            "city":"Bogota",
            "country":"CO",
            "postalCode": 730005
        },
        "entprAgreement":{
            "spRefId":"",
            "svcIdent":"N",
            "svcRqUID":"N"
        }
    }
}

> Response Example:

{
    "responseType": {
        "value": "OK"
    },
    "trn":{
      "billerNum": "4615043316",
      "refId": "6321966129",
      "depAcctId": {
        "acctId": "24026154741"
      }
    }
}

> Response Error Example:

Additionally, the error code of APIKit has some custom error codes or business errors and all errors use the following structure.
{
    "responseType": {
        "value": "ER400"
    },
    "responseDetail": {
        "errorCode": "000001",
        "errorDesc": "No se encontraron extractos para la consulta generada.",
        "errorType": ""
    }
}

Errors Code:

HTTP CodeError CodeError TypeDescription
206000001CEDNo se encontraron extractos para la consulta generada.
206000001CEDTipo de identificación invalido
206000002CEDMes invalido, debe ser un número entre 1 y 12
206000003CEDAño invalido, debe ser un número y estar entre el año actual y el año anterior.
206000004CEDNúmero de Producto invalido
20600001OSBNo hay tabla para consulta
20605622RGNCLIENTE NO ES TITULAR DE LA CUENTA

Diagram of sequence.


-Credit Card CVV validation.

Path:

GET

/cards-management/v1/credit-card/cvv/{secretid}/validate

Operation get informtation about User for Digital enrollment

URIParameters:


secretid: Encrypted CVV (only when it is a credit card).

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

X-Invoker-ally: Ally

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

Query Parameters:

identserialnum: User Identification Number

govIssueIdentType: Type of customer identification. (CC, CE, PA, TI, NI or PE)

Response information:

responseType: Used to return the response

> Response 200.
{
    "responseType": {
        "value": "OK"
    }
}
> 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": "00068",
    "ErrorDesc": "Usuario ya existe.",
    "ErrorType": "OUD"
  }
}
HTTP CodeError CodeError TypeDescription
40045VALTipo de identificación invalido
40014VALNumero de identificación invalido
40445VALError de sistema - No existe cliente
> Diagram of sequence.

####


-Debit Card PIN validation.

Path:

GET

/cards-management/v1/debit-card/password/{secretid}/validate

Operation get informtation about User for Digital enrollment

URIParameters:


secretid: Encrypted TD Pin (only when it is a debit card)

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

X-Invoker-ally: Ally

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

Query Parameters:

identserialnum: User Identification Number

govIssueIdentType: Type of customer identification. (CC, CE, PA, TI, NI or PE)

Response information:

responseType: Used to return the response

> Response 200.
{
    "responseType": {
        "value": "OK"
    }
}
> 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": "00068",
    "ErrorDesc": "Usuario ya existe.",
    "ErrorType": "OUD"
  }
}
HTTP CodeError CodeError TypeDescription
40400101VALCLIENTE NO EXISTE O NO SE ENCONTRARON TARJETAS ACTIVAS
50000100VALERROR EN GENERACION DE PINBLOCK
50000102VALERROR EN MANEJO DE DATOS CURSOR
50000100TRXERROR TECNICO LLAMANDO SERVICIO DE DESENCRIPCION
50000101TRXERROR TECNICO LLAMANDO SERVICIO DE CRYPTOGRAFIA
50000102TRXERROR TECNICO CONSULTANDO INFORMACION DEL CLIENTE
50000103TRXERROR TECNICO DECLARANDO CURSOR
50000104TRXERROR TECNICO ABRIENDO CURSOR
50000105TRXERROR TECNICO CERRANDO CURSOR
50000001TRXError realizando des-encriptacion de la informacion recibida
> Diagram of sequence.

-Cards Update - Day Cycle(CambioFechaPagoTC).

Description:

This service allows you to modify the billing cycle of a credit card.

Path:

PUT: /cards-management/v1/card-updates/cycle-date

Headers:

NameDescriptionExample
X-Invoker-ChannelChannel of origin of consumption007
X-Invoker-ATMIdAmt code1102
X-Invoker-BranchIdOffice code1102
X-Invoker-TerminalIdTerm code
X-Invoker-ComponentComponent
X-Invoker-UserIPAddressClient IP Address10.5.43.214
X-Invoker-ServerIPAddressServer IP Address192.168.169.197
X-Invoker-UserMACAddressClient MAC Address0E-A5-38-F7-C3-09
X-Invoker-ProcessDateProcess date2023-05-02
X-Invoker-TxIdId TX
X-Invoker-SessionKeySession key
X-Invoker-SourceOrigin
X-Invoker-CountryCountry
X-Invoker-ProcessBpmIdID BPM process
X-Invoker-ProcessIdProcess ID
X-Invoker-NetworkNet
X-Invoker-subChannelSubchannel with which the transaction must be registered.
X-Invoker-UserUser
X-Invoker-ActionAction
X-Invoker-DestinationDestination
X-Invoker-ModifierUserModification
X-Invoker-ReferencedNumberReference number
X-Invoker-RequestNumberRequest number
X-Invoker-CustIdUsed to identify the user who logs in
client_idCustomer identifier154-111-1111-222
client_secretCustomer key
AuthorizationBarear tokenBarear 2312323
AcceptAccept type formatcontent-type

Body:

> Mapping request:

Field NameDescriptionTypeRequired
depAcctTrnRec.contactInfo.cellPhoneContains information related to the user cell phone numberStringYes
depAcctTrnRec.contactInfo.emailAddrContains information related to the user email addressStringYes
depAcctTrnRec.depAcctId.acctIdAccount numberStringYes
depAcctTrnRec.daysCycleNew bill cycle. This field accepts only the following values: ["1" = 03-08 days, "2" = 15-18 days]StringYes
govIssueIdent.identSerialNumClient Identification Number.StringYes

> Request Example:

{
  "depAcctTrnRec": {
    "depAcctId": {
      "acctId": "789456123"
    },
    "daysCycle": "1",
    "contactInfo":{
      "emailAddr": "example@example.com",
      "cellPhone":"31111111111"
    }
  },
  "govIssueIdent": {
    "identSerialNum": "1234567890"
  }
}

> Response Example:

{
    "responseType": {
        "value": "OK"
    }
}

> Response Error Example:

Additional the error code of APIKit this resource it has some custom errors code or bussines errors and all errors used the follogin structur.
{
    "responseType": {
        "value": "ER400"
    },
    "responseDetail": {
        "errorCode": "01074",
        "errorDesc": "El numero de periodos transcurridos entre la fecha hoy y el ultimo cambi.",
        "errorType": ""
    }
}

Errors Code:

HTTP CodeError CodeError TypeDescription
20601074El numero de periodos transcurridos entre la fecha hoy y el ultimo cambio.
20600731El nuevo ciclo de facturación debe ser diferente al actual.
20604654Producto no es persona natural.
20604819Tarjeta Presenta Pago Mínimo Pendiente.
20600392Número de tarjeta invalida.

Diagram of sequence.


-Modify Credit Card Deadlines

Description:

This service allows you to modify the payments and advances deadlines of a credit card

Path:

PUT: /cards-management/v1/credit-card/deadlines

Headers:

NameDescriptionExample
X-Invoker-ChannelChannel of origin of consumption007
X-Invoker-ATMIdAmt code1102
X-Invoker-BranchIdOffice code1102
X-Invoker-TerminalIdTerm code
X-Invoker-ComponentComponent
X-Invoker-UserIPAddressClient IP Address10.5.43.214
X-Invoker-ServerIPAddressServer IP Address192.168.169.197
X-Invoker-UserMACAddressClient MAC Address0E-A5-38-F7-C3-09
X-Invoker-ProcessDateProcess date2023-05-02
X-Invoker-TxIdId TX
X-Invoker-SessionKeySession key
X-Invoker-SourceOrigin
X-Invoker-CountryCountry
X-Invoker-ProcessBpmIdID BPM process
X-Invoker-ProcessIdProcess ID
X-Invoker-NetworkNet
X-Invoker-subChannelSubchannel with which the transaction must be registered.
X-Invoker-UserUser
X-Invoker-ActionAction
X-Invoker-DestinationDestination
X-Invoker-ModifierUserModification
X-Invoker-ReferencedNumberReference number
X-Invoker-RequestNumberRequest number
X-Invoker-CustIdUsed to identify the user who logs in
client_idCustomer identifier154-111-1111-222
client_secretCustomer key
AuthorizationBarear tokenBarear 2312323

Body:

> Mapping request:

Field NameDescriptionTypeRequired
cardAcctId.acctIdContains information related to the product numberStringYes
cardAcctId.term[].sequenceContains information related to the sequence numberStringYes
cardAcctId .term[].numAsignInstallmentsnumber of remaining installmentsStringYes

> Request Example:

{
  "cardAcctId":{
    "acctId": "5470610024022374",
    "term": [
      {
        "sequence": "12345678",
        "numAsignInstallments": "01"
      },
      {
        "sequence": "87654321",
        "numAsignInstallments": "02"
      },
      {
        "sequence": "56781234",
        "numAsignInstallments": "01"
      }
    ]
  }
}

> Response Example:

{
    "responseType": {
        "value": "OK"
    }
}

> Response Error Example:

Additional to the error code of APIKit this resource has some custom errors code or bussines errors and all errors used the follogin structur.
{

    "responseType": {
        "value": "ER"
     },
    "responseDetail": {
        "errorCode": "00001",
        "errorDesc": "No se puede enviar esa cantidad de registros por pagina",
        "errorType": "OCP"
    }
}

Errors Code:

HTTP CodeError CodeError TypeDescription
2061OCPNo se puede enviar esa cantidad de registros por pagina
2062OCPError en la posicion Inicial
2063OCPError en la cantidad de registros a consultar
20614OCPNumero de tarjeta invalida
20620OCPNo existen datos para esta tarjeta
2064OCPLa posicion Inicial es Mayor al total de reg
206156OCPExiste mas de un Codigo de establecimiento
206170OCPError de sistema
2060OCPTransaccion exitosa
2062501OCPNo existe parametro
2064588OCPTarjeta presenta bloqueos definitivos
206824OCPcampo requerido
2062269OCPTarjeta vencida
206429OCPTarjeta vencida
2061074OCPEl numero de periodos transcurridos entre la fecha hoy y el ultimo cambio de ciclo de la tarjeta es menor al numero de periodos minimo para realizar otro cambio
206731OCPEl nuevo ciclo de facturacion debe ser diferente al actual
2062043OCPNo se han parametrizado etapas para el producto seleccionado
2062928OCPSolicitud fue negada
2061243OCPBIN no existe
2064363OCPnumero de obligación a comprar errada o no permitida
2061093OCPTransacción no existe
2064152OCPcampo requerido
2064154OCPEl Bin no permite plazo fijo
2064129OCPEl plazo no puede ser mayor al definido como parametro
2064153OCPNo han pasado el nro de meses requerido desde el ultimo cambio
2062424OCPLa tarjeta se encuentra en Mora
20610100BDOcurrio un error en la base de datos.
2064650OCPNo se puede enviar esa cantidad de registros por pagina
2064651OCPError en la posicion Inicial
2064652OCPError en la cantidad de registros a consultar
2064653OCPBin no es personal
2064654OCPProducto no es persona natural
2064655OCPCliente es jurídico
2064656OCPTarjeta debe ser amparada o principal
2064657OCPNo existen datos para esta tarjeta
2064658OCPLa posicion Inicial es Mayor al total de reg
2064659OCPExiste mas de un Codigo de establecimiento
2064660OCPAl menos debe haber una secuencia transaccion no nula
2064661OCPAl menos debe haber una secuencia transaccion no nula
2064662OCPPlazo asociado a la secuencia transaccion es nulo:
2064663OCPsecuencia o plazo debe ser > 0
2064664OCPNo se encontro la transaccion:
2064815OCPPlazo transaccion igual al actual
2064816OCPPlazo transaccion compra fuera del rango definido
2064817OCPPlazo transaccion compra fuera del rango definido
2064818OCPTarjeta con bloqueos
2064819OCPTarjeta presenta pago minimo pendiente
2064820OCPIndicador de plazo fijo debe contener valor S o N
2064821OCPEl indicador de plazo fijo debe contener valor
2064822OCPTarjeta es Priority Pass
2064823OCPLa consulta reporta indicador reposicion = NO
2064933OCPEn el momento no se puede atender. Favor intentar mas tarde


Reviews