POST
/
sourceRules
Create a new source rule
curl --request POST \
  --url https://api.paygentic.io/v0/sourceRules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sourceId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "enabled": true,
  "conditions": [
    {
      "type": "date",
      "operator": "equals",
      "value": "<string>"
    }
  ],
  "order": 0
}'
{
  "id": "<string>",
  "sourceId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "enabled": true,
  "conditions": [
    {
      "type": "date",
      "operator": "equals",
      "value": "<string>"
    }
  ],
  "order": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastEvaluatedAt": "2023-11-07T05:31:56Z",
  "evaluationCount": 123,
  "matchCount": 123
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

Response

201
application/json

Rule created

An auto-acceptance rule that automatically approves source events matching specified conditions. Rules help automate the approval process for trusted customers or specific transaction patterns.