Get list of negotiations owned by user
- Use
GEThttp method. - Requires authentication
page(optional).per_page(optional).
curl -u 110677:JheQQS0OKApu3hGJwkRH https://api.bukalapak.com/v1/negotiations.jsonSuccessfull example
{
"status":"OK",
"negotiations":[
{
"id":10530,
"state":"rejected",
"product":
{
"id":1069174,
"category":"Buku",
"category_id":60,
"category_structure":["Hobi & Hiburan","Buku"],
"name":"Buku Palsu",
"city":"Jakarta Barat",
"province":"DKI Jakarta",
"price":20000,"weight":"1000",
"images":["http://www.local.host:3000/system/images/2/6/0/0/3/5/9/large/Screenshot_-_111113_-_15_47_03.png?1384836182"],
"small_images":["http://www.local.host:3000/system/images/2/6/0/0/3/5/9/small/Screenshot_-_111113_-_15_47_03.png?1384836182"],
"url":"http://www.local.host:3000/p/hobi-hiburan/buku/mwza-jual-buku-palsu",
"desc":"asdasd",
"condition":"new",
"nego":false,
"seller_name":"Liem Lie Wie",
"payment_ready":true,
"stock":49999,
"specs":{"type":null},
"state_description":[]
},
"normal_price":100000,
"quantity":1,
"nego_price":10000,
"actions":[],
"buyer":
{
"id":31432,
"name":"Khairul",
"username":"kahirul"
},
"seller":
{
"id":62817,
"name":"Sayur Kangkung",
"username":"sayurkangkung"
}
}
...
],
"message": null
}Accept incoming negotiation
- Use
PUThttp method. - Requires authentication
None
curl -u 110677:JheQQS0OKApu3hGJwkRH -d {} https://api.bukalapak.com/v1/negotiations/124/accept.json -X PUTSuccessfull example
{
"status":"OK",
"negotiation":[
{
"id":124,
"state":"accepted",
"product":
{
"id":1069174,
"category":"Buku",
"category_id":60,
"category_structure":["Hobi & Hiburan","Buku"],
"name":"Buku Palsu",
"city":"Jakarta Barat",
"province":"DKI Jakarta",
"price":20000,"weight":"1000",
"images":["http://www.local.host:3000/system/images/2/6/0/0/3/5/9/large/Screenshot_-_111113_-_15_47_03.png?1384836182"],
"small_images":["http://www.local.host:3000/system/images/2/6/0/0/3/5/9/small/Screenshot_-_111113_-_15_47_03.png?1384836182"],
"url":"http://www.local.host:3000/p/hobi-hiburan/buku/mwza-jual-buku-palsu",
"desc":"asdasd",
"condition":"new",
"nego":false,
"seller_name":"Liem Lie Wie",
"payment_ready":true,
"stock":49999,
"specs":{"type":null},
"state_description":[]
},
"normal_price":100000,
"quantity":1,
"nego_price":10000,
"actions":[],
"buyer":
{
"id":31432,
"name":"Khairul",
"username":"kahirul"
},
"seller":
{
"id":62817,
"name":"Sayur Kangkung",
"username":"sayurkangkung"
}
}
...
],
"message": null
}Failed example
{
"status":"ERROR",
"negotiation": nil,
"message": "Stock not available"
}Reject incoming negotiation
- Use
PUThttp method. - Requires authentication
None
curl -u 110677:JheQQS0OKApu3hGJwkRH -d {} https://api.bukalapak.com/v1/negotiations/124/reject.json -X PUTSuccessfull example
{
"status":"OK",
"negotiation":[
{
"id":124,
"state":"rejected",
"product":
{
"id":1069174,
"category":"Buku",
"category_id":60,
"category_structure":["Hobi & Hiburan","Buku"],
"name":"Buku Palsu",
"city":"Jakarta Barat",
"province":"DKI Jakarta",
"price":20000,"weight":"1000",
"images":["http://www.local.host:3000/system/images/2/6/0/0/3/5/9/large/Screenshot_-_111113_-_15_47_03.png?1384836182"],
"small_images":["http://www.local.host:3000/system/images/2/6/0/0/3/5/9/small/Screenshot_-_111113_-_15_47_03.png?1384836182"],
"url":"http://www.local.host:3000/p/hobi-hiburan/buku/mwza-jual-buku-palsu",
"desc":"asdasd",
"condition":"new",
"nego":false,
"seller_name":"Liem Lie Wie",
"payment_ready":true,
"stock":49999,
"specs":{"type":null},
"state_description":[]
},
"normal_price":100000,
"quantity":1,
"nego_price":10000,
"actions":[],
"buyer":
{
"id":31432,
"name":"Khairul",
"username":"kahirul"
},
"seller":
{
"id":62817,
"name":"Sayur Kangkung",
"username":"sayurkangkung"
}
}
...
],
"message": null
}Failed example
{
"status":"ERROR",
"negotiation": nil,
"message": null
}stateState of negotiation. Possible values are as listedwaitinginitial state. Negotiation newly created and waiting for seller responseacceptednegotiation has been accepted by sellerrejectednegotiation has been rejected by sellerfinishednegotiation has been accepted by seller and paid by buyerexpirednegotiation has been expired- 'cancelled' negotiation has been cancelled by buyer
actionsActions that can be performed by current user. Possible values areacceptCan be performed by seller at Accept Negotiation endpointrejectedCan be performed by seller at Reject Negotiation endpoint