Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hello. I'm attempting to retrieve a list of orders through the Shopify Admin API with a fulfillment_status of "unfulfilled", but am getting a return of all orders in the store within my set limit, but not filtered. I've tried adding a custom order filter when searching as well to no avail. When inspecting fulfillment_status on the orders returned I notice that most are equal to null, if that helps.
public class CustomerOrderListFilter : OrderListFilter
{
[JsonProperty("fulfillment_status")]
public string CustomFulfillmentStatus { get; set; }
}
Note: I am using the latest version of ShopifySharp for C# implementation.
var service = new OrderService(_shopUrl, _accessToken);
var page = await service.ListAsync(new CustomerOrderListFilter()
{
Limit = 250,
CustomFulfillmentStatus = "unfulfilled"
});
Searching on a non-custom filter like FinancialStatus works fine so I at least have a baseline for filters working correctly. Is the fulfillment_status field blocked or ignored similar to how order name was dropped at one point?
Can anyone offer any guidance?
Solved! Go to the solution
This is an accepted solution.
Hi @MMIDev
"unfulfilled" is not a fulfillment status. The valid values are:
Hope this helps!
CS | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hi @MMIDev
"unfulfilled" is not a fulfillment status. The valid values are:
Hope this helps!
CS | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog