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

Identify Customer Contract

Establishes the logic and rules used to identify or derive a customer contract from incoming API data. This policy ensures consistent contract grouping

Get Orders Group Policy

get
/apis/policy-sets/v1/policy/orders-group

Retrieves Orders Group policy created in the RightRev system.

Responses
200

Get Orders Group Policy

application/json
compliance_idstringOptional

A system-generated compliance ID to retrieve orders group.

compliance_namestringOptional

Name of the policy fetched by the system.

created_bystringOptional

ID of the user who created the policy.

created_onintegerOptional

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

last_modified_bystringOptional

ID of the user last modified by.

last_modified_onintegerOptional

Timestamp of the policy last modified on.

policy_typestringOptional

Represents the type of policy.

statusstringOptional

Represents the status of the policy.

unique_keystringOptional

Represents the unique name of the orders group.

version_idstringOptional

Represents the latest version of the policy.

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

Get Orders Group Policy

[
  {
    "compliance_id": "a31d6299-6b25-46cf-9d74-104d3af07ea4",
    "compliance_name": "Orders-Grouping",
    "compliance_spec": [
      {
        "can_delete": true,
        "created_at": 1707378190,
        "created_by": "username@rightrev.com",
        "groupings": [
          {
            "fields": [
              "customer_name",
              "order_number"
            ]
          }
        ],
        "is_user_defined": true,
        "name": "orders_grouping_1",
        "updated_at": 1759141173,
        "updated_by": "username@rightrev.com"
      }
    ],
    "created_by": "username@rightrev.com",
    "created_on": 1707378190,
    "last_modified_by": "username@rightrev.com",
    "last_modified_on": 1759141173,
    "policy_type": "orders-group",
    "status": "Active",
    "unique_key": "name",
    "version_id": "2229e08c-e8ca-4ab1-a005-4d2a0cdd061a"
  }
]

Post Orders Group Policy

post
/apis/policy-sets/v1/policy/orders-group

Create a new Order Group policy in the RightRev system.

  • Users must select at least one identifier and maximum of five identifiers to create a order group policy.

Body
format_typestringRequired

JSON format.

compliance_namestringRequired

Provide compliance name to create an order group policy pertaining to that compliance name.

unique_keystringRequired

Name of the order group policy.

Responses
200

Set Orders Group Policy

application/json
compliance_idstringRequired

Provide compliance id to create order group policy 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.

post/apis/policy-sets/v1/policy/orders-group
POST /apis/policy-sets/v1/policy/orders-group HTTP/1.1
Host: {realm}.{env}.rightrev.cloud/
Content-Type: application/json
Accept: */*
Content-Length: 185

{
  "compliance_spec": [
    {
      "name": "orders_grouping_1",
      "groupings": [
        {
          "fields": [
            "customer_name",
            "order_number"
          ]
        }
      ]
    }
  ],
  "format_type": "json",
  "compliance_name": "Orders-Grouping",
  "unique_key": "name"
}
200

Set Orders Group Policy

{
  "compliance_details": [
    {
      "error": [],
      "message": "created successfully",
      "unique_key": "orders_grouping_1"
    }
  ],
  "compliance_id": "49807459-e583-4d72-a651-29d1683226a8",
  "error": []
}

Patch Orders Group Policy

patch
/apis/policy-sets/v1/policy/orders-group/{compliance_id}

Update the Orders Group policy in the RightRev system.

Path parameters
compliance_idstringRequired

User has to provide a compliance id to update orders group. This compliance id can be fetched from the response of the Orders Group Policy - GET API.

Body
format_typestringRequired

Format of the payload. For e.g. JSON.

compliance_namestringRequired

Name of the Policy.

unique_keystringRequired

Name of the grouping policy.

Responses
200

Update Orders Group Policy

application/json
compliance_idstringOptional

A system-generated compliance ID to update orders group.

errorarrayOptional

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

{
  "compliance_spec": [
    {
      "name": "orders_grouping_1",
      "groupings": [
        {
          "fields": [
            "order_number"
          ]
        }
      ]
    }
  ],
  "format_type": "json",
  "compliance_name": "Orders-Grouping",
  "unique_key": "name"
}
200

Update Orders Group Policy

{
  "compliance_details": [
    {
      "error": [],
      "message": "created successfully",
      "unique_key": "orders_grouping_1"
    }
  ],
  "compliance_id": "0414888d-546c-47a0-9d2f-cb2834b3f05b",
  "error": []
}

Last updated

Was this helpful?