Edit Item GST Tax Group
Moves one or more items to a different GST tax group. In Logic ERP the GST tax group of an item is one of its item groups, kept at one of the 30 group levels – which level depends on your company's setup (ask your Logic ERP team). You send the level, the group, and the list of items. The group must already exist in Logic ERP; it is never created by this endpoint.
Endpoint
Address
https://your-server/api/EditItemGSTTaxGroup
Method
POST
Authorization
Basic Auth
The response and the common messages are explained in How Every API Call Works.
Request fields
Field names are matched without regard to capitals. This endpoint shares its request layout with Edit Item HSN Code and Edit Item Rates; only the fields below are read. The HSN fields (HSSerial_No, HS_Code, HS_Description, HS_Short_Desc, HS_Long_Desc, HS_Type, SION_Number, SION_Rate, Unit_of_Measurement), Reason and the rate fields in ListItems are ignored.
GST_Group_Level
number
Yes
0
The group level that holds the GST tax group, 1 to 30.
GST_Group_Name
text
One of the two
–
Name of the GST tax group, as shown in Logic ERP (Group_NameN in Get Item Master, where N is the level).
GST_Group_Short_Name
text
One of the two
–
Short name of the group (Group_Short_NameN in Get Item Master). When filled, the group is found by its short name and GST_Group_Name is not used to find it.
ListItems
list
No
empty
The items to change. See below.
ListItems – one entry per item:
ItemCode
text
One of the two
""
The item code as shown in Logic ERP (UserCode in Get Item Master). When filled, EANCode is not used.
EANCode
text
One of the two
""
The item's barcode (AddlItemCode in Get Item Master). Used only when ItemCode is empty. Other barcodes of the item (ListEANCode) are not searched.
Codes and group names are matched without regard to capitals; spaces at the end are ignored.
Rules Logic ERP applies
Finding the group: a main group (not a sub-group) at the level you sent, by short name if
GST_Group_Short_Nameis filled, otherwise by name. It must already exist; groups at other levels do not count.Any level can be changed. Logic ERP does not check that the level you send is the one your company uses for GST tax groups – a wrong level moves the items to that group at that level. Send the right level.
The whole item changes. Item groups belong to the item (item and shade), so the change applies to every item code of each item in the list – all its sizes and packs.
Each changed item is recorded in Logic ERP's master change history as re-allocated from its old group to the new one.
All items are checked, and the group is found, before anything is saved. If any item is not found, or the group is not found, nothing is saved.
Everything is saved in one go: if anything fails, no item is changed.
With an empty
ListItemsthe request answersGST Tax Group Changed Successfully...but nothing is changed.The item's modified date is not changed, so this change does not bring the item into a Get Item Master request for a period. Fetch the item by its code if you need to confirm the change.
This endpoint is covered by the same licence as creating items through the API.
Known issue – level
0is not refused. IfGST_Group_Levelis left out or sent as0, the request is not refused as out of range; it fails with… not found at horizontal level : 0instead. Always send the level,1to30.
Known issue – short name
(NIL). IfGST_Group_Short_Nameis(NIL), the request is refused withInvalid GST_Group_Name : …even when a validGST_Group_Nameis sent. Leave the short name empty when you identify the group by its name.
Known issue – an entry with no code changes an unrelated item. A
ListItemsentry with bothItemCodeandEANCodeempty is not refused: it is matched to an item that has no barcode (if there is one), and that item's group is changed. Always fillItemCode(orEANCode) in every entry.
Known issue – apostrophes in group names. A group name or short name containing an apostrophe makes the request fail with a database error. Identify such a group by a short name without an apostrophe.
Example request
Moves two items to the GST tax group GST 5% kept at level 6:
Test it
Send a request to the Logic ERP sandbox (a test company) from this page: open the block below, enter the sandbox user name and password (ask your Logic ERP support team), change the request if you like, and press Test it. This really saves in the sandbox, so use test values like the example. The example moves the test item APITEST0001 to a GST tax group that already exists in the sandbox.
Moves one or more items to a different GST tax group. In Logic ERP the GST tax group of an item is one of its item groups, kept at one of the 30 group levels – which level depends on your company's setup (ask your Logic ERP team). You send the level, the group, and the list of items. The group must already exist in Logic ERP; it is never created by this endpoint.
The user name and password of your API site.
The group level that holds the GST tax group, 1 to 30.
Name of the GST tax group, as shown in Logic ERP (Group_NameN in Get Item Master, where N is the level).
Short name of the group (Group_Short_NameN in Get Item Master). When filled, the group is found by its short name and GST_Group_Name is not used to find it.
Always HTTP 200. Check Status and Message.
true when the items were saved.
GST Tax Group Changed Successfully... when saved; otherwise the reason.
Logic ERP's internal number of the GST tax group the items were moved to.
The ID of this request. null when the request was refused by one of the checks below before anything was saved.
No login was sent.
POST /api/EditItemGSTTaxGroup HTTP/1.1
Host: demo.logicerp.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"GST_Group_Level": 30,
"GST_Group_Name": "GST APPAREL",
"GST_Group_Short_Name": "",
"ListItems": [
{
"ItemCode": "APITEST0001",
"EANCode": ""
}
]
}{
"Status": true,
"Message": "text",
"LastSavedCode": 1,
"request_ID": "text"
}Response
Status
true when the items were saved.
Message
GST Tax Group Changed Successfully... when saved; otherwise the reason.
LastSavedCode
Logic ERP's internal number of the GST tax group the items were moved to.
request_ID
The ID of this request. null when the request was refused by one of the checks below before anything was saved.
Example response
Messages you may see
GST_Group_Level always belongs between 1 to 30. Please Check
GST_Group_Level is below 0 or above 30.
Send the level, 1 to 30.
Invalid GST_Group_Name and GST_Group_Short_Name...
Both the name and the short name are empty.
Send one of them.
Invalid GST_Group_Name : … (the name you sent in place of …)
The name is (NIL) and no short name was sent, or the short name is (NIL).
Send a real group name, and leave the short name empty or real.
Invalid EAN Code : …
An item in ListItems was not found. The barcode you sent is shown in place of …; when you sent an ItemCode the message ends after the colon. Nothing was saved.
Check the item codes and barcodes.
GST_Group_Name : … not found at horizontal level : …
No main group at that level has that name (or, when you also sent a short name, that short name – the message still shows the name).
Check the group and the level in Logic ERP.
GST_Group_Short_Name : … not found at horizontal level : …
No main group at that level has that short name (sent without a name).
Check the short name and the level.
A database error (with Status: false)
A code or group name contained an apostrophe. Nothing was saved. The reason may be followed by technical detail – read the first line.
See the known issue above.