Creates a fulfillment service.
## Fulfillment service location
When creating a fulfillment service, a new location will be automatically created on the shop
and will be associated with this fulfillment service.
This location will be named after the fulfillment service and inherit the shop's address.
If you are using API version `2023-10` or later, and you need to specify custom attributes for the fulfillment service location
(for example, to change its address to a country different from the shop's country),
use the
[LocationEdit](https://shopify.dev/api/admin-graphql/latest/mutations/locationEdit)
mutation after creating the fulfillment service.
Access Scopes
`write_fulfillments` access scope. Also: The user must have fulfill_and_ship_orders permission.
Arguments
callbackUrl:
URL! -
The URL to send requests for the fulfillment service. The following considerations apply:
- Shopify queries the <code>callback_url/fetch_tracking_numbers</code> endpoint to retrieve tracking numbers
for orders, if `trackingSupport` is set to `true`.
- Shopify queries the <code>callback_url/fetch_stock</code> endpoint to retrieve inventory levels,
if `inventoryManagement` is set to `true`.
- Shopify uses the <code>callback_url/fulfillment_order_notification</code> endpoint to send
[fulfillment and cancellation requests](https://shopify.dev/apps/fulfillment/fulfillment-service-apps/manage-fulfillments#step-2-receive-fulfillment-requests-and-cancellations).
fulfillmentOrdersOptIn:
Boolean! -
Whether the fulfillment service uses the [fulfillment order based workflow](
https://shopify.dev/apps/fulfillment/fulfillment-service-apps/manage-fulfillments
) for managing fulfillments.
[As of 2022-07 API version](https://shopify.dev/changelog/legacy-fulfillment-api-deprecation),
the fulfillment order based workflow is the only way to manage fulfillments,
and `fulfillmentOrdersOptIn` must be set to `true`.
inventoryManagement:
Boolean -
Whether the fulfillment service manages product inventory and provides updates to Shopify.
name:
String! -
The name of the fulfillment service.
permitsSkuSharing:
Boolean -
Whether the fulfillment service can stock inventory alongside other locations.
trackingSupport:
Boolean -
Whether the fulfillment service provides tracking numbers for packages.