# API Passenger/Cargo load problem

**URL:** https://forum.navigraph.com/t/api-passenger-cargo-load-problem/14155
**Category:** API
**Created:** [December 10, 2023, 10:17am UTC](https://forum.navigraph.com/t/api-passenger-cargo-load-problem/14155 "2023-12-10T10:17:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fatih.koz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.navigraph.com/fatih.koz/32/4128_2.png) [@fatih.koz](https://forum.navigraph.com/u/fatih.koz)
#### Post date: [December 10, 2023, 10:17am UTC](https://forum.navigraph.com/t/api-passenger-cargo-load-problem/14155/1 "2023-12-10T10:17:16Z")

</div>

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

---

<div class="post-metadata">

### Author: ![SimBrief](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.navigraph.com/simbrief/32/4850_2.png) [@SimBrief](https://forum.navigraph.com/u/SimBrief)
#### Post date: [December 11, 2023, 5:12am UTC](https://forum.navigraph.com/t/api-passenger-cargo-load-problem/14155/2 "2023-12-11T05:12:48Z")

</div>

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

Thanks,

---

<div class="post-metadata">

### Author: ![fatih.koz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.navigraph.com/fatih.koz/32/4128_2.png) [@fatih.koz](https://forum.navigraph.com/u/fatih.koz)
#### Post date: [December 11, 2023, 4:40pm UTC](https://forum.navigraph.com/t/api-passenger-cargo-load-problem/14155/3 "2023-12-11T16:40:12Z")

</div>

Hi Derek,

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

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/navigraph1/original/3X/4/8/48230cf4cc91c6670033eee75c43ded052a89c3b.jpeg)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/navigraph1/original/3X/e/2/e205ce41519b523eb247046dbcdc951f9de52ba3.png)

[https://www.simbrief.com/ofp/flightplans/xml/LTAIHECA\_XML\_1702312126.xml](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,

---

<div class="post-metadata">

### Author: ![SimBrief](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.navigraph.com/simbrief/32/4850_2.png) [@SimBrief](https://forum.navigraph.com/u/SimBrief)
#### Post date: [December 11, 2023, 6:29pm UTC](https://forum.navigraph.com/t/api-passenger-cargo-load-problem/14155/4 "2023-12-11T18:29:58Z")

</div>

> [@fatih.koz](#):
>
> 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)

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,

---

<div class="post-metadata">

### Author: ![fatih.koz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.navigraph.com/fatih.koz/32/4128_2.png) [@fatih.koz](https://forum.navigraph.com/u/fatih.koz)
#### Post date: [December 11, 2023, 6:54pm UTC](https://forum.navigraph.com/t/api-passenger-cargo-load-problem/14155/5 "2023-12-11T18:54:04Z")

</div>

Hi again,

I think I found and fixed it.

```auto
(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.

---

<div class="post-metadata">

### Author: ![SimBrief](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.navigraph.com/simbrief/32/4850_2.png) [@SimBrief](https://forum.navigraph.com/u/SimBrief)
#### Post date: [December 12, 2023, 5:39pm UTC](https://forum.navigraph.com/t/api-passenger-cargo-load-problem/14155/6 "2023-12-12T17:39:08Z")

</div>

Great! Thanks for the update.

Best regards,

---

<div class="post-metadata">

### Author: ![SimBrief](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.navigraph.com/simbrief/32/4850_2.png) [@SimBrief](https://forum.navigraph.com/u/SimBrief)
#### Post date: [December 25, 2023, 1:00pm UTC](https://forum.navigraph.com/t/api-passenger-cargo-load-problem/14155/7 "2023-12-25T13:00:10Z")

</div>

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