4. Decrease Earnings
You can list your earning records and decrease the amount of the relevant earning.
Decrease earnings by earning ID (EarningId)
PUT
{{Base Adres}}/api/paywall/marketplace/earning/decrease/id
To perform this operation, the earning must not have been paid yet. Otherwise, the Paywall service will return an error message.
apikeypublic
string
Yes
The Public Key you obtained from the member workplace panel.
apiclientpublic
string
Yes
The Public Client you obtained from the member workplace panel.
Parameters to be sent to the service:
Id
int
The Id (identity) of the earning
Earning
decimal
The amount you want to decrease the earning by
Response 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 fails, this is the message explaining the error. Supports language localization based on the locale parameter.
Body
object
Detailed information about the operation.
{
"ErrorCode": 0,
"Result": true,
"Message": "",
"Body": null
}
Last updated