Download OpenAPI specification:
All API endpoints are under the plugin-path (baseurl).
baseurl: http://<eaiws-server>/EAIWS/plugins/oex/
Eg.: https://s1.eaiws.pcon-solutions.com/4.18.2-001/EAIWS/plugins/oex/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"
}
],
"archive": {
"name": "oex-orders_v3-0_2342_20260116-102327.zip",
"url": "https://test.eaiws.pcon-solutions.com/4.18.3-003/session-cache/ff16b05e-f395-4381-9e7b-7f226eca8c8b/cache/a9f53a84-e469-41d1-9384-f541fae8ffed/oex-orders_v3-0_2342_20260116-102327.zip"
},
"items": [
"1b0bbb5d-916f-4a60-b92e-500cc8838420",
"4071aa9f-4121-4043-a949-db80dedef907",
"29bf5739-efe6-4bd6-bca4-55a9f41255f6",
"08d85a39-522b-4aed-a66c-f946d75f0cf9",
"99441068-6bd2-413c-a11c-91b532b752b7",
"5fea76b6-0d8b-4cce-b219-6675cfc46278",
"5f3ec2ff-65d2-4523-98f1-bca7f24175f2",
"0780f459-da60-4976-888c-dae0fdf34d86",
"bbe77938-9848-42a0-9579-24839dc2765f",
"87515797-6e3b-499b-992e-1596de1c7f4b"
],
"name": "oex-orders_v3-0_2342_20260116-102327",
"obx": {
"name": "oex-orders_v3-0_2342_20260116-102327.obx",
"url": "https://test.eaiws.pcon-solutions.com/4.18.3-003/session-cache/ff16b05e-f395-4381-9e7b-7f226eca8c8b/cache/a9f53a84-e469-41d1-9384-f541fae8ffed/oex-orders_v3-0_2342_20260116-102327.obx"
},
"oex": {
"name": "oex-orders_v3-0_2342_20260116-102327.xml",
"url": "https://test.eaiws.pcon-solutions.com/4.18.3-003/session-cache/ff16b05e-f395-4381-9e7b-7f226eca8c8b/cache/a9f53a84-e469-41d1-9384-f541fae8ffed/oex-orders_v3-0_2342_20260116-102327.xml"
},
"url": "https://test.eaiws.pcon-solutions.com/4.18.3-003/session-cache/ff16b05e-f395-4381-9e7b-7f226eca8c8b/cache/a9f53a84-e469-41d1-9384-f541fae8ffed/oex-orders_v3-0_2342_20260116-102327.xml"
}
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.
Retrieves the default oex config for use with the export. See response samples. Some settings are explained below.
Valid settings for:
documentType: "ORDERS" | "QUOTES"oexVersion: "3.1" | "3.0" | "2.3"splitDocumentByManufacturers is true, manufacturerId must be suppliedexportImages must be true for images to be embedded as Base64 in the OEX else no images are exported.Addresses is an array of address objects of type AddressData:
? are optionalAddressData fields:
{
addressType: "SoldTo" | "ShipTo" | "BillTo" | "Payer" | "Carrier" | "Supplier" | "EndUser" | "InstallationCompany" | "InstallationLocation" | "Branch" | "InCharge";
addressNumber?: string;
addressId?: string;
title?: string;
name1?: string;
name2?: string;
name3?: string;
name4?: string;
street?: string;
street2?: string;
countryCode?: string;
postalCode?: string;
location?: string;
district?: string;
regionCode?: string;
poBox?: string;
taxCode?: string;
taxCodeEU?: string;
taxCodeUSA?: string;
commAddresses?: Array<CommAddress>;
contacts?: Array<ContactData>;
}
CommAddress fields:
{
value: string;
type: "Phone" | "Fax" | "Mobile" | "WWW" | "EMail";
scope: "Business" | "Private";
}
ContactData fields:
{
contactNumber?: string;
title?: string;
firstName?: string;
lastName?: string;
commAddresses?: Array<CommAddress>;
id: number;
contactType?: "Sale" | "Warehouse" | "Installer" | "Support" | "Employee" | "Client";
}
{- "additionalAgreement": null,
- "additionalTextId": "@add",
- "addresses": [ ],
- "appName": "pCon.basket Online",
- "appVersion": {
- "aMajor": "2",
- "aMinor": "14"
}, - "archiveFilename": null,
- "attachOBX": true,
- "attachOEX": true,
- "attachPDF": false,
- "calculationPurchase": true,
- "calculationSales": true,
- "clientILN": null,
- "clientNo": null,
- "commission": null,
- "conditionNo": null,
- "dealerAsSGR": false,
- "delivery": null,
- "dispatchNotes": null,
- "docNumber": null,
- "documentType": "ORDERS",
- "exportAlternativeArticles": true,
- "exportFolders": true,
- "exportImages": false,
- "exportInvisibleFeatures": true,
- "exportRoomInformation": true,
- "exportSetArticle": true,
- "exportTextArticles": true,
- "featureInARTL": false,
- "hideDiscounts": false,
- "hideHeaderDiscounts": false,
- "hidePurchaseDiscounts": false,
- "hideSalesDiscounts": false,
- "identicateUser": false,
- "ignoreITEMText": false,
- "manufacturerId": null,
- "manufacturerIds": [ ],
- "obxFilename": null,
- "oexFilename": null,
- "oexVersion": "3.0",
- "orderInfo": null,
- "orderType": null,
- "pdfFilename": null,
- "pdfLogoImage": null,
- "projectNumber": null,
- "projectUserName": null,
- "refNumber": false,
- "reporterTemplateKey": null,
- "salesGroup": null,
- "salesOrganisation": null,
- "shipToCode": null,
- "specialModelInfoTextId": "71",
- "splitDocumentByManufacturers": false,
- "structuralInformation": true,
- "useSalesOrgAsFilePrefix": false,
- "useSCOrderInfo": false,
- "useShipToCode": false,
- "vendorILN": null,
- "vendorNo": null,
- "versionInOrder": false
}Generates OEX export. This can also include an OBX, PDF etc. depending on the OEX config. See the config.json request for a sample config.
Important note about the sample request body: This is only an example. Do not use as is. Consult the OEX config and see the pCon.basket Online requests for reference. The imageOptions parameter is only shown in this example to show that it is possible to override image generation parameters. It is recommended not to send imageOptions and let the Plugin use the default cached images instead.
| 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. |
| imageOptions | Array of strings Image options to override the |
| config | object OEX config. See default oex config request for more information on config options. |
{- "sessionId": "7c57526d-d1ea-406d-8b87-f61b7263788c",
- "calculationScheme": "STDB2B_WBK",
- "preferredImageColumn": "cc080d73-88f4-4bfc-8ec1-e7e2ad30739a",
- "imageOptions": [
- "tag=default",
- "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"
], - "config": {
- "documentType": "QUOTES",
- "oexVersion": "3.1",
- "exportImages": true,
- "attachOBX": true,
- "attachOEX": true,
- "exportFolders": true,
- "attachPDF": true
}
}{- "archive": {
- "name": "oex-orders_123344_20230502-153714.zip",
}, - "items": [
- "1b0bbb5d-916f-4a60-b92e-500cc8838420",
- "29bf5739-efe6-4bd6-bca4-55a9f41255f6",
- "08d85a39-522b-4aed-a66c-f946d75f0cf9",
- "99441068-6bd2-413c-a11c-91b532b752b7",
- "5fea76b6-0d8b-4cce-b219-6675cfc46278",
- "5f3ec2ff-65d2-4523-98f1-bca7f24175f2",
- "0780f459-da60-4976-888c-dae0fdf34d86",
- "d892e976-a54f-4935-9bbd-5d880bbfc311",
- "cd20dca5-0e9f-4ed0-bd6a-0fbbf99ea5f1"
], - "name": "oex-orders_123344_20230502-153714",
- "obx": {
- "name": "oex-orders_123344_20230502-153714.obx",
}, - "oex": {
- "name": "oex-orders_123344_20230502-153714.xml",
}, - "pdf": {
- "name": "oex-orders_123344_20230502-153714.pdf",
}, - "errors": [
- {
- "additionalInformation": { },
- "cause": [
- "Some exception..."
], - "id": "item-text-error",
- "message": "Failed to get item app data!",
- "scopes": [
- "ERROR"
], - "type": "item"
}
]
}Returns the list of manufacturers that will be included in the OEX for the current project. Can be used to filter which manufacturers are exported.
| sessionId required | string uuid of the current session. |
{- "sessionId": "7c57526d-d1ea-406d-8b87-f61b7263788c"
}[- {
- "manufacturerId": "AM",
- "manufacturerName": "ASSMANN BÜROMÖBEL GMBH & CO. KG"
}, - {
- "manufacturerId": "CA",
- "manufacturerName": ""
}, - {
- "manufacturerId": "GS",
- "manufacturerName": "Sedus office furniture"
}
]fileStoragePath to plugin config in etc/plugins/oex/config.xmlitmOrgData of type POS now always exports the article list position of the original project.commons-exports API to always save the original position to item appdata.TTNE (Tax Net Total) as the reference for the TTAX line.aTaxCode (Tax Code) and aCondRef (Reference to TTNE) attributes to the TTAX line.docCalculationChanges node in item OBX.commons-exports API that caused Set-Article parts to be incorrectly removed sometimes.itmPricing values are now correctly exporting the position net value before header calculation.itmPricing values to represent final net value after header discounts and surcharges.ORDERS.-. Eg.: v3-1SuppressedErrorHandler.TopLevelNumber was missing when the view filtered out one item in the hierarchy.attachOBX option now embeds OBX directly into the oex file for each article.hdrDocNo of type QUO.vVendorArticleNo to always be set to the BASE article number.SoldTo address country and project language with the application locale as fallback.commission, additionalAgreement & dispatchNotes fields to OEXConfig.NumberFormatter instead of native NumberFormat.InCharge.pdfLogoImage to OEXConfig so that the standard-order report can have a logo.TNET for purchase calculation.manufacturers.json request initializing all article models slowing down the request.manufacturers.json request using the incorrect view after patch v1.0.1viewId, items & matchBasketItemIds from generate request.commons-exportszip, oex and obx urls to the ExportResultexportImages flag is set to true.attachPDF and reporterTemplateKey are set.manufacturerIds to OEXConfig and deprecated manufacturerIdcommons-exports nowexportSetArticle option to OEX configattachOEX parameter to OEXConfig. Defaults to true.HIDDEN_DISCOUNT lines to sales price.