GEM-SUITE - API
  • Introduction
  • API Reference
    • Authentication
    • Resources
      • Company
      • Branches
      • Clients
        • Contacts
      • Providers
      • Resources
      • Products
      • Projects
        • Tasks
      • Reminders
      • Bookings
        • Stops
        • Actions
      • Documents
      • Transactions
      • Categories
      • Sales
        • Payments
        • Products
        • Departments
        • Documents
      • Purchases
        • Products
        • Documents
      • Vehicles
        • Brands
        • Models
      • Agenda
        • Appointments
        • Displays
        • Bays
        • Workflows
    • Objects
      • Branch
      • Client
      • Provider
      • Product
      • Project
        • Task
      • Booking
        • Stop
        • Action
      • Transaction
      • Sale
        • Product
      • Agenda
        • Appointment
        • Display
        • Bay
        • Workflow
  • Batch Calls
Powered by GitBook
On this page
  • List all departments
  • Retrieve a specific department
  1. API Reference
  2. Resources
  3. Sales

Departments

This page includes all endpoints available for departments of Logiciel Actif.

List all departments

GET https://app.gem-books.com/api/departments

This endpoint allows you to get the list of your departments. .

Headers

Name
Type
Description

Authentication*

string

Bearer Token

Accept

string

Should be application/json

{
    "data": [
        {
            "id": 3,
            "branch_id": 1,
            "name": "Pneus",
            "categories": "15",
            "use_default": 0,
            "system_id": 999999
        },
        {
            "id": 2,
            "branch_id": 1,
            "name": "Mécanique",
            "categories": null,
            "use_default": 0,
            "system_id": 999999
        },
        {
            "id": 1,
            "branch_id": 1,
            "name": "Comptoir",
            "categories": null,
            "use_default": 1,
            "system_id": 999999
        }
    ],
    "meta": {
        "current_page": 1,
        "last_page": 1,
        "per_page": 500,
        "total": 3
    },
    "success": true
}

Retrieve a specific department

GET https://app.gem-books.com/api/departments/:id

This endpoint allows you to get one specific department.

Path Parameters

Name
Type
Description

id

integer

The ID of the department to retrieve.

Headers

Name
Type
Description

Authentication*

string

Bearer Token

Accept

string

Should be application/json

{
    "data": [
        {
            "id": 2,
            "branch_id": 1,
            "name": "Mécanique",
            "categories": null,
            "use_default": 0,
            "system_id": 999999
        }
    ],
    "success": true
}

PreviousProductsNextDocuments

Last updated 22 days ago