IntegService API Guide

IntegService is the REST service that shares data from SGO, DBHSOFT's sales and distribution software, with external systems. Your ERP, accounting or e-commerce system uses it to pull slips and invoices, create orders, and read or write customer, payment, product, price and stock data.

Every method works the same way: first get a token with your user name and password, then send that token in the Authorization header of every request. What you can see depends on the permissions set up for your account (method role, distributor, slip type, balance). Requests and responses are JSON.

If you are new, read Overview, Authentication and Permissions in that order, then go to the page of the method you need. Each method page lists the address, the request fields (required ones are marked), a sample request and a sample response.

Contents

Overview

What the service does, address prefixes, test/live environments and the common response envelope.

1. Authentication (getting a token)

Getting a 30-day token with user name and password, and sending it with requests.

2. Permissions

Method role, distributor, slip type and balance permissions, which decide what data you see.

3. Slip export request

Exporting slips by date range and filters with getinv: request fields and what is required.

4. Example requests

Ready-to-use curl and JSON samples for getting a token and exporting slips.

5. Response structure

Field-by-field description of slips, customers, items and discounts in the export response.

6. Error codes and common situations

HTTP status codes, error messages and fixes for common problems.

7. Invoices and orders

Reading, creating, revising, cancelling slips and orders, and checking their status.

8. Customers, reports and properties

Customer cards, adding/updating customers, account statement report and property lists.

9. Payments

Reading and writing collections, payments, service invoices and balance adjustments.

10. Products

Product card, unit, price, property, translation and suggested order methods.

11. Stocks and token check

Warehouse and distributor stock, past stock report and token validity check.


DBHSOFT · IntegService API Guide · Version 1.0