POST api/Order/CouponControle?coupon_code={coupon_code}

Sepette verilen kupon kodunu doğrular ve indirimli toplamları hesaplar. Satır bazlı indirim + KDV yeniden hesap yapar (banker's rounding).

Request Information

URI Parameters

NameDescriptionTypeAdditional information
coupon_code

Kupon kodu (örn: FIX500)

string

Required

Body Parameters

None.

Response Information

Resource Description

entity_result: - status=true: data = { coupon_id, coupon_code, discount_try (NET), total_net_try, total_gross_try, discount_gross_try, vat_saved_try } - status=false: message hata detayı

entity_result
NameDescriptionTypeAdditional information
status_code

string

None.

status

boolean

None.

title

string

None.

message

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status_code": "sample string 1",
  "status": true,
  "title": "sample string 3",
  "message": "sample string 4",
  "data": {}
}

application/xml, text/xml

Sample:
<entity_result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ENTITY.RESULT_MODELS">
  <data />
  <message>sample string 4</message>
  <status>true</status>
  <status_code>sample string 1</status_code>
  <title>sample string 3</title>
</entity_result>