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

Important: To use the Decrease Earnings service, you need to send the parameters apikeypublic and apiclientpublic in the 'Header' field. PaymentAPI Address

Parameter
Type
Compolsory
Description

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:

Parameter
Type
Description

Id

int

The Id (identity) of the earning

Earning

decimal

The amount you want to decrease the earning by

Response from the service:

Parameter
Type
Description

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