> 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/4.-manual-trigger/1.-fetch-earnings.md).

# 1. Fetch Earnings

## Fetch Earnings

<mark style="color:blue;">`GET`</mark> `{{Base Adres}}/api/paywall/marketplace/manual/trigger/pending`

{% hint style="info" %}
Important: To use the Fetch Earnings in Pool service, you must include the parameters **apikeypublic** and **apiclientpublic** 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="110">Type</th><th width="134">Compolsory</th><th width="403">Descripition</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Yes</td><td>The Public Key obtained from the merchant panel.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>The Public Client you obtained from the merchant panel.</td></tr><tr><td>datefrom</td><td>DateTime</td><td>Yes</td><td><p>Payout start date</p><p><br><strong>Format:</strong> yyyy-MM-dd</p></td></tr><tr><td>dateto</td><td>DateTime</td><td>Yes</td><td><p>Payout end date</p><p><br><strong>Format:</strong> yyyy-MM-dd</p></td></tr><tr><td>currencyid</td><td>short</td><td>Yes</td><td><a href="/pages/bahfUMz1dqpN1ZCnpVtM">Currency</a></td></tr></tbody></table>

**Response returned by 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 a value of '0' if the operation is successful.</td></tr><tr><td>Result</td><td>bool</td><td>Returns a value of either true or false. Returns 'true' if the operation is successful.</td></tr><tr><td>Message</td><td>string</td><td>If the operation fails, this is the error message provided. It supports localization based on the <code>locale</code> parameter.</td></tr><tr><td>Body</td><td>object</td><td>Operation detail information</td></tr></tbody></table>

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

```json
{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "DateFrom": "2024-07-01T00:00:00",
        "DateTo": "2024-07-04T00:00:00",
        "Earning": 0.0,
        "Count": 0 // Toplam kaç hakediş kaydı beklemede
    }
}
```

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