User Tools

Site Tools


udropship:umarketplace:m2:vendor-info-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-info-api [2019/11/01 11:55]
wtsergo [Get list of Vendors (possible to filter)]
udropship:umarketplace:m2:vendor-info-api [2019/11/01 12:00]
wtsergo [Get list of Vendors (possible to filter)]
Line 21: Line 21:
             "vendor_name": "vendor1",             "vendor_name": "vendor1",
             "vendor_attn": "",             "vendor_attn": "",
-            "email": "wtsergo.test+v1@gmail.com",+            "email": "testv1@example.com",
             "telephone": "4025555555",             "telephone": "4025555555",
             "fax": null,             "fax": null,
Line 60: Line 60:
             "vendor_name": "vendor2",             "vendor_name": "vendor2",
             "vendor_attn": "",             "vendor_attn": "",
-            "email": "wtsergo.test+v2@gmail.com",+            "email": "testv2@example.com",
             "telephone": "4025555555",             "telephone": "4025555555",
             "fax": null,             "fax": null,
Line 106: Line 106:
  
 In order to get single Vendor information perform ///V1/udapi/vendor/info/:id// GET API call. :id parameter could be either vendor entity id or his name. In order to get single Vendor information perform ///V1/udapi/vendor/info/:id// GET API call. :id parameter could be either vendor entity id or his name.
 +
 +''
 +Example:
 +''
 +<code>
 +GET http://magento233.loc/rest/V1/udapi/vendor/info/1
 +</code>
 +''
 +RESPONSE
 +''
 +<code>
 +{
 +    "vendor_id": 1,
 +    "vendor_name": "vendor1",
 +    "vendor_attn": "",
 +    "email": "testv1@example.com",
 +    "telephone": "4025555555",
 +    "fax": null,
 +    "street_full": "1234 Test",
 +    "street1": "1234 Test",
 +    "street2": "",
 +    "city": "los angeles",
 +    "zip": "90210",
 +    "country_id": "US",
 +    "region_id": "12",
 +    "region": null,
 +    "region_code": "CA",
 +    "billing_use_shipping": "1",
 +    "billing_telephone": "4025555555",
 +    "billing_fax": null,
 +    "billing_street_full": "",
 +    "billing_street1": "",
 +    "billing_street2": "",
 +    "billing_city": "",
 +    "billing_zip": null,
 +    "billing_country_id": "",
 +    "billing_region_id": null,
 +    "billing_region": null,
 +    "billing_region_code": null,
 +    "status": 0,
 +    "carrier_code": "flatrate",
 +    "url_key": "vendor1",
 +    "created_at": null,
 +    "vacation_mode": 0,
 +    "vacation_end": null,
 +    "vacation_message": null,
 +    "account_type": null,
 +    "is_featured": 0,
 +    "rating_summary": null
 +}
 +</code>
 +
  
 ===== Get list of Vendor Products (possible to filter) ===== ===== Get list of Vendor Products (possible to filter) =====
Line 323: Line 375:
  
 In order to create new question to vendors perform ///V1/udapi/vendor/product-question-ask/:id/:sku// POST API call.  :id parameter could be either vendor entity id or his name. :sku parameter should be product's sku. Other parameters are: name - customer name, question - question text, visibility - 0 / Private or 1 / Public In order to create new question to vendors perform ///V1/udapi/vendor/product-question-ask/:id/:sku// POST API call.  :id parameter could be either vendor entity id or his name. :sku parameter should be product's sku. Other parameters are: name - customer name, question - question text, visibility - 0 / Private or 1 / Public
 +
 +''
 +Example:
 +''
 +<code>
 +POST http://magento233.loc/rest/V1/udapi/vendor/product-question-ask/1/24-WB07
 +{"email":"testapi@example.com","name":"api customer","question":"api question 1","visibility":1}
 +</code>
 +''
 +RESPONSE
 +''
 +<code>
 +true
 +</code>
 +
udropship/umarketplace/m2/vendor-info-api.txt · by wtsergo