Get started
API Endpoint
https://api.tus-appli.com/
The tus-appli API provides programmatic access to read customer data. Retrieve tarnsactions,filter them and provide an auth connexion.
get costumer info
# Here is a curl example
curl \
-X POST http://api.tus-appli.com/customer_info.php \
-F 'secret_key=your_api_key' \
-F 'code=customer_code'
To get custumer infos you need to make a POST call to the following
url :
http://api.tus-appli.com/customer_info.php
Result example :
{
"No": "C0001",
"Name": "STS NETWORKS",
"Matricule": "0764398J/A/M/000",
"commercial": "HAMMOUDA",
"telephone": "71 690 118/22270770 /25 270666",
"E_Mail": "",
"Contact": "STS NETWORKS",
"Address": "61,BVD DE L'UMA CENTRE NESRINE ESC. 2"
}
QUERY PARAMETERS
| Field | Type | Description |
|---|---|---|
| secret_key | String | Your API key. |
| customer_no | String | search word to find customer by code. |
get all costumer transactions
# Here is a curl example
curl \
-X POST http://api.tus-appli.com/transactions.php \
-F 'secret_key=your_api_key' \
-F 'code=customer_code'
To get custumer transactions you need to make a POST call to the
following url :
http://api.tus-appli.com/transactions.php
Result example :
{
"draw": 1,
"recordsTotal": 739,
"recordsFiltered": 739,
"data": [
[
"2017-03-15",
"Invoice",
"FC17/02373",
"363.94",
"363.94",
"2017-05-14"
],
[
"2017-03-24",
"Invoice",
"FC17/02644",
"1454.26",
"1454.26",
"2017-05-23"
],
[
"2017-04-04",
"Invoice",
"FC17/02884",
"530.084",
"530.084",
"2017-06-03"
],
[
"2017-04-04",
"Invoice",
"FC17/02885",
"649.5",
"649.5",
"2017-06-03"
],
[
"2017-04-04",
"Invoice",
"FC17/02886",
"260.1",
"260.1",
"2017-06-03"
],
[
"2017-04-04",
"Invoice",
"FC17/02910",
"1558.1",
"1558.1",
"2017-06-03"
],
....
QUERY PARAMETERS
| Field | Type | Description |
|---|---|---|
| secret_key | String | Your API key. |
| customer_no | String | search word to find customer by code. |
get filtred costumer transactions
# Here is a curl example
curl \
-X POST http://api.tus-appli.com/transactions.php \
-F 'secret_key=your_api_key' \
-F 'code=customer_code' \
-F 'start=start date' \
-F 'end=end date' \
To get custumer transactions you need to make a POST call to the
following url :
http://api.tus-appli.com/transactions.php
Result example :
QUERY PARAMETERS
| Field | Type | Description |
|---|---|---|
| secret_key | String | Your API key. |
| customer_no | String | search word to find customer by code. |
| start | String | start date of transactions . |
| end | String | end date of transactions . |
get customer echantillon
# Here is a curl example
curl \
-X POST http://api.tus-appli.com/echantillon.php \
-F 'secret_key=your_api_key' \
-F 'code=customer_code'
To get custumer transactions you need to make a POST call to the
following url :
http://api.tus-appli.com/echantillon.php
Result example :
{
"Key":"12;IAAAAACHH8Yh9;3625693800;",
"Posting_Date":"2021-06-04",
"Entry_Type":"Transfer",
"Document_Type":"Transfer_Receipt",
"Document_No":"OT-0008648",
"Document_Line_No":10000,
"Item_No":"PROFACE X TD",
"Item_Status":"Released",
"Customer_No":"C1020",
"Customer_Name":"STE LBM SECURITY ET SERVICES",
"Global_Dimension_1_Code":"ACFACE",
"Global_Dimension_2_Code":"ZKTECO",
"Expiration_Date":"0001-01-01",
"Serial_No":"CKJP202460084",
"Lot_No":"ACHAT091",
"Location_Code":"CLT_PRET",
"Quantity":"1",
"Invoiced_Quantity":"1"
,"Remaining_Quantity":"1",
"Shipped_Qty_Not_Returned":"0",
"Reserved_Quantity":"0",
"Qty_per_Unit_of_Measure":"1",
"Sales_Amount_Expected":"0",
"Sales_Amount_Actual":"0",
"Purchase_Amount_Expected":"0",
"Purchase_Amount_Actual":"0",
"Cost_Amount_Expected":"0",
"Cost_Amount_Actual":"2155.551",
"Partial_Cost_Amount_Actual":"2155.551",
"Cost_Amount_Non_Invtbl":"0",
"Cost_Amount_Expected_ACY":"0",
"Cost_Amount_Actual_ACY":"0",
"Cost_Amount_Non_Invtbl_ACY":"0",
"Completely_Invoiced":true,
"Open":true,
"Drop_Shipment":false,
"Assemble_to_Order":false,
"Applied_Entry_to_Adjust":false,
"Order_Type":"Transfer",
"Order_No":"OT20-02565",
"Order_Line_No":10000,
"Prod_Order_Comp_Line_No":0,
"Entry_No":2213407,
"Dimension_Set_ID":31038
}
QUERY PARAMETERS
| Field | Type | Description |
|---|---|---|
| secret_key | String | Your API key. |
| customer_no | String | search word to find customer by code. |
Errors
The tus-appli API uses the following error codes:
| Error Code | Meaning |
|---|---|
| X000 | Some parameters are missing. This error appears when you don't pass every mandatory parameters. |
| X001 |
Unknown or unvalid secret_key.
This error appears if you use an unknow API key or if your API
key expired.
|
| X002 |
Unvalid secret_key for this
domain. This error appears if you use an API key non specified
for your domain. Developper or Universal API keys doesn't have
domain checker.
|
| X003 |
Unknown or unvalid user token.
This error appears if you use an unknow user
token or if the user
token expired.
|