> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/works/platform/architecture/low-level-design/services/schedule-of-rates-archive.md).

# 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
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://docs.digit.org/works/platform/architecture/low-level-design/services/schedule-of-rates-archive.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.
