{
  "opencollection": "1.0.0",
  "info": {
    "name": "Orum Authentication Businesses API",
    "version": "v2022-09-21"
  },
  "items": [
    {
      "info": {
        "name": "Businesses",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get all businesses",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api-sandbox.orum.io/deliver/businesses",
            "headers": [
              {
                "name": "Orum-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "index",
                "value": "",
                "type": "query",
                "description": "Index for paginated results"
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "Max number of results to return"
              },
              {
                "name": "customer_reference_id",
                "value": "",
                "type": "query",
                "description": "Filter by customer reference id"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by customer statuses (multiple allowed)"
              },
              {
                "name": "start_time",
                "value": "",
                "type": "query",
                "description": "Filter results created at or after this time"
              },
              {
                "name": "end_time",
                "value": "",
                "type": "query",
                "description": "Filter results created before this time"
              },
              {
                "name": "legal_name",
                "value": "",
                "type": "query",
                "description": "Filter by legal name"
              },
              {
                "name": "account_number",
                "value": "",
                "type": "query",
                "description": "Filter by account number"
              },
              {
                "name": "id",
                "value": "",
                "type": "query",
                "description": "Filter results by the business id"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-sandbox.orum.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get all business objects."
        },
        {
          "info": {
            "name": "Create a business",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-sandbox.orum.io/deliver/businesses",
            "headers": [
              {
                "name": "Orum-Version",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-sandbox.orum.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a business object to represent a business customer."
        },
        {
          "info": {
            "name": "Update a business by reference id",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api-sandbox.orum.io/deliver/businesses",
            "headers": [
              {
                "name": "Orum-Version",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-sandbox.orum.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update a business object using reference id."
        },
        {
          "info": {
            "name": "Get a business by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api-sandbox.orum.io/deliver/businesses/:id",
            "headers": [
              {
                "name": "Orum-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Orum generated unique id for the business you are fetching."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-sandbox.orum.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a business object."
        },
        {
          "info": {
            "name": "Update a business by id",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api-sandbox.orum.io/deliver/businesses/:id",
            "headers": [
              {
                "name": "Orum-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Orum generated unique id for the business you are updating."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-sandbox.orum.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update a business object by id."
        },
        {
          "info": {
            "name": "Partial update a business by id",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api-sandbox.orum.io/deliver/businesses/:id",
            "headers": [
              {
                "name": "Orum-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Orum generated unique id for the business you are updating."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-sandbox.orum.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update individual fields on a business object."
        },
        {
          "info": {
            "name": "Closes a business by id",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api-sandbox.orum.io/deliver/businesses/:id",
            "headers": [
              {
                "name": "Orum-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Orum generated unique id for the business you are updating."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-sandbox.orum.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Close a business object so they are unable to transact."
        }
      ]
    }
  ],
  "bundled": true
}