- Customers
- Customer Address
- Retrieves a list of addresses for a customer
- Creates a new address for a customer
- Retrieves details for a single customer address
- Updates an existing customer address
- Removes an address from a customer’s address list
- Performs bulk operations for multiple customer addresses
- Sets the default address for a customer
- CustomerSavedSearch
- Customer
- Retrieves a list of customers
- Creates a customer
- Searches for customers that match a supplied query
- Retrieves a single customer
- Updates a customer
- Deletes a customer
- Creates an account activation URL for a customer
- Sends an account invite to a customer
- Retrieves a count of customers
- Retrieves all orders that belong to a customer
- Sales channels
- Checkout
- CollectionListing
- Retrieve collection listings that are published to your app
- Retrieve product_ids that are published to a collection_id
- Retrieve a specific collection listing that is published to your app
- Create a collection listing to publish a collection to your app
- Delete a collection listing to unpublish a collection from your app
- Product ResourceFeedback
- MobilePlatformApplication
- ProductListing
- Retrieve product listings that are published to your app
- Retrieve product_ids that are published to your app
- Retrieve a count of products that are published to your app
- Retrieve a specific product listing that is published to your app
- Create a product listing to publish a product to your app
- Delete a product listing to unpublish a product from your app
- ResourceFeedback
- Payment
- Products
- Collect
- Collection
- CustomCollection
- Product
- Product Image
- Product Variant
- SmartCollection
- Orders
- Access
- Billing
- Online store
- Asset
- Blog
- Article
- Retrieves a list of all articles from a blog
- Creates an article for a blog
- Retrieves a count of all articles from a blog
- Receive a single Article
- Updates an article
- Deletes an article
- Retrieves a list of all article authors
- Retrieves a list of all article tags
- Retrieves a list of all article tags from a specific blog
- Redirect
- Comment
- ScriptTag
- Page
- Theme
- Shipping and fulfillment
- CancellationRequest
- CarrierService
- AssignedFulfillmentOrder
- FulfillmentEvent
- Fulfillment
- Retrieves fulfillments associated with an order
- Retrieves fulfillments associated with a fulfillment order
- Retrieves a count of fulfillments associated with a specific order
- Receive a single Fulfillment
- Creates a fulfillment for one or many fulfillment orders
- Updates the tracking information for a fulfillment
- Cancels a fulfillment
- FulfillmentOrder
- Retrieves a list of fulfillment orders for a specific order
- Retrieves a specific fulfillment order
- Cancel a fulfillment order
- Marks a fulfillment order as incomplete
- Moves a fulfillment order to a new location
- Marks the fulfillment order as open
- Reschedules the fulfill_at time of a scheduled fulfillment order
- Applies a fulfillment hold on an open fulfillment order
- Sets deadline for fulfillment orders
- Releases the fulfillment hold on a fulfillment order
- LocationsForMove
- FulfillmentRequest
- FulfillmentService
- Shopify Payments
- Analytics
- Deprecated API calls
- Discounts
- DiscountCode
- Creates a discount code
- Retrieves a list of discount codes
- Updates an existing discount code
- Retrieves a single discount code
- Deletes a discount code
- Retrieves the location of a discount code
- Retrieves a count of discount codes for a shop
- Creates a discount code creation job
- Retrieves a discount code creation job
- Retrieves a list of discount codes for a discount code creation job
- PriceRule
- DiscountCode
- Inventory
- Events
- MarketingEvent
- Metafield
- Plus
- Store properties
- TenderTransaction
Create a new FulfillmentService
POST
/admin/api/{api_version}/fulfillment_services.json
请求参数
Path 参数
api_version
string
必需
Query 参数
callback_url
string
可选
The callback URL that the fulfillment service has registered for requests. The following considerations apply:
- Shopify queries the
callback_url/fetch_tracking_numbers
endpoint to retrieve tracking numbers for orders, iftracking_support
is set totrue
. - Shopify queries the
callback_url/fetch_stock
endpoint to retrieve inventory levels, ifinventory_management
is set totrue
. - Shopify uses the
callback_url/fulfillment_order_notification
endpoint to send fulfillment and cancellation requests if the fulfillment service has opted in to the fulfillment order based workflow for managing fulfillments (fulfillment_orders_opt_in
is set totrue
).
callback_url
field is required if inventory_management
,
tracking_support
, or fulfillment_orders_opt_in
is set to true
.fulfillment_orders_opt_in
string
可选
inventory_management
string
可选
true
and false
.name
string
可选
permits_sku_sharing
string
可选
requires_shipping_method
string
可选
true
and false
.tracking_support
string
可选
true
and false
.示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo.myshopify.com//admin/api//fulfillment_services.json'
返回响应
🟢201Create a new FulfillmentService
application/json
Body
fulfillment_service
object (FulfillmentService)
可选
admin_graphql_api_id
string
可选
callback_url
string
可选
The callback URL that the fulfillment service has registered for requests. The following considerations apply:
- Shopify queries the
callback_url/fetch_tracking_numbers
endpoint to retrieve tracking numbers for orders, iftracking_support
is set totrue
. - Shopify queries the
callback_url/fetch_stock
endpoint to retrieve inventory levels, ifinventory_management
is set totrue
. - Shopify uses the
callback_url/fulfillment_order_notification
endpoint to send fulfillment and cancellation requests if the fulfillment service has opted in to the fulfillment order based workflow for managing fulfillments (fulfillment_orders_opt_in
is set totrue
).
callback_url
field is required if inventory_management
,
tracking_support
, or fulfillment_orders_opt_in
is set to true
.fulfillment_orders_opt_in
string
可选
As of 2022-07 API version, the fulfillment order based workflow is the only way to manage fulfillments, and
fulfillment_orders_opt_in
must be set to true
.permits_sku_sharing
string
可选
handle
string
可选
inventory_management
string
可选
true
and false
.location_id
string
可选
name
string
可选
provider_id
string
可选
requires_shipping_method
string
可选
true
and false
.tracking_support
string
可选
true
and false
.示例
{
"fulfillment_service": {
"id": 1061774488,
"name": "Jupiter Fulfillment",
"email": null,
"service_name": "Jupiter Fulfillment",
"handle": "jupiter-fulfillment",
"fulfillment_orders_opt_in": true,
"include_pending_stock": false,
"provider_id": null,
"location_id": 1072404543,
"callback_url": "http://google.com/",
"tracking_support": true,
"inventory_management": true,
"admin_graphql_api_id": "gid://shopify/ApiFulfillmentService/1061774488",
"permits_sku_sharing": true
}
}
修改于 2023-01-29 12:00:34