Loading...
CreateShipment → Creates a DHL Shipping Label.
GetLabel → Shows the shipment Label again.
Creates a DHL Shipping Label.
If shipService is omitted the default value ""V01PAK" will be set.
let result = await brixxApi.businessBrixx({ functionName:"DhlShiping", methodName: "CreateShipment", weightInKG: "4", lengthInCM: "20", heightInCM: "20", widthInCM: "10", shipService: "V01PAK", recipientEmailAddress: "info@acme.com", senderAddress:{ name1: app.getFieldValue("cordCompanyId.cusName"), streetName: app.getFieldValue("cordCompanyId.cusStreet"), streetNumber: app.getFieldValue("cordCompanyId.cusStreetNumber"), zip: app.getFieldValue("cordCompanyId.cusZip"), city: app.getFieldValue("cordCompanyId.cusCity"), countryCode: "DE", }, receiverAddress:{ name1: app.getFieldValue("cordCustomerId.cusName"), streetName: app.getFieldValue("cordCustomerId.cusStreet"), streetNumber: app.getFieldValue("cordCustomerId.cusStreetNumber"), zip: app.getFieldValue("cordCustomerId.cusZip"), city:app.getFieldValue("cordCustomerId.cusCity"), countryCode: "DE", }, }); console.log("Shipment Number: " + result.shipmentNumber) window.open(result.labelUrl, "_blank");
Shows the shipment Label again.
let result = await brixxApi.businessBrixx({ functionName:"DhlShiping", methodName: "GetLabel", shipmentNumber: app.getFieldValue("cordShipmentNumber") }); window.open(result.labelUrl, "_blank");