PAYLOAD_STATION_WEIGHT Index

So I’m trying to write a C# app to load an aircraft with cargo and fuel via SimConnect. Fuel seems straightforward but payload…not so much. The SDK says that:

PAYLOAD STATION WEIGHT:index

Is writeable. Anyhow have an example of how to:

a) Read the amount of indices available on the airframe select (I’m focused on the 208), and
b) Write the payload to the various stations that are available

I could rewrite the aircraft’s .cfg file, which seems to do the same thing, but I’d rather do this once the aircraft is loaded into the sim and not mess with a user’s .cfg file.

Thanks in advance!

Mark