4. Decrease Earnings
You can decrease the amounts of calculated earnings for products whose ID information you know.
Product-Based Earnings Decrease
PUT
{{Base Adres}}/api/paywall/marketplace/earning/decrease/product
apikeypublic
string
Yes
Public Key obtained from the merchant panel.
apiclientpublic
string
Yes
Public Client obtained from the merchant panel.
The parameters to be sent to the service are as follows:
ProductId
int
Product ID information. It is returned within the Paywall response object at the time of payment.
Earning
decimal
The amount by which you want to decrease the earnings
ApplyAll
bool
It affects both the earnings for the product and the earnings generated for the platform (you) associated with the product.
Example: If TRUE is sent, both your seller’s earnings and your platform’s earnings will be affected.
Response returned from the service:
ErrorCode
int
Error code. Returns '0' if the operation is successful.
Result
bool
Returns true or false. Returns 'true' if the operation is successful.
Message
string
If the operation failed, this is the message describing the error, with language support based on the locale parameter.
Body
object
Operation detail information
{
"ErrorCode": 0,
"Result": true,
"Message": "",
"Body": null
}
Last updated