> For the complete documentation index, see [llms.txt](https://eshop.gitbook.io/eshopbox-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eshop.gitbook.io/eshopbox-developers/payment/transaction-rules/get-a-transaction-rule.md).

# Get a Transaction rule

## Get a Transaction Rule

<mark style="color:blue;">`GET`</mark> `https://workspace.myeshopbox.com/payments/v1/transactionRules?channelId=:cId`

#### Query Parameters

| Name      | Type   | Description               |
| --------- | ------ | ------------------------- |
| channelId | number | channelId for transaction |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Content-Type  | string | application/json                            |
| Authorization | string | The Bearer token to grant access to the API |

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

```
{
 "data": [
  {
   "transactionId": "27",
   "channelId": "214",
   "portalId": "11",
   "ruleName": "Paytm rule",
   "status": true,
   "createdAt": "2019-12-30T07:37:48.000Z",
   "updatedAt": "2019-12-30T07:37:48.000Z",
   "paymentSender": "0",
   "paymentReceiver": "0",
   "dueDays": 12,
   "settlementType": "weekly",
   "settlementDates": "",
   "settlementWeekdays": "Tuesday,Friday",
   "feeId": [
    "23",
    "24",
    "25"
   ],
   "transactionRuleId": null,
   "channelName": "Paytm_Velocity_Raymond",
   "feeName": "Commission Fee,Payment Gateway Commission,Shipping Fee",
   "editable": true
  }
 ],
 "total": "1",
 "page": 1,
 "per_page": 50
}
```

{% endtab %}
{% endtabs %}

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

```scheme
curl -X GET https://workspace.myeshopbox.com/payments/api/v1/transactionRules?channelId=:cId \
-H "Authorization: Bearer XXXX" \
```

{% endtab %}
{% endtabs %}
