Goods

Get all goods

Method : GET
Endpoint : /api/goods

{
	"results": [
		...
		{
			"GOOD_ID": 3,
			"SUBGROUP_ID": 2,
			"MEASURE_ID": 5,
			"CODE1": "",
			"CODE2": "",
			"CODE3": "",
			"CODE4": "",
			"CODE5": "",
			"WEB_ORDER": 42,
			"PRICE_TYPE": "C",
			"GOOD_SELL_PRICE": "123",
			"PROFIT_PERCENT": "0",
			"STOCK_MIN": 3,
			"IS_AKCIJA": true,
			"DISCOUNT_PERCENT": "0.000000",
			"NEW_PRODUCT": false,
			"IS_REVERSE_VAT": null,
			"WEB_ORDER_STEP": null,
			"WEB_ORDER_MIN": null,
			"MANUFACTURER_ID": null,
			"POPULAR_ITEM": false,
			"ONLY_REGISTERED_USERS": false,
			"SIZE": "",
			"MAIN_GOOD": false,
			"IN_STOCK": "0.000000",
			"IS_SPLITABLE": false,
			"CAN_ORDER": false,
			"REVERSE_VAT_TYPE": null,
			"PVN_RATE": 21,
			"files": [],
			"WEB_VISIBLE": false,
			"content": [
				{
					"GOOD_ID": 3,
					"LANG_ID": 1,
					"TITLE": "Preces nosaukums",
					"WEB_TITLE": null,
					"WEB_ID": "preces-nosaukums",
					"DESCRIPTION": null,
					"META_KEYWORDS": null,
					"META_DESCRIPTION": null
				}
			],
			"duplicates": [],
			"stock_amount": [],
			"params": [],
			"images": [],
			"prices": [],
			"measure": {
				"MEASURE_ID": 1,
				"DEFAULT_NAME": "gab",
				"SORT_ORDER": null,
				"ASK_FOR_AMOUNT": false
			},
			"packaging": [],
			"web_visible": [],
			"client_prices": []
		}
		...
	],
	"total": 123,
	"count": 100,
	"offset": 0,
	"next": "/goods?offset=100"
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

TIP

The request returns 100 goods by default. In order to get the next 100 goods you have to pass the offset parameter as seen below:

https://<yourdomain>/api/goods?token=<your_token>&offset=100

URL to the next page is also returned at the end of each request under the next key. You can use it to loop through and get all goods.

Get only changed goods

Method : GET
Endpoint : /api/goods/changes

TIP

Returns changed goods by default within the last hour or specified timestamp (if date is specified). Example:

https://<yourdomain>/api/goods/changes?token=<your_token>&date=1672527661

Get single good

Method : GET
Endpoint : /api/goods/{id}

{
	"GOOD_ID": 3,
	"SUBGROUP_ID": 2,
	"MEASURE_ID": 5,
	"CODE1": "",
	"CODE2": "",
	"CODE3": "",
	"CODE4": "",
	"CODE5": "",
	"WEB_ORDER": 42,
	"PRICE_TYPE": "C",
	"GOOD_SELL_PRICE": "123",
	"PROFIT_PERCENT": "0",
	"STOCK_MIN": 3,
	"IS_AKCIJA": true,
	"DISCOUNT_PERCENT": "0.000000",
	"NEW_PRODUCT": false,
	"IS_REVERSE_VAT": null,
	"WEB_ORDER_STEP": null,
	"WEB_ORDER_MIN": null,
	"MANUFACTURER_ID": null,
	"POPULAR_ITEM": false,
	"ONLY_REGISTERED_USERS": false,
	"SIZE": "",
	"MAIN_GOOD": false,
	"IN_STOCK": "0.000000",
	"IS_SPLITABLE": false,
	"CAN_ORDER": false,
	"REVERSE_VAT_TYPE": null,
	"PVN_RATE": 21,
	"files": [],
	"WEB_VISIBLE": false,
	"content": [
		{
			"GOOD_ID": 3,
			"LANG_ID": 1,
			"TITLE": "Preces nosaukums",
			"WEB_TITLE": null,
			"WEB_ID": "preces-nosaukums",
			"DESCRIPTION": null,
			"META_KEYWORDS": null,
			"META_DESCRIPTION": null
		}
	],
	"duplicates": [],
	"stock_amount": [],
	"params": [],
	"images": [],
	"prices": [],
	"measure": {
		"MEASURE_ID": 1,
		"DEFAULT_NAME": "gab",
		"SORT_ORDER": null,
		"ASK_FOR_AMOUNT": false
	},
	"packaging": [],
	"web_visible": [],
	"client_prices": []
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

Insert a good

Method : POST
Endpoint /api/goods

FieldTypeRequired
SUBGROUP_IDInteger,Id
MEASUREString
CODE1Integer,Id
CODE2Integer,Id
CODE3Integer,Id
CODE4Integer,Id
CODE5Integer,Id
WEB_ORDERInteger
PRICE_TYPEInteger
GOOD_SELL_PRICEInteger
PROFIT_PERCENTInteger
STOCK_MINInteger
IS_AKCIJAInteger
DISCOUNT_PERCENTInteger
NEW_PRODUCTInteger
IS_REVERSE_VATInteger
WEB_ORDER_STEPInteger
WEB_ORDER_MINInteger
MANUFACTURER_IDInteger
POPULAR_ITEMInteger
ONLY_REGISTERED_USERSInteger
SIZEInteger
MAIN_GOODInteger
IN_STOCKInteger
IS_SPLITABLEInteger
CAN_ORDERInteger
REVERSE_VAT_TYPEInteger
PVN_RATEInteger
contentObject
content@LANG_IDInteger,Id
content@TITLEString
content@DESCRIPTIONText
content@META_KEYWORDSText
content@META_DESCRIPTIONText
duplicatesObject
duplicates@SUBGROUP_IDInteger,Id
duplicates@CODEString
paramsObject
params@PARAM_IDInteger,Id
params@LANG_IDInteger,Id
params@PARAM_VALUEString
web_visibleObject
web_visible@ETRADER_SITE_IDInteger,Id

Example

{
	"SUBGROUP_ID": 2,
	"MEASURE": "gab.",
	"CODE1": "TEST",
	"CODE2": "",
	"CODE3": "",
	"CODE4": "",
	"CODE5": "",
	"WEB_ORDER": 42,
	"PRICE_TYPE": "C",
	"GOOD_SELL_PRICE": "123",
	"PROFIT_PERCENT": "0",
	"STOCK_MIN": 3,
	"IS_AKCIJA": true,
	"DISCOUNT_PERCENT": "0.000000",
	"NEW_PRODUCT": false,
	"IS_REVERSE_VAT": null,
	"WEB_ORDER_STEP": null,
	"WEB_ORDER_MIN": null,
	"MANUFACTURER_ID": null,
	"POPULAR_ITEM": false,
	"ONLY_REGISTERED_USERS": false,
	"SIZE": "",
	"MAIN_GOOD": false,
	"IN_STOCK": "0.000000",
	"IS_SPLITABLE": false,
	"CAN_ORDER": false,
	"REVERSE_VAT_TYPE": null,
	"PVN_RATE": 21,
	"content": [
		{
			"GOOD_ID": 3,
			"LANG_ID": 1,
			"TITLE": "Preces nosaukums",
			"WEB_TITLE": null,
			"WEB_ID": "preces-nosaukums",
			"DESCRIPTION": null,
			"META_KEYWORDS": null,
			"META_DESCRIPTION": null
		}
	],
	"duplicates": [],
	"params": [],
	"web_visible": []
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

Update good

Method : PUT
Endpoint /api/goods/{id}

{
	"SUBGROUP_ID": 2,
	"MEASURE": "gab.",
	"CODE1": "TEST",
	"CODE2": "",
	"CODE3": "",
	"CODE4": "",
	"CODE5": "",
	"WEB_ORDER": 42,
	"PRICE_TYPE": "C",
	"GOOD_SELL_PRICE": "123",
	"PROFIT_PERCENT": "0",
	"STOCK_MIN": 3,
	"IS_AKCIJA": true,
	"DISCOUNT_PERCENT": "0.000000",
	"NEW_PRODUCT": false,
	"IS_REVERSE_VAT": null,
	"WEB_ORDER_STEP": null,
	"WEB_ORDER_MIN": null,
	"MANUFACTURER_ID": null,
	"POPULAR_ITEM": false,
	"ONLY_REGISTERED_USERS": false,
	"SIZE": "",
	"MAIN_GOOD": false,
	"IN_STOCK": "0.000000",
	"IS_SPLITABLE": false,
	"CAN_ORDER": false,
	"REVERSE_VAT_TYPE": null,
	"PVN_RATE": 21,
	"content": [
		{
			"GOOD_ID": 3,
			"LANG_ID": 1,
			"TITLE": "Preces nosaukums",
			"WEB_TITLE": null,
			"WEB_ID": "preces-nosaukums",
			"DESCRIPTION": null,
			"META_KEYWORDS": null,
			"META_DESCRIPTION": null
		}
	],
	"duplicates": [],
	"params": [],
	"web_visible": []
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Last Updated: 9/21/2023, 10:57:38 PM
Contributors: Daniels, roberts