- List Transactions
- Get Transaction
- Confirm Shipping for Transaction
- [Reject Transaction] (#reject-transaction)
- Send Feeback
- Dictionary
Get transactions owned by current user.
You can optionally set If-None-Match header or Etag header. If request Etag match, server will send 304 Not Modified response without body.
Server will set Etag header to every request to this resource.
- Use
GEThttp method.
- https://api.bukalapak.com/v1/transactions.json. No search parameter provided.
- https://api.bukalapak.com/v1/transactions.json?page=2&per_page=10.
pageandper_pageprovided.
page(optional). Page number, default to0.per_page(optional). Number of transactionsper_page, default to10.
curl -u 67287:lXymG93y83m6RHzZV5FY "https://api.bukalapak.com/v1/transactions.json?page=2"{
"status":"OK",
"transactions":[{
"id":51947,
"state":"paid",
"unread": false,
"transaction_id":"131203161947",
"amount":20000,"quantity":1,
"shipping_fee":8000,
"total_amount":28000,
"products":[{
"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":[]
}],
"consignee":{
"name":"Testing Account",
"address":"adasd",
"city":"Tangerang",
"province":"Banten",
"post_code":"12312"
},
"buyer":{
"id":204254,
"name":"Testing Account",
"username":"testingaccount"
},
"seller":{
"id":52357,
"name":"Liem Lie Wie",
"username":"ebenhaezernet"
},
"actions":["deliver","reject"],
"created_at":"2013-12-03T16:15:40+07:00"
}]
,"message":null
}Get transaction details owned by current user.
You can optionally set If-None-Match header or Etag header. If request Etag match, server will send 304 Not Modified response without body.
Server will set Etag header to every request to this resource.
- Use
GEThttp method.
id(required). Identifier for transaction being read.
curl -u 67287:lXymG93y83m6RHzZV5FY "https://api.bukalapak.com/v1/transactions/7870.json"{
"status":"OK",
"transactions":{
"id":51947,
"state":"paid",
"unread": false,
"transaction_id":"131203161947",
"amount":20000,"quantity":1,
"shipping_fee":8000,
"total_amount":28000,
"products":[{
"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":[]
}],
"consignee":{
"name":"Testing Account",
"address":"adasd",
"city":"Tangerang",
"province":"Banten",
"post_code":"12312"
},
"buyer":{
"id":204254,
"name":"Testing Account",
"username":"testingaccount"
},
"seller":{
"id":52357,
"name":"Liem Lie Wie",
"username":"ebenhaezernet"
},
"actions":["deliver","reject"],
"created_at":"2013-12-03T16:15:40+07:00"
}
,"message":null
}Confirm Shipping for Transaction
- Use
POSThttp method. - Requires authentication
None
payment_shipping(required). Attributes of transaction shipping confirmation in JSON. Attributes constructed by following fields:transaction_id(required). Transaction IDshipping_code(required). Shipping receipt codenew_courier(optional). Used if courier used other than JNE, TIKI, or POS
curl -u 67287:lXymG93y83m6RHzZV5FY -d '{ "payment_shipping": { "transaction_id":"7870", "shipping_code":"1568772840123" } }' https://api.bukalapak.com/v1/transactions/confirm_shipping.json -H "Content-Type: application/json" -X POSTFailed example
{
"status":"ERROR",
"id":null,
"message": "Belum ada konfirmasi pembayaran atau konfirmasi pengiriman barang sudah dilakukan"
}Successfull example
{
"status":"OK",
"id":"1315",
"message": "Konfirmasi pengiriman barang berhasil"
}Reject Transaction
- Use
PUThttp method. - Requires authentication
None
id(required). Transaction ID.payment_rejection[reason](required). Reason for rejecting transaction. Allowed values (case sensitive):Stok HabisHarga barang/biaya kirim tidak sesuaiAda kesibukan lain yang sifatnya mendadakPermintaan pembeli tidak dapat dilayani
curl -u 204254:Sy7PRGGr4foUk22uzjMu -X PUT "https://api.bukalapak.com/v1/transactions/reject.json" --data "id=51943&payment_rejection[reason]=Stok habis"Failed example
{
"status":"OK",
"message":"Failed to reject"
}Successfull example
{
"status":"OK",
"message":"Successfully rejected"
}Send Feeback to seller/buyer after transaction.
- Use
POSThttp method. - Requires authentication
None
feedback(required). Attributes of feedback. Attributes constructed by following fields:body(required). Text containing feedback for current transactionpositive(required). Boolean value indicating seller's satisfaction toward buyer of current transaction. Possible values aretrueorfalse
curl -u 67287:lXymG93y83m6RHzZV5FY -d '{ "feedback": { "body":"Puas dengan pembeli ini. Tidak rewel dan fast response.", "positive":"true" } }' https://api.bukalapak.com/v1/transactions/7907/feedbacks.json -H "Content-Type: application/json" -X POSTFailed example
{
"status": "ERROR",
"message": "Transaksi tidak terdaftar atau feedback sudah diberikan",
"feedback": {}
}Successfull example
{
"status": "OK",
"message": null,
"feedback": {
"id": 22033,
"transaction_id": 7907,
"sender_id": 62817,
"sender_name": "Sayur Kangkung",
"user_id": 31432,
"user_name": "Khairul",
"body": "Mantap gan",
"positive": true,
"created_at":"2012-10-11T17:55:34+07:00",
"updated_at":"2012-10-11T17:55:34+07:00"
}
}stateState of transactions. Possible values are as listedpendinginitial stateaddressedtransaction shipping address filledpayment_chosenpayment method have been chosenconfirm_paymenttransaction has been paid by buyer but not verified yet by Bukalapakpaidtransaction has been paid and payment has been verified Bukalapakdeliveredorder has been shipped by seller but not received by buyer yetreceivedorder has been received by buyerremittedtransaction has been finished and seller has been paid by Bukalapakrejectedtransaction has been rejected by sellercancelledtransaction has been canceledexpiredtransaction expiredrefundedtransaction has been refunded
actionsActions that can be performed by current user. Possible values aredeliverCan be performed by seller at Confirm Shipping for Transaction endpointrejectCan be performed by seller at Reject Transaction endpoint
unreadPossible values aretrueandfalse. User required to take action as inactionsif this field set totrue.