Edit a VendorΒΆ

To edit a vendor from your account send a PUT request to /v1/vendors/$VENDOR_ID.

CURL EXAMPLE

1
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer 12d3ee8b78ea8d4d09175ebf65c25584d7b269b2" "http://indoproc.com/esourcing/v1/vendors/39" -D "$REQUEST_BODY"

REQUEST HEADERS

1
2
Content-Type: application/json
Authorization: Bearer 12d3ee8b78ea8d4d09175ebf65c25584d7b269b2

REQUEST BODY

These are the attributes that can be added to the object of request body:

Name Type Description
sup_name string Supplier’s company name
sup_type string Supplier’s Company type (PT, CV, PO, Firma, BUMN, Koperasi)
contact_person string Supplier company’s contact_person / PIC
sup_email string contact person / PIC ‘s email
sup_phone string contact person / PIC ‘s phone number
categories array vendor’s categories

These are the sample of Request Body:

1
2
3
4
5
6
7
8
{
   "sup_name" : "Meia Sarah Sehat Makmur",
   "sup_type" : "PT",
   "contact_person" : "Meia Sarahian",
   "sup_email" : "meia@sarah.com",
   "sup_phone" : "08996477764",
   "categories" : ["Building & Construction", "Elektronik"]
}

RESPONSE HEADERS

1
2
content-type: application/json; charset=utf-8
status: 201 Created

RESPONSE BODY

Name Type Description
sup_name string Supplier’s company name
sup_type string Supplier’s Company type (PT, CV, PO, Firma, BUMN, Koperasi)
contact_person string Supplier company’s contact_person / PIC
sup_email string contact person / PIC ‘s email
sup_phone string contact person / PIC ‘s phone number
categories array vendor’s categories
1
2
3
4
5
6
7
8
{
   "sup_name" : "Meia Sarah Sehat Makmur",
   "sup_type" : "PT",
   "contact_person" : "Meia Sarahian",
   "sup_email" : "meia@sarah.com",
   "sup_phone" : "08996477764",
   "categories" : ["Building & Construction", "Elektronik"]
}