4. Decrease Earnings
You can list your earnings records and decrease the amount of the relevant earnings.
Decrease earnings with EarningId.
PUT
{{PaymentBaseAddress}}/api/paywall/marketplace/earning/decrease/id
Important: To use the Earnings Decrease service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' section. PaymentAPI Address
In order to perform the relevant transaction, the earnings must not have been deposited. Otherwise, the PayWall service will return an error message.
Parameter | Type | Mandatory | Description |
---|---|---|---|
apikeypublic | string | Yes | The Public Key obtained from the merchant panel. |
apiclientpublic | string | Yes | The Public Client obtained from the merchant panel. |
The parameters that need to be sent to the service are as follows:
Parameter | Type | Description |
---|---|---|
Id | int | The identifier information for earnings. |
Earning | decimal | The amount you want to decrease the earnings by. |
The response returned from the service:
Parameter | Type | Description |
---|---|---|
ErrorCode | int | Error code. It returns '0' if the transaction is successful. |
Result | bool | It returns either 'true' or 'false'. If the transaction is successful, it returns 'true'. |
Message | string | If the transaction is erroneous, this is the specified error message that provides language support based on the 'locale' parameter. |
Body | object | Transaction information |
Last updated