# Advanced Settings

> Call Contract Advanced Settings

## Get Portal Settings

`GET https://api.leadspedia.com/core/v2/callRoutingContracts/getPortalSettings.do`

### Parameters

- `contractID` (integer, required)


## Update Portal Settings

`POST https://api.leadspedia.com/core/v2/callRoutingContracts/updatePortalSettings.do`

### Parameters

- `contractID` (integer, required)

- `showStatus` (enum, optional)
  Allowed values: `Yes`, `No`.

- `allowStatusPause` (enum, optional)
  Allow advertiser to pause contract Allowed values: `Yes`, `No`.

- `allowManageCaps` (enum, optional)
  Allow advertiser to manage caps Allowed values: `Yes`, `No`.

- `showSchedule` (enum, optional)
  Allowed values: `Yes`, `No`.

- `allowUpdateSchedule` (enum, optional)
  Allow advertiser to manage delivery schedule Allowed values: `Yes`, `No`.

- `showCaps` (enum, optional)
  Allowed values: `Yes`, `No`.

- `showReturnSettings` (enum, optional)
  Allowed values: `Yes`, `No`.

- `callRecordings` (enum, optional)
  Allow advertiser to listen to call recordings in the advertiser portal Allowed values: `Yes`, `No`.

- `hideCallerID` (enum, optional)
  Hide caller ID when calls are transferred to advertiser Allowed values: `Yes`, `No`.


## Get Postback Settings

`GET https://api.leadspedia.com/core/v2/callRoutingContracts/getPostbackSettings.do`

### Parameters

- `contractID` (integer, required)


## Update Postback Settings

`POST https://api.leadspedia.com/core/v2/callRoutingContracts/updatePostbackSettings.do`

### Parameters

- `contractID` (integer, required)

- `postbackEnabled` (enum, optional)
  Allowed values: `Yes`, `No`.

- `callsRevenueShareEnabled` (enum, optional)
  Allowed values: `Yes`, `No`.

- `callsRevenueShareType` (enum, optional)
  Allowed values: `Fixed Revenue`, `Dynamic Revenue`, `Revenue Share`.

- `callsRevenueSharePrice` (integer, optional)

- `callsRevenueSharePercentage` (integer, optional)

- `postbackAllowDuplicate` (enum, optional)
  Allow multiple postbacks per unique caller id Allowed values: `Yes`, `No`.

- `postbackAllowMultiple` (enum, optional)
  Allow multiple updates per postback Allowed values: `Yes`, `No`.

- `postbackTimeLimit` (integer, optional)


## Set Expiration Date

`POST https://api.leadspedia.com/core/v2/callRoutingContracts/setExpirationDate.do`

### Parameters

- `contractID` (integer, required)

- `expirationDate` (date, required)
  Format: `YYYY-MM-DD`.


## Remove Expiration Date

`POST https://api.leadspedia.com/core/v2/callRoutingContracts/removeExpirationDate.do`

### Parameters

- `contractID` (integer, required)


## Get Scheduled Pause

`GET https://api.leadspedia.com/core/v2/callRoutingContracts/getScheduledPause.do`

### Parameters

- `contractID` (integer, optional)

- `start` (integer, optional)
  Offset of the first row to return. Default: `0`.

- `limit` (integer, optional)
  Maximum number of rows to return. Cannot be greater than 1000. Default: `100`.


## Create Schedule Pause

`POST https://api.leadspedia.com/core/v2/callRoutingContracts/schedulePause.do`

### Parameters

- `contractID` (integer, required)

- `pauseDate` (date, required)
  Pause date has to be later than today's date but before the resume date Format: `YYYY-MM-DD`.

- `resumeDate` (date, required)
  Format: `YYYY-MM-DD`.


## Delete Schedule Pause

`POST https://api.leadspedia.com/core/v2/callRoutingContracts/deleteScheduledPause.do`

### Parameters

- `scheduledPauseID` (integer, required)
