Partial Fulfillment Using the StoreFront REST API

Is it possible to partially fulfil an order using the APIs i.e. if the fulfillable quantity is 2 then I want my first API endpoint to only fulfil 1 and the second time the API is prompted it should then complete the fulfilment for this items.

if fulfillable_quantity > 0:

Fulfill 1 item if quantity > 1, or fulfill all if quantity == 1

quantity_to_fulfil = 1 if fulfillable_quantity > 1 else fulfillable_quantity
line_items_to_fulfill.append({
“id”: line_item[‘id’],
“quantity”: quantity_to_fulfil
})

I have such a logic scenario for my python backend but on trial fulfils all items on first endpoint hit.