Get List of Vendor by CategoryΒΆ

To get list of vendor by using category on your account send a GET request to /v1/vendors?categories=$VENDOR_CATEGORY_1|$VENDOR_CATEGORY_2|....

CURL EXAMPLE

1
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 12d3ee8b78ea8d4d09175ebf65c25584d7b269b2" "https://indoproc.com/esourcing/v1/vendors?categories=Elektronik|Perlengkapan%20Kantor"

REQUEST HEADERS

1
2
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer 12d3ee8b78ea8d4d09175ebf65c25584d7b269b2

The response will be a JSON array with a key called vendors. This will be set to an object of vendor arrays, each of which will contain the standard vendor attributes.

Name Type Description
_id Integer Unique identifier for the Vendor.
sup_name string String that contains company name of vendor
sup_type string String that contains company type of vendor
contact_person string String that contains a person name that you should contact for this vendor
sup_email string String that contains an email of contact for this vendor
sup_phone string String that contains a phone of contact for this vendor
categories object An object that contains all categories for this vendor
comp_srl String The unique identifier for the creator company

RESPONSE HEADERS

1
2
content-type: application/json; charset=utf-8
status: 200 OK

RESPONSE BODY

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
    "vendors": [
         {
             "_id": 1,
             "sup_name": "Axxon Retails",
                             "sup_email": "alvin@axxpha.com",
                             "contact_person": "Alvin",
             "comp_srl": "1",
                             "sup_type": "PT",
             "sup_phone": "08785855645",
             "categories": {
                 "0": "Custom Printing",
                 "1": "Komputer & Aksesoris",
                 "2": "Elektronik",
                 "3": "Perlengkapan Kantor"
         },
         ...
     ]
             "links": {
         "next": "http://etender.andy.indoproc.xyz/v1/vendors?page=2",
         "last": "http://etender.andy.indoproc.xyz/v1/vendors?page=2"
     },
     "meta": {
         "total": 25
     }
}