xendit docs

Pengembalian Uang ( Refunds )

Deskripsi

Refund API dapat digunakan jika Anda ingin melakukan pengembalian uang atau pembayaran pada pelanggan.

Ada dua macam refund

  1. Refund parsial

    Anda dapat melakukan refund parsial beberapa kali selama total jumlah uang yang dikembalikan tidak lebih dari jumlah yang ditagihkan ke pelanggan

  2. Refund penuh

Tidak ada tambahan biaya untuk refund . Biaya variabel akan selalu kami kembalikan pada Anda dan biaya tetap akan kami kembalikan ketika dilakukan refund penuh, sehingga jika dilakukan refund penuh pelanggan Anda akan mendapatkan kembali seluruh uang yang telah dibayarkan.

Menerapkan refund

Refunds dapat dilakukan melalu panggilan API. Request untuk refund adalah:
  • Curl
  • PHP
curl https://api.xendit.co/credit_card_charges/:credit_card_charge_id/refunds -X POST \
	 -u xnd_development_O46JfOtygef9kMNsK+ZPGT+ZZ9b3ooF4w3Dn+R1k+2fT/7GlCAN3jg==: \
	 -H X-IDEMPOTENCY-KEY: unique-id-12345 \
	 -d amount=17000 \
         -d external_id=unique-external-id

Referensi refund

Untuk referensi API selengkapnya dapat Anda lihat di apireference .

Langkah Selanjutnya

Pertanyaan?

Masih memiliki pertanyaan? Dengan senang hati kami akan membantu Anda. Kirimkan email atau pesan melalui live chat .

Description

The Refund API can be used if you want to refund customer money in case there's a mismatch or you want to cancel the payment.

There are two types of refunds:

  1. Partial refund

    You can issue multiple partial refund as long as the total amount refunded is not greater than the total charge amount.

  2. Full refund

There are no additional costs for refund. Variable fees will always be refunded and fixed fees will be refunded only when you issue a full refund. So, if you issue full refund, your customer will be able to received full amount of money that have been deducted before.

Implementing refunds

Refunds can be issued via API. Request for refunds are:
  • Curl
  • PHP
curl https://api.xendit.co/credit_card_charges/:credit_card_charge_id/refunds -X POST \
	 -u xnd_development_O46JfOtygef9kMNsK+ZPGT+ZZ9b3ooF4w3Dn+R1k+2fT/7GlCAN3jg==: \
	 -H X-IDEMPOTENCY-KEY: unique-id-12345 \
	 -d amount=17000 \
         -d external_id=unique-external-id

Refund Reference

For full API reference you can check our apireference .

Next Steps

  • Ready to do some testing? Our testing pages walks through some testing so you can test your implementation

Questions?

Still have more questions? We're always happy to help however we can. Shoot us an email or chat to us in live chat.