1. Get Profit

Bring product-specific profit information

GET {{PaymentBaseAddress}}/api/paywall/marketplace/report/earning/product

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

PaymentAPI Address

ParameterTypeMandatoryDescription

apikeypublic

string

Yes

The Public Key obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client obtained from the merchant panel.

productid

int

Yes

The Id information of the product related to the payment in PayWall.

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": {
        "ProductId": 1626240, // Ürünün PayWall'daki Id bilgisi
        "ProductExternalId": "ProductId", // Ürünün şirket tarafındaki Id bilgisi
        "ProductName": "ProductName", // Ürünün şirket tarafındaki isim bilgisi
        "ProductAmount": 10.00, // Ürünün toplam tutarı
        "MerchantEarning": 0.10, // Üründen şirketin elde ettiği kazanç
        "MerchantReflectionDate": "2023-07-02T00:00:00", // Şirkete ait kazancın ne zaman yansıtılacağı
        "SubMerchantEarning": 9.90, // Üründen alt şirketin elde ettiği kazanç
        "SubMerchantReflectionDate": "2023-07-12T00:00:00" // Alt şirkete ait kazancın ne zaman yansıtılacağı
    }
}

Last updated