Overview
Here all available GKProact API calls are described and how to use them. APIs can read variuos data from GK proact system, can import variuos documents or other data and can preform various actions(functions) in the system without needing a user interface.
Production oder component allocation
This action can be used to allocate production order components through API.
Data must be sent using HTTP POST metod.
POST request body must contain production order data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/ItemAllocation/allocateProductionOrderComponents
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/ItemAllocation/allocateProductionOrderComponents
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version="1.0" encoding="UTF-8"?>
<in>
<documentNo>GU0000001</documentNo>
</in>
Data
- documentNo - prodcution order number for which the components should be allocated.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result/>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>ReceivedResult</result>
<errorList>
<error>Error1</error>
<error>Error2</error>
</errorList>
<warningList>
<warning>Warning1</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"documentNo": "GU0000001"}
Data
- documentNo - prodcution order number for which the components should be allocated.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status": "success",
"result": null,
"errorList": [],
"warningList": []
}
{
"status": "error",
"result": "ReceivedResult",
"errorList": [
"Error1",
"Error2"
],
"warningList": [
"Warning1"
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Changing the status of a production order
This action can be used to change status of a production order through API.
Data must be sent using HTTP POST metod.
POST request body must contain production order data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/ProductionOrder/setProductionOrderStatus
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/ProductionOrder/setProductionOrderStatus
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version="1.0" encoding="UTF-8"?>
<in>
<documentNo>GU0000001</documentNo>
<status>CONFIRMED</status>
</in>
Data
- documentNo - document number for which the status should be changed.
- status - status change to. Changing status is done be changing from the one that the document is already in to the specified one. Available statuses:
NEW
ESTIMATED
CONFIRMED
FINISHED
DONE
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result/>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>ReceivedResult</result>
<errorList>
<error>Error1</error>
<error>Error2</error>
</errorList>
<warningList>
<warning>Warning1</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"documentNo": "GU0000001", "status": "CONFIRMED"}
Data
- documentNo - document number for which the status should be changed.
- status - status change to. Changing status is done be changing from the one that the document is already in to the specified one. Available statuses:
NEW
ESTIMATED
CONFIRMED
FINISHED
DONE
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status": "success",
"result": null,
"errorList": [],
"warningList": []
}
{
"status": "error",
"result": "ReceivedResult",
"errorList": [
"Error1",
"Error2"
],
"warningList": [
"Warning1"
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Production order operation registration
Here it is possible to register operations for a production order using REST API.
Data must be sent using HTTP POST metod.
POST request body must contain production order data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/ProductionOrder/createOutput
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/ProductionOrder/createOutput
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version='1.0' encoding='UTF-8'?>
<in>
<employeeCode>CodeOfEmployee</employeeCode>
<documentNo>GU0000001</documentNo>
<itemCode>0000010</itemCode>
<itemCode2>ITEMCODE2</itemCode2>
<variantCode>UNIT</variantCode>
<quantity>100.50</quantity>
<serialNumber>SR-000001</serialNumber>
<batchNo>BAT-000001</batchNo>
<productionDate>2023-06-10</productionDate>
<expirationDate>2023-08-10</expirationDate>
<sscc>100000000000000496</sscc>
</in>
Data
- employeeCode - employee code that exists in the system, who will register an operation must be provided.
- documentNo - production order number for which the operation will be reistered.
- itemCode - production order's package for which the operation will be reistered.
- itemCode2 - alternatively item's code 2 can be used instead of the code.
- variantCode - variant of the package's item
- quantity - operation quantity (or registered quantity).
- serialNumber - serial number if item is tracked by serial number.
- batchNo - batch number if item is tracked by batch.
- productionDate - production date if production dated is entered manualy, based on the setup.
- expirationDate - expiration date if expiration date is entered manualy, based on the setup.
- sscc - SSCC code is provided if SSCC is chosen to be entered manually.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result>
<id>6841967</id>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>ReceivedResult</result>
<errorList>
<error>Error1</error>
<error>Error2</error>
</errorList>
<warningList>
<warning>Warning1</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{
"employeeCode" : "CodeOfEmployee",
"documentNo" : "GU0000001",
"itemCode" : "0000010",
"itemCode2" : "ITEMCODE2",
"variantCode" : "UNIT",
"quantity" : "100.50",
"serialNumber" : "SR-000001",
"batchNo" : "BAT-000001",
"productionDate" : "2023-06-10",
"expirationDate" : "2023-08-10",
"sscc": "100000000000000496"
}
Data
- employeeCode - employee code that exists in the system, who will register an operation must be provided.
- documentNo - production order number for which the operation will be reistered.
- itemCode - production order's package for which the operation will be reistered.
- itemCode2 - alternatively item's code 2 can be used instead of the code.
- variantCode - variant of the package's item
- quantity - operation quantity (or registered quantity).
- serialNumber - serial number if item is tracked by serial number.
- batchNo - batch number if item is tracked by batch.
- productionDate - production date if production dated is entered manualy, based on the setup.
- expirationDate - expiration date if expiration date is entered manualy, based on the setup.
- sscc - SSCC code is provided if SSCC is chosen to be entered manually.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status": "success",
"result": {
"id": 6841967
},
"errorList": [],
"warningList": []
}
{
"status": "error",
"result": "ReceivedResult",
"errorList": [
"Error1",
"Error2"
],
"warningList": [
"Warning1"
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Production order information
This inquiry can be used to fetch information about a production order and it's parts (packages, components, etc.)
Data must be sent using HTTP POST metod.
POST request body must contain production order data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/ProductionOrder/getProductionOrderData
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/ProductionOrder/getProductionOrderData
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version="1.0" encoding="UTF-8"?>
<in>
<documentNo>GU0000001</documentNo>
</in>
Data
- documentNo - production order number which information is needed to fetch.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured. In this case the data of provided production order will be present in the result.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result>
<productionOrder>
<documentNo>GU0000001</documentNo>
<productionOrderPackageList>
<productionOrderPackage>
<itemCode>0000010</itemCode>
<itemCode2>ITEMCODE2</itemCode2>
<variantCode>UNIT</variantCode>
<unitOfMeasureCode>KG</unitOfMeasureCode>
<componentTemplateList>
<componentTemplate>
<itemCode>0000030</itemCode>
<itemCode2>COMPONENT1</itemCode2>
<variantCode>BAG</variantCode>
<unitOfMeasureCode>KG</unitOfMeasureCode>
<productionOrderComponentList>
<productionOrderComponent>
<variantCode>BAG</variantCode>
<unitOfMeasureCode>KG</unitOfMeasureCode>
<quantity>15.4</quantity>
<allocatedQuantity>0</allocatedQuantity>
<consumedQuantity>13.7</consumedQuantity>
</productionOrderComponent>
</productionOrderComponentList>
</componentTemplate>
</componentTemplateList>
</productionOrderPackage>
</productionOrderPackageList>
</productionOrder>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>ReceivedResult</result>
<errorList>
<error>Error1</error>
<error>Error2</error>
</errorList>
<warningList>
<warning>Warning1</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"documentNo": "GU0000001"}
Data
- documentNo - production order number which information is needed to fetch.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured. In this case the data of provided production order will be present in the result.
{
"status": "success",
"result": {
"productionOrder": {
"documentNo": "GU0000001",
"productionOrderPackageList": [
{
"itemCode": "0000010",
"itemCode2": "ITEMCODE2",
"variantCode": "UNIT",
"unitOfMeasureCode": "KG",
"componentTemplateList": [
{
"itemCode": "0000030",
"itemCode2": "COMPONENT1",
"variantCode": "BAG",
"unitOfMeasureCode": "KG",
"productionOrderComponentList": [
{
"variantCode": "BAG",
"unitOfMeasureCode": "KG",
"quantity": "15.4",
"allocatedQuantity": "0",
"consumedQuantity": "13.7"
}
]
}
]
}
]
}
},
"errorList": [],
"warningList": []
}
{
"status": "error",
"result": "ReceivedResult",
"errorList": [
"Error1",
"Error2"
],
"warningList": [
"Warning1"
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Item availabilities by replenishment group
This inquiry allows to fetch data of item availabilities by replenishment group. Additional parameters can be provided in the post body to filter data.
Data must be sent using HTTP POST metod.
POST request body must contain production order data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/ProductionOrder/createOutput
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/ProductionOrder/createOutput
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version='1.0' encoding='UTF-8'?>
<in>
<worksheetName>CODE</worksheetName>
<warehouseCode>WHSE-1</warehouseCode>
<projectedQtyType>ALL</projectedQtyType>
<excludePlannedSupply>true</excludePlannedSupply>
<date>2023-10-10</date>
<itemList>
<item>
<itemCode>000001</itemCode>
<itemCode2>ITEM-1</itemCode2>
<variantCode>UNIT</variantCode>
</item>
</itemList>
<itemReplenishmentGroupList>
<itemReplenishmentGroup>Group-A</itemReplenishmentGroup>
<itemReplenishmentGroup>Group-B</itemReplenishmentGroup>
</itemReplenishmentGroupList>
</in>
Data
- worksheetName - which availability worksheet should be used to calculate availabilities. This is the only mandatory field.
- warehouseCode - in which warehouse the availabilities should be calculated. If not set - in all.
- projectedQtyType - which projected quantities should be displayed. Possible options:
ALL- all stock. Default setting.
SHORTAGE- only shortages.
SURPLUS- only surplus. - excludePlannedSupply - should already covered availability be shown when data is generated. Either "true" or "false" are available as inputs. (default - false)
- date - date until when the availability should be calculated. If it is not set the today date is used.
- itemList - if calculation should not be item/items specific, than the "itemList"should not be included at all.
- itemCode - specific item code.
- itemCode2 - alternatively item code 2 can be used to identify the item.
- variantCode - item variant is set.
- itemReplenishmentGroupList - If it is not needed to filter the item availabilities by a specific replenishment group the the list should not be included.
- itemReplenishmentGroup - replenishment group code.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured. In this case the data of provided production order will be present in the result.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result>
<itemAvailabilityWorksheetLineList>
<itemAvailabilityWorksheetLine>
<date>2023-09-10</date>
<warehouseCode>WHSE-1</warehouseCode>
<itemCode>0000001</itemCode>
<itemCode2>ITEM-1</itemCode2>
<variantCode>UNIT</variantCode>
<uomCode>UNIT</uomCode>
<purchaseQty>500</purchaseQty>
<salesQty>0</salesQty>
<productionQty>0</productionQty>
<componentQty>900</componentQty>
<transferShipQty>0</transferShipQty>
<transferReceiveQty>0</transferReceiveQty>
<changeQty>-300</changeQty>
<projectedQty>-300</projectedQty>
<quantityOnHands>0</quantityOnHands>
</itemAvailabilityWorksheetLine>
</itemAvailabilityWorksheetLineList>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>ReceivedResult</result>
<errorList>
<error>Error1</error>
<error>Error2</error>
</errorList>
<warningList>
<warning>Warning1</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{
"worksheetName": "CODE",
"warehouseCode": "WHSE-1",
"projectedQtyType": "ALL",
"excludePlannedSupply": "true",
"date": "2023-10-10",
"itemList": [
{"itemCode": "000001", "itemCode2": "ITEM-1", "variantCode": "UNIT"}
],
"itemReplenishmentGroupList": ["Group-A", "Group-B"]
}
Data
- worksheetName - which availability worksheet should be used to calculate availabilities. This is the only mandatory field.
- warehouseCode - in which warehouse the availabilities should be calculated. If not set - in all.
- projectedQtyType - which projected quantities should be displayed. Possible options:
ALL- all stock. Default setting.
SHORTAGE- only shortages.
SURPLUS- only surplus. - excludePlannedSupply - should already covered availability be shown when data is generated. Either "true" or "false" are available as inputs. (default - false)
- date - date until when the availability should be calculated. If it is not set the today date is used.
- itemList - if calculation should not be item/items specific, than the "itemList"should not be included at all.
- itemCode - specific item code.
- itemCode2 - alternatively item code 2 can be used to identify the item.
- variantCode - item variant is set.
- itemReplenishmentGroupList - If it is not needed to filter the item availabilities by a specific replenishment group the the list should not be included.
- itemReplenishmentGroup - replenishment group code.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured. In this case the data of provided production order will be present in the result.
{
"status": "success",
"result": { "itemAvailabilityWorksheetLineList":[
{
"date": "2023-09-10",
"warehouseCode": "WHSE-1",
"itemCode": "0000001",
"itemCode2": "ITEM-1",
"variantCode": "UNIT",
"uomCode": "UNIT",
"purchaseQty": "500",
"salesQty": "0",
"productionQty": "0",
"componentQty": "900",
"transferShipQty": "0",
"transferReceiveQty": "0",
"changeQty": "-300",
"projectedQty": "-300",
"quantityOnHands": "0"
}
]
},
"errorList": [],
"warningList": []
}
{
"status": "error",
"result": "ReceivedResult",
"errorList": [
"Error1",
"Error2"
],
"warningList": [
"Warning1"
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Sales Invoice information
This inquiry allows to fetch data of sales invoices that are in the system.
Data must be sent using HTTP POST metod.
POST request body must contain sales invoice data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/SalesInvoice/getSalesInvoiceData
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/SalesInvoice/getSalesInvoiceData
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version="1.0" encoding="UTF-8"?>
<in>
<documentNo>SF00000009</documentNo>
</in>
Data
- documentNo - sales invoice document number for which information will be fetched from the system.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured. In this case the data of provided production order will be present in the result.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result>
<documentNo>SF00000009</documentNo>
<postingDate>2023-10-04T11:36:39</postingDate>
<dueDate>2023-11-02T22:00:00</dueDate>
<amount></amount>
<vatAmount></vatAmount>
<total></total>
<currency>EUR</currency>
<type></type>
<paymentTerms>
<code>30D</code>
<description>30 dienų</description>
<companyBankAccount>
<bank>BANKAS</bank>
<swift></swift>
<iban>LT111111111111111111</iban>
</companyBankAccount>
</paymentTerms>
<billToCustomer>
<code></code>
<name></name>
<address></address>
<city></city>
<country></country>
<postalCode></postalCode>
<email></email>
<registrationNo></registrationNo>
<vatcode></vatcode>
<bankAccountList/>
</billToCustomer>
<shipToAddress>
<code></code>
<description></description>
<address></address>
<city></city>
<country></country>
<postalCode></postalCode>
<email></email>
<phoneNo></phoneNo>
<responsibleEmployee></responsibleEmployee>
<deliveryTimeInDays>0</deliveryTimeInDays>
<ediIln></ediIln>
<iVAZWarehouseID></iVAZWarehouseID>
<apm></apm>
</shipToAddress>
<salesInvoiceLineList>
<salesInvoiceLine>
<item>
<code></code>
<description></description>
</item>
<unitOfMeasure></unitOfMeasure>
<quantity></quantity>
<unitPrice></unitPrice>
<lineAmount></lineAmount>
<vatRate></vatRate>
<vatAmount></vatAmount>
<amountIncludingVat/>
<positionNo/>
<trackingDetailsList>
<trackingDetails>
<quantity></quantity>
<lineAmount></lineAmount>
<vatAmount></vatAmount>
<amountIncludingVat/>
<batchNo></batchNo>
<serialNo/>
<productionDate/>
<expirationDate></expirationDate>
</trackingDetails>
</trackingDetailsList>
</salesInvoiceLine>
</salesInvoiceLineList>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>GautasRezultatas</result>
<errorList>
<error>Klaida1</error>
<error>Klaida2</error>
</errorList>
<warningList>
<warning>Įspėjimas</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"documentNo": "SF00000009"}
Data
- documentNo - sales invoice document number for which information will be fetched from the system.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured. In this case the data of provided production order will be present in the result.
{
"status": "success",
"result": {
"documentNo": "SF00000009",
"postingDate": "2023-09-12T11:21:00",
"dueDate": "2023-09-11T21:00:00",
"amount": ,
"vatAmount": ,
"total": ,
"currency": "EUR",
"type": ,
"paymentTerms": {
"code": ,
"description": ,
"companyBankAccount": {
"bank": ,
"swift": ,
"iban":
}
},
"billToCustomer": {
"name": "",
"address": "",
"city": "",
"country": "",
"postalCode": ,
"email": ,
"registrationNo": ,
"vatcode": ,
"bankAccountList": [
]
},
"shipToAddress": {
"address": "",
"city": "",
"country": "",
"email":
},
"salesInvoiceLineList": [
{
"item": {
"code": "",
"description": ""
},
"unitOfMeasure": "",
"quantity": ,
"unitPrice": ,
"lineAmount": ,
"vatRate": ,
"vatAmount": ,
"amountIncludingVat": ,
"positionNo":
"trackingDetailsList":[
{
"quantity": 420.00000,
"lineAmount": 541.80000,
"vatAmount": 113.78000,
"amountIncludingVat": null,
"batchNo": "31.03.25/13.11",
"serialNo": null,
"productionDate": null,
"expirationDate": "2025-03-30T21:00:00"
}
]
},
]
},
"errorList": [
],
"warningList": [
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Purchase Invoice information
This inquiry allows to fetch data of sales invoices that are in the system.
Data must be sent using HTTP POST metod.
POST request body must contain data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/PurchaseInvoice/getPurchaseInvoiceData
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/PurchaseInvoice/getPurchaseInvoiceData
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version="1.0" encoding="UTF-8"?>
<in>
<documentNo>SF00000004</documentNo>
</in>
Data
- documentNo - purchase invoice document number for which information will be fetched from the system.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result>
<documentNo></documentNo>
<postingDate>2023-10-17T21:00:00</postingDate>
<dueDate/>
<amount></amount>
<vatAmount></vatAmount>
<total></total>
<currency></currency>
<type></type>
<businessPartnerVATGroup>
<code></code>
<description></description>
<vatSumType></vatSumType>
<vatGroupType></vatGroupType>
</businessPartnerVATGroup>
<paymentTerms>
<code></code>
<description></description>
<companyBankAccount>
<bank></bank>
<swift></swift>
<iban></iban>
</companyBankAccount>
</paymentTerms>
<billFromVendor>
<code></code>
<name></name>
<address></address>
<city></city>
<country></country>
<postalCode></postalCode>
<email></email>
<registrationNo></registrationNo>
<vatcode></vatcode>
<bankAccountList></bankAccountList>
</billFromVendor>
<purchaseInvoiceLineList>
<purchaseInvoiceLine>
<item>
<code></code>
<description></description>
</item>
<unitOfMeasure></unitOfMeasure>
<quantity></quantity>
<unitPrice></unitPrice>
<lineAmount></lineAmount>
<vatRate></vatRate>
<vatAmount></vatAmount>
<amountIncludingVat></amountIncludingVat>
<positionNo></positionNo>
</purchaseInvoiceLine>
</purchaseInvoiceLineList>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>GautasRezultatas</result>
<errorList>
<error>Klaida1</error>
<error>Klaida2</error>
</errorList>
<warningList>
<warning>Įspėjimas</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"documentNo": "SF00000004"}
Data
- documentNo - purchase invoice document number for which information will be fetched from the system.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status": "success",
"result": {
"documentNo": "",
"postingDate": "",
"dueDate": ,
"amount": ,
"vatAmount": ,
"total": ,
"currency": "",
"type": ,
"businessPartnerVATGroup": {
"code": "",
"description": "",
"vatSumType": ,
"vatGroupType":
},
"paymentTerms": {
"code": ,
"description": ,
"companyBankAccount": {
"bank": ,
"swift": ,
"iban":
}
},
"billFromVendor": {
"code": "",
"name": "",
"address": "",
"city": "",
"country": "",
"postalCode": "",
"email": "",
"registrationNo": "",
"vatcode": "",
"bankAccountList": [
]
},
"purchaseInvoiceLineList": [
{
"item": {
"code": "",
"description": ""
},
"unitOfMeasure": "",
"quantity": ,
"unitPrice": ,
"lineAmount": ,
"vatRate": ,
"vatAmount": ,
"amountIncludingVat": ,
"positionNo":
},
]
},
"errorList": [
],
"warningList": [
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Warehouse Entry Information
This inquiry allows to fetch data of warehouse entries that are in the system.
Data must be sent using HTTP POST metod.
POST request body must contain data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/WarehouseEntry/getWarehouseEntryData
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/WarehouseEntry/getWarehouseEntryData
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version="1.0" encoding="UTF-8"?>
<in>
<recordId>133681988</recordId>
</in>
Data
- recordId - warehouse entry database id must be provided to get it's information.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8'?>
<out>
<status>success</status>
<result>
<warehouseEntry>
<id></id>
<documentNo></documentNo>
<warehouseDocumentType></warehouseDocumentType>
<postingDate></postingDate>
<employee></employee>
<itemCode></itemCode>
<itemCode2></itemCode2>
<itemDescription></itemDescription>
<variant></variant>
<quantity></quantity>
<warehouse></warehouse>
<fullPallet></fullPalllet>
<fromLogisticUnit></fromLogisticUnit>
<toLogisticUnit></toLogisticUnit>
<fromLocation></fromLocation>
<toLocation></toLocation>
<fromZone></fromZone>
<toZone></toZone>
<fromZoneGroup></fromZoneGroup>
<toZoneGroup></toZoneGroup>
<fromBatchNo></fromBatchNo>
<toBatchNo></toBatchNo>
<fromSerialNo></fromSerialNo>
<toSerialNo></toSerialNo>
<fromExpirationDate></fromExpirationDate>
<toExpirationDate></toExpirationDate>
<fromProductionDate></fromProductionDate>
<toProductionDate></toProductionDate>
</warehouseEntry>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>GautasRezultatas</result>
<errorList>
<error>Klaida1</error>
<error>Klaida2</error>
</errorList>
<warningList>
<warning>Įspėjimas</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"recordId": 133681988}
Data
- recordId - warehouse entry database id must be provided to get it's information.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status": "success",
"result": {
"warehouseEntry": {
"id": ,
"documentNo": "",
"warehouseDocumentType": "",
"postingDate": "",
"employee": "",
"itemCode": "",
"itemCode2": "",
"itemDescription": "",
"variant": "",
"quantity": ,
"warehouse": "",
"fullPallet": ,
"fromLogisticUnit": "",
"toLogisticUnit": "",
"fromLocation": "",
"toLocation": "",
"fromZone": "",
"toZone": "",
"fromZoneGroup": ,
"toZoneGroup": ,
"fromBatchNo": "",
"toBatchNo": "",
"fromSerialNo": ,
"toSerialNo": ,
"fromExpirationDate": "",
"toExpirationDate": "",
"fromProductionDate": "",
"toProductionDate": ""
}
},
"errorList": [
],
"warningList": [
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Item Information
This inquiry allows to fetch data of warehouse entries that are in the system.
Data must be sent using HTTP POST metod.
POST request body must contain data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/Item/getItemData
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/Item/getItemData
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version="1.0" encoding="UTF-8"?>
<in>
<recordId>108347</recordId>
<code>6010052</code>
</in>
Data
- recordId - item id from the data base must be provided to get it's information.
- code - alternatively, item code can be used instead of id.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result>
<item>
<code></code>
<code2></code2>
<description></description>
<unitOfMeasure></unitOfMeasure>
<itemInventoryGroup></itemInventoryGroup>
<itemType></itemType>
<projectItem></projectItem>
<countryOfOrigin></countryOfOrigin>
<itemCategory></itemCategory>
<itemProductGroup></itemProductGroup>
<itemGroup></itemGroup>
<itemSubgroup></itemSubgroup>
<status></status>
<eanBarcode></eanBarcode>
<producerName></producerName>
<producerModel></producerModel>
<hsCode></hsCode>
<warehouseClass></warehouseClass>
<itemTrackingGroup></itemTrackingGroup>
<itemWarehousingGroup></itemWarehousingGroup>
<crushingResistanceLevel></crushingResistanceLevel>
<itemMaturity></itemMaturity>
<numberOfPackages></numberOfPackages>
<unitVolume></unitVolume>
<positionNoInSalesSet></positionNoInSalesSet>
<positionsNumberInSalesSet></positionsNumberInSalesSet>
<numberOfItemsPerPallet></numberOfItemsPerPallet>
<numberOfItemsPerPacket></numberOfItemsPerPacket>
<weightNetto></weightNetto>
<weightBrutto></weightBrutto>
<projectCode></projectCode>
<configurationKey></configurationKey>
<labelType></labelType>
<labelNumberOfCopies></labelNumberOfCopies>
<labelShowProducer></labelShowProducer>
<printProductLabelOnShipment></printProductLabelOnShipment>
<itemReplenishmentGroup></itemReplenishmentGroup>
<productionBOM></productionBOM>
<productionBOMVersion></productionBOMVersion>
<productionRoute></productionRoute>
<productionRouteVersion></productionRouteVersion>
<defaultComponentGroup></defaultComponentGroup>
<itemFamily></itemFamily>
<defaultAssemblyZone></defaultAssemblyZone>
<qualityTree></qualityTree>
<intrastatCode></intrastatCode>
<doNotUseInShipmentPick></doNotUseInShipmentPick>
<doNotCountPackageInShipment></doNotCountPackageInShipment>
<doNotCountPalletsInShipment></doNotCountPalletsInShipment>
<itemVATGroup></itemVATGroup>
<variantList>
<variant>
<code></code>
<description></description>
<barCode></barCode>
<configurationKey></configurationKey>
<countryOfOrigin></countryOfOrigin>
<standardText></standardText>
<quantityPerBaseUnitOfMeasure></quantityPerBaseUnitOfMeasure>
<baseUnitOfMeasure></baseUnitOfMeasure>
<productVariant></productVariant>
<defaultSalesUnitOfMeasure></defaultSalesUnitOfMeasure>
<defaultPurchaseUnitOfMeasure></defaultPurchaseUnitOfMeasure>
<defaultProductionUnitOfMeasure></defaultProductionUnitOfMeasure>
<defaultConsumptionUnitOfMeasure></defaultConsumptionUnitOfMeasure>
<replenishmentGroup></replenishmentGroup>
<length></length>
<width></width>
<height></height>
<cubage></cubage>
<weightNetto></weightNetto>
<weightBrutto></weightBrutto>
<area></area>
<numberOfItemsPerPallet></numberOfItemsPerPallet>
<numberOfItemsPerPacket></numberOfItemsPerPacket>
<standardCost></standardCost>
<productionBOM></productionBOM>
<productionBOMVersion></productionBOMVersion>
<productionRoute></productionRoute>
<productionRouteVersion></productionRouteVersion>
</variant>
</variantList>
<propertyList>
<property>
<itemProperty></itemProperty>
<value></value>
<quantity></quantity>
</property>
</propertyList>
<supplierList>
<supplier>
<businessPartner></businessPartner>
<active>true</active>
<itemCode></itemCode>
<itemDescription></itemDescription>
<businessPartnerRating/>
<deliveryPeriodInDays></deliveryPeriodInDays>
</supplier>
</supplierList>
<externalDescriptionList>
<externalDescription>
<businessPartner></businessPartner>
<variant></variant>
<retailChain></retailChain>
<language>lt</language>
<code></code>
<code2></code2>
<description></description>
<description2></description2>
<description3></description3>
<barcode></barcode>
<barcode2></barcode2>
<detailedDescription></detailedDescription>
</externalDescription>
</externalDescriptionList>
<conversionList>
<conversion>
<code>sw</code>
<unitOfMeasure>KG</unitOfMeasure>
<conversionCoefficient>1.00000</conversionCoefficient>
</conversion>
</conversionList>
</item>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>GautasRezultatas</result>
<errorList>
<error>Klaida1</error>
<error>Klaida2</error>
</errorList>
<warningList>
<warning>Įspėjimas</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"recordId": 108347, "code": "6010052"}
Data
- recordId - item id from the data base must be provided to get it's information.
- code - alternatively, item code can be used instead of id.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status": "success",
"result": {
"item": {
"code": "",
"code2": "",
"description": "",
"unitOfMeasure": "",
"itemInventoryGroup": "",
"itemType": ,
"projectItem": ,
"countryOfOrigin": ,
"itemCategory": ,
"itemProductGroup": ,
"itemGroup": "",
"itemSubgroup": "",
"status": ,
"eanBarcode": ,
"producerName": ,
"producerModel": ,
"hsCode": ,
"warehouseClass": ,
"itemTrackingGroup": "",
"itemWarehousingGroup": ,
"crushingResistanceLevel": ,
"itemMaturity": ,
"numberOfPackages": ,
"unitVolume": ,
"positionNoInSalesSet": ,
"positionsNumberInSalesSet": ,
"numberOfItemsPerPallet": ,
"numberOfItemsPerPacket": ,
"weightNetto": ,
"weightBrutto": ,
"projectCode": ,
"configurationKey": ,
"labelType": ,
"labelNumberOfCopies": ,
"labelShowProducer": ,
"printProductLabelOnShipment": ,
"itemReplenishmentGroup": "",
"productionBOM": ,
"productionBOMVersion": ,
"productionRoute": ,
"productionRouteVersion": ,
"defaultComponentGroup": ,
"itemFamily": ,
"defaultAssemblyZone": ,
"qualityTree": ,
"intrastatCode": ,
"doNotUseInShipmentPick": ,
"doNotCountPackageInShipment": ,
"doNotCountPalletsInShipment": ,
"itemVATGroup": "",
"variantList": [
{
"code": "",
"description": "",
"barCode": "",
"configurationKey": ,
"countryOfOrigin": ,
"standardText": ,
"quantityPerBaseUnitOfMeasure": ,
"baseUnitOfMeasure": ,
"productVariant": ,
"defaultSalesUnitOfMeasure": ,
"defaultPurchaseUnitOfMeasure": ,
"defaultProductionUnitOfMeasure": ,
"defaultConsumptionUnitOfMeasure": ,
"replenishmentGroup": ,
"length": ,
"width": ,
"height": ,
"cubage": ,
"weightNetto": ,
"weightBrutto": ,
"area": ,
"numberOfItemsPerPallet": ,
"numberOfItemsPerPacket": ,
"standardCost": ,
"productionBOM": "",
"productionBOMVersion": "",
"productionRoute": "",
"productionRouteVersion": ""
}
],
"propertyList": [
{
"itemProperty": "",
"value": "",
"quantity":
}
],
"supplierList": [
{
"businessPartner": "",
"active": ,
"itemCode": "",
"itemDescription": "",
"businessPartnerRating": ,
"deliveryPeriodInDays":
}
],
"externalDescriptionList": [
{
"businessPartner": ,
"variant": ,
"retailChain": ,
"language": "",
"code": ,
"code2": ,
"description": "",
"description2": "",
"description3": ,
"barcode": "",
"barcode2": ,
"detailedDescription":
},
{
"businessPartner": ,
"variant": ,
"retailChain": ,
"language": "",
"code": ,
"code2": ,
"description": "",
"description2": "",
"description3": ,
"barcode": "",
"barcode2": ,
"detailedDescription":
},
{
"businessPartner": ,
"variant": ,
"retailChain": ,
"language": "",
"code": ,
"code2": ,
"description": "",
"description2": "",
"description3": ,
"barcode": "",
"barcode2": ,
"detailedDescription":
}
],
"conversionList": [
{
"code": "",
"unitOfMeasure": "",
"conversionCoefficient":
}
]
}
},
"errorList": [
],
"warningList": [
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Business Partner Information
This inquiry allows to fetch data of business partners that are in the system.
Data must be sent using HTTP POST metod.
POST request body must contain data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/BusinessPartner/getBusinessPartnerData
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/BusinessPartner/getBusinessPartnerData
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version="1.0" encoding="UTF-8"?>
<in>
<recordId>216658</recordId>
<code>746</code>
</in>
Data
- recordId - business partner id from the database must be provided to get it's information.
- code - alternatively, business partner code can be used instead of id.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result>
<businessPartner>
<code></code>
<name></name>
<externalCode></externalCode>
<businessPartnerGroup></businessPartnerGroup>
<address></address>
<city></city>
<country></country>
<postalCode></postalCode>
<email></email>
<phoneNo></phoneNo>
<registrationNo></registrationNo>
<language></language>
<purchaseWarehouse></purchaseWarehouse>
<defaultPurchaseWarehouse></defaultPurchaseWarehouse>
<purchasePaymentTerms></purchasePaymentTerms>
<purchaseShipmentMethod></purchaseShipmentMethod>
<purchaseResponsibleEmployee></purchaseResponsibleEmployee>
<isVendor></isVendor>
<isCarrier></isCarrier>
<salesWarehouse></salesWarehouse>
<defaultSalesWarehouse></defaultSalesWarehouse>
<salesPaymentTerms></salesPaymentTerms>
<salesShipmentMethod></salesShipmentMethod>
<salesAccountManager></salesAccountManager>
<salesResponsibleEmployee></salesResponsibleEmployee>
<isCustomer></isCustomer>
<calculatePalletsAfterShipmentFinished></calculatePalletsAfterShipmentFinished>
<sendQualityReport></sendQualityReport>
<onlyOneExpirationDatePerItemOnLogisticUnit></onlyOneExpirationDatePerItemOnLogisticUnit>
<defaultLogisticLabel></defaultLogisticLabel>
<retailChain></retailChain>
<salesCreditLimit></salesCreditLimit>
<salesInvoiceToBusinessPartner></salesInvoiceToBusinessPartner>
<salesInvoiceDocumentNoCounter></salesInvoiceDocumentNoCounter>
<businessPartnerVATGroup></businessPartnerVATGroup>
<shipmentSalesInvoiceGrouping></shipmentSalesInvoiceGrouping>
<currency></currency>
<expirationPeriodRequirement></expirationPeriodRequirement>
<itemAllocationAlgorithm></itemAllocationAlgorithm>
<tracked></tracked>
<productionCoverageDays></productionCoverageDays>
<ediIln></ediIln>
<vatcode></vatcode>
<eoircode></eoircode>
<bankAccountList>
<bankAccount>
<code></code>
<bank></bank>
<iban></iban>
<swift></swift>
<mainAccount></mainAccount>
</bankAccount>
</bankAccountList>
<shipToAddressList>
<shipToAddress>
<code></code>
<description></description>
<address></address>
<city></city>
<country></country>
<postalCode></postalCode>
<email></email>
<phoneNo></phoneNo>
<responsibleEmployee></responsibleEmployee>
<deliveryTimeInDays></deliveryTimeInDays>
<ediIln></ediIln>
<iVAZWarehouseID></iVAZWarehouseID>
<apm></apm>
</shipToAddress>
</shipToAddressList>
</businessPartner>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>GautasRezultatas</result>
<errorList>
<error>Klaida1</error>
<error>Klaida2</error>
</errorList>
<warningList>
<warning>Įspėjimas</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"recordId": 108347, "code": "6010052"}
Data
- recordId - business partner id from the database must be provided to get it's information.
- code - alternatively, business partner code can be used instead of id.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status": "success",
"result": {
"businessPartner": {
"code": "",
"name": "",
"externalCode": ,
"businessPartnerGroup": ,
"address": "",
"city": ".",
"country": "",
"postalCode": "",
"email": "",
"phoneNo": "",
"registrationNo": "",
"language": ,
"purchaseWarehouse": "",
"defaultPurchaseWarehouse": ,
"purchasePaymentTerms": ,
"purchaseShipmentMethod": ,
"purchaseResponsibleEmployee": ,
"isVendor": ,
"isCarrier": ,
"salesWarehouse": "",
"defaultSalesWarehouse": ,
"salesPaymentTerms": ,
"salesShipmentMethod": ,
"salesAccountManager": ,
"salesResponsibleEmployee": ,
"isCustomer": ,
"calculatePalletsAfterShipmentFinished": ,
"sendQualityReport": ,
"onlyOneExpirationDatePerItemOnLogisticUnit": ,
"defaultLogisticLabel": ,
"retailChain": ,
"salesCreditLimit": ,
"salesInvoiceToBusinessPartner": ,
"salesInvoiceDocumentNoCounter": ,
"businessPartnerVATGroup": ,
"shipmentSalesInvoiceGrouping": ,
"currency": ,
"expirationPeriodRequirement": ,
"itemAllocationAlgorithm": ,
"tracked": ,
"productionCoverageDays": ,
"ediIln": ,
"vatcode": "",
"eoircode": ,
"bankAccountList": [
{
"code": "",
"bank": "",
"iban": "",
"swift": "",
"mainAccount":
}
],
"shipToAddressList": [
{
"code": "",
"description": "",
"address": "",
"city": "",
"country": "",
"postalCode": "",
"email": "",
"phoneNo": "",
"responsibleEmployee": ,
"deliveryTimeInDays": ,
"ediIln": ,
"iVAZWarehouseID": ,
"apm":
}
]
}
},
"errorList": [
],
"warningList": [
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Package Correction Information
This inquiry allows to fetch data of package corrections that are in the system.
Data must be sent using HTTP POST metod.
POST request body must contain data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/PackageCorrection/getPackageCorrectionsData
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/PackageCorrection/getPackageCorrectionsData
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<fromDate>2023-05-15</fromDate>
<toDate>2023-05-16</toDate>
</out>
-----------------------------
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<documentNo>PC0000198</documentNo>
</out>
----------------------------
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<documentId>4851112</documentId>
</out>
Data
Data
- fromDate - nurodoma nuo kokios datos yra reikalinga informacija.
- toDate - nurodoma iki kokios datos yra reikalinga informacija.
- documentNo - alternatively, specific package correction document number can be used instead of dates.
- documentId - alternatively, database id can be used instead of document number or the dates.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8'?>
<out>
<status>success</status>
<result>
<packageCorrectionList>
<packageCorrection>
<documentId></documentId>
<documentNo></documentNo>
<postingDate></postingDate>
<sscc></sscc>
<serialNo></serialNo>
<itemCode></itemCode>
<itemCode2></itemCode2>
<itemDescription></itemDescription>
<warehouse></warehouse>
<location></location>
<locationExternalDescription></locationExternalDescription>
<zone></zone>
<zoneExternalDescription></zoneExternalDescription>
<zoneGroup></zoneGroup>
<employee></employee>
<packageCorrectionReason></packageCorrectionReason>
<comment></comment>
<oldVariant></oldVariant>
<newVariant></newVariant>
<oldQuantity></oldQuantity>
<newQuantity></newQuantity>
<quantityDifference></quantityDifference>
<oldBatchNo></oldBatchNo>
<newBatchNo></newBatchNo>
<oldExpirationDate></oldExpirationDate>
<newExpirationDate></newExpirationDate>
<oldDateProduced></oldDateProduced>
<newDateProduced></newDateProduced>
<oldWeight></oldWeight>
<newWeight></newWeight>
<weightDifference></weightDifference>
<oldItemQualityStatus></oldItemQualityStatus>
<newItemQualityStatus></newItemQualityStatus>
<oldItemMaturityStage></oldItemMaturityStage>
<newItemMaturityStage></newItemMaturityStage>
</packageCorrection>
</packageCorrectionList>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>GautasRezultatas</result>
<errorList>
<error>Klaida1</error>
<error>Klaida2</error>
</errorList>
<warningList>
<warning>Įspėjimas</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"fromDate": "2023-05-15", "toDate": "2023-05-16"}
-----------------------
{"documentNo": "PC0000198"}
----------------------
{"documentId": "4851112"}
Data
- fromDate - nurodoma nuo kokios datos yra reikalinga informacija.
- toDate - nurodoma iki kokios datos yra reikalinga informacija.
- documentNo - alternatively, specific package correction document number can be used instead of dates.
- documentId - alternatively, database id can be used instead of document number or the dates.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status" : "success",
"result" : {
"packageCorrectionList" : [ {
"documentId" : ,
"documentNo" : "",
"postingDate" : "2021-12-14T04:17:32",
"sscc" : "",
"serialNo" : "",
"itemCode" : "",
"itemCode2" : "",
"itemDescription" : " “”",
"warehouse" : "SAND01",
"location" : "DC",
"locationExternalDescription" : "",
"zone" : "",
"zoneExternalDescription" : "",
"zoneGroup" : "",
"employee" : "00020",
"packageCorrectionReason" : "NURASYMAS11",
"comment" : "PAJAMAVIMO KLAIDA",
"oldVariant" : "VNT",
"newVariant" : "VNT",
"oldQuantity" : 768.00000,
"newQuantity" : 0.00000,
"quantityDifference" : -768.00000,
"oldBatchNo" : "",
"newBatchNo" : "",
"oldExpirationDate" : "2023-12-12T22:00:00",
"newExpirationDate" : "2023-12-12T22:00:00",
"oldDateProduced" : "2021-12-12T22:00:00",
"newDateProduced" : "2021-12-12T22:00:00",
"oldWeight" : 0.00000,
"newWeight" : 0.00000,
"weightDifference" : 0.00000,
"oldItemQualityStatus" : "",
"newItemQualityStatus" : "",
"oldItemMaturityStage" : "",
"newItemMaturityStage" : ""
} ]
},
"errorList" : [ ],
"warningList" : [ ]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Business Partner Ship To Adress Information
This inquiry allows to fetch data of business partner ship to adresses that are in the system.
Data must be sent using HTTP POST metod.
POST request body must contain data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/BusinessPartner/getShipToAddressData
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/BusinessPartner/getShipToAddressData
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<out>
<recordId></recordId>
</out>
Data
- recordId - business partner ship to adress id from the database must be provided to get it's information.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result>
<businessPartner>
<id></id>
<code></code>
<name></name>
</businessPartner>
<shipToAddress>
<code></code>
<description></description>
<address></address>
<city></city>
<country></country>
<postalCode></postalCode>
<email></email>
<phoneNo></phoneNo>
<responsibleEmployee></responsibleEmployee>
<deliveryTimeInDays></deliveryTimeInDays>
<ediIln></ediIln>
<iVAZWarehouseID></iVAZWarehouseID>
<apm></apm>
</shipToAddress>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>GautasRezultatas</result>
<errorList>
<error>Klaida1</error>
<error>Klaida2</error>
</errorList>
<warningList>
<warning>Įspėjimas</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"recordId": 108347}
Data
- recordId - business partner ship to adress id from the database must be provided to get it's information.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status": "success",
"result": {
"businessPartner": {
"id": "",
"code": "",
"name": "",
},
"shipToAddress": [
{
"code": "",
"description": "",
"address": "",
"city": "",
"country": "",
"postalCode": "",
"email": "",
"phoneNo": "",
"responsibleEmployee": ,
"deliveryTimeInDays": ,
"ediIln": ,
"iVAZWarehouseID": ,
"apm":
}
]
}
},
"errorList": [
],
"warningList": [
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
Variant Information
This inquiry allows to fetch data of item variants that are in the system.
Data must be sent using HTTP POST metod.
POST request body must contain data in selected format based on parameters.
URL structure if the system is deployed in client's server
http://`systemIP`:PortNumber/api/Item/getVariantData
- systemIP - server IP where the system is deployed.
- PortNumber - by default port 85 is always assigned, if the port doesnt work please ask your GK Proact consultant for the correct port number.
URL structure if the system is deployed in GK Proact server
https://api.systemAddress/api/Item/getVariantData
- systemAddress - main link to GK system. for example: goodcompany.gkproact.com
Parameters
Parameters must be set in the "header" part of the POST:
content-type- application/json or application/xml can be defined. This says in which format data will be sent XML or JSON. Examples of both types are shown below.accept- application/json or application/xml can be defined. In which format the response will be sent back. Examples of both types are shown below.
XML
Tabs
XML
<out>
<recordId>47059</recordId>
</out>
Data
- recordId - item variant id from the database must be provided to get it's information.
Response
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>success</status>
<result>
<item>
<id></id>
<code></code>
<code2></code2>
<description></description>
</item>
<variant>
<code></code>
<description></description>
<barCode></barCode>
<configurationKey></configurationKey>
<countryOfOrigin></countryOfOrigin>
<standardText></standardText>
<quantityPerBaseUnitOfMeasure></quantityPerBaseUnitOfMeasure>
<baseUnitOfMeasure></baseUnitOfMeasure>
<productVariant></productVariant>
<defaultSalesUnitOfMeasure></defaultSalesUnitOfMeasure>
<defaultPurchaseUnitOfMeasure></defaultPurchaseUnitOfMeasure>
<defaultProductionUnitOfMeasure></defaultProductionUnitOfMeasure>
<defaultConsumptionUnitOfMeasure></defaultConsumptionUnitOfMeasure>
<replenishmentGroup></replenishmentGroup>
<length></length>
<width></width>
<height></height>
<cubage></cubage>
<weightNetto></weightNetto>
<weightBrutto></weightBrutto>
<area></area>
<numberOfItemsPerPallet></numberOfItemsPerPallet>
<numberOfItemsPerPacket></numberOfItemsPerPacket>
<standardCost></standardCost>
<productionBOM></productionBOM>
<productionBOMVersion></productionBOMVersion>
<productionRoute></productionRoute>
<productionRouteVersion></productionRouteVersion>
</variant>
</result>
<errorList/>
<warningList/>
</out>
<?xml version='1.0' encoding='UTF-8' ?>
<out>
<status>error</status>
<result>GautasRezultatas</result>
<errorList>
<error>Klaida1</error>
<error>Klaida2</error>
</errorList>
<warningList>
<warning>Įspėjimas</warning>
</warningList>
</out>
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.
JSON
Tabs
JSON
{"recordId": 108347}
Data
- recordId - item variant id from the database must be provided to get it's information.
Atsakymas
Responses are always returned with 200 HTTP code (even errors). If there was an error is is sent with 200 code and a detailed description of the error, examples below. Response format depends on the "Accept" parameter. If there was a 400 or 500 response, than an unexpected error occured.
{
"status": "success",
"result": {
"item": {
"id": "",
"code": "",
"code2": "",
"description": "",
},
"variant": [
{
"code": "",
"description": "",
"barCode": "",
"configurationKey": ,
"countryOfOrigin": ,
"standardText": ,
"quantityPerBaseUnitOfMeasure": ,
"baseUnitOfMeasure": ,
"productVariant": ,
"defaultSalesUnitOfMeasure": ,
"defaultPurchaseUnitOfMeasure": ,
"defaultProductionUnitOfMeasure": ,
"defaultConsumptionUnitOfMeasure": ,
"replenishmentGroup": ,
"length": ,
"width": ,
"height": ,
"cubage": ,
"weightNetto": ,
"weightBrutto": ,
"area": ,
"numberOfItemsPerPallet": ,
"numberOfItemsPerPacket": ,
"standardCost": ,
"productionBOM": "",
"productionBOMVersion": "",
"productionRoute": "",
"productionRouteVersion": ""
}
]
}
},
"errorList": [
],
"warningList": [
]
}
- status - system returns the status how it reacted to the sent post:
success- system successfully preformed an action
error- an expected error occured and system failed to preform an action. - result - a generated result will be displayed here if there was any result generated.
- errorList - list of errors is returned if there were any.
- warningList - list of warnings is returned if there were any.