API Passenger/Cargo load problem

Hi,

Sending in “0” (zero) passengers and freight via API triggers an AUTO load. I checked API docs but found nothing new to force the system to use nil pax/freight load.

As an example, in my implementation when certain flight types are selected (like Positioning or Technical Test), pax and cargo fields are set to “0” (zero) automatically, for other types I do generate loads internally and send them.

This was working before when I tested back in time, did something changed? Do we need to send in “NONE” to achieve expected results.

Thanks in advance, safe flights

Hi, I couldn’t reproduce this. Can you send some example URLs of flights that are not respecting 0 passengers?

Thanks,

Hi Derek,

Below you can see my pre-generation page. Pax and Cargo is 0 (zero) and the result has auto generated loads.

https://www.simbrief.com/ofp/flightplans/xml/LTAIHECA_XML_1702312126.xml

If it helps,

<request_id>87449711</request_id>
<time_generated>1702312126</time_generated>

If you are not able to re-produce, I need to dig deeper and see what is being sent via api request. Will check it tonight if I can find some time. If proper form values are not reaching your end, then it may be something blocking it on my side (maybe 0 is being mis identified somehow)

Best wishes,

That is my initial suspicion. I will check a bit more in depth tonight but in the mean time, can you copy/paste the full URL from the pop up window when you click “Generate OFP”?

Thanks,

Hi again,

I think I found and fixed it.

(https://www.simbrief.com/ofp/ofp.loader.api.php?reg=TC-GRD&type=A321&orig=LTAI&origrwy=&taxiout=7&dest=HECA&destrwy=&taxiin=6&altn=AUTO&fl=&route=&deph=19&depm=35&callsign=STW8FK&cruise=CI&civalue=AUTO&contpct=0.05%2F5&resvrule=30&stepclimbs=1&etops=0&altn_count=2&units=KGS&planformat=lido&navlog=1&tlr=1&notams=1&firnot=0&maps=detail&minfob=3.9&minfob_units=wgt&minfod=&minfod_units=wgt&melfuel=&melfuel_units=wgt&atcfuel=&atcfuel_units=wgt&wxxfuel=&wxxfuel_units=wgt&addedfuel=&addedfuel_units=wgt&addedfuel_label=opn&tankering=&tankering_units=wgt&acdata=%7B%27extrarmk%27%3A%27RVR%2F500+RMK%2FTCAS+TURKSIM+FLIGHTOPS+CS%2FMOON+STAR%27%2C%27paxwgt%27%3A185%2C+%27bagwgt%27%3A35%7D&fuelfactor=&pax=0&cargo=0&airline=2S&fltnum=978&cpt=B.+Fatih+K&steh=1&stem=35&date=11DEC2023&selcal=DS-HR&omit_sids=0&omit_stars=0&find_sidstar=R&static_id=STW978_mjJ0b7qvN0x3Qalx&apicode=02e88d010adf7505a634a04d28c83aa8&outputpage=https%3A%2F%2Fflightops.turksim.net%2Fsimbrief&timestamp=1702320485)

&pax=0&cargo=0 is there and looks like it is working.

I think 0 was being identified as false somehow in my code and it was not reaching to simbrief properly, thus it was reverting to auto (checked the api_params of my xml)

So far so good on my last tests.

Great! Thanks for the update.

Best regards,

This topic was automatically closed after 12 days. New replies are no longer allowed.