1. Get Profit

You can list and access the earnings of the payment related to the Payment Id information.

Retrieve payment-based profit information

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

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

The response returned from the service:

{
    "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ğı
        },
        {
            "ProductId": 1626241,
            "ProductExternalId": "ProductId",
            "ProductName": "ProductName",
            "ProductAmount": 5.00,
            "MerchantEarning": 0.05,
            "MerchantReflectionDate": "2023-07-02T00:00:00",
            "SubMerchantEarning": 4.95,
            "SubMerchantReflectionDate": "2023-07-12T00:00:00"
        },
        {
            "ProductId": 1626242,
            "ProductExternalId": "ProductId",
            "ProductName": "ProductName",
            "ProductAmount": 10.00,
            "MerchantEarning": 0.10,
            "MerchantReflectionDate": "2023-07-02T00:00:00",
            "SubMerchantEarning": 9.90,
            "SubMerchantReflectionDate": "2023-07-12T00:00:00"
        },
        {
            "ProductId": 1626243,
            "ProductExternalId": "ProductId",
            "ProductName": "ProductName",
            "ProductAmount": 10.00,
            "MerchantEarning": 0.10,
            "MerchantReflectionDate": "2023-07-02T00:00:00",
            "SubMerchantEarning": 9.90,
            "SubMerchantReflectionDate": "2023-07-12T00:00:00"
        },
        {
            "ProductId": 1626244,
            "ProductExternalId": "ProductId",
            "ProductName": "ProductName",
            "ProductAmount": 10.00,
            "MerchantEarning": 0.10,
            "MerchantReflectionDate": "2023-07-02T00:00:00",
            "SubMerchantEarning": 9.90,
            "SubMerchantReflectionDate": "2023-07-12T00:00:00"
        },
        {
            "ProductId": 1626245,
            "ProductExternalId": "ProductId",
            "ProductName": "ProductName",
            "ProductAmount": 10.00,
            "MerchantEarning": 0.10,
            "MerchantReflectionDate": "2023-07-02T00:00:00",
            "SubMerchantEarning": 9.90,
            "SubMerchantReflectionDate": "2023-07-12T00:00:00"
        },
        {
            "ProductId": 1626246,
            "ProductExternalId": "ProductId",
            "ProductName": "ProductName",
            "ProductAmount": 10.00,
            "MerchantEarning": 0.10,
            "MerchantReflectionDate": "2023-07-02T00:00:00",
            "SubMerchantEarning": 9.90,
            "SubMerchantReflectionDate": "2023-07-12T00:00:00"
        }
    ]
}

Last updated