---
updatedAt: 2025-08-18T10:49:25.000Z
agentTools:
  projectIndex: https://healthcloud.readme.io/llms.txt
---

# Fetch etims organisation branches

### Description

This endpoint retrieves the organisation branches from ETIMS.

#### **Required**

- **X-Workstation -** This is a requiored header. It is the worstation ID of the user

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Slade360 eTIMS API",
    "description": "\n\nThis API is designed to facilitate seamless integration with the eTIMS system, enabling businesses to automate their tax compliance processes and ensure accurate reporting to the KRA. It supports various operations such as creating, updating, and retrieving tax-related documents, managing business partners, and handling financial transactions.\n\nThe API is built with security in mind, requiring authentication for access to sensitive endpoints. It also provides detailed error handling and response codes to help developers troubleshoot issues effectively.\n\nFor more information on how to use the Slade360 eTIMS API, please refer to the documentation provided.",
    "contact": {},
    "version": "2.3",
    "x-codegen-settings": {
      "Nullify404": false,
      "GenerateAsyncCode": true,
      "UseMethodPrefix": false,
      "UseModelPostfix": false,
      "UseControllerPrefix": true,
      "UseEnumPostfix": true,
      "CollectParameters": false,
      "UseConstructorsForConfig": false,
      "UseCommonSDKLibrary": false,
      "iOSUseAppInfoPlist": false,
      "AndroidUseAppManifest": false,
      "BodySerialization": 0,
      "EnableAdditionalModelProperties": false,
      "PreserveParameterOrder": true,
      "AppendContentHeaders": true,
      "iOSGenerateCoreData": false,
      "GenerateInterfaces": false,
      "NodeHttpClient": "NODE_REQUEST",
      "ValidateRequiredParameters": false,
      "JavaUsePropertiesConfig": false,
      "Timeout": 0,
      "StoreTimezoneInformation": false,
      "EnablePHPComposerVersionString": false,
      "EnableLogging": false,
      "ArraySerialization": "Indexed",
      "ModelSerializationScheme": "Json",
      "UseExceptionPrefix": true,
      "RunscopeEnabled": false,
      "AndroidHttpClient": "ANDROID_OK",
      "ObjCHttpClient": "UNIREST",
      "CSharpHttpClient": "UNIREST",
      "PHPHttpClient": "UNIREST",
      "JavaHttpClient": "JAVA_OK",
      "ParameterArrayFormat": "ParamArrayWithIndex",
      "SecurityProtocols": [
        "Ssl3",
        "Tls"
      ],
      "GenerateTravisConfig": false,
      "GenerateCircleConfig": false,
      "GenerateAppveyorConfig": false,
      "GenerateJenkinsConfig": false,
      "EnableHttpCache": false,
      "Retries": 0,
      "RetryInterval": 1,
      "GenerateAdvancedDocs": true,
      "UnderscoreNumbers": true,
      "UseSingletonPattern": true,
      "DisableLinting": false,
      "ApplyCustomizations": [],
      "SortResources": false,
      "AllowSkippingSSLCertVerification": false,
      "DoNotSplitWords": [],
      "EnableGlobalUserAgent": true,
      "ReturnCompleteHttpResponse": false,
      "GenerateModels": true,
      "GenerateExceptions": true,
      "IgnoreIfNullJson": false,
      "DisableDocs": false,
      "LiftParameterDescriptionFromCustomType": false,
      "ThrowForHttpErrorStatusCodes": true,
      "ResponseMapping": {
        "Type": "Simple"
      },
      "ForceKeywordArgsInRuby": false,
      "SymbolizeHashKeysInRuby": false,
      "UsageExampleEndpoint": {
        "Description": "",
        "EndpointGroupName": "",
        "EndpointName": ""
      },
      "IsLatestVersion": false,
      "EnableImmutableModels": false,
      "GenerateEnums": true,
      "BackoffFactor": 2,
      "StatusCodesToRetry": [
        408,
        413,
        429,
        500,
        502,
        503,
        504,
        521,
        522,
        524
      ],
      "RequestMethodsToRetry": [
        "GET",
        "PUT"
      ],
      "UserConfigurableRetries": true,
      "UseEndpointMethodName": false,
      "EncodeTemplateParameters": true,
      "GenerateExamplesForOptionalFields": false,
      "MultitargetDotnetVersions": false,
      "BackoffMax": 0,
      "RetryOnTimeout": true,
      "EnableCookies": false,
      "EnableJsonPassThroughForAny": false,
      "PascalCaseEnumForCSharp": false,
      "PascalCaseEnumForTypeScript": false,
      "DisableMultipleAuth": false,
      "AddSingleAuthDeprecatedCode": true,
      "EnableExperimentalTypeCombinatorGeneration": false,
      "ErrorTemplates": {},
      "UseSecuritySchemeNameForSingleAuth": false,
      "EnableModelKeywordArgsInRuby": false,
      "NullifyEmptyResponses": false,
      "ExtendedAdditionalPropertiesSupport": false,
      "EnforceStandardizedCasing": false
    },
    "x-server-configuration": {
      "default-environment": "UAT x PROD",
      "default-server": "Test ETIMS Base URL server",
      "environments": [
        {
          "name": "UAT x PROD",
          "servers": [
            {
              "name": "Test ETIMS Base URL server",
              "url": "https://api.erp.release.slade360edi.com"
            },
            {
              "name": "Test Authentication Base URL server",
              "url": "https://accounts.multitenant.slade360.co.ke"
            },
            {
              "name": "Prod ETIMS Base URL server",
              "url": "https://api.erp.slade360.co.ke"
            },
            {
              "name": "Prod Authentication Base URL server",
              "url": "https://accounts.edi.slade360.co.ke"
            }
          ]
        },
        {
          "name": "PROD",
          "servers": [
            {
              "name": "Prod ETIMS Base URL server",
              "url": "https://api.erp.slade360.co.ke"
            },
            {
              "name": "Prod Authentication Base URL server",
              "url": "https://accounts.edi.slade360.co.ke"
            }
          ]
        }
      ],
      "parameters": []
    },
    "x-image-uri": ""
  },
  "servers": [
    {
      "url": "https://api.erp.release.slade360edi.com",
      "description": "Test ETIMS Base URL server"
    },
    {
      "url": "https://accounts.multitenant.slade360.co.ke",
      "description": "Test Authentication Base URL server"
    },
    {
      "url": "https://accounts.edi.slade360.co.ke",
      "description": "Prod Authentication Base URL server"
    },
    {
      "url": "https://api.erp.slade360.co.ke",
      "description": "Prod ETIMS Base URL server"
    }
  ],
  "security": [
    {
      "bearer": []
    }
  ],
  "tags": [
    {
      "name": "Branches",
      "description": "**Branches**\n\nThis section addresses key actions such as retrieving branches from eTIMS synchronizing them, ensuring that branches are initialized in eTIMS, adding a branch user and branch insurance."
    }
  ],
  "paths": {
    "/api/branches/branches/fetch_etims_organisation_branches": {
      "get": {
        "tags": [
          "Branches"
        ],
        "summary": "Fetch etims organisation branches",
        "description": "### Description\n\nThis endpoint retrieves the organisation branches from ETIMS.\n\n#### **Required**\n\n- **X-Workstation -** This is a requiored header. It is the worstation ID of the user",
        "operationId": "Fetchetimsorganisationbranches",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "Returns the response in JSON format",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "example": "application/json"
            }
          },
          {
            "name": "X-Workstation",
            "in": "header",
            "description": "[REQUIRED] Workstation ID",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "example": "X-Workstation"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Content-Length": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "44"
                  }
                }
              },
              "Connection": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "keep-alive"
                  }
                }
              },
              "Server": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "gunicorn"
                  }
                }
              },
              "Date": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "Thu, 09 Jan 2025 05:06:13 GMT"
                  }
                }
              },
              "Vary": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "Accept, origin"
                  }
                }
              },
              "Allow": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "GET, HEAD, OPTIONS"
                  }
                }
              },
              "X-Frame-Options": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "DENY"
                  }
                }
              },
              "Strict-Transport-Security": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "max-age=31536000; includeSubDomains"
                  }
                }
              },
              "X-Content-Type-Options": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "nosniff"
                  }
                }
              },
              "Referrer-Policy": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "same-origin"
                  }
                }
              },
              "Cross-Origin-Opener-Policy": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "same-origin"
                  }
                }
              },
              "X-Kong-Upstream-Latency": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "1874"
                  }
                }
              },
              "X-Kong-Proxy-Latency": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "1"
                  }
                }
              },
              "Via": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "kong/3.6.1"
                  }
                }
              },
              "X-Kong-Request-Id": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "88a5936cb178e70d396bd746e96e615c"
                  }
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "example": "\"Organisation branches fetched succesfully.\""
                },
                "example": "\"Organisation branches fetched succesfully.\""
              }
            }
          }
        },
        "deprecated": false,
        "x-operation-settings": {
          "CollectParameters": false,
          "AllowDynamicQueryParameters": false,
          "AllowDynamicFormParameters": false,
          "IsMultiContentStreaming": false,
          "ErrorTemplates": {},
          "SkipAdditionalHeaders": false
        },
        "x-unitTests": [
          {
            "request": {
              "method": "GET",
              "uri": "/api/branches/branches/fetch_etims_organisation_branches",
              "headers": {
                "Accept": "application/json",
                "X-Workstation": "X-Workstation"
              }
            },
            "expectedResponse": {
              "x-allowExtraHeaders": true,
              "x-bodyMatchMode": "RAW",
              "x-arrayOrderedMatching": false,
              "x-arrayCheckCount": false,
              "x-matchResponseSchema": true,
              "statusCode": "200",
              "headers": {
                "Content-Type": "application/json",
                "Content-Length": "44",
                "Connection": "keep-alive",
                "Server": "gunicorn",
                "Date": "Thu, 09 Jan 2025 05:06:13 GMT",
                "Vary": "Accept, origin",
                "Allow": "GET, HEAD, OPTIONS",
                "X-Frame-Options": "DENY",
                "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
                "X-Content-Type-Options": "nosniff",
                "Referrer-Policy": "same-origin",
                "Cross-Origin-Opener-Policy": "same-origin",
                "X-Kong-Upstream-Latency": "1874",
                "X-Kong-Proxy-Latency": "1",
                "Via": "kong/3.6.1",
                "X-Kong-Request-Id": "88a5936cb178e70d396bd746e96e615c"
              },
              "body": "\"Organisation branches fetched succesfully.\""
            },
            "x-testShouldPass": true,
            "x-testEnabled": true,
            "x-testName": "Fetch etims organisation branches",
            "x-testDescription": "### Description\n\nThis endpoint retrieves the organisation branches from ETIMS.\n\n#### **Required**\n\n- **X-Workstation -** This is a requiored header. It is the worstation ID of the user"
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```