## Query all user order
>接口说明
查询该用户所有订单
>接口参数说明
~~~[api]
get:/b2c/orders
<<<
success
{
"data": [
{
"status": 0,
"msg": "success",
"orderNo": "930EFE1D",
"pnrCode": "OLX4XW",
"orderStatus": "CREATED",
"airlinePnrCode": "AC:LMPDME,AC:LMPDME",
"createDateTime": "2018-11-07T11:51:41",
"recommendation": {
"data": "619cb450e25411e8a78b558f89b6d9d9-6764a740e25411e89519f55fd4c566f0",
"settlementCurrency": "USD",
"settlementPrice": {
"currency": "USD",
"adultPrice": 431.65,
"adultTax": 93.86,
"childPrice": 0,
"childTax": 0,
"infantPrice": 0,
"infantTax": 0
},
"validatingCarrier": "AC",
"itineraries": [
{
"departureCode": "YTO",
"arrivalCode": "YVR",
"duration": 292,
"segments": [
{
"carrier": "AC",
"flightNumber": "AC101",
"departureAirport": "YYZ",
"departureTime": "201811230700",
"arrivalAirport": "YVR",
"arrivalTime": "201811230852",
"codeShare": false,
"departureTerminal": "1",
"arrivingTerminal": "M",
"cabin": "E",
"bookingClass": "K",
"aircraftCode": "789",
"seatCount": "9",
"duration": 292,
"basicEconomy": false
}
]
},
{
"departureCode": "YVR",
"arrivalCode": "YTO",
"duration": 260,
"segments": [
{
"carrier": "AC",
"flightNumber": "AC126",
"departureAirport": "YVR",
"departureTime": "201811272230",
"arrivalAirport": "YYZ",
"arrivalTime": "201811280550",
"codeShare": false,
"departureTerminal": "M",
"arrivingTerminal": "1",
"cabin": "E",
"bookingClass": "K",
"aircraftCode": "77W",
"seatCount": "9",
"duration": 260,
"basicEconomy": false
}
]
}
],
"freeBaggagePieces": 0,
"freeBaggageWeight": -1,
"stayDays": 4,
"uniqueKey": "AC101-201811230700-E_AC126-201811272230-E",
"rating": 0
},
"contact": {
"name": "asd dsa",
"email": "123@qq.com",
"mobile": "1:123123123"
},
"passengers": [
{
"name": "asd dsa",
"ageType": 0,
"gender": "F",
"nationality": "MX",
"birthday": "19930101",
"ticketNumber": "",
"baseFare": 337.79,
"tax": 93.86,
"insurancePrice": 0,
"insuranceTax": 0
}
],
"paymentCurrency": "USD",
"paymentFlightPrice": 431.65,
"insurancePrice": 0,
"departureCode": "YTO",
"departureName": "Toronto",
"arrivalCode": "YVR",
"arrivalName": "Vancouver",
"language": "en",
"coupon": {
"couponPrice": 0
}
},
{
"status": 0,
"msg": "success",
"orderNo": "B789F3B9",
"pnrCode": "OGGLMO",
"orderStatus": "CREATED",
"airlinePnrCode": "PD:G43B7C",
"createDateTime": "2018-11-06T12:51:10",
"recommendation": {
"data": "1c473f3be19811e8a78b558f89b6d9d9-1eb8dbebe19811e8a06e55ca5e1cca8f",
"settlementCurrency": "CAD",
"settlementPrice": {
"currency": "CAD",
"adultPrice": 318.57,
"adultTax": 96.87,
"childPrice": 0,
"childTax": 0,
"infantPrice": 0,
"infantTax": 0
},
"validatingCarrier": "PD",
"itineraries": [
{
"departureCode": "YMQ",
"arrivalCode": "YTO",
"duration": 70,
"segments": [
{
"carrier": "PD",
"flightNumber": "PD450",
"departureAirport": "YUL",
"departureTime": "201811150640",
"arrivalAirport": "YTZ",
"arrivalTime": "201811150750",
"codeShare": false,
"cabin": "E",
"bookingClass": "K",
"aircraftCode": "DH4",
"seatCount": "4",
"duration": 70,
"basicEconomy": false
}
]
}
],
"freeBaggagePieces": 0,
"freeBaggageWeight": -1,
"stayDays": -1,
"uniqueKey": "PD450-201811150640-E",
"rating": 0
},
"contact": {
"name": "fdsafdsa/gfdsgfds",
"email": "gfdsgfdsgf@gmail.com",
"mobile": "1:4324324324"
},
"passengers": [
{
"name": "fdsafdsarewqrewqrweq gfdsgfdgdsfg",
"ageType": 0,
"gender": "M",
"nationality": "CN",
"birthday": "19920302",
"ticketNumber": "",
"baseFare": 221.7,
"tax": 96.87,
"insurancePrice": 0,
"insuranceTax": 0
}
],
"paymentCurrency": "CAD",
"paymentFlightPrice": 318.57,
"insurancePrice": 0,
"departureCode": "YMQ",
"departureName": "Montreal",
"arrivalCode": "YTO",
"arrivalName": "Toronto",
"language": "en",
"coupon": {
"couponPrice": 0
}
},
{
"status": 0,
"msg": "success",
"orderNo": "3501F7E9",
"pnrCode": "OGG3CX",
"orderStatus": "CREATED",
"airlinePnrCode": "PD:JF2YNB",
"createDateTime": "2018-11-06T12:47:30",
"recommendation": {
"data": "1c473f3be19811e8a78b558f89b6d9d9-1eb8dbebe19811e8a06e55ca5e1cca8f",
"settlementCurrency": "CAD",
"settlementPrice": {
"currency": "CAD",
"adultPrice": 318.57,
"adultTax": 96.87,
"childPrice": 0,
"childTax": 0,
"infantPrice": 0,
"infantTax": 0
},
"validatingCarrier": "PD",
"itineraries": [
{
"departureCode": "YMQ",
"arrivalCode": "YTO",
"duration": 70,
"segments": [
{
"carrier": "PD",
"flightNumber": "PD450",
"departureAirport": "YUL",
"departureTime": "201811150640",
"arrivalAirport": "YTZ",
"arrivalTime": "201811150750",
"codeShare": false,
"cabin": "E",
"bookingClass": "K",
"aircraftCode": "DH4",
"seatCount": "4",
"duration": 70,
"basicEconomy": false
}
]
}
],
"freeBaggagePieces": 0,
"freeBaggageWeight": -1,
"stayDays": -1,
"uniqueKey": "PD450-201811150640-E",
"rating": 0
},
"contact": {
"name": "fdsafdsa/fdsa",
"email": "fdsagsdf@gmail.com",
"mobile": "1:4324324234"
},
"passengers": [
{
"name": "fdsa fdsa",
"ageType": 0,
"gender": "M",
"nationality": "CN",
"birthday": "19920403",
"ticketNumber": "",
"baseFare": 221.7,
"tax": 96.87,
"insurancePrice": 0,
"insuranceTax": 0
}
],
"paymentCurrency": "CAD",
"paymentFlightPrice": 318.57,
"insurancePrice": 0,
"departureCode": "YMQ",
"departureName": "Montreal",
"arrivalCode": "YTO",
"arrivalName": "Toronto",
"language": "en",
"coupon": {
"couponPrice": 0
}
}
],
"status": 0,
"msg": "success",
"timestamp": "20181112123224021"
}
<<<
error
{
"status": 4001,
"msg": "No user found.",
"timestamp": "20181109025627791"
}
{
"status": 4002,
"msg": "The user has no order.",
"timestamp": "20181109025818682"
}
~~~
>接口请求示例
~~~
{
/b2c/orders
}
~~~