I am currently working on integrating two scripts - a Prestashop DHL label creator and our company's internal sales application. The goal is to streamline the process of generating DHL labels directly from our sales application without the need to access the shop's admin panel. However, I have encountered an issue that lies at the core of this integration. The Prestashop DHL module sends a POST request with parameters structured like this:
Receiver:Address:HouseNumber: #value
On the other hand, our internal sales app sends a POST request with parameters formatted as follows:
Receiver[Address][HouseNumber]: #value
My question may seem trivial, but what exactly is the difference between these formats?
Below is the snippet of code responsible for generating the POST in our application:
function generateDHLLabel()
{
jQuery.post("prestashop_link", {
DhlShipmentId:'',
DhlOrderId :'',
DhlShipmentCreationDateTime:'',
ShipmentPreset:{ldelim}ShipmentPresetId : 1{rdelim},
ServiceType: 'AH',
DropOffType: 'REGULAR_PICKUP',
LabelType: 'BLP',
<!-- Code continues... -->