4. Reduce Profit
You can reduce the calculated profits of products for which you know the Id information.
Reduce profit on a product basis
PUT
{{PaymentBaseAddress}}/api/paywall/marketplace/earning/decrease/product
Important: To use the Product-Based Profit Reduction service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' section.
PaymentAPI Address
Parameter | Type | Mandatory | Description |
---|---|---|---|
apikeypublic | string | Evet | The Public Key obtained from the merchant panel |
apiclientpublic | string | Evet | The Public Client obtained from the merchant panel. |
The parameters that need to be sent to the service are as follows:
Parameter | Type | Description |
---|---|---|
ProductId | int | The Id (identifier) information related to the product. It is returned within the PayWall response object during payment. |
Earning | decimal | The amount you want to reduce the profit |
ApplyAll | bool | In product-based transactions, both your (parent merchant) and the sub-merchant's profits are taken into account because profits are calculated for both you and the sub-merchant from a single product. If you want to reduce the amount by 10 and send the ApplyAll parameter as true, then -10 will be deducted from both your and the sub-merchant's profits. However, if you send it as false, only -10 will be deducted from the sub-merchant's profits. |
Servisten dönen cevap:
Parameter | Type | Description |
---|---|---|
ErrorCode | int | Hata kodu. İşlem başarılı ise '0' değerini döner. |
Result | bool | True ya da false değeri döner. İşlem başarılı iste 'true' değerini döner. |
Message | string | İşlem hatalıysa, bu hataya dair belirtilen mesajdır, locale parametresine göre dil desteği sunar. |
Body | object | İşlem detay bilgileri |
Last updated