For the complete documentation index, see llms.txt. This page is also available as Markdown.

Period Open-Close

Controls the status of accounting periods (open or closed). API transactions are processed only when the relevant periods are open.

Get Period Open Close Policy

get
/apis/policy-sets/v1/policy/period-open-close
  • To retrieves list of all active legal entities with details and status of current open period and stats of last 3 periods close.

  • To retrieve details of error transactions, holds and journals of legal entity and current open period, please refer to below attached sheet.

Responses
200

Get Period Open and Close Policy

application/json
compliance_idstringRequired

A system-generated compliance ID to retrieve the period open-close Policies

compliance_namestringRequired

Name of the policy fetched by the system.

created_bystringRequired

ID of the user who created the policy. Example: username@rightrev.com

created_onintegerRequired

Timestamp of the policy created by the user. This is a unix Epoch timestamp format

last_modified_bystringRequired

ID of the user last modified by

last_modified_onintegerRequired

Timestamp of the policy last modified on. This is a unix Epoch timestamp format

policy_typestringRequired

Represents the type of policy

statusstringRequired

Represents the status of policy

unique_keystringRequired

Unique key is code which is unique combination of Legal Entity, Tenant ID and current open period.

version_idstringRequired

Unique alpha-numeric number generated by the system.

get/apis/policy-sets/v1/policy/period-open-close
GET /apis/policy-sets/v1/policy/period-open-close HTTP/1.1
Host: {realm}.{env}.rightrev.cloud/
Accept: */*
200

Get Period Open and Close Policy

[
  {
    "compliance_id": "463c0b62-c1dc-40f7-9d19-45bf1fe96650",
    "compliance_name": "period-open-close",
    "compliance_spec": [
      {
        "can_delete": false,
        "code": "DefaultLegalEntity_tenantID_Jan-2021",
        "created_at": 1763478464,
        "created_by": "username@rightrev.com",
        "end_date": "2021-01-31",
        "fiscal_year_name": "FY-2021",
        "is_user_defined": true,
        "legal_entity": "LegalEntity1",
        "opened_date": "2021-01-15",
        "period_name": "Jan-2021",
        "period_number": 1,
        "quarter_number": 1,
        "request_id": "tenantID_Jan-2021",
        "start_date": "2021-01-01",
        "status": "open",
        "updated_at": 1763478464,
        "updated_by": "username@rightrev.com"
      }
    ],
    "created_by": "RIGHTREV",
    "created_on": 1767799103,
    "last_modified_by": "RIGHTREV",
    "last_modified_on": 1767799103,
    "policy_type": "period-open-close",
    "status": "Active",
    "unique_key": "code",
    "version_id": "fd44b439-283a-45a7-960d-98ab1f7acc79"
  }
]

Update Period Open Close Policy

patch
/apis/policy-sets/v1/policy/period-open-close/{compliance_id}
  • To close current period and open new period in the system.

  • To Open First Period after creation of legal entity.

  • closed_date will be null and status will be open when user set open period for the first time.

Path parameters
compliance_idstringRequired

A system-generated compliance ID to update the policy.

Body
format_typestringRequired

Format type of the request code used to collect data - For e.g. JSON

compliance_namestringRequired

Operational name of the policy.

policy_typestringRequired

Name of the policy

unique_keystringRequired

It's a code which is unique combination of Legal Entity, tenant ID and Period name.

Responses
200

Update Period Open and Close Policy

application/json
compliance_idstringRequired

A system-generated compliance ID for period open-close action.

errorarrayRequired

Displays information about problems that occurred while handling the request. Commonly used to report validation errors, missing or invalid parameters, or other issues related to API processing.

patch/apis/policy-sets/v1/policy/period-open-close/{compliance_id}
PATCH /apis/policy-sets/v1/policy/period-open-close/{compliance_id} HTTP/1.1
Host: {realm}.{env}.rightrev.cloud/
Content-Type: application/json
Accept: */*
Content-Length: 1045

{
  "format_type": "json",
  "compliance_name": "Open/Close period Operation",
  "policy_type": "period-open-close",
  "unique_key": "code",
  "compliance_spec": [
    {
      "closed_date": "2026-01-08",
      "end_date": "2021-05-31",
      "fiscal_year_name": "FY-2021",
      "legal_entity": "LE_03",
      "opened_date": "2026-01-08",
      "period_name": "May-2021",
      "period_number": 5,
      "quarter_number": 2,
      "start_date": "2021-05-01",
      "status": "closed",
      "code": "DefaultLegalEntity_tenantID_May-2021",
      "comments": "close"
    },
    {
      "closed_date": null,
      "end_date": "2021-06-30",
      "fiscal_year_name": "FY-2021",
      "legal_entity": "LE_03",
      "opened_date": "2026-01-08",
      "period_name": "Jun-2021",
      "period_number": 6,
      "quarter_number": 2,
      "start_date": "2021-06-01",
      "status": "open",
      "code": "DefaultLegalEntity_tenantID_Jun-2021",
      "comments": "close"
    },
    {
      "closed_date": null,
      "end_date": "2021-01-31",
      "fiscal_year_name": "FY-2021",
      "legal_entity": "Default_Legal_Entity",
      "opened_date": "2026-01-08",
      "period_name": "Jan-2021",
      "period_number": 1,
      "quarter_number": 1,
      "start_date": "2021-01-01",
      "status": "open",
      "code": "DefaultLegalEntity_tenantID_Jan-2021",
      "comments": null
    }
  ]
}
200

Update Period Open and Close Policy

{
  "compliance_details": [
    {
      "error": [],
      "message": "updated successfully",
      "unique_key": "9ba8f9bd-c031-4a1d-8a9e-78b75fb26f22"
    }
  ],
  "compliance_id": "4486ab41-ce2b-4bd5-bdae-deda95434145",
  "error": []
}

Update Period Open Close Policy

put
/apis/policy-sets/v1/policy/period-open-close/{compliance_id}
  • To close current period and open new period in the Salesforce.

  • To Open First Period after creation of legal entity.

  • closed_date will be null and status will be open when user set open period for the first time.

Path parameters
compliance_idstringRequired

A system-generated compliance ID to retrieve the period open-close Policies

Body
format_typestringRequired

Format type of the request code used to collect data - For e.g. JSON

compliance_namestringRequired

Operational name of the policy.

unique_keystringRequired

It's a code which is unique combination of Legal Entity and Period name.

Responses
200

Replace Period Open and Close Policy

application/json
compliance_idstringRequired

A system-generated compliance ID on creating or updating the policy

errorarrayRequired

Displays information about problems that occurred while handling the request. Commonly used to report validation errors, missing or invalid parameters, or other issues related to API processing.

put/apis/policy-sets/v1/policy/period-open-close/{compliance_id}
PUT /apis/policy-sets/v1/policy/period-open-close/{compliance_id} HTTP/1.1
Host: {realm}.{env}.rightrev.cloud/
Content-Type: application/json
Accept: */*
Content-Length: 914

{
  "format_type": "json",
  "compliance_name": "period-open-close",
  "unique_key": "code",
  "compliance_spec": [
    {
      "period_description": "Jan 2026-USD-Default Revenue Book-Default Legal Entity",
      "code": "a1sfo000000FIsfAAG_a2Pfo00000012ubEAA",
      "end_date": "2026-01-31",
      "fiscal_year_name": "FY-2026",
      "legal_entity": "a1sfo000000FIsfAAG",
      "period_name": "a2Pfo00000012ubEAA",
      "period_number": 1,
      "quarter_number": 1,
      "start_date": "2026-01-01",
      "status": "closed",
      "opened_date": "2025-11-26",
      "closed_date": "2026-01-07",
      "comments": "Close period"
    },
    {
      "period_description": "Feb 2026-USD-Default Revenue Book-Default Legal Entity",
      "code": "a1sfo000000FIsfAAG_a2Pfo00000012ucEAA",
      "end_date": "2026-02-28",
      "fiscal_year_name": "FY-2026",
      "legal_entity": "a1sfo000000FIsfAAG",
      "period_name": "a2Pfo00000012ucEAA",
      "period_number": 2,
      "quarter_number": 1,
      "start_date": "2026-02-01",
      "status": "open",
      "opened_date": "2026-01-07",
      "closed_date": null,
      "comments": "Close Period"
    }
  ]
}
200

Replace Period Open and Close Policy

{
  "compliance_details": [
    {
      "error": [],
      "message": "updated successfully",
      "unique_key": "9ba8f9bd-c031-4a1d-8a9e-78b75fb26f22"
    }
  ],
  "compliance_id": "4486ab41-ce2b-4bd5-bdae-deda95434145",
  "error": []
}

Last updated

Was this helpful?