SRS Integration Partner Services
HomeV1 APIsV2 APIs
HomeV1 APIsV2 APIs
  1. Customers
  • Authentication
    • Token
      POST
  • Orders
    • Delivery Details
      GET
    • Deliveries list
      POST
    • Proof of Delivery
      GET
    • Order Details
      GET
    • Order list
      POST
    • Submit Order
      POST
  • Invoices
    • Invoice Details
      GET
    • Invoices List
      POST
    • Invoice PDF
      GET
  • Customers
    • Customer Details
      GET
    • Validate Customer
      GET
    • Nearest Eligible Branch
      GET
    • Ship to Address
      GET
    • Order Templates
      GET
  • Products
    • Pricing
      POST
  • Branches
    • Branch Details
      GET
    • Branch Active Items
      GET
  1. Customers

Nearest Eligible Branch

Deprecated
GET
/customers/{customerCode}/NearestEligibleBranch
Get a list of branches nearest to a given lat/long that a customer is eligible to do business.

Request

Path Params

Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://services-qa.roofhub.pro/customers//NearestEligibleBranch?latitude=&longitude=&maxMiles=' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json'

Responses

🟢200Success
application/json
Body

Example
[
  {
    "customerNearestBranchList": [
      {
        "branchId": 12,
        "branchCd": "BRNC12",
        "description": "BRANCH 12 - DESCRIPTION",
        "brandName": "BRANCH 12 - BRAND NAME",
        "address1": "BRANCH12 - ADDRESS TEST",
        "city": "City12",
        "state": "MA",
        "zip": "01234",
        "phone": "123-456-7890",
        "branchManagerName": "Robie Williams",
        "branchManagerEmailAddress": "robiewilliams@heritage.com",
        "branchLatitude": 42.203323,
        "branchLongitude": -71.027251,
        "distance": 14.108
      },
      {
        "branchId": 13,
        "branchCd": "BRNC13",
        "description": "BRANCH 13 - DESCRIPTION",
        "brandName": "BRANCH 13 - BRAND NAME",
        "address1": "BRANCH13 - ADDRESS TEST",
        "city": "City13",
        "state": "MA",
        "zip": "01234",
        "phone": "123-456-7890",
        "branchManagerName": null,
        "branchManagerEmailAddress": null,
        "branchLatitude": 42.00472,
        "branchLongitude": -71.30365,
        "distance": 15.5836
      }
    ]
  }
]
Modified at 2025-09-25 13:28:25
Previous
Validate Customer
Next
Ship to Address
Built with