Download OpenAPI specification:
All API endpoints are under the plugin-path (baseurl).
baseurl: http://<eaiws-server>/EAIWS/plugins/excel/
Eg.: https://s1.eaiws.pcon-solutions.com/4.18.2-001/EAIWS/plugins/excel/v1/export
API errors fall into two categories. Some errors will abort the request while others will be suppressed. Errors that abort will either have a json body or rarely a text response. In the case of aborted errors it is good practice to check the http error code in case of a text response. Suppressed errors are appended as a list to a successfull (eg.: http status code 200) request response.
Example of an aborted error:
{
"additionalInformation": {},
"cause": [],
"code": 422,
"id": "request-session-not-found",
"message": "No active session was found for the specified session id.",
"scopes": [],
"type": "request"
}
Example of an appended suppressed error:
{
"errors": [
{
"additionalInformation": {},
"cause": ["Some exception..."],
"id": "item-text-error",
"message": "Failed to get item app data!",
"scopes": ["ERROR"],
"type": "item"
}
],
"name": "somecustomname.xlsx",
"url": "https://www.../.../.../.../somecustomname.xlsx"
}
Suppressed errors do not have an error code and instead have one of two scopes: WARN or ERROR. A response can have multiple suppressed errors or warnings attached to it.
Generate excel project workbook.
| sessionId required | string uuid of the current session. |
| calculationScheme | string Default: "STDB2B_WBK" Scheme for the price calculation. |
| preferredImageColumn | string Default: "73bd68f4-da62-11d8-b9d6-00e081513ada" User defined image column. Used to retrieve a user defined image for an article before getting an internal image. |
| externalRefColumn | string UUID to reference the basket column that contains the external reference number |
object JSON object with the following fields: | |
| items | Array of strings Selected article UUIDs. Acts as a filter. |
| matchBasketItemIds | boolean Default: false Boolean value to match the selected items against the basket item IDs instead of view item IDs |
| viewId | string UUID of the view to use for this export. |
| imageOptions | Array of strings Image options to override the |
| filename | string Custom filename for the report. Will override default genarated filename. Valid filename examples: somecustomname.xlsx, somecustomname. The .xlsx file extension is optional. |
| hideMargins | boolean Default: false Boolean flag to hide margin calculation. Hides margins when |
| hideTaxes | boolean Default: false Boolean flag to hide tax calculation. Hides taxes when |
| hideDiscounts | boolean Default: false Hide all discounts. |
| hideHeaderDiscounts | boolean Default: false Hide header discounts. |
| hidePurchaseDiscounts | boolean Default: false Hide purchase discounts. |
| hideSalesDiscounts | boolean Default: false Hide sales discounts. |
| hideFinalTotal | boolean Default: false Boolean flag to hide final total. Hides values when |
| showVariantText | boolean Default: false Shows variant text in Report Sheet when |
| hideLineTags | Array of strings List of tags for hiding specific calculation lines that match any of the tags. |
| hideConditionTypes | Array of strings List of condition types for hiding specific calculation lines that match any of the types. |
| hideAccessMethods | Array of strings List of access methods for hiding specific calculation lines that match any of the access methods. |
{- "sessionId": "39d105c0-5254-4860-9865-935aba7cc78a",
- "calculationScheme": "STDB2B_WBK",
- "preferredImageColumn": "cc080d73-88f4-4bfc-8ec1-e7e2ad30739a",
- "externalRefColumn": "c962203c-7e83-4a2f-8060-acaa4a06c921",
- "sheetSettings": {
- "articleStartRow": 1,
- "articleStartColumn": 2,
- "calcStartRow": 2,
- "calcStartColumn": 1,
- "reportStartRow": 3,
- "reportStartColumn": 3
}, - "filename": "somecustomname.xlsx",
- "imageOptions": [
- "hideSubArticles=false",
- "zoom=2",
- "alpha=130",
- "beta=45",
- "format=JPG",
- "shadowPlane=true",
- "shadowPlane.filter=DOF",
- "shadowPlane.color=0.4 0.4 0.4",
- "ambient=0.8 0.8 0.8",
- "renderMode=PBR"
]
}{- "name": "somecustomname.xlsx",
- "errors": [
- {
- "additionalInformation": { },
- "cause": [
- "Some exception..."
], - "id": "item-text-error",
- "message": "Failed to get item app data!",
- "scopes": [
- "ERROR"
], - "type": "item"
}
]
}Generate excel management workbook.
| sessionId required | string uuid of the current session. |
| calculationScheme | string Default: "STDB2B_WBK" Scheme for the price calculation. |
| items | Array of strings Selected article UUIDs. Acts as a filter. |
| matchBasketItemIds | boolean Default: false Boolean value to match the selected items against the basket item IDs instead of view item IDs |
| viewId | string UUID of the view to use for this export. |
| filename | string Custom filename for the excel workbook. Will override default genarated filename. Valid filename examples: somecustomname.xlsx, somecustomname. The .xlsx file extension is optional. |
{- "sessionId": "62afce0a-6304-4484-8f52-780c4ae28b3e",
- "calculationScheme": "STDB2B_WBK",
- "viewId": "f6a20aef-8fe4-4fcd-9854-8701b792563f",
- "filename": "somecustomname.xlsx"
}{- "name": "somecustomname.xlsx",
- "errors": [
- {
- "additionalInformation": { },
- "cause": [
- "Some exception..."
], - "id": "item-text-error",
- "message": "Failed to get item app data!",
- "scopes": [
- "ERROR"
], - "type": "item"
}
]
}Generate excel project workbook and exports it as CSV. Results in a zip file containing Article_List.csv, Calculation_Scheme.csv, Header_Calculation.csv & Header_Data.csv.
| sessionId required | string uuid of the current session. |
| calculationScheme | string Default: "STDB2B_WBK" Scheme for the price calculation. |
| externalRefColumn | string UUID to reference the basket column that contains the external reference number |
object JSON object with the following fields: | |
| items | Array of strings Selected article UUIDs. Acts as a filter. |
| matchBasketItemIds | boolean Default: false Boolean value to match the selected items against the basket item IDs instead of view item IDs |
| viewId | string UUID of the view to use for this export. |
| filename | string Custom filename for the report. Will override default genarated filename. Valid filename examples: somecustomname.xlsx, somecustomname. The .xlsx file extension is optional. |
| hideMargins | boolean Default: false Boolean flag to hide margin calculation. Hides margins when |
| hideTaxes | boolean Default: false Boolean flag to hide tax calculation. Hides taxes when |
| hideDiscounts | boolean Default: false Hide all discounts. |
| hideHeaderDiscounts | boolean Default: false Hide header discounts. |
| hidePurchaseDiscounts | boolean Default: false Hide purchase discounts. |
| hideSalesDiscounts | boolean Default: false Hide sales discounts. |
| hideFinalTotal | boolean Default: false Boolean flag to hide final total. Hides values when |
| hideLineTags | Array of strings List of tags for hiding specific calculation lines that match any of the tags. |
| hideConditionTypes | Array of strings List of condition types for hiding specific calculation lines that match any of the types. |
| hideAccessMethods | Array of strings List of access methods for hiding specific calculation lines that match any of the access methods. |
{- "sessionId": "39d105c0-5254-4860-9865-935aba7cc78a",
- "calculationScheme": "STDB2B_WBK",
- "externalRefColumn": "c962203c-7e83-4a2f-8060-acaa4a06c921",
- "filename": "somecustomname.zip"
}{- "name": "somecustomname.zip",
- "errors": [
- {
- "additionalInformation": { },
- "cause": [
- "Some exception..."
], - "id": "item-text-error",
- "message": "Failed to get item app data!",
- "scopes": [
- "ERROR"
], - "type": "item"
}
]
}Generate article list excel sheet and exports it as CSV.
| sessionId required | string uuid of the current session. |
| calculationScheme | string Default: "STDB2B_WBK" Scheme for the price calculation. |
| externalRefColumn | string UUID to reference the basket column that contains the external reference number |
object JSON object with the following fields: | |
| items | Array of strings Selected article UUIDs. Acts as a filter. |
| matchBasketItemIds | boolean Default: false Boolean value to match the selected items against the basket item IDs instead of view item IDs |
| viewId | string UUID of the view to use for this export. |
| filename | string Custom filename for the report. Will override default genarated filename. Valid filename examples: somecustomname.xlsx, somecustomname. The .xlsx file extension is optional. |
| hideMargins | boolean Default: false Boolean flag to hide margin calculation. Hides margins when |
| hideTaxes | boolean Default: false Boolean flag to hide tax calculation. Hides taxes when |
| hideDiscounts | boolean Default: false Hide all discounts. |
| hideHeaderDiscounts | boolean Default: false Hide header discounts. |
| hidePurchaseDiscounts | boolean Default: false Hide purchase discounts. |
| hideSalesDiscounts | boolean Default: false Hide sales discounts. |
| hideFinalTotal | boolean Default: false Boolean flag to hide final total. Hides values when |
| hideLineTags | Array of strings List of tags for hiding specific calculation lines that match any of the tags. |
| hideConditionTypes | Array of strings List of condition types for hiding specific calculation lines that match any of the types. |
| hideAccessMethods | Array of strings List of access methods for hiding specific calculation lines that match any of the access methods. |
{- "sessionId": "39d105c0-5254-4860-9865-935aba7cc78a",
- "calculationScheme": "STDB2B_WBK",
- "externalRefColumn": "c962203c-7e83-4a2f-8060-acaa4a06c921",
- "filename": "somecustomname.csv"
}{- "name": "somecustomname.csv",
- "errors": [
- {
- "additionalInformation": { },
- "cause": [
- "Some exception..."
], - "id": "item-text-error",
- "message": "Failed to get item app data!",
- "scopes": [
- "ERROR"
], - "type": "item"
}
]
}Generate header calculation excel sheet and exports it as CSV.
| sessionId required | string uuid of the current session. |
| calculationScheme | string Default: "STDB2B_WBK" Scheme for the price calculation. |
| externalRefColumn | string UUID to reference the basket column that contains the external reference number |
object JSON object with the following fields: | |
| items | Array of strings Selected article UUIDs. Acts as a filter. |
| matchBasketItemIds | boolean Default: false Boolean value to match the selected items against the basket item IDs instead of view item IDs |
| viewId | string UUID of the view to use for this export. |
| filename | string Custom filename for the report. Will override default genarated filename. Valid filename examples: somecustomname.xlsx, somecustomname. The .xlsx file extension is optional. |
{- "sessionId": "39d105c0-5254-4860-9865-935aba7cc78a",
- "calculationScheme": "STDB2B_WBK",
- "externalRefColumn": "c962203c-7e83-4a2f-8060-acaa4a06c921",
- "filename": "somecustomname.csv"
}{- "name": "somecustomname.csv",
- "errors": [
- {
- "additionalInformation": { },
- "cause": [
- "Some exception..."
], - "id": "item-text-error",
- "message": "Failed to get item app data!",
- "scopes": [
- "ERROR"
], - "type": "item"
}
]
}Generate header data excel sheet and exports it as CSV.
| sessionId required | string uuid of the current session. |
| calculationScheme | string Default: "STDB2B_WBK" Scheme for the price calculation. |
| externalRefColumn | string UUID to reference the basket column that contains the external reference number |
object JSON object with the following fields: | |
| items | Array of strings Selected article UUIDs. Acts as a filter. |
| matchBasketItemIds | boolean Default: false Boolean value to match the selected items against the basket item IDs instead of view item IDs |
| viewId | string UUID of the view to use for this export. |
| filename | string Custom filename for the report. Will override default genarated filename. Valid filename examples: somecustomname.xlsx, somecustomname. The .xlsx file extension is optional. |
{- "sessionId": "39d105c0-5254-4860-9865-935aba7cc78a",
- "calculationScheme": "STDB2B_WBK",
- "externalRefColumn": "c962203c-7e83-4a2f-8060-acaa4a06c921",
- "filename": "somecustomname.csv"
}{- "name": "somecustomname.csv",
- "errors": [
- {
- "additionalInformation": { },
- "cause": [
- "Some exception..."
], - "id": "item-text-error",
- "message": "Failed to get item app data!",
- "scopes": [
- "ERROR"
], - "type": "item"
}
]
}Latin-1 to UTF-8.commons-exports API that caused Set-Article parts to be incorrectly removed sometimes.Manufacturer Overview excel workbook as a new export.showVariantText option to the excel request.SuppressedErrorHandler.en_US for labels & currency.NullPointerException when retrieving a procedure value.Currency columns for all pricing procedures of type Money.% sign for Percentage type procedures into the column header.Currency columns to header calculation sheet.SoldTo address country and project language with the application locale as fallback.Price Date column to the article list sheet.Currency column after Base Price (Amount) (BPR00 & BPR01)hideLineTags, hideConditionTypes, hideAccessMethods options to the export request