# Get all Transaction rules

## Get all Transaction Rules

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

#### Query Parameters

| Name         | Type    | Description                                  |
| ------------ | ------- | -------------------------------------------- |
| perPage      | number  | The number of items to return per page       |
| page         | number  | The number of pages to offset the results by |
| isDescending | boolean | Sort the attributes                          |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | The Bearer token to grant access to the API |

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

```
{
 "data": [
  {
   "transactionId": "4",
   "channelId": "218",
   "portalId": "2",
   "ruleName": "TR1",
   "status": true,
   "createdAt": "2019-09-10T13:19:01.000Z",
   "updatedAt": "2019-09-10T13:19:01.000Z",
   "paymentSender": "0",
   "paymentReceiver": "0",
   "dueDays": 7,
   "settlementType": "weekly",
   "settlementDates": "",
   "settlementWeekdays": "Thursday",
   "feeId": [
    "1",
    "3",
    "5"
   ],
   "transactionRuleId": null,
   "channelName": "Amazon_Velocity_Raymond",
   "feeName": "Commission Fee,Easy Ship Fee,Fixed Closing Fee MFN",
   "editable": true
  },
  {
   "transactionId": "5",
   "channelId": "219",
   "accountId": null,
   "portalId": "1",
   "ruleName": "Flipkart Rule",
   "status": true,
   "createdAt": "2019-09-13T06:56:50.000Z",
   "updatedAt": "2019-09-13T06:56:50.000Z",
   "paymentSender": "0",
   "paymentReceiver": "0",
   "dueDays": 10,
   "settlementType": "daily",
   "settlementDates": "",
   "settlementWeekdays": null,
   "feeId": [
    "6",
    "7",
    "9",
    "10",
    "11"
   ],
   "transactionRuleId": null,
   "channelName": "Flipkart_Velocity_Raymond",
   "feeName": "Commission Fee,Fixed Fee,Collection Fee,Shipping Fee,Reverse Shipping Fee",
   "editable": true
  },
  {
   "transactionId": "9",
   "channelId": "8",
   "accountId": null,
   "portalId": "2",
   "ruleName": "Amazon EDI XWAR",
   "status": true,
   "createdAt": "2019-10-15T13:03:26.000Z",
   "updatedAt": "2019-10-15T13:03:26.000Z",
   "paymentSender": "0",
   "paymentReceiver": "0",
   "dueDays": 7,
   "settlementType": "weekly",
   "settlementDates": "",
   "settlementWeekdays": "Thursday",
   "feeId": [
    "1",
    "2",
    "4",
    "13"
   ],
   "transactionRuleId": null,
   "channelName": "AMAZON_XWAR_MUMBAI",
   "feeName": "Commission Fee,Fixed Closing Fee,Weight Handling Fee,Technology Fee",
   "editable": false
  },
  {
   "transactionId": "21",
   "channelId": "220",
   "accountId": null,
   "portalId": "10",
   "ruleName": "Tatacliq Rule",
   "status": true,
   "createdAt": "2019-11-04T10:25:44.000Z",
   "updatedAt": "2019-11-04T10:25:44.000Z",
   "paymentSender": "0",
   "paymentReceiver": "0",
   "dueDays": 7,
   "settlementType": "weekly",
   "settlementDates": "",
   "settlementWeekdays": "Monday",
   "feeId": [
    "22"
   ],
   "transactionRuleId": null,
   "channelName": "TataCliq_Velocity_Raymond",
   "feeName": "Commission Fee",
   "editable": true
  },
  {
   "transactionId": "26",
   "channelId": "221",
   "accountId": null,
   "portalId": "4",
   "ruleName": "Snapdeal rule",
   "status": true,
   "createdAt": "2019-12-07T07:19:30.000Z",
   "updatedAt": "2019-12-07T07:19:30.000Z",
   "paymentSender": "0",
   "paymentReceiver": "0",
   "dueDays": 15,
   "settlementType": "daily",
   "settlementDates": "",
   "settlementWeekdays": null,
   "feeId": [
    "14",
    "16",
    "17",
    "18",
    "19"
   ],
   "transactionRuleId": null,
   "channelName": "Snapdeal_Velocity_Raymond",
   "feeName": "Commission Fee,Shipping Fee,Closing Fee,Payment Collection Fee,Reverse Shipping Fee",
   "editable": true
  },
  {
   "transactionId": "27",
   "channelId": "214",
   "accountId": null,
   "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": "6",
 "page": 1,
 "per_page": 50
}
```

{% endtab %}
{% endtabs %}

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

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

{% endtab %}
{% endtabs %}
