Api Documentation
Api Documentation
Overview
Documentation and client for all REST API services
Version information
Version : 1.0
License information
License : liverpool
Terms of service : Terms of service
URI scheme
Host : https://segurosfbcdes.liverpool.com.mx
BasePath : /bcLivViajes
Tags
• viajes-controller : Viajes Controller
Paths
Cancellation operation.
POST /bcServiceViajes/v2/cancelacionViaje
Parameters
X-Api-Key
Header X-Api-Key string
required
cancelacion AgViajeCancellRequ
Body cancelacion
required estDTO
Responses
1
HTTP
Description Schema
Code
ResumenTransacc
200 OK
ionDTO
ResumenTransacc
202 Found - Operation applied successfully
ionDTO
ResumenTransacc
404 Not found - Trackid founded
ionDTO
Consumes
• application/json
Produces
• */*
Tags
• LiverpoolViajes
POST /bcServiceViajes/v2/compraViaje
Parameters
X-Api-Key
Header X-Api-Key string
required
requestDto
Body requestDto AgViajeRequestDTO
required
Responses
HTTP
Description Schema
Code
ResumenTransacc
200 OK
ionDTO
ResumenTransacc
201 Created - Operation applied successfully
ionDTO
2
HTTP
Description Schema
Code
ResumenTransacc
409 Card Error - Error charging card
ionDTO
ResumenTransacc
412 Config Error - Error in api config
ionDTO
ResumenTransacc
424 Bridgecore Error - Error in bridgecore service
ionDTO
Consumes
• application/json
Produces
• */*
Tags
• LiverpoolViajes
POST /bcServiceViajes/v2/consultaCoincidenciasViaje
Parameters
X-Api-Key
Header X-Api-Key string
required
consulta
Body consulta ViajeConsultDTO
required
Responses
HTTP
Description Schema
Code
ResumenTransacc
200 OK
ionDTO
3
HTTP
Description Schema
Code
ResumenTransacc
202 Found - Operation applied successfully
ionDTO
ResumenTransacc
404 Not found - Trackid founded
ionDTO
Consumes
• application/json
Produces
• */*
Tags
• LiverpoolViajes
POST /bcServiceViajes/v2/consultaTrackViajes
Parameters
X-Api-Key
Header X-Api-Key string
required
track
Body track ConsultaViajeDTO
required
Responses
HTTP
Description Schema
Code
ResumenTransacc
200 OK
ionDTO
ResumenTransacc
202 Found - Operation applied successfully
ionDTO
4
HTTP
Description Schema
Code
ResumenTransacc
404 Not found - Trackid founded
ionDTO
Consumes
• application/json
Produces
• */*
Tags
• LiverpoolViajes
POST /bcServiceViajes/v2/devolucionViaje
Parameters
X-Api-Key
Header X-Api-Key string
required
requestDto
Body requestDto AgViajeRequestDTO
required
Responses
HTTP
Description Schema
Code
ResumenTransacc
200 OK
ionDTO
ResumenTransacc
201 Refund Succes - Operation applied successfully
ionDTO
ResumenTransacc
409 Card Error - Error charging card
ionDTO
ResumenTransacc
412 Config Error - Error in api config
ionDTO
5
HTTP
Description Schema
Code
ResumenTransacc
424 Bridgecore Error - Error in bridgecore service
ionDTO
Consumes
• application/json
Produces
• */*
Tags
• LiverpoolViajes
Definitions
AgViajeCancellRequestDTO
Name Description Schema
idServCobrad
id of the service that is going to be cancelled
o string
Example : "39151209023521"
optional
informacionF
InformacionFormaD
ormaDePago
ePagoDTO
optional
items
< ItemDTO > array
optional
6
Name Description Schema
nombreClient
client’s name
e string
Example : "Liver pruebas Digital"
required
seguimientoT
unique operation´s identifier
ransaccion string
Example : "fb6e21e3-b735-4dc1-81dc-df962e54762e"
optional
AgViajeRequestDTO
Name Description Schema
idServCobrad
id of the service that is going to be cancelled
o string
Example : "39151209023521"
optional
informacionF
InformacionFormaD
ormaDePago
ePagoDTO
optional
items
< ItemDTO > array
optional
7
Name Description Schema
nombreClient
client’s name
e string
Example : "Liver pruebas Digital"
required
seguimientoT
unique operation´s identifier
ransaccion string
Example : "fb6e21e3-b735-4dc1-81dc-df962e54762e"
optional
ConsultaViajeDTO
Name Description Schema
seguimientoT
unique identifier to be searched
ransaccion string
Example : "fb6e21e3-b735-4dc1-81dc-df962e54762e"
optional
ErrorDTO
Type : object
InformacionFormaDePagoDTO
Name Description Schema
8
Name Description Schema
ItemDTO
Name Description Schema
ResumenTransaccionDTO
Name Description Schema
anularTransa
return if the transaction is going to me nullified
ccion boolean
Example : true
optional
certificado
string
optional
codigoErrorB
bridgecore error
C integer (int32)
Example : 11093
optional
codigoRetorn
api return code that matches whit the BD
o string
Example : "01"
optional
9
Name Description Schema
estadoTransa
true if transation is fullfilled
ccion boolean
Example : true
optional
importeTotal
number (double)
optional
items
list of items bought < ItemDTO > array
optional
seguimientoT
transaction code for following
ransaccion string
Example : "38c6d6db-9b30-4e9c-bde9-ef5c27466667"
optional
ViajeConsultDTO
Name Description Schema
nombreClient
client’s name
e string
Example : "Liver pruebas Digital"
optional
10