> For the complete documentation index, see [llms.txt](https://developer.paywall.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.paywall.one/payment-orchestration-integration-document/payment-service/17.-marketplace/2.-earnings/4.-member-based/1.-get-earnings.md).

# 1. Get Earnings

## **Get earnings information by Member Id**

<mark style="color:blue;">`GET`</mark> `{{Base Adres}}/api/paywall/marketplace/report/earning/member`

{% hint style="info" %}
**Important:** To use the Earnings By Member Id service, you must include the **apikeypublic** and **apiclientpublic** parameters in the **Header** section.\
\
[<mark style="color:green;">**PaymentAPI Address**</mark>](/payment-orchestration-integration-document/environment.md)
{% endhint %}

<table><thead><tr><th width="188">Parameter</th><th width="126">Type</th><th width="127.59765625">Compolsory</th><th width="403">Description</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Yes</td><td>Public Key obtained from the merchant panel.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>Public Client obtained from the merchant panel.</td></tr><tr><td>memberid</td><td>int</td><td>Yes</td><td>Member ID information in Paywall</td></tr><tr><td>start</td><td>int</td><td>Yes</td><td>Start value</td></tr><tr><td>length</td><td>int</td><td>Yes</td><td>Number of records you want to retrieve<br><mark style="color:blue;">Max: 50</mark></td></tr><tr><td>sortvalue</td><td>string</td><td>Yes</td><td>The value by which sorting is done. Can be "asc" or "desc". If not provided, defaults to "asc".</td></tr><tr><td>sortcolumn</td><td>string</td><td>Yes</td><td>The column by which sorting is done. For this service, only the value "Id" is accepted.</td></tr><tr><td>datefrom</td><td>DateTime</td><td>No</td><td>Works in alignment with the "ReflectionDate" and represents the start of the date range.</td></tr><tr><td>dateto</td><td>DateTime</td><td>No</td><td>Works in alignment with the "ReflectionDate" and represents the end of the date range.</td></tr></tbody></table>

**Response returned from the service:**

<table><thead><tr><th width="189">Parameter</th><th width="100.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>ErrorCode</td><td>int</td><td>Error code. Returns '0' if the operation is successful.</td></tr><tr><td>Result</td><td>bool</td><td>Returns a true or false value. Returns 'true' if the operation is successful.</td></tr><tr><td>Message</td><td>string</td><td>If the operation fails, this is the message describing the error, supporting localization based on the locale parameter.</td></tr><tr><td>Body</td><td>object</td><td>Detailed information about the transaction</td></tr></tbody></table>

{% tabs %}
{% tab title="JSON" %}
{% code lineNumbers="true" %}

```json
{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "Data": [
            {
                "Id": 2472,
                "IsSubMerchant": true,
                "PaymentId": 1785842,
                "ProductId": 2218487,
                "CurrencyId": 1,
                "Currency": "TRY",
                "CalculationCommissionType": 1,
                "CalculationCommission": 12.00,
                "Earning": 0.88,
                "MarketPlaceEarningStatusId": 1,
                "MarketPlaceEarningStatus": "Hesaplandı",
                "MarketPlaceEarningTransactionId": 0,
                "ReflectionDate": "2024-02-10T00:00:00",
                "CalculationDateTime": "2024-01-25T14:59:21.0342382"
            },
            {
                "Id": 2470,
                "IsSubMerchant": true,
                "PaymentId": 1785841,
                "ProductId": 2218486,
                "CurrencyId": 1,
                "Currency": "TRY",
                "CalculationCommissionType": 1,
                "CalculationCommission": 12.00,
                "Earning": 0.88,
                "MarketPlaceEarningStatusId": 1,
                "MarketPlaceEarningStatus": "Hesaplandı",
                "MarketPlaceEarningTransactionId": 0,
                "ReflectionDate": "2024-02-10T00:00:00",
                "CalculationDateTime": "2024-01-25T14:58:06.1795818"
            },
            {
                "Id": 2469,
                "IsSubMerchant": true,
                "PaymentId": 1785841,
                "ProductId": 2218485,
                "CurrencyId": 1,
                "Currency": "TRY",
                "CalculationCommissionType": 1,
                "CalculationCommission": 12.00,
                "Earning": 0.88,
                "MarketPlaceEarningStatusId": 1,
                "MarketPlaceEarningStatus": "Hesaplandı",
                "MarketPlaceEarningTransactionId": 0,
                "ReflectionDate": "2024-02-10T00:00:00",
                "CalculationDateTime": "2024-01-25T14:58:06.1795818"
            },
            {
                "Id": 2468,
                "IsSubMerchant": true,
                "PaymentId": 1785841,
                "ProductId": 2218484,
                "CurrencyId": 1,
                "Currency": "TRY",
                "CalculationCommissionType": 1,
                "CalculationCommission": 12.00,
                "Earning": 0.88,
                "MarketPlaceEarningStatusId": 1,
                "MarketPlaceEarningStatus": "Hesaplandı",
                "MarketPlaceEarningTransactionId": 0,
                "ReflectionDate": "2024-02-10T00:00:00",
                "CalculationDateTime": "2024-01-25T14:58:06.1795818"
            },
            {
                "Id": 2467,
                "IsSubMerchant": true,
                "PaymentId": 1785841,
                "ProductId": 2218483,
                "CurrencyId": 1,
                "Currency": "TRY",
                "CalculationCommissionType": 1,
                "CalculationCommission": 12.00,
                "Earning": 0.88,
                "MarketPlaceEarningStatusId": 1,
                "MarketPlaceEarningStatus": "Hesaplandı",
                "MarketPlaceEarningTransactionId": 0,
                "ReflectionDate": "2024-02-10T00:00:00",
                "CalculationDateTime": "2024-01-25T14:58:06.1795818"
            },
            {
                "Id": 2466,
                "IsSubMerchant": true,
                "PaymentId": 1785841,
                "ProductId": 2218482,
                "CurrencyId": 1,
                "Currency": "TRY",
                "CalculationCommissionType": 1,
                "CalculationCommission": 12.00,
                "Earning": 0.88,
                "MarketPlaceEarningStatusId": 4,
                "MarketPlaceEarningStatus": "Ödeme Başarılı",
                "MarketPlaceEarningTransactionId": 2291912,
                "ReflectionDate": "2024-02-10T00:00:00",
                "CalculationDateTime": "2024-01-25T14:58:06.1795818"
            },
            {
                "Id": 2464,
                "IsSubMerchant": true,
                "PaymentId": 1785663,
                "ProductId": 2218225,
                "CurrencyId": 1,
                "Currency": "TRY",
                "CalculationCommissionType": 2,
                "CalculationCommission": 36.00,
                "Earning": 4.48,
                "MarketPlaceEarningStatusId": 12,
                "MarketPlaceEarningStatus": "Tekrar Dene",
                "MarketPlaceEarningTransactionId": 0,
                "ReflectionDate": "2024-02-19T00:00:00",
                "CalculationDateTime": "2024-01-22T18:14:52.631701"
            }
        ],
        "TotalRecord": 7
    }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}
