v1

latestOpenAPI 3.1.02026-07-24233206489.1 KB

post/v1/policies/evaluate

Request body

organization_idstring required

The organization ID as the owner of the policy

resourcestring required

The resource in which the policy will apply (e.g. wallet, user)

operationstring required

The operation where the resource participated in which the policy will apply

inputobject

Input data to be used as parameters the the policy will refer into

Response

Example response

{
  "data": [
    {
      "id": "policy_37112f132ea5a9c17332c170",
      "name": "Default policy for transfer:CreateTransfer",
      "owner": "paymongo",
      "violations": [
        "source_account_balance_insufficient"
      ]
    }
  ]
}