{
  "opencollection": "1.0.0",
  "info": {
    "name": "Salv alert aml API",
    "version": "1.0.9"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://app.salv.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "aml",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create new person",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{environment}.salv.com/api/v2/persons",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Attributes supported maximum nesting depth is 2."
        },
        {
          "info": {
            "name": "Fetch all persons",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{environment}.salv.com/api/v2/persons/search",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Fetch all persons"
        },
        {
          "info": {
            "name": "Update person",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{environment}.salv.com/api/v2/persons/:personId",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "External unique person ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Person update. Attributes in the request will be used to replace existing ones and type will be updated. \nAttributes supported maximum nesting depth is 2.\n\nIn case the operation is successful there will be an empty response.\n\n### Examples\n#### cURL\n```\n$ curl --request PUT \\\n  --url https://app.salv.com/api/v2/persons/{personId} \\\n  --header 'Authorization: Bearer {yourBearerToken}' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n    \"type\": \"LEGAL\",\n    \"attributes\": {\n      \"compan"
        },
        {
          "info": {
            "name": "Patch person",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{environment}.salv.com/api/v2/persons/:personId",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "External unique person ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Partial person update. Only attributes present in request will be added/updated. Attributes supported maximum\nnesting depth is 2.\n\nThis endpoint also supports optional person type update.\n\nIn case the operation is successful there will be an empty response.\n\n### Examples\n#### cURL\n```\n$ curl --request PATCH \\\n  --url https://app.salv.com/api/v2/persons/{personId} \\\n  --header 'Authorization: Bearer {yourBearerToken}' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n    \"type\": \"LEGAL\""
        },
        {
          "info": {
            "name": "Fetch all persons",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{environment}.salv.com/api/v1/persons",
            "params": [
              {
                "name": "attribute",
                "value": "",
                "type": "query",
                "description": "Search query attribute"
              },
              {
                "name": "category",
                "value": "",
                "type": "query",
                "description": "Person category"
              }
            ]
          },
          "docs": "NB! If there are more than 10000 results then the API shows the number of total results as 10000 and you can't paginate past the 10000th result."
        },
        {
          "info": {
            "name": "Create new person (v1)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{environment}.salv.com/api/v1/persons",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Use [Create new person v2](#tag/aml/operation/addPersonV2) instead."
        },
        {
          "info": {
            "name": "Fetch person by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{environment}.salv.com/api/v1/persons/:personId",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "ID of person to return"
              }
            ]
          },
          "docs": "Fetch person by id"
        },
        {
          "info": {
            "name": "Patch person (v1)",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{environment}.salv.com/api/v1/persons/:personId",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "ID of person to return"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Use [Patch person v2](#tag/aml/operation/patchPersonV2) instead."
        },
        {
          "info": {
            "name": "Fetch all person transactions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{environment}.salv.com/api/v1/persons/:personId/transactions",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "ID of person"
              }
            ]
          },
          "docs": "NB! If there are more than 10000 results then the API shows the number of total results as 10000 and you can't paginate past the 10000th result."
        },
        {
          "info": {
            "name": "Create new transaction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{environment}.salv.com/api/v1/persons/:personId/transactions",
            "params": [
              {
                "name": "personId",
                "value": "bbt12345",
                "type": "path",
                "description": "ID of person"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create new transaction"
        },
        {
          "info": {
            "name": "Fetch transaction by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{environment}.salv.com/api/v1/persons/:personId/transactions/:transactionId",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "ID of person"
              },
              {
                "name": "transactionId",
                "value": "",
                "type": "path",
                "description": "ID of transaction to return"
              }
            ]
          },
          "docs": "Fetch transaction by id"
        },
        {
          "info": {
            "name": "Update transaction",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{environment}.salv.com/api/v1/persons/:personId/transactions/:transactionId",
            "params": [
              {
                "name": "personId",
                "value": "user-00000009",
                "type": "path",
                "description": "ID of person"
              },
              {
                "name": "transactionId",
                "value": "transaction-000000000009",
                "type": "path",
                "description": "ID of transaction"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates transaction. Currently status is the only attribute that can be updated."
        },
        {
          "info": {
            "name": "Fetch history of status changes for the person",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{environment}.salv.com/api/v1/persons/:personId/statuses",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "ID of person"
              }
            ]
          },
          "docs": "Fetch history of status changes for the person"
        }
      ]
    }
  ],
  "bundled": true
}