POST
/api/v1/customer/online-order/get-reorder
This API method will return all the items (marked as selected) of an online order with other items that are not of that order but belongs to the kit of that order.
Request Parameters
Parameter | Value / Type | Required |
|---|---|---|
order_id | STRING | true |
Sample Response
{
"status": true,
"items": {
"order_id": "5pYWkXQBmN2moZJaqx3D",
"items": [
{
"id": "4OGgDJYvEAMEay7pMwZn",
"name": "Order Level 3 Kit",
"category": "Kit Category",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"short_description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"image": "http://controlcenter.local/images/kit-item/image/9",
"qty": 1,
"isVisible": true,
"type": "kit",
"items": [
{
"type": "product",
"id": "2qMAbl7VEqJPenXgQD8p",
"row_id": "0lkLyWd3EnrEgZJxw7NK",
"name": "100W Flask TCtest4",
"upc": "123456",
"section_id": null,
"sequence": 1,
"basePrice": "58.00",
"modifier": {
"type": "discount",
"value": "6.65"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 0,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 1
},
{
"id": "Wb7gBR3KEV3eAjQ2wdJZ",
"row_id": "PDb6BgOAmwvey0WRw9n8",
"name": "Order Level 2 Kit",
"type": "kit",
"sequence": 2,
"hide_price": 0,
"optional": 0,
"items": [
{
"type": "product",
"id": "XNgWDZr9E5pzAd04V5Mn",
"row_id": "BRjOndDLzWqeVr18yv6p",
"name": "100W Flask TCtest1",
"upc": "400001000526",
"section_id": 2,
"sequence": 1,
"basePrice": 50,
"modifier": {
"type": "increase",
"value": "49.00"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 0,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 1
},
{
"id": "34aQnOG0m9XeMVB7YqyJ",
"row_id": "JD9KojB1myBzQpXkv2Gd",
"name": "Order Level 1 Kit",
"type": "kit",
"sequence": 2,
"hide_price": 0,
"optional": 0,
"items": [
{
"type": "product",
"id": "Q84qG2JkmD5zpNxDRPvd",
"row_id": "XNgWDZr9E5pzAd04V5Mn",
"name": "10 Product Name",
"upc": "123ABC789",
"section_id": null,
"sequence": 1,
"basePrice": 120.31,
"modifier": {
"type": "discount",
"value": "5.02"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 0,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 1
},
{
"type": "product",
"id": "gAVGy1a0mgDozK4JkZqx",
"row_id": "GLqZ4WXKEOjzxbwJa3lr",
"name": "395",
"upc": "056000000052",
"section_id": null,
"sequence": 2,
"basePrice": 99,
"modifier": {
"type": "discount",
"value": "2.45"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 0,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 1
}
],
"groupId": null,
"group": null,
"selected": 1
},
{
"type": "product",
"id": "kBL8qYaWmRXgEDr5R3Pj",
"row_id": "l6yYk1WOeo7e2b78dD4j",
"name": "440",
"upc": "585225",
"section_id": null,
"sequence": 3,
"basePrice": 99,
"modifier": {
"type": "discount",
"value": "0.00"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 1,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 0
}
],
"groupId": null,
"group": null,
"selected": 1
},
{
"type": "product",
"id": "LZWBJx0PmYdXewjGdr2v",
"row_id": "QJqBAgv7EPRm8ZYNp1V0",
"name": "100W Flask TCtest5",
"upc": "12121233",
"section_id": null,
"sequence": 3,
"basePrice": "111.11",
"modifier": {
"type": "discount",
"value": "3.11"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 1,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 0
}
],
"created_at": "2019-12-12 12:55:38",
"updated_at": "2019-12-12 12:57:02",
"deleted_at": null
},
{
"id": "4OGgDJYvEAMEay7pMwZn",
"name": "Order Level 3 Kit",
"category": "Kit Category",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"short_description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"image": "http://controlcenter.local/images/kit-item/image/9",
"qty": 1,
"isVisible": true,
"type": "kit",
"items": [
{
"type": "product",
"id": "2qMAbl7VEqJPenXgQD8p",
"row_id": "0lkLyWd3EnrEgZJxw7NK",
"name": "100W Flask TCtest4",
"upc": "123456",
"section_id": null,
"sequence": 1,
"basePrice": "58.00",
"modifier": {
"type": "discount",
"value": "6.65"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 0,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 1
},
{
"id": "Wb7gBR3KEV3eAjQ2wdJZ",
"row_id": "PDb6BgOAmwvey0WRw9n8",
"name": "Order Level 2 Kit",
"type": "kit",
"sequence": 2,
"hide_price": 0,
"optional": 0,
"items": [
{
"type": "product",
"id": "XNgWDZr9E5pzAd04V5Mn",
"row_id": "BRjOndDLzWqeVr18yv6p",
"name": "100W Flask TCtest1",
"upc": "400001000526",
"section_id": 2,
"sequence": 1,
"basePrice": 50,
"modifier": {
"type": "increase",
"value": "49.00"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 0,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 1
},
{
"id": "34aQnOG0m9XeMVB7YqyJ",
"row_id": "JD9KojB1myBzQpXkv2Gd",
"name": "Order Level 1 Kit",
"type": "kit",
"sequence": 2,
"hide_price": 0,
"optional": 0,
"items": [
{
"type": "product",
"id": "Q84qG2JkmD5zpNxDRPvd",
"row_id": "XNgWDZr9E5pzAd04V5Mn",
"name": "10 Product Name",
"upc": "123ABC789",
"section_id": null,
"sequence": 1,
"basePrice": 120.31,
"modifier": {
"type": "discount",
"value": "5.02"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 0,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 1
},
{
"type": "product",
"id": "gAVGy1a0mgDozK4JkZqx",
"row_id": "GLqZ4WXKEOjzxbwJa3lr",
"name": "395",
"upc": "056000000052",
"section_id": null,
"sequence": 2,
"basePrice": 99,
"modifier": {
"type": "discount",
"value": "2.45"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 0,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 1
}
],
"groupId": null,
"group": null,
"selected": 1
},
{
"type": "product",
"id": "kBL8qYaWmRXgEDr5R3Pj",
"row_id": "l6yYk1WOeo7e2b78dD4j",
"name": "440",
"upc": "585225",
"section_id": null,
"sequence": 3,
"basePrice": 99,
"modifier": {
"type": "discount",
"value": "0.00"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 1,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 0
}
],
"groupId": null,
"group": null,
"selected": 1
},
{
"type": "product",
"id": "LZWBJx0PmYdXewjGdr2v",
"row_id": "QJqBAgv7EPRm8ZYNp1V0",
"name": "100W Flask TCtest5",
"upc": "12121233",
"section_id": null,
"sequence": 3,
"basePrice": "111.11",
"modifier": {
"type": "discount",
"value": "3.11"
},
"hidden": 0,
"hide_price": 0,
"qty": 1,
"optional": 1,
"factor_qty_into_price": 1,
"groupId": null,
"group": null,
"selected": 1
}
],
"created_at": "2019-12-12 12:55:38",
"updated_at": "2019-12-12 12:57:02",
"deleted_at": null
}
]
}
}{
"status": false,
"errorCode": "VALIDATION_EXCEPTION",
"messages": {
"order_id": [
"The order id field is required."
]
}
}{
"status": false,
"errorCode": "NO_ITEMS",
"message": "No details found for this order"
}