{
  "opencollection": "1.0.0",
  "info": {
    "name": "Consents Account On File Account Controls (New) Account Controls (New) Customer API",
    "version": "v0.2.3"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Customer",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Customers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/customers/v1/",
            "params": [
              {
                "name": "page_number",
                "value": "0",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "50",
                "type": "query"
              }
            ]
          },
          "docs": "Fetch a list of all customers created"
        },
        {
          "info": {
            "name": "Create Customer",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.leantech.me/customers/v1/",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a customer object on Lean given the app_user_id which is the identifier (or a hash of the identifier) you use to refer to a user in your own database. The customer object in Lean should map one to one with the user object in your database."
        },
        {
          "info": {
            "name": "Get Customer by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/customers/v1/:customer_id/",
            "params": [
              {
                "name": "customer_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch a Customer object by the customer_id associated"
        },
        {
          "info": {
            "name": "Update Customer",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://sandbox.leantech.me/customers/v1/:customer_id/",
            "params": [
              {
                "name": "customer_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint allows you to update the government identifiers associated with an existing customer.\nGovernment identifiers are required by the UAE Open Finance specification to uniquely identify the customer and must reflect the latest, valid information for the account holder."
        },
        {
          "info": {
            "name": "Get Customer by app_user_id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/customers/v1/app-user-id/:app_user_id",
            "params": [
              {
                "name": "app_user_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch a Customer object by the associated `app_user_id` value"
        }
      ]
    }
  ],
  "bundled": true
}