SRS Integration Partner Services
HomeV1 APIsV2 APIs
HomeV1 APIsV2 APIs
  1. Authentication
  • 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. Authentication

Token

POST
/Authentication/token
warning-icon.png
PLEASE DO NOT SHARE YOUR CREDENTIALS WITH YOUR CUSTOMERS
Authorize API generates beaerer token which needs to be passed to all the APIs

Request

Header Params

Body Params application/x-www-form-urlencoded

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 POST 'https://services-qa.roofhub.pro/Authentication/token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret=' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=ALL'

Responses

🟢200Success
application/json
Body

Example
{
    "token_type": "string",
    "expires_in": "int32",
    "ext_expires_in": "int32",
    "access_token": "string"
}
Modified at 2025-09-26 15:38:09
Previous
Authentication
Next
Delivery Details
Built with