Bahşiş İade Yönetimi
Kullanicilarin bahsis kayitlari PaymentTransactions tablosunda asagidaki bilgilerle tutulur.
| bahsis odeme | reason |
|---|---|
| MASTERPASS | BIRI_TIP_MASTERCARD_PAYMENT |
| BKM | BIRI_TIP_BKM_EXPRESSPAYMENT |
| bahsis iade | reason |
|---|---|
| MASTERPASS | BIRI_TIP_MASTERCARD_CANCEL |
| BKM | BIRI_TIP_BKM_CANCEL |
Sipariste bahsis, siparis ile ayni orderId altinda farkli orderNumber ile olusturulmaktadir.
Bahsis ile ilgili detaylar Biri_OrderTipDetail tablosunda tutulmaktadir. Kullanici siparisi
talep uzerine iptal edildiginde tipRefund servisine cikilarak bahsis iadesi saglanir. Biri_OrderTipDetail
tablosunda ilgili kayda ait isRefund=1 ise bahsis iadesinin saglandigi anlamina gelmektedir.
Ancak iadenin otomatik olarak basarili gecmedigi gibi bazi durumlarda bahsis iadesi postman uzerinden asagidaki istek atilarak yapilabilir.
- Iade istegi:
curl --location 'https://bisu.com.tr/api/v2/cockpit/biri/order/tip/refund' \
--header 'Authorization: 06e4a3b995af8007d68gc4671616aea0b997c9a4' \
--header 'Content-Type: application/json' \
--data '
{
"orderNumbers":["1675963052804"]
}
Iade istegi icin Authorization ve userId bilgilerini kendi bilgilerinizle guncellemeyi unutmayiniz.
Iade saglarken bodyde girilmesi gereken orderNumber bahsise ait degildir. Burada esas siparise ait orderumberi girmek gerekir.