> For the complete documentation index, see [llms.txt](https://apis.rightrev.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apis.rightrev.com/rightrev-rest-api/transactions-ingestion/transaction-ingestion-order-invoices-events-and-bulk-uploads/events-ingestion-via-json-file.md).

# Events Ingestion via JSON file

Method - POST

API End Point

```
/apis/oingest/v1/events
```

**Sample API End Point ( Events )**

<div data-with-frame="true"><figure><img src="/files/b3JLKbBgrtWPNYRbZYRI" alt=""><figcaption></figcaption></figure></div>

**Payload**

```
"  {
    ""event_name"": ""Event_Percent"",
    ""action"": ""release"",
    ""percentage"": 25,
    ""amount"": """",
    ""quantity"": """",
    ""formula_value"": """",
    ""remaining_balance"": """",
    ""cost_functional_exchange_rate"": """",
    ""cost_reporting_exchange_rate"": """",
    ""transaction_identifier1"": """",
    ""transaction_identifier2"": """",
    ""transaction_identifier3"": """",
    ""transaction_identifier4"": """",
    ""transaction_identifier5"": """",
    ""order_financial_id"": ""ofid_001"",
    ""created_on"": """",
    ""start_date"": """",
    ""end_date"": """",
    ""gl_account"": """",
    ""user_comments"": ""release 25% revenue""
  }"	

```

**Response**

```
{
    "file_id": "9d0924c1-45c7-4488-bec5-d71495f4be93",
    "message": "File successfully uploaded"
}
```

**Description of the fields**

<table><thead><tr><th width="203">Fields</th><th width="516">Description</th><th width="176">Example</th><th width="137">Required</th></tr></thead><tbody><tr><td>event_name</td><td>Name of the revenue event being triggered.</td><td>Event_Percent</td><td>TRUE</td></tr><tr><td>action</td><td>Action performed by the event -  release or defer.</td><td>release</td><td>TRUE</td></tr><tr><td>percentage</td><td>Percentage used for release or calculation for the event.</td><td>25</td><td>FALSE</td></tr><tr><td>amount</td><td>Fixed monetary amount associated with the event.</td><td>10000</td><td>FALSE</td></tr><tr><td>quantity</td><td>Quantity used for event-based calculations.</td><td>50</td><td>FALSE</td></tr><tr><td>formula_value</td><td>Value derived from formula-based events.</td><td>total_list_price*0.25</td><td>FALSE</td></tr><tr><td>remaining_balance</td><td>Boolean Field - Remaining amount/quantity after applying previous events. True will release remaining amount/quantity revenue.</td><td>True</td><td>FALSE</td></tr><tr><td>cost_functional_exchange_rate</td><td>Exchange rate used for converting cost to functional currency.</td><td>(blank)</td><td>FALSE</td></tr><tr><td>cost_reporting_exchange_rate</td><td>Exchange rate used for converting cost to reporting/global currency.</td><td>(blank)</td><td>FALSE</td></tr><tr><td>transaction_identifier1</td><td>Additional transaction identifier used for event.</td><td>(blank)</td><td>FALSE</td></tr><tr><td>transaction_identifier2</td><td>Additional transaction identifier used for event.</td><td>(blank)</td><td>FALSE</td></tr><tr><td>transaction_identifier3</td><td>Additional transaction identifier used for event.</td><td>(blank)</td><td>FALSE</td></tr><tr><td>transaction_identifier4</td><td>Additional transaction identifier used for event.</td><td>(blank)</td><td>FALSE</td></tr><tr><td>transaction_identifier5</td><td>Additional transaction identifier used for event.</td><td>(blank)</td><td>FALSE</td></tr><tr><td>order_financial_id</td><td>Order Financial ID associated with this event.</td><td>ofid_001</td><td>TRUE</td></tr><tr><td>created_on</td><td>Date when the event record was created.</td><td>(blank)</td><td>FALSE</td></tr><tr><td>start_date</td><td>Event start date. this will override dates on the order line</td><td>(blank)</td><td>FALSE</td></tr><tr><td>end_date</td><td>Event end date. this will override dates on the order line</td><td>(blank)</td><td>FALSE</td></tr><tr><td>gl_account</td><td>GL account assocciated by this event if any.</td><td>(blank)</td><td>FALSE</td></tr><tr><td>user_comments</td><td>Any comments added by the user for the event.</td><td>release 25% revenue</td><td>FALSE</td></tr></tbody></table>


---

# 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://apis.rightrev.com/rightrev-rest-api/transactions-ingestion/transaction-ingestion-order-invoices-events-and-bulk-uploads/events-ingestion-via-json-file.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.
