Skip to content

Instantly share code, notes, and snippets.

@flovilmart
Created January 30, 2019 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flovilmart/9ef2c9b0160437c6b49a6b3ef5684754 to your computer and use it in GitHub Desktop.
Save flovilmart/9ef2c9b0160437c6b49a6b3ef5684754 to your computer and use it in GitHub Desktop.
GET /buses/busqueda/2939/19/2019-02-05 HTTP/1.1
Host: api.plataforma10.com
Token: 11028-e014020f-08cb-4946-a34f-5a6a3cc37c34-29012019174038
X-Busbud-Requestid: 20190129210269fa0bab367817ea844b69078de9b8b803c720525e62581ae453e7be75d67153+1548795840582
X-Busbud-Purchaseid: 3449100
X-Busbud-Partnerid: null
Accept: application/json
HTTP/1.1 200 OK
Date: Tue, 29 Jan 2019 21:04:06 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 1829
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/8.0
Set-Cookie: ASP.NET_SessionId=oq10zbbawqvvw1blbgxrmxje; path=/; HttpOnly
X-Aspnet-Version: 4.0.30319
X-Powered-By: ASP.NET
{
"paradaOrigen": {
"id": 2939,
"nombre": "Puerto Iguazú"
},
"paradaDestino": {
"id": 19,
"nombre": "Terminal de Cordoba"
},
"fechaBusqueda": "2019-02-05T00:00:00",
"servicios": [
{
"codigoServicio": "8af68741-7ff5-4786-b7cc-d884a32c8785_1",
"butacas": 8,
"clase": "CAMA EJECUTIVO C/SERVICIO",
"fechaHoraSalida": "2019-02-05T08:00:00",
"fechaHoraLlegada": "2019-02-06T08:00:00",
"precio": 3520,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 124,
"nombre": "CRUCERO DEL NORTE"
}
},
{
"codigoServicio": "8af68741-7ff5-4786-b7cc-d884a32c8785_0",
"butacas": 37,
"clase": "SEMICAMA",
"fechaHoraSalida": "2019-02-05T08:00:00",
"fechaHoraLlegada": "2019-02-06T08:00:00",
"precio": 3060,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 124,
"nombre": "CRUCERO DEL NORTE"
}
},
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_1",
"butacas": 17,
"clase": "CAMA TOTAL VIP",
"fechaHoraSalida": "2019-02-05T13:15:00",
"fechaHoraLlegada": "2019-02-06T10:40:00",
"precio": 3935,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 91,
"nombre": "EXPRESO SINGER"
}
},
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_0",
"butacas": 7,
"clase": "CAMA EJECUTIVO",
"fechaHoraSalida": "2019-02-05T13:15:00",
"fechaHoraLlegada": "2019-02-06T10:40:00",
"precio": 3520,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 91,
"nombre": "EXPRESO SINGER"
}
},
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_2",
"butacas": 30,
"clase": "CAMA EJECUTIVO",
"fechaHoraSalida": "2019-02-05T16:00:00",
"fechaHoraLlegada": "2019-02-06T14:05:00",
"precio": 3520,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 91,
"nombre": "EXPRESO SINGER"
}
}
]
}
---
GET /buses/servicios/c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_0/taquilla HTTP/1.1
Host: api.plataforma10.com
Token: 11028-e014020f-08cb-4946-a34f-5a6a3cc37c34-29012019174038
X-Busbud-Requestid: 20190129210269fa0bab367817ea844b69078de9b8b803c720525e62581ae453e7be75d67153+1548795840582
X-Busbud-Purchaseid: 3449100
X-Busbud-Partnerid: null
Accept: application/json
HTTP/1.1 200 OK
Date: Tue, 29 Jan 2019 21:04:06 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 3467
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/8.0
Set-Cookie: ASP.NET_SessionId=uohvijtppyc2nv0uso5z312n; path=/; HttpOnly
X-Aspnet-Version: 4.0.30319
X-Powered-By: ASP.NET
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_0",
"butacas": 7,
"clase": "CAMA EJECUTIVO",
"mensaje": null,
"precio": 3520,
"moneda": "AR$",
"datosPasajerosRequeridos": [
"Nombre",
"Apellido",
"TipoDocumento",
"NumeroDocumento",
"Nacionalidad"
],
"mapaButacas": {
"secciones": [
{
"filas": 8,
"columnas": 4,
"tipoSeccion": 1,
"items": [
{
"x": 2,
"y": 3,
"numero": 81,
"ocupado": true,
"tipo": 8
},
{
"x": 3,
"y": 3,
"numero": 83,
"ocupado": false,
"tipo": 8
},
{
"x": 4,
"y": 3,
"numero": 85,
"ocupado": false,
"tipo": 8
},
{
"x": 5,
"y": 3,
"numero": 89,
"ocupado": false,
"tipo": 8
},
{
"x": 2,
"y": 2,
"numero": 82,
"ocupado": true,
"tipo": 8
},
{
"x": 3,
"y": 2,
"numero": 84,
"ocupado": false,
"tipo": 8
},
{
"x": 4,
"y": 2,
"numero": 86,
"ocupado": false,
"tipo": 8
},
{
"x": 5,
"y": 2,
"numero": 90,
"ocupado": false,
"tipo": 8
},
{
"x": 3,
"y": 0,
"numero": 80,
"ocupado": true,
"tipo": 8
},
{
"x": 4,
"y": 0,
"numero": 87,
"ocupado": true,
"tipo": 8
},
{
"x": 5,
"y": 0,
"numero": 88,
"ocupado": false,
"tipo": 8
},
{
"x": 0,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 0
},
{
"x": 0,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 2
},
{
"x": 1,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 0,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 3
},
{
"x": 1,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 2
},
{
"x": 2,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 2
}
]
},
{
"filas": 16,
"columnas": 4,
"tipoSeccion": 2,
"items": [
{
"x": 1,
"y": 3,
"numero": 1,
"ocupado": true,
"tipo": 8
},
{
"x": 3,
"y": 3,
"numero": 5,
"ocupado": true,
"tipo": 8
},
{
"x": 5,
"y": 3,
"numero": 7,
"ocupado": true,
"tipo": 8
},
{
"x": 7,
"y": 3,
"numero": 9,
"ocupado": true,
"tipo": 8
},
{
"x": 9,
"y": 3,
"numero": 13,
"ocupado": true,
"tipo": 8
},
{
"x": 11,
"y": 3,
"numero": 15,
"ocupado": true,
"tipo": 8
},
{
"x": 13,
"y": 3,
"numero": 19,
"ocupado": true,
"tipo": 8
},
{
"x": 1,
"y": 2,
"numero": 2,
"ocupado": true,
"tipo": 8
},
{
"x": 3,
"y": 2,
"numero": 4,
"ocupado": true,
"tipo": 8
},
{
"x": 5,
"y": 2,
"numero": 6,
"ocupado": true,
"tipo": 8
},
{
"x": 7,
"y": 2,
"numero": 10,
"ocupado": true,
"tipo": 8
},
{
"x": 9,
"y": 2,
"numero": 12,
"ocupado": true,
"tipo": 8
},
{
"x": 11,
"y": 2,
"numero": 16,
"ocupado": true,
"tipo": 8
},
{
"x": 13,
"y": 2,
"numero": 18,
"ocupado": true,
"tipo": 8
},
{
"x": 1,
"y": 0,
"numero": 3,
"ocupado": true,
"tipo": 8
},
{
"x": 5,
"y": 0,
"numero": 8,
"ocupado": true,
"tipo": 8
},
{
"x": 7,
"y": 0,
"numero": 11,
"ocupado": true,
"tipo": 8
},
{
"x": 9,
"y": 0,
"numero": 14,
"ocupado": true,
"tipo": 8
},
{
"x": 11,
"y": 0,
"numero": 17,
"ocupado": true,
"tipo": 8
},
{
"x": 13,
"y": 0,
"numero": 20,
"ocupado": true,
"tipo": 8
},
{
"x": 0,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 2,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 4,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 6,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 8,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 10,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 12,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 0,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 2,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 4,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 6,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 8,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 10,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 12,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 0,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 2,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 3
},
{
"x": 3,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 2
},
{
"x": 4,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 6,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 8,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 10,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 12,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
}
]
}
]
},
"menuesABordo": [
{
"id": "21",
"descripcion": "MENU GENERAL"
},
{
"id": "24",
"descripcion": "VEGETARIANO"
},
{
"id": "22",
"descripcion": "CELIACO"
}
]
}
---
POST /buses/reservas HTTP/1.1
Host: api.plataforma10.com
Token: 11028-e014020f-08cb-4946-a34f-5a6a3cc37c34-29012019174038
X-Busbud-Requestid: 20190129210269fa0bab367817ea844b69078de9b8b803c720525e62581ae453e7be75d67153+1548795840582
X-Busbud-Purchaseid: 3449100
X-Busbud-Partnerid: null
Accept: application/json
Content-Type: application/json
Content-Length: 819
{
"idVentaExterno": "",
"servicios": [
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_0",
"items": [
{
"butaca": "83",
"importe": 3520,
"pasajero": {
"nombre": "Marion",
"apellido": "Auffret",
"tipoDocumento": 6,
"numeroDocumento": "18ED61871",
"nacionalidad": 142,
"residencia": 122,
"razonSocial": "",
"tipoDocumentoFiscal": 1,
"numeroDocumentoFiscal": "",
"idCondicionImpositiva": 1,
"estadoCivil": "soltero",
"sexo": "O",
"email": "regis.pendino@gmail.com",
"telefono": "+33650816840 "
}
},
{
"butaca": "84",
"importe": 3520,
"pasajero": {
"nombre": "Régis",
"apellido": "Pendino",
"tipoDocumento": 6,
"numeroDocumento": "11AA71863",
"nacionalidad": 142,
"residencia": 122,
"razonSocial": "",
"tipoDocumentoFiscal": 1,
"numeroDocumentoFiscal": "",
"idCondicionImpositiva": 1,
"estadoCivil": "soltero",
"sexo": "O",
"email": "regis.pendino@gmail.com",
"telefono": "+33650816840 "
}
}
]
}
]
}
HTTP/1.1 200 OK
Date: Tue, 29 Jan 2019 21:04:08 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 93
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/8.0
Set-Cookie: ASP.NET_SessionId=hssysgxsf1vfwepsqzry4x5y; path=/; HttpOnly
X-Aspnet-Version: 4.0.30319
X-Powered-By: ASP.NET
{
"idReserva": 11078819,
"importeTotal": 7040,
"codigoResultado": 2200,
"codigo": 0,
"mensaje": null
}
---
POST /buses/reservas/11078819/confirmacion HTTP/1.1
Host: api.plataforma10.com
Token: 11028-e014020f-08cb-4946-a34f-5a6a3cc37c34-29012019174038
X-Busbud-Requestid: 20190129210269fa0bab367817ea844b69078de9b8b803c720525e62581ae453e7be75d67153+1548795840582
X-Busbud-Purchaseid: 3449100
X-Busbud-Partnerid: null
Accept: application/json
Content-Type: application/json
Content-Length: 2
{}
HTTP/1.1 200 OK
Date: Tue, 29 Jan 2019 21:04:13 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 123
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/8.0
Set-Cookie: ASP.NET_SessionId=rrnezdcbkjlanomtlh0ylxxj; path=/; HttpOnly
X-Aspnet-Version: 4.0.30319
X-Powered-By: ASP.NET
{
"idVenta": 0,
"items": null,
"codigoResultado": 4490,
"codigo": 0,
"mensaje": "Error en el nodo: Error al buscar servicio abordo."
}
---
POST /buses/reservas/11078819/cancelacion HTTP/1.1
Host: api.plataforma10.com
Token: 11028-e014020f-08cb-4946-a34f-5a6a3cc37c34-29012019174038
X-Busbud-Requestid: 20190129210269fa0bab367817ea844b69078de9b8b803c720525e62581ae453e7be75d67153+1548795840582
X-Busbud-Purchaseid: 3449100
X-Busbud-Partnerid: null
Accept: application/json
Content-Type: application/json
Content-Length: 2
{}
HTTP/1.1 500 Internal Server Error
Date: Tue, 29 Jan 2019 21:04:14 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 53
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/8.0
Set-Cookie: ASP.NET_SessionId=bwmebbjbqnikymwo2gerkspi; path=/; HttpOnly
X-Aspnet-Version: 4.0.30319
X-Powered-By: ASP.NET
TransactionId: '49047041-f756-44ad-8f70-87c7701aa86e'
---
GET /buses/busqueda/2939/19/2019-02-05 HTTP/1.1
Host: api.plataforma10.com
Token: 11028-e014020f-08cb-4946-a34f-5a6a3cc37c34-29012019174038
X-Busbud-Requestid: 20190129210269fa0bab367817ea844b69078de9b8b803c720525e62581ae453e7be75d67153+1548795899530
X-Busbud-Purchaseid: 3449107
X-Busbud-Partnerid: null
Accept: application/json
HTTP/1.1 200 OK
Date: Tue, 29 Jan 2019 21:05:02 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 1829
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/8.0
Set-Cookie: ASP.NET_SessionId=wdwlpjoynqhaw0ziosqolkdu; path=/; HttpOnly
X-Aspnet-Version: 4.0.30319
X-Powered-By: ASP.NET
{
"paradaOrigen": {
"id": 2939,
"nombre": "Puerto Iguazú"
},
"paradaDestino": {
"id": 19,
"nombre": "Terminal de Cordoba"
},
"fechaBusqueda": "2019-02-05T00:00:00",
"servicios": [
{
"codigoServicio": "8af68741-7ff5-4786-b7cc-d884a32c8785_1",
"butacas": 8,
"clase": "CAMA EJECUTIVO C/SERVICIO",
"fechaHoraSalida": "2019-02-05T08:00:00",
"fechaHoraLlegada": "2019-02-06T08:00:00",
"precio": 3520,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 124,
"nombre": "CRUCERO DEL NORTE"
}
},
{
"codigoServicio": "8af68741-7ff5-4786-b7cc-d884a32c8785_0",
"butacas": 37,
"clase": "SEMICAMA",
"fechaHoraSalida": "2019-02-05T08:00:00",
"fechaHoraLlegada": "2019-02-06T08:00:00",
"precio": 3060,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 124,
"nombre": "CRUCERO DEL NORTE"
}
},
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_1",
"butacas": 17,
"clase": "CAMA TOTAL VIP",
"fechaHoraSalida": "2019-02-05T13:15:00",
"fechaHoraLlegada": "2019-02-06T10:40:00",
"precio": 3935,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 91,
"nombre": "EXPRESO SINGER"
}
},
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_0",
"butacas": 7,
"clase": "CAMA EJECUTIVO",
"fechaHoraSalida": "2019-02-05T13:15:00",
"fechaHoraLlegada": "2019-02-06T10:40:00",
"precio": 3520,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 91,
"nombre": "EXPRESO SINGER"
}
},
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_2",
"butacas": 30,
"clase": "CAMA EJECUTIVO",
"fechaHoraSalida": "2019-02-05T16:00:00",
"fechaHoraLlegada": "2019-02-06T14:05:00",
"precio": 3520,
"moneda": "AR$",
"serviceCharge": 0,
"valorLocativo": {
"importe": 0,
"porcentaje": 0
},
"transportista": {
"id": 91,
"nombre": "EXPRESO SINGER"
}
}
]
}
---
GET /buses/servicios/c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_0/taquilla HTTP/1.1
Host: api.plataforma10.com
Token: 11028-e014020f-08cb-4946-a34f-5a6a3cc37c34-29012019174038
X-Busbud-Requestid: 20190129210269fa0bab367817ea844b69078de9b8b803c720525e62581ae453e7be75d67153+1548795899530
X-Busbud-Purchaseid: 3449107
X-Busbud-Partnerid: null
Accept: application/json
HTTP/1.1 200 OK
Date: Tue, 29 Jan 2019 21:05:02 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 3467
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/8.0
Set-Cookie: ASP.NET_SessionId=pdl5ljnlqil0hvxqu1sqnlyg; path=/; HttpOnly
X-Aspnet-Version: 4.0.30319
X-Powered-By: ASP.NET
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_0",
"butacas": 7,
"clase": "CAMA EJECUTIVO",
"mensaje": null,
"precio": 3520,
"moneda": "AR$",
"datosPasajerosRequeridos": [
"Nombre",
"Apellido",
"TipoDocumento",
"NumeroDocumento",
"Nacionalidad"
],
"mapaButacas": {
"secciones": [
{
"filas": 8,
"columnas": 4,
"tipoSeccion": 1,
"items": [
{
"x": 2,
"y": 3,
"numero": 81,
"ocupado": true,
"tipo": 8
},
{
"x": 3,
"y": 3,
"numero": 83,
"ocupado": false,
"tipo": 8
},
{
"x": 4,
"y": 3,
"numero": 85,
"ocupado": false,
"tipo": 8
},
{
"x": 5,
"y": 3,
"numero": 89,
"ocupado": false,
"tipo": 8
},
{
"x": 2,
"y": 2,
"numero": 82,
"ocupado": true,
"tipo": 8
},
{
"x": 3,
"y": 2,
"numero": 84,
"ocupado": false,
"tipo": 8
},
{
"x": 4,
"y": 2,
"numero": 86,
"ocupado": false,
"tipo": 8
},
{
"x": 5,
"y": 2,
"numero": 90,
"ocupado": false,
"tipo": 8
},
{
"x": 3,
"y": 0,
"numero": 80,
"ocupado": true,
"tipo": 8
},
{
"x": 4,
"y": 0,
"numero": 87,
"ocupado": true,
"tipo": 8
},
{
"x": 5,
"y": 0,
"numero": 88,
"ocupado": false,
"tipo": 8
},
{
"x": 0,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 0
},
{
"x": 0,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 2
},
{
"x": 1,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 0,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 3
},
{
"x": 1,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 2
},
{
"x": 2,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 2
}
]
},
{
"filas": 16,
"columnas": 4,
"tipoSeccion": 2,
"items": [
{
"x": 1,
"y": 3,
"numero": 1,
"ocupado": true,
"tipo": 8
},
{
"x": 3,
"y": 3,
"numero": 5,
"ocupado": true,
"tipo": 8
},
{
"x": 5,
"y": 3,
"numero": 7,
"ocupado": true,
"tipo": 8
},
{
"x": 7,
"y": 3,
"numero": 9,
"ocupado": true,
"tipo": 8
},
{
"x": 9,
"y": 3,
"numero": 13,
"ocupado": true,
"tipo": 8
},
{
"x": 11,
"y": 3,
"numero": 15,
"ocupado": true,
"tipo": 8
},
{
"x": 13,
"y": 3,
"numero": 19,
"ocupado": true,
"tipo": 8
},
{
"x": 1,
"y": 2,
"numero": 2,
"ocupado": true,
"tipo": 8
},
{
"x": 3,
"y": 2,
"numero": 4,
"ocupado": true,
"tipo": 8
},
{
"x": 5,
"y": 2,
"numero": 6,
"ocupado": true,
"tipo": 8
},
{
"x": 7,
"y": 2,
"numero": 10,
"ocupado": true,
"tipo": 8
},
{
"x": 9,
"y": 2,
"numero": 12,
"ocupado": true,
"tipo": 8
},
{
"x": 11,
"y": 2,
"numero": 16,
"ocupado": true,
"tipo": 8
},
{
"x": 13,
"y": 2,
"numero": 18,
"ocupado": true,
"tipo": 8
},
{
"x": 1,
"y": 0,
"numero": 3,
"ocupado": true,
"tipo": 8
},
{
"x": 5,
"y": 0,
"numero": 8,
"ocupado": true,
"tipo": 8
},
{
"x": 7,
"y": 0,
"numero": 11,
"ocupado": true,
"tipo": 8
},
{
"x": 9,
"y": 0,
"numero": 14,
"ocupado": true,
"tipo": 8
},
{
"x": 11,
"y": 0,
"numero": 17,
"ocupado": true,
"tipo": 8
},
{
"x": 13,
"y": 0,
"numero": 20,
"ocupado": true,
"tipo": 8
},
{
"x": 0,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 2,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 4,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 6,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 8,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 10,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 12,
"y": 3,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 0,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 2,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 4,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 6,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 8,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 10,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 12,
"y": 2,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 0,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 2,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 3
},
{
"x": 3,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 2
},
{
"x": 4,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 6,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 8,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 10,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
},
{
"x": 12,
"y": 0,
"numero": 0,
"ocupado": false,
"tipo": 1
}
]
}
]
},
"menuesABordo": [
{
"id": "21",
"descripcion": "MENU GENERAL"
},
{
"id": "24",
"descripcion": "VEGETARIANO"
},
{
"id": "22",
"descripcion": "CELIACO"
}
]
}
---
POST /buses/reservas HTTP/1.1
Host: api.plataforma10.com
Token: 11028-e014020f-08cb-4946-a34f-5a6a3cc37c34-29012019174038
X-Busbud-Requestid: 20190129210269fa0bab367817ea844b69078de9b8b803c720525e62581ae453e7be75d67153+1548795899530
X-Busbud-Purchaseid: 3449107
X-Busbud-Partnerid: null
Accept: application/json
Content-Type: application/json
Content-Length: 819
{
"idVentaExterno": "",
"servicios": [
{
"codigoServicio": "c16dd1b4-e5b5-45a1-a59f-88f1f77a8f8b_0",
"items": [
{
"butaca": "83",
"importe": 3520,
"pasajero": {
"nombre": "Marion",
"apellido": "Auffret",
"tipoDocumento": 6,
"numeroDocumento": "18ED61871",
"nacionalidad": 142,
"residencia": 122,
"razonSocial": "",
"tipoDocumentoFiscal": 1,
"numeroDocumentoFiscal": "",
"idCondicionImpositiva": 1,
"estadoCivil": "soltero",
"sexo": "O",
"email": "regis.pendino@gmail.com",
"telefono": "+33650816840 "
}
},
{
"butaca": "84",
"importe": 3520,
"pasajero": {
"nombre": "Régis",
"apellido": "Pendino",
"tipoDocumento": 6,
"numeroDocumento": "11AA71863",
"nacionalidad": 142,
"residencia": 122,
"razonSocial": "",
"tipoDocumentoFiscal": 1,
"numeroDocumentoFiscal": "",
"idCondicionImpositiva": 1,
"estadoCivil": "soltero",
"sexo": "O",
"email": "regis.pendino@gmail.com",
"telefono": "+33650816840 "
}
}
]
}
]
}
HTTP/1.1 200 OK
Date: Tue, 29 Jan 2019 21:05:05 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 138
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/8.0
Set-Cookie: ASP.NET_SessionId=xbjebcyuyt43rhgswdxomoiv; path=/; HttpOnly
X-Aspnet-Version: 4.0.30319
X-Powered-By: ASP.NET
{
"idReserva": 0,
"importeTotal": 0,
"codigoResultado": 2290,
"codigo": 0,
"mensaje": "Alguno de los asientos especificados no se pudo Reservar."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment