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

Holds

Define Holds which can be applied to revenue contracts to prevent revenue release or revenue recognition when data discrepancies occur. System holds are pre-defined and triggers automatically.

Get Holds Policy

get
/apis/policy-sets/v1/policy/holds

Retrieves hold policies created by the user and the system to prevent revenue release / recognition for the revenue contract. Also retrieves the inactive holds.

Responses
200

Get Holds Policy

application/json
compliance_idstringRequired

Provide compliance id to retrieve holds pertaining to that compliance id.

compliance_namestringRequired

Name of the policy fetched by the system.

created_bystringRequired

ID of the user who created the policy.

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 the policy.

unique_keystringRequired

Unique identifier generated by the system.

version_idstringRequired

Represents the latest version of the policy.

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

Get Holds Policy

[
  {
    "compliance_id": "d771fa5b-b627-42c5-bc0e-aa83fde87666",
    "compliance_name": "holds",
    "compliance_spec": [
      {
        "active": true,
        "can_delete": true,
        "created_at": 1758630296,
        "created_by": "username@rightrev.com",
        "guid": "4cd98a4b-0d42-4108-8411-dddc93f387e0",
        "hold_type": "transfer",
        "is_user_defined": true,
        "name": "test hold",
        "updated_at": 1758630296,
        "updated_by": "username@rightrev.com",
        "when": []
      }
    ],
    "created_by": "RIGHTREV",
    "created_on": 1758717619,
    "last_modified_by": "RIGHTREV",
    "last_modified_on": 1758717619,
    "policy_type": "holds-definition",
    "status": "Active",
    "unique_key": "guid",
    "version_id": "ae6be271-7109-4823-a18c-88074cb48543"
  }
]

Update Holds Policy

patch
/apis/policy-sets/v1/policy/holds/{compliance_id}

Create a new hold policy in the system to temporarily stop revenue release / recognition.

Path parameters
compliance_idstringRequired

Provide compliance id to define hold pertaining to that compliance id.

Body
compliance_namestringRequired

Name of the policy.

unique_keystringRequired

It's GUID. Globally unique identifier generated by the system.

format_typestringRequired

Format of the payload. For e.g. JSON

Responses
200

Create a New Hold Policy

application/json
compliance_idstringRequired

Provide compliance id to delete an accounting calendar pertaining to that compliance id.

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/holds/{compliance_id}
PATCH /apis/policy-sets/v1/policy/holds/{compliance_id} HTTP/1.1
Host: {realm}.{env}.rightrev.cloud/
Content-Type: application/json
Accept: */*
Content-Length: 228

{
  "compliance_name": "Holds Policy",
  "unique_key": "guid",
  "format_type": "json",
  "compliance_spec": [
    {
      "can_delete": false,
      "name": "rrapi-hold",
      "guid": "rrapi-hold",
      "hold_type": "transfer",
      "active": false,
      "is_user_defined": false,
      "when": []
    }
  ]
}
200

Create a New Hold Policy

{
  "compliance_details": [
    {
      "error": [],
      "message": "created successfully",
      "unique_key": ""
    }
  ],
  "compliance_id": "99841657-3868-4644-b6a0-004a90175cd3",
  "error": []
}

Delete Holds Policy

delete
/apis/policy-sets/v1/policy/holds/{compliance_id}/{object_unique_value}

Delete the existing hold policies in the RightRev system.

Path parameters
compliance_idstringRequired

Provide compliance id to delete hold pertaining to that compliance. id.

object_unique_valuestringRequired

Unique object identifier generated by the system.

Responses
200

Delete Holds Policy

application/json
compliance_detailsarrayRequired

Displays the details of specific rules and standards processed by the system.

compliance_idstringRequired

Provide compliance id to delete hold pertaining to that compliance id.

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.

delete/apis/policy-sets/v1/policy/holds/{compliance_id}/{object_unique_value}
DELETE /apis/policy-sets/v1/policy/holds/{compliance_id}/{object_unique_value} HTTP/1.1
Host: {realm}.{env}.rightrev.cloud/
Accept: */*
200

Delete Holds Policy

{
  "compliance_details": [],
  "compliance_id": "e1daa1a3-7582-4533-8535-06d765788d11",
  "error": []
}

Last updated

Was this helpful?