> For the complete documentation index, see [llms.txt](https://developer.prodege.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.prodege.com/demand/webhooks/real-time-pricing.md).

# Real Time Pricing

Partners may provide Prodege with a webhook URL that can be called when a project is Paused by Real Time Time pricing since the max CPI is reached or when a project is set back Live since the required CPI is now lower than the max CPI. The webhook will be called in as close to real time as possible. &#x20;

| Real Time Pricing Webhook Parameters - <mark style="background-color:orange;">POST</mark> |                |                                                                                                             |
| ----------------------------------------------------------------------------------------- | -------------- | ----------------------------------------------------------------------------------------------------------- |
| Parameter Name                                                                            | Parameter Type | Description                                                                                                 |
| data                                                                                      | Array          | Details related to the Real Time Pricing event. See data elements model and example below.                  |
| signature                                                                                 | String         | The signature of your request (see [Authentication](https://developer.prodege.com/demand/authentication)).  |
| *data Model*                                                                              |                |                                                                                                             |
| Property Name                                                                             | Property Type  | Description                                                                                                 |
| event\_id                                                                                 | String         | The id that uniquely identifies the event.                                                                  |
| event\_time                                                                               | String         | The timestamp of the event (Pacific Time).                                                                  |
| max\_cpi                                                                                  | String         | The current Max CPI saved to the project.                                                                   |
| current\_cpi                                                                              | String         | The current CPI of the project.                                                                             |
| avg\_cpi                                                                                  | String         | The average CPI of all existing completes.                                                                  |
| required\_cpi                                                                             | String         | The required (actual IR/LOI based) CPI of the project that must be accepted in order to resume the project. |
| project\_id                                                                               | Numeric        | The id that uniquely identifies this project.                                                               |
| bid\_ir                                                                                   | Numeric        | The bid IR saved for the project.                                                                           |
| actual\_ir                                                                                | Numeric        | The lifetime actual IR for the project (so far).                                                            |
| bid\_loi                                                                                  | Numeric        | The bid LOI saved for the project.                                                                          |
| actual\_median\_loi                                                                       | Numeric        | The lifetime median LOI for the project of all existing completes (so far).                                 |
| project\_status                                                                           | String         | The status of the project (e.g. LIVE, PAUSED).                                                              |

**data example**:

```
{
"event_id":"63e174296722563b9cc28d96",
"event_time":"2023-02-06 13:42:01",
"max_cpi":"36",
"current_cpi":"30",
"avg_cpi":"1",
"required_cpi":"90",
"project_id":27293192,
"bid_ir":50,
"actual_ir":5,
"bid_loi":1,
"actual_median_loi":1,
"project_status":"PAUSED"
}
```

### Expected Response

For this webhook, returning a success response (200) will indicate that the webhook has been received successfully. Returning a failure response (e.g. 500) will indicate that the webhook was not successfully received and the webhook will be tried again 3 more times: after 2 seconds, then 4 seconds, then 8 seconds.
