How can I use Flow to automatically fulfil one product?

Topic summary

Goal: auto-fulfill a “Personalisation” line item on order placement using Shopify Flow.

  • Initial limitation: Flow lacked a native “Mark as fulfilled” action. Recommendation was to use Send HTTP Request to the Admin REST API, requiring a custom app, access token, and testing via Postman.

  • Troubleshooting tips: 400 errors stemmed from malformed JSON (leading whitespace, missing quotes). Use Liquid hyphen trimming (e.g., {%- … -%}), ensure correct headers, and wrap IDs in quotes. Screenshots showed request setups and error outputs.

  • OP outcome: switched to the Mechanic app for flexibility.

  • Update: Flow added “Mark fulfillment order as fulfilled,” but it only fulfills the entire fulfillment order (no partial fulfillment). This isn’t suitable when “Personalisation” is bundled with other items unless it’s isolated into its own fulfillment order.

  • Working alternative: Use GraphQL via HTTP Request with fulfillmentCreateV2 for partial fulfillment. Requires GraphQL global IDs (gIDs) for fulfillmentOrder and line item (not Liquid IDs), specifying fulfillmentOrderId and fulfillmentOrderLineItems with quantity.

  • Latest improvement: Flow now offers “Send Admin API request,” simplifying Admin API calls (only variables needed).

  • Status: No built-in partial fulfillment action; API-based solutions work. Discussion remains open.

Summarized with AI on December 19. AI used: gpt-5.

Hey Paul,

I have similar task, but a little bit confuse about the settings, could you help me, please to figure out what is the right settings should it be here?

What is the URL should be?

I guess instead of {access_token} should be something? Where I can get it?

Also, for the making a fulfillment of a single product with a specific name if it exists in an order. Is it the correct code?

and flow settings: