Created
September 15, 2015 22:26
-
-
Save micahnz/9ccf4d851ce862e8b685 to your computer and use it in GitHub Desktop.
GET /api/rest/v1/customer/orders/unassigned - Customer gets a list of unassigned 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
// response body | |
{ | |
"success": true, | |
"result": { | |
"total": 4, | |
"length": 4, | |
"items": [ | |
{ | |
"id": 5, | |
"createdAt": "2015-09-15T21:58:59.856Z", | |
"updatedAt": "2015-09-15T21:58:59.856Z", | |
"pickupAt": "2015-08-19T14:40:34.427Z", | |
"customerId": 1, | |
"distributorId": 1, | |
"type": null, | |
"status": 0, | |
"distance": "221", | |
"duration": "36", | |
"note": "note", | |
"price": "2.21", | |
"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": 4, | |
"createdAt": "2015-09-15T21:58:59.884Z", | |
"updatedAt": "2015-09-15T21:58:59.953Z", | |
"pickupAddressId": 8, | |
"deliveryAddressId": 9, | |
"assignmentId": 5, | |
"orderId": 5, | |
"driverId": null, | |
"type": null, | |
"status": 0, | |
"distance": "221", | |
"duration": "36", | |
"price": "2.21", | |
"paid": null, | |
"currency": null, | |
"pickupAddress": { | |
"id": 8, | |
"createdAt": "2015-09-15T21:58:59.873Z", | |
"updatedAt": "2015-09-15T21:58:59.873Z", | |
"streetNumber": "street number", | |
"streetName": "street name", | |
"subDistrict": "sub district", | |
"district": "district", | |
"city": "city", | |
"state": "state", | |
"country": "country", | |
"postcode": "postcode", | |
"lat": -45.90326, | |
"long": 170.507233 | |
}, | |
"deliveryAddress": { | |
"id": 9, | |
"createdAt": "2015-09-15T21:58:59.881Z", | |
"updatedAt": "2015-09-15T21:58:59.881Z", | |
"streetNumber": "street number", | |
"streetName": "street name", | |
"subDistrict": "sub district", | |
"district": "district", | |
"city": "city", | |
"state": "state", | |
"country": "country", | |
"postcode": "postcode", | |
"lat": -45.901939, | |
"long": 170.507531 | |
}, | |
"parcels": [ | |
{ | |
"id": 4, | |
"createdAt": "2015-09-15T21:58:59.894Z", | |
"updatedAt": "2015-09-15T21:58:59.894Z", | |
"deliveryAddressId": 9, | |
"code": null, | |
"status": 0, | |
"type": null, | |
"recipient": null, | |
"email": null, | |
"phoneNumber": "phoneNumber", | |
"note": "note", | |
"deliveryAddress": { | |
"id": 9, | |
"createdAt": "2015-09-15T21:58:59.881Z", | |
"updatedAt": "2015-09-15T21:58:59.881Z", | |
"streetNumber": "street number", | |
"streetName": "street name", | |
"subDistrict": "sub district", | |
"district": "district", | |
"city": "city", | |
"state": "state", | |
"country": "country", | |
"postcode": "postcode", | |
"lat": -45.901939, | |
"long": 170.507531 | |
}, | |
"services": [ | |
{ | |
"id": 19, | |
"createdAt": "2015-09-15T21:58:59.901Z", | |
"updatedAt": "2015-09-15T21:58:59.901Z", | |
"type": 0, | |
"data": null | |
}, | |
{ | |
"id": 20, | |
"createdAt": "2015-09-15T21:58:59.904Z", | |
"updatedAt": "2015-09-15T21:58:59.904Z", | |
"type": 1, | |
"data": null | |
}, | |
{ | |
"id": 21, | |
"createdAt": "2015-09-15T21:58:59.908Z", | |
"updatedAt": "2015-09-15T21:58:59.908Z", | |
"type": 2, | |
"data": null | |
}, | |
{ | |
"id": 22, | |
"createdAt": "2015-09-15T21:58:59.912Z", | |
"updatedAt": "2015-09-15T21:58:59.912Z", | |
"type": 3, | |
"data": null | |
}, | |
{ | |
"id": 23, | |
"createdAt": "2015-09-15T21:58:59.915Z", | |
"updatedAt": "2015-09-15T21:58:59.915Z", | |
"type": 4, | |
"data": null | |
}, | |
{ | |
"id": 24, | |
"createdAt": "2015-09-15T21:58:59.919Z", | |
"updatedAt": "2015-09-15T21:58:59.919Z", | |
"type": 5, | |
"data": null | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment