# Schedule of Rates (archive)

## Overview

Schedule of rates are defined by the state to provide detailed specifications for materials, labour, machinery etc..Rates are also defined at the state level but can be customized at the ULB level. This service provides a way to create/update/search for SORs and add rates to the SORs.

## API Specifications

### API Contract Link

{% file src="/files/JqbtEuwTFYc0eBAGkEhw" %}

### APIs

{% openapi src="/files/JqbtEuwTFYc0eBAGkEhw" path="/sor/v1/\_create" method="post" %}
[sor-rates-1.0.0.yaml](https://content.gitbook.com/content/Oahp3xBKoPsr1r1NAaNj/blobs/yKyjf2TY8P5sXfRsT3C6/sor-rates-1.0.0.yaml)
{% endopenapi %}

{% openapi src="/files/JqbtEuwTFYc0eBAGkEhw" path="/sor/v1/\_update" method="post" %}
[sor-rates-1.0.0.yaml](https://content.gitbook.com/content/Oahp3xBKoPsr1r1NAaNj/blobs/yKyjf2TY8P5sXfRsT3C6/sor-rates-1.0.0.yaml)
{% endopenapi %}

{% openapi src="/files/JqbtEuwTFYc0eBAGkEhw" path="/sor/v1/\_search" method="post" %}
[sor-rates-1.0.0.yaml](https://content.gitbook.com/content/Oahp3xBKoPsr1r1NAaNj/blobs/yKyjf2TY8P5sXfRsT3C6/sor-rates-1.0.0.yaml)
{% endopenapi %}

{% openapi src="/files/JqbtEuwTFYc0eBAGkEhw" path="/sor/rate/v1/\_create" method="post" %}
[sor-rates-1.0.0.yaml](https://content.gitbook.com/content/Oahp3xBKoPsr1r1NAaNj/blobs/yKyjf2TY8P5sXfRsT3C6/sor-rates-1.0.0.yaml)
{% endopenapi %}

{% openapi src="/files/JqbtEuwTFYc0eBAGkEhw" path="/sor/rate/v1/\_update" method="post" %}
[sor-rates-1.0.0.yaml](https://content.gitbook.com/content/Oahp3xBKoPsr1r1NAaNj/blobs/yKyjf2TY8P5sXfRsT3C6/sor-rates-1.0.0.yaml)
{% endopenapi %}

{% openapi src="/files/JqbtEuwTFYc0eBAGkEhw" path="/sor/rate/v1/\_search" method="post" %}
[sor-rates-1.0.0.yaml](https://content.gitbook.com/content/Oahp3xBKoPsr1r1NAaNj/blobs/yKyjf2TY8P5sXfRsT3C6/sor-rates-1.0.0.yaml)
{% endopenapi %}

## Data Model&#x20;

### DB Schema Diagram

<figure><img src="/files/83HBbgaypLG9TZZCZlUg" alt=""><figcaption></figcaption></figure>

### Web Sequence Diagrams

#### SOR APIs

{% tabs %}
{% tab title="SOR Create" %}

<figure><img src="/files/ZzwlkTAHuipHpjROP8tu" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/nQGZNo0NKgof05GhviSg" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="SOR Update" %}

<figure><img src="/files/Ygf7eY8kreft47L34h0T" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7ZxmASVHCjiKB3OvWOSz" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="SOR Search" %}

<figure><img src="/files/4lLarc9ZtjvocsJXB6SU" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Rates

{% tabs %}
{% tab title="Create Rates" %}

<figure><img src="/files/LqANPox9xbumhi1gIKw4" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ZuEJXSVupRcUasoz8vXr" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Update Rates" %}

<figure><img src="/files/SzLKnsIHIDdu39hnSbfH" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/HDZeLmVuI3E1uaCr5tDq" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Search Rates" %}

<figure><img src="/files/oekQiVnUFogTY3F5DcqP" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Master Data Types

The following masters need to be created as part of this module:

* SOR Type
* SOR Subtype
* Unit of measurement


---

# Agent Instructions: 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:

```
GET https://docs.digit.org/works/platform/architecture/low-level-design/services/schedule-of-rates-archive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
