Acdata through API

Hi good day
I am trying to use parameter acdata through the API
to set the correct weight of our fleet but the problem
weight limitation is not passed through the API when I
checked the generated flight plan in the simbrief website I can see in the Custom Aircraft Data only this sign {

and the code was copied from the fourm so I think there is no issue with the code

<input type="hidden" name="acdata" value="{"cat":"H","equip":"SDE3FGHIRWY","transponder":"LB1","pbn":"PBN\/A1B1C1D1",
"extrarmk":"DAT\/V RVR\/250 RMK\/EXAMPLE","maxpax":"290","oew":128850,"mzfw":181000,
"mtow":254011,"mlw":193000,"maxfuel":90857,"hexcode":"123ABC","per":"D","paxwgt":175,"bagwgt":55}">

please if you know the correct way to call the API for acdata please let me know

Hi,

The weights in the acdata parameter need to be in thousands of pounds. So, instead of "mtow":254011, you should use "mtow":254.011 (note the added decimal). This is assuming your original number was in pounds, if your original number is in kg, you’ll need to multiply it by 2.20462 as well.

Best regards,

Hi, I did the change from kg to lbs by mulitply 2.20462 and when I submit the request to simbrief there is no change accroding to the Acdata check below image .


only this sign { with red color.

in my website the acdata is

<input type="hidden" name="acdata" value="{"pbn":"PBN\/A1B1C1D1",
"extrarmk":"DAT\/V RVR\/250 RMK\/ACDATA","maxpax":"180","oew":89507.572,"mzfw":141757.066,
"mtow":174164.98,"mlw":148591.388,"maxfuel":41056.63826,"hexcode":"123ABC","per":"D","paxwgt":175,"bagwgt":55}">

The weights in the acdata parameter need to be in thousands of pounds. So, instead of "mtow":254011 , you should use "mtow":254.011 (note the added decimal). This is assuming your original number was in pounds, if your original number is in kg, you’ll need to multiply it by 2.20462 as well.

Added emphasis. You only did half of what was required :wink:

Regards,

Tim

Also, you need to properly escape the quotation marks inside the JSON string. So, correcting your example with thousands of pounds and properly escaped quotation marks, gives the following:

<input type="hidden" name="acdata" value="{&quot;pbn&quot;:&quot;PBN\/A1B1C1D1&quot;,&quot;extrarmk&quot;:&quot;DAT\/V RVR\/250 RMK\/ACDATA&quot;,&quot;maxpax&quot;:&quot;180&quot;,&quot;oew&quot;:89.508,&quot;mzfw&quot;:141.757,&quot;mtow&quot;:174.165,&quot;mlw&quot;:148.591,&quot;maxfuel&quot;:41.057,&quot;hexcode&quot;:&quot;123ABC&quot;,&quot;per&quot;:&quot;D&quot;,&quot;paxwgt&quot;:175,&quot;bagwgt&quot;:55}">

Alernatively, I think using single quotes might also work. Haven’t tested it though. For example:

<input type="hidden" name="acdata" value="{'pbn':'PBN\/A1B1C1D1','extrarmk':'DAT\/V RVR\/250 RMK\/ACDATA','maxpax':'180','oew':89.508,'mzfw':141.757,'mtow':174.165,'mlw':148.591,'maxfuel':41.057,'hexcode':'123ABC','per':'D','paxwgt':175,'bagwgt':55}">

Best regards,