New Shopify Certification now available: Liquid Storefronts for Theme Developers

{"(422 Unprocessable Entity) fulfillment_service: is not defined for your shop"}

safvan
Tourist
4 0 1

I am trying to create a product using admin API, and I specified fulfillment service as my apps name in order to identify my apps product

 

var product = new Product()
{

Tags = "Back to School, Crew neck, DTG, Men's Clothing, Regular fit, T-shirts, Unisex, Women's Clothing",
Title = "Dotnet Prod 1",
Vendor = "Fing-app",
BodyHtml = "<strong>Good snowboard!</strong>",
ProductType = "Snowboard",
PublishedScope = "web",
Status = "active",

Images = new List<ProductImage>
{
new ProductImage
{
Attachment = "R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
}
},

Variants = new List<ProductVariant>
{
new ProductVariant
{
Title = "White / S",
Price = 130,
Option1 = "White",
FulfillmentService = "dotnet-app-2"
}
}
};

Replies 0 (0)