# 2. Payments/Activities

<mark style="color:green;">`POST`</mark> `{{Base Address}}/api/payment/activities`

It will be sufficient to send a request to the address provided above. You can use the 'Base Address' as needed for both the test environment and the production environment.

{% hint style="info" %}
Important: In order to use the **Payment Transactions** service, you need to send the 'apikeyprivate' and 'apiclientprivate' parameters in the 'Header' field.\
\
[<mark style="color:green;">**PhysicalAPI Address**</mark>](https://developer.paywall.one/payment-orchestration-integration-document/environment)
{% endhint %}

**The header information that needs to be sent to the service is as follows:**

<table><thead><tr><th width="197">Parameter</th><th width="106.33333333333331">Type</th><th width="165">Compulsory</th><th>Description</th></tr></thead><tbody><tr><td>apikeyprivate</td><td>string</td><td>Yes</td><td>The Private Key obtained from the merchant panel.</td></tr><tr><td>apiclientprivate</td><td>string</td><td>Yes</td><td>The Private Client obtained from the merchant panel.</td></tr></tbody></table>

**The body information that needs to be sent to the service is as follows:**

{% tabs %}
{% tab title="JSON" %}

```json
{
  "pageIndex": 0,
  "pageSize": 10,
  "PaymentRequestId": "8850e51c-b09a-43fd-855f-83c4037cce45"
}
```

{% endtab %}
{% endtabs %}

**Response returned from the service:**

<table><thead><tr><th width="182">Parameter</th><th width="107.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>Result</td><td>object</td><td>Returns the information in the details of the service.</td></tr><tr><td>ErrorCode</td><td>int</td><td>Error code. Returns the value '0' if the transaction is successful.</td></tr><tr><td>Succeeded</td><td>bool</td><td>Returns a true or false value. Returns 'true' if the transaction is <mark style="color:green;">successful</mark>.</td></tr><tr><td>Failed</td><td>bool</td><td>Returns a true or false value. Returns 'true' if the transaction is <mark style="color:red;">unsuccessful</mark>.</td></tr><tr><td>Message</td><td>string</td><td>If the transaction is erroneous, this is the message related to the error. It provides language support based on the locale parameter.</td></tr><tr><td>ClientMessage</td><td>string</td><td>Returns the fixed values of the Paywall error codes. You can perform mapping.</td></tr></tbody></table>

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

```json5
{
    "Result": {
        "Items": [
            {
                "Id": "65d79a67-335a-4a4f-b159-01f26315af95",
                "PaymentTypeId": 1,
                "PaymentTypeName": "Sale",
                "PaymentStatusId": 1,
                "PaymentStatusName": "Generated",
                "Date": "2024-09-02T19:33:06.247743"
            },
            {
                "Id": "0f7dc0c2-8b3f-466e-b646-22b23e1fa052",
                "PaymentTypeId": 1,
                "PaymentTypeName": "Sale",
                "PaymentStatusId": 2,
                "PaymentStatusName": "SentToDevice",
                "Date": "2024-09-02T19:33:06.700298"
            }
        ],
        "Pagination": {
            "CurrentPage": 0,
            "PageCount": 1,
            "PageSize": 10,
            "TotalCount": 2
        }
    },
    "Failed": false,
    "Message": null,
    "ClientMessage": null,
    "Succeeded": true
}
```

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