3. Increase Profit

You can increase the calculated profits of products for which you know the Id information.

Increase profit on a product basis

PUT {{PaymentBaseAddress}}/api/paywall/marketplace/earning/increase/product

Important: To use the Product-Based Profit Increase service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' section.

ParameterTypeMandatoryDescription

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:

ParameterTypeDescription

ProductId

int

The Id (identifier) information related to the product. It is returned within the PayWall response object during payment.

Earning

decimal

The amount you want to increase the profit

ApplyAll

bool

In product-based transactions, both your (parent merchant) and the sub-merchant's profits are taken into account because profits are calculated for both you and the sub-merchant from a single product. If you want to increase the amount by 10 and send the ApplyAll parameter as true, then +10 will be added to both your and the sub-merchant's profits. However, if you send it as false, only +10 will be added to the sub-merchant's profits.

Response from the service:

ParameterTypeDescription

ErrorCode

int

Error code. It returns '0' if the transaction is successful.

Result

bool

It returns a true or false value. If the transaction is successful, it returns 'true'.

Message

string

If the transaction is unsuccessful, this is the message related to the error, providing language support based on the 'locale' parameter.

Body

object

Transaction details

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": null
}

Last updated