Get current user's mutation history.
- Use
GEThttp method - Requires authentication
page(optional). Page number to display. Default value is 1.per_page(optional). Number of record to display per page. Default value is 10.
curl -u 204254:Sy7PRGGr4foUk22uzjMu "https://api.bukalapak.com/v1/dompet/history/mutations.json?page=1&per_page=1"
{
"status":"OK",
"history":[{"id":346,
"type":"Deposit::Credit",
"action":"remit",
"amount":30000,
"initial_balance":0,
"final_balance":30000,
"transaction_id":51938,
"created_at":"2013-11-25T15:32:47+07:00",
"updated_at":"2013-11-25T15:32:47+07:00"}],
"message":null
}Get current user's withdrawal history.
- Use
GEThttp method - Requires authentication
page(optional). Page number to display. Default value is 1.per_page(optional). Number of record to display per page. Default value is 10.
curl -u 204254:Sy7PRGGr4foUk22uzjMu "https://api.bukalapak.com/v2/dompet/history/withdrawals.json?page=1&per_page=1"
{
"status":"OK",
"history":[{"amount":25000,
"bank_account_id":41812,
"cancelled_at":null,
"created_at":"2013-11-22T16:00:39+07:00",
"deposit_id":1,
"id":4,
"processed_at":null,
"state":"pending",
"updated_at":"2013-11-22T16:00:39+07:00"}],
"message":null
}Make withdrawal request for current user.
- Use
POSThttp method - Requires authentication
deposit_withdrawal[amount](required). Amount to withdraw.deposit_withdrawal[bank_account_id](required). Bank account id for current user's target account.deposit_withdrawal[password](required). Current user's password.
curl -u 204254:Sy7PRGGr4foUk22uzjMu -X POST "https://api.bukalapak.com/v2/dompet/withdraw.json" --data "deposit_withdrawal[amount]=25000&deposit_withdrawal[bank_account_id]=41812&deposit_withdrawal[password]=testing1234"
Success:
{
"status":"OK",
"withdrawal_id":4,
"message":"Pencairan akan diproses oleh tim Bukalapak. Dana akan ditransfer ke rekening Anda dalam waktu 1x24 jam."
}Failed:
Invalid account ID
{
"status":"ERROR",
"withdrawal_id":null,
"message":
"Rekening pencairan harus milik Anda."
}
Invalid password
{
"status":"ERROR",
"withdrawal_id":null,
"message":"Password tidak valid."
}
>1 withdraw request in a day
{
"status":"ERROR",
"withdrawal_id":null,
"message":"Pencairan hanya bisa dilakukan satu kali sehari."
}
>1 withdraw request in a day and invalid password
{
"status":"ERROR",
"withdrawal_id":null,
"message":"Pencairan hanya bisa dilakukan satu kali sehari., Password tidak valid."
}typeType of muation, possible values areDeposit::CreditandDeposit::DebitactionAction that trigger mutation. Possible values areremit,topup,payment,refund,withdrawal,restore.