# Call Routing Rules

## Get All

`GET https://api.leadspedia.com/core/v2/callRoutingRules/getAll.do`

### Parameters

- `affiliateID` (integer, optional)

- `advertiserID` (integer, optional)


## Create

`POST https://api.leadspedia.com/core/v2/callRoutingRules/create.do`

### Parameters

- `affiliateID` (integer, required)

- `campaignID` (integer, required)

- `advertiserID` (integer, required)

- `contractID` (integer, required)

- `rule` (enum, required)
  Allowed values: `1-1 Relation`, `Block`, `Allow Advertiser to Only Receive Calls From Affiliate`, `Allow Affiliate to Only Transfer Calls to Advertiser`.


## Delete

`POST https://api.leadspedia.com/core/v2/callRoutingRules/delete.do`

### Parameters

- `callRoutingRuleID` (integer, required)
