Created
September 15, 2015 22:40
-
-
Save micahnz/f42f0509b97d0bdfe2b6 to your computer and use it in GitHub Desktop.
GET /api/rest/v1/customer/orders/complete - Customer gets a list of completed orders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"success": true, | |
"result": { | |
"total": 2, | |
"length": 2, | |
"items": [ | |
{ | |
"id": 1, | |
"createdAt": "2015-09-15T21:31:35.698Z", | |
"updatedAt": "2015-09-15T22:34:14.892Z", | |
"pickupAt": "2015-09-15T21:31:35.697Z", | |
"customerId": 1, | |
"distributorId": 1, | |
"type": null, | |
"status": 4, | |
"distance": null, | |
"duration": null, | |
"note": "note", | |
"price": null, | |
"paid": null, | |
"currency": null, | |
"customer": { | |
"id": 1, | |
"createdAt": "2015-09-15T21:31:28.937Z", | |
"updatedAt": "2015-09-15T21:31:28.937Z", | |
"contactAddressId": null, | |
"billingAddressId": null, | |
"roles": null, | |
"type": null, | |
"status": null, | |
"contactName": "Customer McTest", | |
"companyName": "ABC Testing Co.", | |
"phoneNumber": "1800-4-TESTING", | |
"businessCode": "test-1337", | |
"paymentMethod": null, | |
"email": "test@example.com" | |
}, | |
"jobs": [ | |
{ | |
"id": 1, | |
"createdAt": "2015-09-15T21:31:35.716Z", | |
"updatedAt": "2015-09-15T22:34:14.787Z", | |
"pickupAddressId": 1, | |
"deliveryAddressId": 2, | |
"assignmentId": 1, | |
"orderId": 1, | |
"driverId": 1, | |
"type": null, | |
"status": 4, | |
"distance": null, | |
"duration": null, | |
"price": null, | |
"paid": null, | |
"currency": null, | |
"pickupAddress": { | |
"id": 1, | |
"createdAt": "2015-09-15T21:31:35.707Z", | |
"updatedAt": "2015-09-15T21:31:35.707Z", | |
"streetNumber": "street number", | |
"streetName": "street name", | |
"subDistrict": "sub district", | |
"district": "district", | |
"city": "city", | |
"state": "state", | |
"country": "country", | |
"postcode": "postcode", | |
"lat": 18.516722, | |
"long": 99.275992 | |
}, | |
"deliveryAddress": { | |
"id": 2, | |
"createdAt": "2015-09-15T21:31:35.711Z", | |
"updatedAt": "2015-09-15T21:31:35.711Z", | |
"streetNumber": "street number", | |
"streetName": "street name", | |
"subDistrict": "sub district", | |
"district": "district", | |
"city": "city", | |
"state": "state", | |
"country": "country", | |
"postcode": "postcode", | |
"lat": 18.516722, | |
"long": 99.275992 | |
}, | |
"parcels": [ | |
{ | |
"id": 1, | |
"createdAt": "2015-09-15T21:31:35.724Z", | |
"updatedAt": "2015-09-15T22:34:14.836Z", | |
"deliveryAddressId": 2, | |
"code": null, | |
"status": 2, | |
"type": null, | |
"recipient": null, | |
"email": null, | |
"phoneNumber": "phoneNumber", | |
"note": "note", | |
"deliveryAddress": { | |
"id": 2, | |
"createdAt": "2015-09-15T21:31:35.711Z", | |
"updatedAt": "2015-09-15T21:31:35.711Z", | |
"streetNumber": "street number", | |
"streetName": "street name", | |
"subDistrict": "sub district", | |
"district": "district", | |
"city": "city", | |
"state": "state", | |
"country": "country", | |
"postcode": "postcode", | |
"lat": 18.516722, | |
"long": 99.275992 | |
}, | |
"services": [ | |
{ | |
"id": 1, | |
"createdAt": "2015-09-15T21:31:35.732Z", | |
"updatedAt": "2015-09-15T21:31:35.732Z", | |
"type": 0, | |
"data": null | |
}, | |
{ | |
"id": 2, | |
"createdAt": "2015-09-15T21:31:35.736Z", | |
"updatedAt": "2015-09-15T21:31:35.736Z", | |
"type": 1, | |
"data": null | |
}, | |
{ | |
"id": 3, | |
"createdAt": "2015-09-15T21:31:35.739Z", | |
"updatedAt": "2015-09-15T21:31:35.739Z", | |
"type": 2, | |
"data": null | |
}, | |
{ | |
"id": 4, | |
"createdAt": "2015-09-15T21:31:35.745Z", | |
"updatedAt": "2015-09-15T21:31:35.745Z", | |
"type": 3, | |
"data": null | |
}, | |
{ | |
"id": 5, | |
"createdAt": "2015-09-15T21:31:35.748Z", | |
"updatedAt": "2015-09-15T21:31:35.748Z", | |
"type": 4, | |
"data": null | |
}, | |
{ | |
"id": 6, | |
"createdAt": "2015-09-15T21:31:35.749Z", | |
"updatedAt": "2015-09-15T21:31:35.749Z", | |
"type": 5, | |
"data": null | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"id": 2, | |
"createdAt": "2015-09-15T21:35:24.061Z", | |
"updatedAt": "2015-09-15T22:38:17.126Z", | |
"pickupAt": "2015-08-19T14:40:34.427Z", | |
"customerId": 1, | |
"distributorId": 1, | |
"type": null, | |
"status": 4, | |
"distance": null, | |
"duration": null, | |
"note": "note", | |
"price": null, | |
"paid": null, | |
"currency": null, | |
"customer": { | |
"id": 1, | |
"createdAt": "2015-09-15T21:31:28.937Z", | |
"updatedAt": "2015-09-15T21:31:28.937Z", | |
"contactAddressId": null, | |
"billingAddressId": null, | |
"roles": null, | |
"type": null, | |
"status": null, | |
"contactName": "Customer McTest", | |
"companyName": "ABC Testing Co.", | |
"phoneNumber": "1800-4-TESTING", | |
"businessCode": "test-1337", | |
"paymentMethod": null, | |
"email": "test@example.com" | |
}, | |
"jobs": [ | |
{ | |
"id": 2, | |
"createdAt": "2015-09-15T21:35:24.087Z", | |
"updatedAt": "2015-09-15T22:38:17.048Z", | |
"pickupAddressId": 3, | |
"deliveryAddressId": 4, | |
"assignmentId": 2, | |
"orderId": 2, | |
"driverId": 1, | |
"type": null, | |
"status": 4, | |
"distance": null, | |
"duration": null, | |
"price": null, | |
"paid": null, | |
"currency": null, | |
"pickupAddress": { | |
"id": 3, | |
"createdAt": "2015-09-15T21:35:24.079Z", | |
"updatedAt": "2015-09-15T21:35:24.079Z", | |
"streetNumber": "street number", | |
"streetName": "street name", | |
"subDistrict": "sub district", | |
"district": "district", | |
"city": "city", | |
"state": "state", | |
"country": "country", | |
"postcode": "postcode", | |
"lat": 18.516722, | |
"long": 99.275992 | |
}, | |
"deliveryAddress": { | |
"id": 4, | |
"createdAt": "2015-09-15T21:35:24.084Z", | |
"updatedAt": "2015-09-15T21:35:24.084Z", | |
"streetNumber": "street number", | |
"streetName": "street name", | |
"subDistrict": "sub district", | |
"district": "district", | |
"city": "city", | |
"state": "state", | |
"country": "country", | |
"postcode": "postcode", | |
"lat": 18.516722, | |
"long": 99.275992 | |
}, | |
"parcels": [ | |
{ | |
"id": 2, | |
"createdAt": "2015-09-15T21:35:24.094Z", | |
"updatedAt": "2015-09-15T22:38:17.083Z", | |
"deliveryAddressId": 4, | |
"code": null, | |
"status": 2, | |
"type": null, | |
"recipient": null, | |
"email": null, | |
"phoneNumber": "phoneNumber", | |
"note": "note", | |
"services": [ | |
{ | |
"id": 7, | |
"createdAt": "2015-09-15T21:35:24.103Z", | |
"updatedAt": "2015-09-15T21:35:24.103Z", | |
"type": 0, | |
"data": null | |
}, | |
{ | |
"id": 8, | |
"createdAt": "2015-09-15T21:35:24.105Z", | |
"updatedAt": "2015-09-15T21:35:24.105Z", | |
"type": 1, | |
"data": null | |
}, | |
{ | |
"id": 9, | |
"createdAt": "2015-09-15T21:35:24.110Z", | |
"updatedAt": "2015-09-15T21:35:24.110Z", | |
"type": 2, | |
"data": null | |
}, | |
{ | |
"id": 10, | |
"createdAt": "2015-09-15T21:35:24.117Z", | |
"updatedAt": "2015-09-15T21:35:24.117Z", | |
"type": 3, | |
"data": null | |
}, | |
{ | |
"id": 11, | |
"createdAt": "2015-09-15T21:35:24.122Z", | |
"updatedAt": "2015-09-15T21:35:24.122Z", | |
"type": 4, | |
"data": null | |
}, | |
{ | |
"id": 12, | |
"createdAt": "2015-09-15T21:35:24.125Z", | |
"updatedAt": "2015-09-15T21:35:24.125Z", | |
"type": 5, | |
"data": null | |
} | |
], | |
"deliveryAddress": { | |
"id": 4, | |
"createdAt": "2015-09-15T21:35:24.084Z", | |
"updatedAt": "2015-09-15T21:35:24.084Z", | |
"streetNumber": "street number", | |
"streetName": "street name", | |
"subDistrict": "sub district", | |
"district": "district", | |
"city": "city", | |
"state": "state", | |
"country": "country", | |
"postcode": "postcode", | |
"lat": 18.516722, | |
"long": 99.275992 | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment