User Tools

Site Tools


udropship:umarketplace:m2:vendor-api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
udropship:umarketplace:m2:vendor-api [2019/10/23 19:11]
wtsergo [Get list of Vendor Purchase Orders (possible to filter)]
udropship:umarketplace:m2:vendor-api [2019/10/23 19:24]
wtsergo [Get Purchase Order Comments List]
Line 15: Line 15:
  
 '' ''
-Example:\\ +Example: 
-POST  http://magento222.loc/index.php/rest/V1/integration/admin/token\\+'' 
 +<code> 
 +POST  http://magento.loc/index.php/rest/V1/integration/admin/token\\
 {"username":"<vendor email>","password":"<vendor password>"}\\ {"username":"<vendor email>","password":"<vendor password>"}\\
-\\ +</code> 
-RESPONSE\\+'' 
 +RESPONSE
 "xxxxxxxxx 32 bit token xxxxxxxxx" "xxxxxxxxx 32 bit token xxxxxxxxx"
- 
 '' ''
  
Line 29: Line 31:
  
 '' ''
-Example:\\ +Example: 
-GET  http://magento222.loc/index.php/rest/V1/udpos?searchCriteria%5Bfilter_groups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bfield%5D=created_at&searchCriteria%5Bfilter_groups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bvalue%5D=2016-07-01+00%3A00%3A00&searchCriteria%5Bfilter_groups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bcondition_type%5D=gt\\ +'' 
-\\+<code> 
 +GET  http://magento.loc/index.php/rest/V1/udpos?searchCriteria%5Bfilter_groups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bfield%5D=created_at&searchCriteria%5Bfilter_groups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bvalue%5D=2016-07-01+00%3A00%3A00&searchCriteria%5Bfilter_groups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bcondition_type%5D=gt 
 +</code> 
 +''
 RESPONSE RESPONSE
 '' ''
  
-<pre>+<code>
  
 { {
 +"items": [{
 +    "billing_address_id": 14,
 +    "created_at": "2018-03-02 18:33:51",
 +    "customer_id": 2,
 +    "email_sent": 0,
 +    "entity_id": 1,
 +    "increment_id": "000000012-1",
 +    "order_id": 12,
 +    "udropship_status": 9,
 +    "shipping_address_id": 13,
 +    "store_id": 1,
 +    "total_qty": 4,
 +    "total_weight": 0,
 +    "updated_at": "2018-03-12 09:05:41",
     "items": [{     "items": [{
-        "billing_address_id": 14, 
-        "created_at": "2018-03-02 18:33:51", 
-        "customer_id": 2, 
-        "email_sent": 0, 
         "entity_id": 1,         "entity_id": 1,
-        "increment_id": "000000012-1", +        "name": "Push It Messenger Bag", 
-        "order_id": 12, +        "parent_id": 1, 
-        "udropship_status": 9, +        "price": 56.81, 
-        "shipping_address_id": 13, +        "product_id": 14, 
-        "store_id": 1, +        "row_total": 170.43, 
-        "total_qty": 4, +        "sku": "24-WB04", 
-        "total_weight": 0, +        "order_item_id": 12, 
-        "updated_at": "2018-03-12 09:05:41", +        "qty": 3
-        "items": [{ +
-            "entity_id": 1, +
-            "name": "Push It Messenger Bag", +
-            "parent_id": 1, +
-            "price": 56.81, +
-            "product_id": 14, +
-            "row_total": 170.43, +
-            "sku": "24-WB04", +
-            "order_item_id": 12, +
-            "qty": 3 +
-        }, { +
-            "entity_id": 2, +
-            "name": "Fusion Backpack", +
-            "parent_id": 1, +
-            "price": 69.98, +
-            "product_id": 6, +
-            "row_total": 69.98, +
-            "sku": "24-MB02", +
-            "order_item_id": 13, +
-            "qty": 1 +
-        }], +
-        "comments": [{ +
-            "is_customer_notified": null, +
-            "parent_id": 1, +
-            "comment": "[vendor1 changed PO status from 'Ready to Ship' to 'Acknowledged']", +
-            "is_visible_on_front": null, +
-            "created_at": "2018-03-12 09:05:41", +
-            "entity_id": 3 +
-        }, { +
-            "is_customer_notified": null, +
-            "parent_id": 1, +
-            "comment": "vendor1: Test API Comment with status change", +
-            "is_visible_on_front": null, +
-            "created_at": "2018-03-12 09:05:41", +
-            "entity_id":+
-        }, { +
-            "is_customer_notified": null, +
-            "parent_id": 1, +
-            "comment": "vendor1: Test API Comment", +
-            "is_visible_on_front": null, +
-            "created_at": "2018-03-12 09:05:16", +
-            "entity_id":+
-        }, { +
-            "is_customer_notified": null, +
-            "parent_id": 1, +
-            "comment": "[vendor1 changed PO status from 'Pending' to 'Ready to Ship']", +
-            "is_visible_on_front": null, +
-            "created_at": "2018-03-02 18:34:08", +
-            "entity_id":+
-        }]+
     }, {     }, {
-        "billing_address_id": 16, 
-        "created_at": "2018-03-12 08:47:24", 
-        "customer_id": 2, 
-        "email_sent": 0, 
         "entity_id": 2,         "entity_id": 2,
-        "increment_id": "000000013-1", +        "name": "Fusion Backpack", 
-        "order_id": 13, +        "parent_id": 1, 
-        "udropship_status": 0, +        "price": 69.98
-        "shipping_address_id": 15, +        "product_id": 6
-        "store_id": 1, +        "row_total": 69.98
-        "total_qty": 6, +        "sku": "24-MB02", 
-        "total_weight": 4, +        "order_item_id": 13
-        "updated_at": "2018-03-12 08:47:24", +        "qty":
-        "items": [{ +    }]
-            "entity_id": 3, +    "comments": [
-            "name": "Orestes Yoga Pant ", +        "is_customer_notified": null
-            "parent_id": 2, +        "parent_id": 1, 
-            "price": 82.74+        "comment": "[vendor1 changed PO status from 'Ready to Ship' to 'Acknowledged']", 
-            "product_id": 859+        "is_visible_on_front": null
-            "row_total": 82.74+        "created_at": "2018-03-12 09:05:41", 
-            "sku": "MP10-32-Blue", +        "entity_id": 3
-            "weight": 1, +
-            "order_item_id": 14+
-            "qty":+
-        }, { +
-            "entity_id": 4, +
-            "name": "Orestes Yoga Pant -32-Blue", +
-            "parent_id": 2, +
-            "price": 0, +
-            "product_id": 848, +
-            "sku": "MP10-32-Blue", +
-            "weight": 1, +
-            "order_item_id": 15, +
-            "qty":+
-        }, { +
-            "entity_id": 5, +
-            "name": "Helios Endurance Tank", +
-            "parent_id": 2, +
-            "price": 25.88, +
-            "product_id": 681, +
-            "row_total": 25.88, +
-            "sku": "MT04-S-Blue", +
-            "weight": 1, +
-            "order_item_id": 16, +
-            "qty": 1 +
-        }, { +
-            "entity_id": 6, +
-            "name": "Helios Endurance Tank-S-Blue", +
-            "parent_id": 2, +
-            "price": 0, +
-            "product_id": 677, +
-            "sku": "MT04-S-Blue", +
-            "weight": 1, +
-            "order_item_id": 17, +
-            "qty": 1 +
-        }, { +
-            "entity_id": 7, +
-            "name": "Inez Full Zip Jacket", +
-            "parent_id": 2, +
-            "price": 59.22, +
-            "product_id": 1305, +
-            "row_total": 59.22, +
-            "sku": "WJ07-M-Red", +
-            "weight": 1, +
-            "order_item_id": 18, +
-            "qty": 1 +
-        }, { +
-            "entity_id": 8, +
-            "name": "Inez Full Zip Jacket-M-Red", +
-            "parent_id": 2, +
-            "price": 0, +
-            "product_id": 1298, +
-            "sku": "WJ07-M-Red", +
-            "weight": 1, +
-            "order_item_id": 19, +
-            "qty": 1 +
-        }, { +
-            "entity_id": 9, +
-            "name": "Maxima Drawstring Short", +
-            "parent_id": 2, +
-            "price": 27.19, +
-            "product_id": 1940, +
-            "row_total": 27.19, +
-            "sku": "WSH02-29-Yellow", +
-            "weight": 1, +
-            "order_item_id": 20, +
-            "qty": 1 +
-        }, { +
-            "entity_id": 10, +
-            "name": "Maxima Drawstring Short-29-Yellow", +
-            "parent_id"2, +
-            "price"0, +
-            "product_id": 1930, +
-            "sku": "WSH02-29-Yellow", +
-            "weight": 1, +
-            "order_item_id": 21, +
-            "qty": 1 +
-        }, { +
-            "entity_id": 11, +
-            "name": "Savvy Shoulder Tote", +
-            "parent_id": 2, +
-            "price": 35.25, +
-            "product_id": 10, +
-            "row_total": 35.25, +
-            "sku": "24-WB05", +
-            "order_item_id": 22, +
-            "qty":+
-        }, { +
-            "entity_id": 12, +
-            "name": "Compete Track Tote", +
-            "parent_id": 2, +
-            "price": 39.5, +
-            "product_id": 9, +
-            "row_total": 39.5, +
-            "sku": "24-WB02", +
-            "order_item_id": 23, +
-            "qty":+
-        }], +
-        "comments": []+
     }, {     }, {
-        "billing_address_id": 18, +        "is_customer_notified": null, 
-        "created_at": "2018-03-12 08:47:25", +        "parent_id": 1, 
-        "customer_id": 2, +        "comment": "vendor1: Test API Comment with status change", 
-        "email_sent": 0,+        "is_visible_on_front": null, 
 +        "created_at": "2018-03-12 09:05:41", 
 +        "entity_id":
 +    }, { 
 +        "is_customer_notified": null, 
 +        "parent_id": 1, 
 +        "comment": "vendor1: Test API Comment", 
 +        "is_visible_on_front": null, 
 +        "created_at": "2018-03-12 09:05:16", 
 +        "entity_id":
 +    }, { 
 +        "is_customer_notified": null, 
 +        "parent_id": 1, 
 +        "comment": "[vendor1 changed PO status from 'Pending' to 'Ready to Ship']", 
 +        "is_visible_on_front": null, 
 +        "created_at": "2018-03-02 18:34:08"
 +        "entity_id":
 +    }] 
 +}, { 
 +    "billing_address_id": 16, 
 +    "created_at": "2018-03-12 08:47:24", 
 +    "customer_id": 2, 
 +    "email_sent": 0, 
 +    "entity_id": 2, 
 +    "increment_id": "000000013-1", 
 +    "order_id": 13, 
 +    "udropship_status": 0, 
 +    "shipping_address_id": 15, 
 +    "store_id": 1, 
 +    "total_qty": 6, 
 +    "total_weight": 4, 
 +    "updated_at": "2018-03-12 08:47:24", 
 +    "items": [{
         "entity_id": 3,         "entity_id": 3,
-        "increment_id": "000000014-1", +        "name": "Orestes Yoga Pant ", 
-        "order_id": 14+        "parent_id": 2
-        "udropship_status": 0, +        "price": 82.74
-        "shipping_address_id": 17, +        "product_id": 859
-        "store_id": 1, +        "row_total": 82.74
-        "total_qty": 4, +        "sku": "MP10-32-Blue", 
-        "total_weight": 0, +        "weight": 1, 
-        "updated_at": "2018-03-12 08:47:25", +        "order_item_id": 14
-        "items": [{ +        "qty": 1
-            "entity_id": 13, +
-            "name": "Push It Messenger Bag", +
-            "parent_id": 3, +
-            "price": 56.81+
-            "product_id": 14+
-            "row_total": 56.81+
-            "sku": "24-WB04", +
-            "order_item_id": 24, +
-            "qty": 1 +
-        }+
-            "entity_id": 14, +
-            "name": "Overnight Duffle", +
-            "parent_id": 3, +
-            "price": 37.39, +
-            "product_id": 13, +
-            "row_total": 37.39, +
-            "sku": "24-WB07", +
-            "order_item_id": 25, +
-            "qty": 1 +
-        }, { +
-            "entity_id": 15, +
-            "name": "Driven Backpack", +
-            "parent_id": 3, +
-            "price": 31.39, +
-            "product_id": 12, +
-            "row_total": 31.39, +
-            "sku": "24-WB03", +
-            "order_item_id": 26, +
-            "qty": 1 +
-        }, { +
-            "entity_id": 16, +
-            "name": "Endeavor Daytrip Backpack", +
-            "parent_id": 3, +
-            "price": 29.11, +
-            "product_id": 11, +
-            "row_total": 29.11, +
-            "sku": "24-WB06", +
-            "order_item_id": 27, +
-            "qty": 1 +
-        }], +
-        "comments": []+
     }, {     }, {
-        "billing_address_id": 20, 
-        "created_at": "2018-03-12 08:47:29", 
-        "customer_id": 2, 
-        "email_sent": 0, 
         "entity_id": 4,         "entity_id": 4,
-        "increment_id": "000000015-1", +        "name": "Orestes Yoga Pant -32-Blue", 
-        "order_id": 15, +        "parent_id": 2, 
-        "udropship_status": 0, +        "price": 0, 
-        "shipping_address_id": 19, +        "product_id": 848, 
-        "store_id": 1, +        "sku": "MP10-32-Blue", 
-        "total_qty": 4, +        "weight": 1
-        "total_weight": 0, +        "order_item_id": 15
-        "updated_at": "2018-03-12 08:47:29", +        "qty":
-        "items": [{ +    }, { 
-            "entity_id": 17, +        "entity_id": 5, 
-            "name": "Push It Messenger Bag", +        "name": "Helios Endurance Tank", 
-            "parent_id": 4, +        "parent_id": 2, 
-            "price": 56.81, +        "price": 25.88, 
-            "product_id": 14, +        "product_id": 681, 
-            "row_total": 56.81, +        "row_total": 25.88, 
-            "sku": "24-WB04", +        "sku": "MT04-S-Blue", 
-            "order_item_id": 28, +        "weight": 1, 
-            "qty":+        "order_item_id": 16, 
-        }, { +        "qty":
-            "entity_id": 18, +    }, { 
-            "name": "Overnight Duffle", +        "entity_id": 6, 
-            "parent_id": 4, +        "name": "Helios Endurance Tank-S-Blue", 
-            "price": 37.39, +        "parent_id": 2, 
-            "product_id": 13, +        "price": 0, 
-            "row_total": 37.39, +        "product_id": 677, 
-            "sku": "24-WB07", +        "sku": "MT04-S-Blue", 
-            "order_item_id": 29, +        "weight": 1, 
-            "qty":+        "order_item_id": 17, 
-        }, { +        "qty":
-            "entity_id": 19, +    }, { 
-            "name": "Driven Backpack", +        "entity_id": 7, 
-            "parent_id": 4, +        "name": "Inez Full Zip Jacket", 
-            "price": 31.39, +        "parent_id": 2, 
-            "product_id": 12, +        "price": 59.22, 
-            "row_total": 31.39, +        "product_id": 1305, 
-            "sku": "24-WB03", +        "row_total": 59.22, 
-            "order_item_id": 30, +        "sku": "WJ07-M-Red", 
-            "qty":+        "weight": 1, 
-        }, { +        "order_item_id": 18, 
-            "entity_id": 20, +        "qty":
-            "name": "Endeavor Daytrip Backpack", +    }, { 
-            "parent_id": 4, +        "entity_id": 8, 
-            "price": 29.11, +        "name": "Inez Full Zip Jacket-M-Red", 
-            "product_id": 11, +        "parent_id": 2, 
-            "row_total": 29.11, +        "price": 0, 
-            "sku": "24-WB06", +        "product_id": 1298, 
-            "order_item_id": 31, +        "sku": "WJ07-M-Red", 
-            "qty":+        "weight": 1, 
-        }], +        "order_item_id": 19, 
-        "comments": [] +        "qty":
-    }], "search_criteria": {"filter_groups": []}, "total_count": 4+    }, { 
 +        "entity_id": 9, 
 +        "name": "Maxima Drawstring Short", 
 +        "parent_id": 2, 
 +        "price": 27.19, 
 +        "product_id": 1940, 
 +        "row_total": 27.19, 
 +        "sku": "WSH02-29-Yellow", 
 +        "weight": 1, 
 +        "order_item_id": 20, 
 +        "qty":
 +    }, { 
 +        "entity_id": 10, 
 +        "name": "Maxima Drawstring Short-29-Yellow", 
 +        "parent_id": 2, 
 +        "price": 0, 
 +        "product_id": 1930, 
 +        "sku": "WSH02-29-Yellow", 
 +        "weight": 1, 
 +        "order_item_id": 21, 
 +        "qty":
 +    }, { 
 +        "entity_id": 11, 
 +        "name": "Savvy Shoulder Tote", 
 +        "parent_id": 2, 
 +        "price": 35.25, 
 +        "product_id": 10, 
 +        "row_total": 35.25, 
 +        "sku": "24-WB05", 
 +        "order_item_id": 22, 
 +        "qty":
 +    }, { 
 +        "entity_id": 12, 
 +        "name": "Compete Track Tote", 
 +        "parent_id": 2, 
 +        "price": 39.5, 
 +        "product_id": 9, 
 +        "row_total": 39.5, 
 +        "sku": "24-WB02", 
 +        "order_item_id": 23, 
 +        "qty":
 +    }], 
 +    "comments": [] 
 +}, { 
 +    "billing_address_id": 18, 
 +    "created_at": "2018-03-12 08:47:25", 
 +    "customer_id": 2, 
 +    "email_sent": 0, 
 +    "entity_id": 3, 
 +    "increment_id": "000000014-1", 
 +    "order_id": 14, 
 +    "udropship_status": 0, 
 +    "shipping_address_id": 17, 
 +    "store_id": 1, 
 +    "total_qty": 4, 
 +    "total_weight": 0, 
 +    "updated_at": "2018-03-12 08:47:25", 
 +    "items": [{ 
 +        "entity_id": 13, 
 +        "name": "Push It Messenger Bag", 
 +        "parent_id": 3, 
 +        "price": 56.81, 
 +        "product_id": 14, 
 +        "row_total": 56.81, 
 +        "sku": "24-WB04", 
 +        "order_item_id": 24, 
 +        "qty":
 +    }, { 
 +        "entity_id": 14, 
 +        "name": "Overnight Duffle", 
 +        "parent_id": 3, 
 +        "price": 37.39, 
 +        "product_id": 13, 
 +        "row_total": 37.39, 
 +        "sku": "24-WB07", 
 +        "order_item_id": 25, 
 +        "qty":
 +    }, { 
 +        "entity_id": 15, 
 +        "name": "Driven Backpack", 
 +        "parent_id": 3, 
 +        "price": 31.39, 
 +        "product_id": 12, 
 +        "row_total": 31.39, 
 +        "sku": "24-WB03", 
 +        "order_item_id": 26, 
 +        "qty":
 +    }, { 
 +        "entity_id": 16, 
 +        "name": "Endeavor Daytrip Backpack", 
 +        "parent_id": 3, 
 +        "price": 29.11, 
 +        "product_id": 11, 
 +        "row_total": 29.11, 
 +        "sku": "24-WB06", 
 +        "order_item_id": 27, 
 +        "qty":
 +    }], 
 +    "comments": [] 
 +}, { 
 +    "billing_address_id": 20, 
 +    "created_at": "2018-03-12 08:47:29", 
 +    "customer_id": 2, 
 +    "email_sent": 0, 
 +    "entity_id": 4, 
 +    "increment_id": "000000015-1", 
 +    "order_id": 15, 
 +    "udropship_status": 0, 
 +    "shipping_address_id": 19, 
 +    "store_id": 1, 
 +    "total_qty": 4, 
 +    "total_weight": 0, 
 +    "updated_at": "2018-03-12 08:47:29", 
 +    "items": [{ 
 +        "entity_id": 17, 
 +        "name": "Push It Messenger Bag", 
 +        "parent_id": 4, 
 +        "price": 56.81, 
 +        "product_id": 14, 
 +        "row_total": 56.81, 
 +        "sku": "24-WB04", 
 +        "order_item_id": 28, 
 +        "qty":
 +    }, { 
 +        "entity_id": 18, 
 +        "name": "Overnight Duffle", 
 +        "parent_id": 4, 
 +        "price": 37.39, 
 +        "product_id": 13, 
 +        "row_total": 37.39, 
 +        "sku": "24-WB07", 
 +        "order_item_id": 29, 
 +        "qty":
 +    }, { 
 +        "entity_id": 19, 
 +        "name": "Driven Backpack", 
 +        "parent_id": 4, 
 +        "price": 31.39, 
 +        "product_id": 12, 
 +        "row_total": 31.39, 
 +        "sku": "24-WB03", 
 +        "order_item_id": 30, 
 +        "qty":
 +    }, { 
 +        "entity_id": 20, 
 +        "name": "Endeavor Daytrip Backpack", 
 +        "parent_id": 4, 
 +        "price": 29.11, 
 +        "product_id": 11, 
 +        "row_total": 29.11, 
 +        "sku": "24-WB06", 
 +        "order_item_id": 31, 
 +        "qty":
 +    }], 
 +    "comments": [] 
 +}],  
 +"search_criteria": {"filter_groups": []},  
 +"total_count": 4
 } }
-</pre>+ 
 +</code>
  
 ===== Get Single Purchase Order Info ===== ===== Get Single Purchase Order Info =====
Line 343: Line 351:
  
 '' ''
-Example:\\+Example: 
 +'' 
 +<code>
 GET  http://magento222.loc/index.php/rest/V1/udpo/000000012-1\\ GET  http://magento222.loc/index.php/rest/V1/udpo/000000012-1\\
-\\ +</code>
-RESPONSE\\ +
-{"billing_address_id":14,"created_at":"2018-03-02 18:33:51","customer_id":2,"email_sent":0,"entity_id":1,"increment_id":"000000012-1","order_id":12,"udropship_status":9,"shipping_address_id":13,"store_id":1,"total_qty":4,"total_weight":0,"updated_at":"2018-03-12 09:05:41","items":[{"entity_id":1,"name":"Push It Messenger Bag","parent_id":1,"price":56.81,"product_id":14,"row_total":170.43,"sku":"24-WB04","order_item_id":12,"qty":3},{"entity_id":2,"name":"Fusion Backpack","parent_id":1,"price":69.98,"product_id":6,"row_total":69.98,"sku":"24-MB02","order_item_id":13,"qty":1}],"comments":[{"is_customer_notified":null,"parent_id":1,"comment":"[vendor1 changed PO status from 'Ready to Ship' to 'Acknowledged']","is_visible_on_front":null,"created_at":"2018-03-12 09:05:41","entity_id":3},{"is_customer_notified":null,"parent_id":1,"comment":"vendor1: Test API Comment with status change","is_visible_on_front":null,"created_at":"2018-03-12 09:05:41","entity_id":4},{"is_customer_notified":null,"parent_id":1,"comment":"vendor1: Test API Comment","is_visible_on_front":null,"created_at":"2018-03-12 09:05:16","entity_id":2},{"is_customer_notified":null,"parent_id":1,"comment":"[vendor1 changed PO status from 'Pending' to 'Ready to Ship']","is_visible_on_front":null,"created_at":"2018-03-02 18:34:08","entity_id":1}]}+
 '' ''
 +RESPONSE
 +''
 +<code>
 +{
 +    "billing_address_id": 14,
 +    "created_at": "2018-03-02 18:33:51",
 +    "customer_id": 2,
 +    "email_sent": 0,
 +    "entity_id": 1,
 +    "increment_id": "000000012-1",
 +    "order_id": 12,
 +    "udropship_status": 9,
 +    "shipping_address_id": 13,
 +    "store_id": 1,
 +    "total_qty": 4,
 +    "total_weight": 0,
 +    "updated_at": "2018-03-12 09:05:41",
 +    "items": [{
 +        "entity_id": 1,
 +        "name": "Push It Messenger Bag",
 +        "parent_id": 1,
 +        "price": 56.81,
 +        "product_id": 14,
 +        "row_total": 170.43,
 +        "sku": "24-WB04",
 +        "order_item_id": 12,
 +        "qty": 3
 +    }, {
 +        "entity_id": 2,
 +        "name": "Fusion Backpack",
 +        "parent_id": 1,
 +        "price": 69.98,
 +        "product_id": 6,
 +        "row_total": 69.98,
 +        "sku": "24-MB02",
 +        "order_item_id": 13,
 +        "qty": 1
 +    }],
 +    "comments": [{
 +        "is_customer_notified": null,
 +        "parent_id": 1,
 +        "comment": "[vendor1 changed PO status from 'Ready to Ship' to 'Acknowledged']",
 +        "is_visible_on_front": null,
 +        "created_at": "2018-03-12 09:05:41",
 +        "entity_id": 3
 +    }, {
 +        "is_customer_notified": null,
 +        "parent_id": 1,
 +        "comment": "vendor1: Test API Comment with status change",
 +        "is_visible_on_front": null,
 +        "created_at": "2018-03-12 09:05:41",
 +        "entity_id": 4
 +    }, {
 +        "is_customer_notified": null,
 +        "parent_id": 1,
 +        "comment": "vendor1: Test API Comment",
 +        "is_visible_on_front": null,
 +        "created_at": "2018-03-12 09:05:16",
 +        "entity_id": 2
 +    }, {
 +        "is_customer_notified": null,
 +        "parent_id": 1,
 +        "comment": "[vendor1 changed PO status from 'Pending' to 'Ready to Ship']",
 +        "is_visible_on_front": null,
 +        "created_at": "2018-03-02 18:34:08",
 +        "entity_id": 1
 +    }]
 +}
 +</code>
  
  
Line 356: Line 433:
  
 '' ''
-Example:\\ +Example:
-GET  http://magento222.loc/index.php/rest/V1/udpo/000000012-1/comments\\ +
-\\ +
-RESPONSE\\ +
-{"items":[{"is_customer_notified":null,"parent_id":1,"comment":"[vendor1 changed PO status from 'Pending' to 'Ready to Ship']","is_visible_on_front":null,"created_at":"2018-03-02 18:34:08","entity_id":1},{"is_customer_notified":null,"parent_id":1,"comment":"vendor1: Test API Comment","is_visible_on_front":null,"created_at":"2018-03-12 09:05:16","entity_id":2},{"is_customer_notified":null,"parent_id":1,"comment":"[vendor1 changed PO status from 'Ready to Ship' to 'Acknowledged']","is_visible_on_front":null,"created_at":"2018-03-12 09:05:41","entity_id":3},{"is_customer_notified":null,"parent_id":1,"comment":"vendor1: Test API Comment with status change","is_visible_on_front":null,"created_at":"2018-03-12 09:05:41","entity_id":4}],"search_criteria":{"filter_groups":[{"filters":[{"field":"parent_id","value":"1","condition_type":"eq"}]}]},"total_count":4}+
 '' ''
 +<code>
 +GET  http://magento222.loc/index.php/rest/V1/udpo/000000012-1/comments
 +</code>
 +''
 +RESPONSE
 +''
 +<code>{
 +    "items": [{
 +        "is_customer_notified": null,
 +        "parent_id": 1,
 +        "comment": "[vendor1 changed PO status from 'Pending' to 'Ready to Ship']",
 +        "is_visible_on_front": null,
 +        "created_at": "2018-03-02 18:34:08",
 +        "entity_id": 1
 +    }, {
 +        "is_customer_notified": null,
 +        "parent_id": 1,
 +        "comment": "vendor1: Test API Comment",
 +        "is_visible_on_front": null,
 +        "created_at": "2018-03-12 09:05:16",
 +        "entity_id": 2
 +    }, {
 +        "is_customer_notified": null,
 +        "parent_id": 1,
 +        "comment": "[vendor1 changed PO status from 'Ready to Ship' to 'Acknowledged']",
 +        "is_visible_on_front": null,
 +        "created_at": "2018-03-12 09:05:41",
 +        "entity_id": 3
 +    }, {
 +        "is_customer_notified": null,
 +        "parent_id": 1,
 +        "comment": "vendor1: Test API Comment with status change",
 +        "is_visible_on_front": null,
 +        "created_at": "2018-03-12 09:05:41",
 +        "entity_id": 4
 +    }],
 +    "search_criteria": {
 +        "filter_groups": [{
 +            "filters": [{
 +                "field": "parent_id",
 +                "value": "1",
 +                "condition_type": "eq"
 +            }]
 +        }]
 +    },
 +    "total_count": 4
 +}
 +</code>
  
  
udropship/umarketplace/m2/vendor-api.txt · by wtsergo