In case of success (status 200) the following fields are returned
ParcelNo: The DPD generated ID. This will be used for further references to this shipment.
YourInternalID: The same ID that was provided for the request
TimeStamp: an informational time stamp when the request was processed
LabelData: this is a blob response. It contains the actual label in PDF format and can directly be used for further processing. E.g. “brixxApi.printBlob(LabelPDF);”
In case of error (status 400) the following fields are returned:
TimeStamp: an informational time stamp when the request was processed
ErrorDataList: an array with detailed information what went wrong. Every error will show the following fields
ErrorID: an internal error no
ErrorCode: an internal error code
ErrorMsgShort: Error information short version
ErrorMsgLong: Error information long version
Example Usages
/*----------------------------------------------------------------------------------------------/This example is minimalistic and will create a sample label. /You need to check which fields are relevant for your process and assign the values accordingly./----------------------------------------------------------------------------------------------*/var result =awaitbrixxApi.businessBrixx({ functionName:"DPDShipping", methodName:"CreateShipment", ShipAddress : { Company:'Mustermann AG', Name:'Max Mustermann', Street:'Wailandtstr.', HouseNo:'1', ZipCode:'63741', City:'Aschaffenburg', Country:'DEU' }, ParcelData : { Reference1:'Customer email', Content:'Order number', Weight:'13.5' } });console.log("Parcel Number: "+result.ParcelNo)brixxApi.printBlob(result.LabelData);/*----------------------------------------------------------------------------------------------/This example uses all fields/You need to check which fields are relevant for your process and assign the values accordingly./----------------------------------------------------------------------------------------------*/var result =awaitbrixxApi.businessBrixx({ functionName:"DPDShipping", methodName:"CreateShipment", OrderSettings : { language:'de_DE', LabelSize :'PDF_A4', LabelStartPosition :'UpperLeft', ShipDate :app.getFieldValue("SomeFieldValue") }, ShipAddress : { Company:app.getFieldValue("SomeFieldValue"), Gender:app.getFieldValue("SomeFieldValue"), Salutation:app.getFieldValue("SomeFieldValue"), FirstName:app.getFieldValue("SomeFieldValue"), LastName:app.getFieldValue("SomeFieldValue"), Name:app.getFieldValue("SomeFieldValue"), Street:app.getFieldValue("SomeFieldValue"), HouseNo:app.getFieldValue("SomeFieldValue"), ZipCode:app.getFieldValue("SomeFieldValue"), City:app.getFieldValue("SomeFieldValue"), Country:app.getFieldValue("SomeFieldValue"), State:'', Phone:app.getFieldValue("SomeFieldValue"), Mail:app.getFieldValue("SomeFieldValue") }, ParcelData : { Reference1:app.getFieldValue("SomeFieldValue"), Reference2:app.getFieldValue("SomeFieldValue"), Content:app.getFieldValue("SomeFieldValue"), Weight:app.getFieldValue("SomeFieldValue"), YourInternalID:app.getFieldValue("SomeFieldValue"), ShipService:app.getFieldValue("SomeFieldValue") } });console.log("Parcel Number: "+result.ParcelNo)brixxApi.printBlob(result.LabelData);