1. Increase Earnings
You can increase the `MemberEarning` value you defined for the product after payment (before confirmation) using this method.
Product - Increase Merchant Earnings
PUT
{{Base Adres}}/api/paywall/product/member/earning/increase
For the transaction to be successful, the related product must be unconfirmed.
apikeyprivate
string
Yes
Private Key obtained from the merchant panel.
apiclientprivate
string
Yes
Private Client obtained from the merchant panel.
The parameters to be sent to the service are as follows:
PaymentId
int
Yes
Product's payment ID information
ProductId
int
Yes
Product ID information
Earning
decimal
Yes
Amount of earnings to be increased
The example JSON and sample codes to be sent to the service are as follows:
{
"PaymentId": 1784175,
"ProductId": 2216103,
"Earning": 10
}
Response returned from the service:
ErrorCode
int
Error code. Returns '0' if the operation is successful.
Result
bool
Returns a true or false value. Returns 'true' if the operation is successful.
Message
string
If the operation fails, this is the message describing the error, and it supports localization based on the locale parameter.
Body
object
Detailed information about the transaction
{
"ErrorCode": 0,
"Result": true,
"Message": "",
"Body": null
}
Last updated