can't delete or edit fulfillment service

rohit_martires
Shopify Partner
49 3 6

Hey,

so when i GET the fulfillment services on my app with the below code i get 

 

 

await client.get({
        path: 'fulfillment_services',
        query: {
            scope: 'all'
        }
    });

 

 

this response: {
id: 61536665845,
name: 'ABC',
email: null,
service_name: 'ABC',
handle: 'abc',
fulfillment_orders_opt_in: false,
include_pending_stock: false,
provider_id: null,
location_id: 69090509xxx,
callback_url: 'https://www.abc.in/fulfillment_service',
tracking_support: true,
inventory_management: true,
admin_graphql_api_id: 'gid://shopify/ApiFulfillmentService/61536665xxx'
}

which is fine but when i try to delete or edit it via 

 

 

await client.delete({
        path: `fulfillment_services/${fs.id}`
});

 

i get this error: HttpResponseError: Received an error response (404 Not Found) from Shopify: Not Found. If you report this error, please include this id: 4278e344-0e81-40db-9d81-36092f35e6a9

and if i edit via

 

await client.put({
        path: `fulfillment_services/${fs.id}`,
        data: {
            fulfillment_services: {
                fulfillment_orders_opt_in: true
            }
        },
        type: DataType.JSON,
});

 

i get error: HttpResponseError: Received an error response (422 Unprocessable Entity) from Shopify: [object Object]. If you report this error, please include this id: 8e380cb7-84bb-40f2-9ace-31a36dfb56a9


not sure what i'm doing wrong, i've deleted fulfillment services before using the same code, weird 

 

Replies 0 (0)