> 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-all-transaction-rules.md).

# 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://eshop.gitbook.io/eshopbox-developers/payment/transaction-rules/get-all-transaction-rules.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
