Model

Create org rule model

Create a rule model at the organizational level for a processing code. A rule model swaps one processing code for another if certain conditions are met. For example, you may want to use a custom processing code if the merchant is Apple.

Rule models cannot be shared between organizations.

Refer to Processing codes for more information on processing codes and rule models.

Call the following to attach a rule model to an organization, program, or account.

  • Apply rule model to org
  • Apply rule model to program
  • Apply rule model to account
post/v1/models

Request

  • Base URL
    https://sandbox.pismolabs.io/processing-code
  • URL
    https://sandbox.pismolabs.io/processing-code/v1/models
  • Auth
    none declared

Request body

namestring

Model name

Example request

{
  "rules": [
    {
      "processing_code": "00",
      "order": 1,
      "conditions": [
        {
          "type": "MERCHANT_NAME_LIST",
          "operator": "eq",
          "data": "10"
        }
      ],
      "name": "Rule name example",
      "international_processing_code": "003100"
    }
  ],
  "name": "Model name"
}

Response

Created

idstring

Model ID

namestring

Rules group name

Example response

{
  "id": "b3f53d8f-6812-4869-b17a-874d78750cc6",
  "name": "Model name"
}

Changes

No recorded changes to this operation across all 1 revision of this API.