Rest-API : Shopify Fulfillment status changing using php

Shopify Partner
3 0 0

How can I change the Shopify Fulfillment status change Unfulfilled to fulfilled using PHP via a API call?

Reply 1 (1)

Shopify Staff
246 57 70


The first thing that you will need to do is generate an API key for the Admin API so that you can interact with Shop data via an API call.

To generate an API key you will need to create an app.
There are a couple of different app types you can select.

If you are just trying to interact with one Shop's data, you can "create an app" and generate an API key in the Shopify Admin.

If you want to interact with multiple store's data then you will need to create a Public App.  To do this you will need to create a Shopify Partner's account.

If you go the Public App route to retrieve the API key for the Shop you need to do an OAuth handshake.
You can use the Shopify CLI to clone a template starter application that already has this implemented for you.

Once you have your API access token you can start making requests to read and write Shopify data.
You can then create a fulfillment with the Admin GraphQL API.

To learn more visit the Shopify Help Center or the Community Blog.